/* ============================================================
   JUANITO BITES — juanitobites.com
   Sistema visual: verde botella #0C4233 + crema #F2E9D8 + carbón
   Tipografía: Playfair Display (Didone) + Inter
   ============================================================ */

:root {
  --verde: #0C4233;
  --verde-osc: #093226;
  --verde-prof: #06241B;
  --crema: #F2E9D8;
  --crema-claro: #F9F3E7;
  --carbon: #1A1A1A;
  --dorado: #C9A26B;
  --tinta: #21302B;

  --font-display: "Playfair Display", Georgia, serif;
  --font-body: "Inter", -apple-system, system-ui, sans-serif;

  --container: 1180px;
  --radius: 14px;
  --sombra-verde: 0 18px 48px -18px rgba(12, 66, 51, 0.38);
  --transicion: 220ms cubic-bezier(0.33, 1, 0.68, 1);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--tinta);
  background: var(--crema);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }

a { color: inherit; }

::selection { background: var(--verde); color: var(--crema); }

/* ---------- Tipografía base ---------- */

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.08;
  color: var(--verde);
}

h2 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); margin-bottom: 0.6em; }

h2 em, h1 em { font-style: italic; }

.h2--crema { color: var(--crema); }

.eyebrow {
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--verde);
  opacity: 0.75;
  margin-bottom: 1.1em;
}

.eyebrow--crema { color: var(--dorado); opacity: 1; }

.lede {
  font-size: clamp(1.02rem, 1.6vw, 1.18rem);
  max-width: 56ch;
  color: var(--tinta);
}

.lede--crema { color: rgba(242, 233, 216, 0.88); }

/* ---------- Layout ---------- */

.container {
  width: min(var(--container), calc(100% - 3rem));
  margin-inline: auto;
}

.container--narrow { max-width: 820px; }

.section { padding-block: clamp(5rem, 11vw, 8.5rem); }

.section--crema  { background: var(--crema); }
.section--verde  { background: var(--verde); }
.section--carbon { background: var(--carbon); }

/* ---------- Botones ---------- */

.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  padding: 0.85em 1.7em;
  border-radius: 999px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform var(--transicion), box-shadow var(--transicion),
              background-color var(--transicion), color var(--transicion);
}

.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn:focus-visible { outline: 3px solid var(--dorado); outline-offset: 3px; }

.btn--cta {
  background: var(--crema);
  color: var(--verde);
}
.btn--cta:hover { box-shadow: 0 14px 30px -10px rgba(0, 0, 0, 0.45); }

.btn--ghost {
  border-color: rgba(242, 233, 216, 0.55);
  color: var(--crema);
  background: transparent;
}
.btn--ghost:hover { border-color: var(--crema); background: rgba(242, 233, 216, 0.08); }

.btn--verde {
  background: var(--verde);
  color: var(--crema);
}
.btn--verde:hover { box-shadow: var(--sombra-verde); }

.btn--ghost-verde {
  border-color: rgba(12, 66, 51, 0.45);
  color: var(--verde);
  background: transparent;
}
.btn--ghost-verde:hover { border-color: var(--verde); background: rgba(12, 66, 51, 0.06); }

.btn--lg { padding: 1em 2.1em; font-size: 1rem; }
.btn--xl { padding: 1.15em 2.6em; font-size: 1.1rem; }

/* ---------- NAV ---------- */

.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 2.5rem;
  padding: 1.1rem clamp(1.25rem, 4vw, 3rem);
  transition: background-color 280ms ease, box-shadow 280ms ease, padding 280ms ease;
}

.nav--solid {
  background: rgba(9, 50, 38, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 10px 30px -12px rgba(0, 0, 0, 0.45);
  padding-block: 0.7rem;
}

.nav__logo img { height: 30px; width: auto; }

.nav__links {
  display: flex;
  gap: 1.8rem;
  margin-left: auto;
}

.nav__links a {
  color: var(--crema);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  opacity: 0.85;
  transition: opacity var(--transicion);
}
.nav__links a:hover { opacity: 1; }

.nav__cta { white-space: nowrap; }

.nav__burger {
  display: none;
  margin-left: auto;
  background: none;
  border: 0;
  width: 42px;
  height: 42px;
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  gap: 7px;
}
.nav__burger span {
  display: block;
  height: 2px;
  background: var(--crema);
  border-radius: 2px;
  transition: transform 240ms ease, opacity 240ms ease;
}
.nav__burger.abierto span:first-child { transform: translateY(4.5px) rotate(45deg); }
.nav__burger.abierto span:last-child  { transform: translateY(-4.5px) rotate(-45deg); }

.mobilemenu {
  position: fixed;
  inset: 0;
  z-index: 40;
  background: var(--verde-prof);
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
}
.mobilemenu.abierto { display: flex; }
.mobilemenu a {
  color: var(--crema);
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 1.7rem;
}
.mobilemenu .btn { font-family: var(--font-body); font-size: 1rem; }

/* ---------- HERO ---------- */

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  background:
    radial-gradient(1100px 700px at 78% 30%, rgba(201, 162, 107, 0.14), transparent 60%),
    radial-gradient(900px 600px at 12% 85%, rgba(6, 36, 27, 0.65), transparent 65%),
    var(--verde);
  overflow: hidden;
}

#cookie-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.hero__inner {
  position: relative;
  z-index: 2;
  width: min(var(--container), calc(100% - 3rem));
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: clamp(2rem, 5vw, 4.5rem);
  padding-block: 8rem 5rem;
}

.hero__badge {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--crema);
  background: rgba(242, 233, 216, 0.1);
  border: 1px solid rgba(242, 233, 216, 0.25);
  border-radius: 999px;
  padding: 0.5em 1.2em;
  margin-bottom: 2rem;
}
.hero__badge strong { color: var(--dorado); font-weight: 600; }

.hero__title {
  font-size: clamp(2.9rem, 7.2vw, 5.6rem);
  color: var(--crema);
  margin-bottom: 1.6rem;
}

.hero__title .line { display: block; }

.hero__title .line--accent em { color: var(--dorado); }

.hero__sub {
  font-size: clamp(1.05rem, 1.7vw, 1.22rem);
  color: rgba(242, 233, 216, 0.85);
  max-width: 46ch;
  margin-bottom: 2.4rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.6rem;
}

.hero__note {
  font-size: 0.88rem;
  color: rgba(242, 233, 216, 0.6);
  font-style: italic;
}

.hero__visual {
  position: relative;
  justify-self: center;
  width: min(100%, 460px);
}

.hero__visual img {
  width: 100%;
  border-radius: 999px 999px var(--radius) var(--radius);
  border: 6px solid rgba(242, 233, 216, 0.92);
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.55);
}

.hero__visual-tag {
  position: absolute;
  bottom: 1.4rem;
  left: 50%;
  transform: translateX(-50%);
  background: var(--verde-prof);
  color: var(--crema);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  padding: 0.55em 1.3em;
  border-radius: 999px;
  white-space: nowrap;
  box-shadow: 0 10px 24px -8px rgba(0, 0, 0, 0.5);
}

.hero__scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  width: 26px;
  height: 44px;
  border: 2px solid rgba(242, 233, 216, 0.4);
  border-radius: 999px;
}
.hero__scroll span {
  position: absolute;
  top: 8px;
  left: 50%;
  width: 4px;
  height: 9px;
  margin-left: -2px;
  border-radius: 4px;
  background: var(--dorado);
  animation: scrollhint 1.8s ease-in-out infinite;
}
@keyframes scrollhint {
  0%, 100% { transform: translateY(0); opacity: 1; }
  60%      { transform: translateY(13px); opacity: 0.2; }
}

/* ---------- MARQUEE ---------- */

.marquee {
  background: var(--carbon);
  overflow: hidden;
  padding-block: 1.1rem;
  border-block: 1px solid rgba(242, 233, 216, 0.08);
}

.marquee__track {
  display: flex;
  white-space: nowrap;
  width: max-content;
  animation: marquee 26s linear infinite;
}

.marquee__track span {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.25rem;
  color: var(--crema);
  opacity: 0.9;
}

@keyframes marquee {
  to { transform: translateX(-50%); }
}

/* ---------- MANIFIESTO ---------- */

.manifiesto { text-align: center; }
.manifiesto .lede { margin-inline: auto; }

.manifiesto__stats {
  display: flex;
  justify-content: center;
  gap: clamp(2rem, 6vw, 5rem);
  margin-top: 4rem;
  flex-wrap: wrap;
}

.stat__num {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 5vw, 4rem);
  font-weight: 700;
  color: var(--verde);
  line-height: 1;
}
.stat__num small { font-size: 0.45em; font-weight: 600; }

.stat__label {
  display: block;
  margin-top: 0.5rem;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  opacity: 0.7;
}

/* ---------- SABORES ---------- */

.sabores__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.2rem, 2.5vw, 2rem);
  margin-top: 3.5rem;
}

.sabor {
  background: var(--crema);
  border-radius: var(--radius);
  padding: 1.1rem 1.6rem 2rem;
  transition: transform var(--transicion), box-shadow var(--transicion);
}

.sabor:hover {
  transform: translateY(-6px);
  box-shadow: 0 26px 60px -22px rgba(0, 0, 0, 0.5);
}

.sabor__visual {
  margin: -0.1rem -0.6rem 1.4rem;
  border-radius: calc(var(--radius) - 4px);
  overflow: hidden;
  aspect-ratio: 1;
}

.sabor__visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 600ms cubic-bezier(0.33, 1, 0.68, 1);
}

.sabor:hover .sabor__visual img { transform: scale(1.05); }

.sabor__tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--verde);
  background: rgba(12, 66, 51, 0.1);
  border-radius: 999px;
  padding: 0.4em 1em;
  margin-bottom: 0.9rem;
}

.sabor h3 {
  font-size: 1.6rem;
  margin-bottom: 0.5rem;
}

.sabor p { font-size: 0.95rem; opacity: 0.85; }

.sabores__semana {
  margin-top: 3rem;
  background: rgba(242, 233, 216, 0.08);
  border: 1px solid rgba(242, 233, 216, 0.18);
  border-radius: var(--radius);
  padding: 1.5rem 2rem;
  color: rgba(242, 233, 216, 0.92);
  font-size: 0.98rem;
}

.sabores__semana a { color: var(--dorado); font-weight: 600; }

.sabores__proximos {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(242, 233, 216, 0.18);
}
.sabores__proximos strong { color: var(--dorado); }

/* ---------- SORPRESAS ---------- */

.sorpresas { margin-top: 3.5rem; text-align: center; }

.sorpresas__caption {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.15rem;
  color: rgba(242, 233, 216, 0.85);
  margin-bottom: 1.8rem;
}

.sorpresas__strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(0.8rem, 2vw, 1.4rem);
}

.sorpresas__strip img {
  width: 100%;
  border-radius: var(--radius);
  border: 4px solid rgba(242, 233, 216, 0.85);
  transition: transform var(--transicion);
}

.sorpresas__strip img:nth-child(odd)  { transform: rotate(-2deg); }
.sorpresas__strip img:nth-child(even) { transform: rotate(2deg); }
.sorpresas__strip img:hover { transform: rotate(0) scale(1.04); }

/* ---------- LA CAJA / PRECIOS ---------- */

.caja__layout {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: center;
}

.caja__cards {
  display: grid;
  gap: 1.4rem;
}

.pricecard {
  background: var(--crema-claro);
  border: 1px solid rgba(12, 66, 51, 0.12);
  border-radius: var(--radius);
  padding: 1.8rem 2rem;
  transition: transform var(--transicion), box-shadow var(--transicion);
}

.pricecard:hover { transform: translateY(-4px); box-shadow: var(--sombra-verde); }

.pricecard__name {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  opacity: 0.7;
  margin-bottom: 0.3rem;
}

.pricecard__price {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 4vw, 3.2rem);
  font-weight: 700;
  color: var(--verde);
  line-height: 1.1;
  margin-bottom: 0.5rem;
}

.pricecard__desc { font-size: 0.95rem; opacity: 0.85; }

.pricecard--featured {
  position: relative;
  background: var(--verde);
  border-color: var(--verde);
  color: var(--crema);
  box-shadow: var(--sombra-verde);
}

.pricecard--featured .pricecard__price { color: var(--crema); }
.pricecard--featured .pricecard__desc  { color: rgba(242, 233, 216, 0.85); }
.pricecard--featured .btn { margin-top: 1.3rem; background: var(--crema); color: var(--verde); }

.pricecard__badge {
  position: absolute;
  top: -0.8rem;
  right: 1.6rem;
  background: var(--dorado);
  color: var(--carbon);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  border-radius: 999px;
  padding: 0.45em 1.1em;
}

/* ---------- CÓMO PEDIR ---------- */

.pedir { text-align: center; }

.pedir .eyebrow { color: var(--dorado); opacity: 1; }

.pasos {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.5rem, 3vw, 2.5rem);
  margin-top: 3.5rem;
  text-align: left;
}

.paso {
  background: rgba(242, 233, 216, 0.05);
  border: 1px solid rgba(242, 233, 216, 0.14);
  border-radius: var(--radius);
  padding: 2rem;
}

.paso__num {
  display: block;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 2.6rem;
  font-weight: 600;
  color: var(--dorado);
  line-height: 1;
  margin-bottom: 1rem;
}

.paso h3 { color: var(--crema); font-size: 1.35rem; margin-bottom: 0.6rem; }
.paso h3 em { color: var(--dorado); }

.paso p { color: rgba(242, 233, 216, 0.78); font-size: 0.95rem; }

.paso a { color: var(--dorado); font-weight: 600; }

.pedir__cta { margin-top: 3.5rem; }
.pedir__cta .btn--cta { background: var(--dorado); color: var(--carbon); }
.pedir__cta .btn--cta:hover { box-shadow: 0 16px 36px -12px rgba(201, 162, 107, 0.55); }

/* ---------- DÓNDE ---------- */

.donde__layout {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: start;
}

.donde__direccion {
  font-style: normal;
  line-height: 1.7;
  border-left: 3px solid var(--verde);
  padding-left: 1.3rem;
  margin-block: 2rem;
}

.donde__acciones { display: flex; flex-wrap: wrap; gap: 1rem; }

.donde__card {
  background: var(--verde);
  color: var(--crema);
  border-radius: var(--radius);
  padding: 2.4rem;
  box-shadow: var(--sombra-verde);
  position: sticky;
  top: 6.5rem;
}

.donde__card-eyebrow {
  font-size: 0.74rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--dorado);
  margin-bottom: 0.9rem;
}

.donde__card h3 { color: var(--crema); font-size: 1.7rem; margin-bottom: 0.8rem; }
.donde__card p  { color: rgba(242, 233, 216, 0.85); font-size: 0.97rem; }

/* ---------- HISTORIA ---------- */

.historia { text-align: center; }
.historia .lede { margin-inline: auto; }

/* ---------- CTA FINAL ---------- */

.final {
  background:
    radial-gradient(900px 500px at 50% 110%, rgba(201, 162, 107, 0.16), transparent 65%),
    var(--verde-prof);
  text-align: center;
}

.final__title {
  font-size: clamp(2.6rem, 6.4vw, 5rem);
  color: var(--crema);
  margin-bottom: 2.4rem;
}

.final__title .line { display: block; }
.final__title .line--accent em { color: var(--dorado); }

.final__note {
  margin-top: 1.8rem;
  font-size: 0.88rem;
  color: rgba(242, 233, 216, 0.55);
}

/* ---------- FOOTER ---------- */

.footer {
  background: var(--carbon);
  color: rgba(242, 233, 216, 0.8);
  padding: 4rem 0 2rem;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1.2fr;
  gap: 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(242, 233, 216, 0.12);
}

.footer__logo { height: 26px; width: auto; margin-bottom: 1rem; }

.footer__brand p { font-size: 0.92rem; }

.footer__links, .footer__contact {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.footer__links a, .footer__contact a {
  color: rgba(242, 233, 216, 0.75);
  text-decoration: none;
  font-size: 0.92rem;
  transition: color var(--transicion);
}
.footer__links a:hover, .footer__contact a:hover { color: var(--dorado); }

.footer__legal {
  text-align: center;
  font-size: 0.8rem;
  opacity: 0.5;
  padding-top: 1.8rem;
}

/* ---------- RESPONSIVE ---------- */

@media (max-width: 1024px) {
  .sabores__grid { grid-template-columns: repeat(3, 1fr); }
  .caja__layout, .donde__layout { grid-template-columns: 1fr; }
  .donde__card { position: static; }
}

@media (max-width: 860px) {
  .nav__links, .nav__cta { display: none; }
  .nav__burger { display: flex; }

  .hero__inner {
    grid-template-columns: 1fr;
    text-align: center;
    padding-top: 7rem;
  }
  .hero__actions { justify-content: center; }
  .hero__visual { width: min(78%, 380px); margin-inline: auto; }

  .sabores__grid { grid-template-columns: 1fr; max-width: 460px; margin-inline: auto; }
  .sorpresas__strip { grid-template-columns: repeat(2, 1fr); max-width: 460px; margin-inline: auto; }
  .pasos { grid-template-columns: 1fr; max-width: 520px; margin-inline: auto; }
  .footer__grid { grid-template-columns: 1fr; text-align: center; }
  .footer__brand img { margin-inline: auto; }
}

/* ---------- ACCESIBILIDAD: menos movimiento ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .marquee__track { animation: none; }
  .hero__scroll span { animation: none; }
  *, *::before, *::after { transition-duration: 1ms !important; }
}
