/* ===== Variables ===== */
:root {
  --bg: #fffaf0;
  --text: #1a1a1a;
  --muted: #5c5c5c;
  --primary: #ff4d2e;
  --primary-dark: #e03a1c;
  --accent: #ffd23f;
  --dark: #1a1a1a;
  --card: #ffffff;
  --radius: 14px;
  --shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: "Inter", system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 16px;
}

h1, h2, h3, .logo {
  font-family: "Bebas Neue", sans-serif;
  letter-spacing: 1px;
  font-weight: 400;
}

section { padding: 80px 0; }

.section-title {
  font-size: 2.8rem;
  margin-bottom: 24px;
}

/* ===== Botones ===== */
.btn {
  display: inline-block;
  padding: 12px 28px;
  border: none;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s, background 0.15s;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--primary); color: #fff; }
.btn--primary:hover { background: var(--primary-dark); }
.btn--full { width: 100%; }

/* ===== Header ===== */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--dark);
  color: #fff;
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: 16px;
}
.logo {
  font-size: 2rem;
  color: #fff;
  text-decoration: none;
}
.logo span { color: var(--primary); }
.nav { display: flex; gap: 24px; }
.nav a {
  color: #fff;
  text-decoration: none;
  font-weight: 600;
}
.nav a:hover { color: var(--accent); }
.cart-btn {
  background: var(--accent);
  border: none;
  border-radius: 999px;
  padding: 8px 16px;
  font-weight: 700;
  cursor: pointer;
  font-size: 1rem;
}

/* ===== Hero ===== */
.hero {
  background: var(--primary);
  color: #fff;
  text-align: center;
  padding: 110px 0;
}
.hero__tag {
  display: inline-block;
  background: var(--dark);
  padding: 4px 14px;
  border-radius: 999px;
  font-weight: 600;
  margin-bottom: 16px;
}
.hero__title {
  font-size: clamp(3rem, 10vw, 6.5rem);
  line-height: 0.95;
  margin-bottom: 20px;
}
.hero__text {
  max-width: 520px;
  margin: 0 auto 32px;
  font-size: 1.15rem;
}
.hero .btn--primary { background: var(--dark); }
.hero .btn--primary:hover { background: #000; }

/* ===== Sobre ===== */
.about__inner {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 48px;
  align-items: center;
}
.about__img {
  aspect-ratio: 1;
  background: var(--accent);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 6rem;
  box-shadow: var(--shadow);
}
.about p { margin-bottom: 14px; color: var(--muted); font-size: 1.05rem; }

/* ===== Tienda ===== */
.shop { background: #fff3dc; }
.products {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 24px;
}
.product {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.product__img {
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  font-size: 5rem;
  background: var(--accent);
}
.product__body {
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}
.product__name { font-size: 1.6rem; }
.product__desc { color: var(--muted); font-size: 0.95rem; flex: 1; }
.product__price { font-weight: 700; font-size: 1.2rem; }

/* ===== Contacto ===== */
.contact__inner { max-width: 600px; }
.contact p { color: var(--muted); margin-bottom: 20px; }
.form { display: flex; flex-direction: column; gap: 12px; }
.form input,
.form textarea {
  padding: 12px 14px;
  border: 2px solid #e5ddd0;
  border-radius: 10px;
  font: inherit;
  background: #fff;
}
.form input:focus,
.form textarea:focus { outline: none; border-color: var(--primary); }
.form__msg { font-weight: 600; color: green; }

/* ===== Footer ===== */
.footer {
  background: var(--dark);
  color: #bbb;
  text-align: center;
  padding: 24px 0;
  font-size: 0.9rem;
}

/* ===== Carrito ===== */
.cart {
  position: fixed;
  top: 0;
  right: 0;
  width: min(380px, 100%);
  height: 100%;
  background: #fff;
  z-index: 100;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.3s ease;
  box-shadow: -6px 0 20px rgba(0, 0, 0, 0.15);
}
.cart.open { transform: translateX(0); }
.cart__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  border-bottom: 1px solid #eee;
}
.cart__header h3 { font-size: 1.8rem; }
.cart__close {
  background: none;
  border: none;
  font-size: 1.4rem;
  cursor: pointer;
}
.cart__items {
  list-style: none;
  flex: 1;
  overflow-y: auto;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.cart__item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}
.cart__qty {
  display: flex;
  align-items: center;
  gap: 8px;
}
.cart__qty button {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid #ddd;
  background: #fff;
  cursor: pointer;
  font-weight: 700;
}
.cart__empty { color: var(--muted); text-align: center; }
.cart__footer { padding: 20px; border-top: 1px solid #eee; }
.cart__total { margin-bottom: 12px; font-size: 1.1rem; }

.overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 90;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}
.overlay.show { opacity: 1; pointer-events: auto; }

/* ===== Responsive ===== */
@media (max-width: 700px) {
  .nav { display: none; }
  .about__inner { grid-template-columns: 1fr; text-align: center; }
  .about__img { max-width: 200px; margin: 0 auto; }
  section { padding: 60px 0; }
}
