/* ─────────────────────────────────────────────
   MISE · mise-cook.com
   Editorial cálido de recetario · terracota/crema
   Fraunces (display) + Instrument Sans (body)
   ───────────────────────────────────────────── */

:root {
  --cream: #FDF6EC;
  --cream-deep: #F9EAD3;
  --sand: #E8D5B7;
  --sand-soft: #F0E6D3;
  --terracota: #C1440E;
  --orange: #E06020;
  --orange-soft: #FFB347;
  --ink: #2C1A0E;
  --brown: #6F5540;
  --herb: #4A7C59;
  --white: #FFFFFF;

  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Instrument Sans", -apple-system, sans-serif;

  --radius: 22px;
  --shadow-soft: 0 8px 30px rgba(44, 26, 14, 0.08);
  --shadow-lift: 0 16px 44px rgba(44, 26, 14, 0.14);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--cream);
  color: var(--ink);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Grano de papel sutil sobre toda la página */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 999;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
}

::selection { background: var(--orange-soft); color: var(--ink); }

img { max-width: 100%; display: block; }
a { color: var(--terracota); }

/* ── Tipografía ─────────────────────────────── */
h1, h2, h3 { font-family: var(--font-display); font-weight: 700; line-height: 1.12; letter-spacing: -0.01em; }
.display-italic { font-style: italic; font-weight: 600; color: var(--terracota); }

/* ── Nav ────────────────────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px clamp(20px, 5vw, 56px);
  background: color-mix(in srgb, var(--cream) 82%, transparent);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--sand-soft);
}
.nav-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.nav-brand img { width: 38px; height: 38px; border-radius: 11px; }
.nav-brand span { font-family: var(--font-display); font-weight: 800; font-size: 22px; }
.nav-links { display: flex; align-items: center; gap: clamp(14px, 2.5vw, 28px); }
.nav-links a { text-decoration: none; color: var(--brown); font-weight: 600; font-size: 15px; transition: color .2s; }
.nav-links a:hover { color: var(--terracota); }
.nav-cta {
  background: var(--ink); color: var(--cream) !important;
  padding: 9px 18px; border-radius: 999px; font-size: 14px !important;
}
.nav-cta:hover { background: var(--terracota); }

/* ── Hero ───────────────────────────────────── */
.hero {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(24px, 4vw, 60px);
  align-items: center;
  padding: clamp(48px, 8vw, 96px) clamp(20px, 5vw, 56px) clamp(56px, 7vw, 90px);
  max-width: 1200px; margin: 0 auto;
}
/* manchas cálidas de fondo */
.hero::before, .hero::after {
  content: ""; position: absolute; border-radius: 50%; filter: blur(80px); z-index: -1;
}
.hero::before { width: 460px; height: 460px; background: rgba(224, 96, 32, 0.16); top: -120px; right: -80px; }
.hero::after { width: 380px; height: 380px; background: rgba(255, 179, 71, 0.2); bottom: -140px; left: -120px; }

.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--cream-deep); border: 1px solid var(--sand);
  padding: 7px 16px; border-radius: 999px;
  font-size: 13.5px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--terracota); margin-bottom: 22px;
}
.hero h1 {
  font-size: clamp(40px, 6vw, 68px);
  font-weight: 800;
  margin-bottom: 20px;
}
.hero-sub {
  font-size: clamp(16px, 1.6vw, 19px);
  color: var(--brown);
  max-width: 46ch;
  margin-bottom: 32px;
}
.hero-sub strong { color: var(--ink); }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.btn-primary {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--terracota); color: var(--cream); text-decoration: none;
  font-weight: 700; font-size: 16.5px;
  padding: 15px 28px; border-radius: 16px;
  box-shadow: 0 10px 26px rgba(193, 68, 14, 0.32);
  transition: transform .18s ease, box-shadow .18s ease, background .18s;
}
.btn-primary:hover { transform: translateY(-2px); background: var(--orange); box-shadow: 0 16px 34px rgba(193, 68, 14, 0.38); }
.btn-ghost {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--ink); text-decoration: none; font-weight: 700; font-size: 15.5px;
  padding: 15px 22px; border-radius: 16px; border: 1.5px solid var(--sand);
  background: var(--white); transition: border-color .2s, transform .18s;
}
.btn-ghost:hover { border-color: var(--terracota); transform: translateY(-2px); }
.hero-note { font-size: 14px; color: var(--brown); margin-top: 14px; }

/* Tabla "mise en place" del hero: Foxy + fichas de ingredientes */
.hero-board { position: relative; display: grid; place-items: center; min-height: 420px; }
.hero-foxy {
  width: clamp(220px, 26vw, 330px);
  filter: drop-shadow(0 24px 40px rgba(44, 26, 14, 0.22));
  animation: bob 5s ease-in-out infinite;
  z-index: 2;
}
.chip {
  position: absolute;
  display: flex; align-items: center; gap: 8px;
  background: var(--white); border: 1.5px solid var(--sand-soft);
  border-radius: 14px; padding: 10px 14px;
  font-weight: 700; font-size: 14px;
  box-shadow: var(--shadow-soft);
  animation: floaty 6s ease-in-out infinite;
}
.chip em { font-style: normal; font-size: 18px; }
.chip:nth-child(2) { top: 4%;  left: 4%;  rotate: -5deg; animation-delay: .4s; }
.chip:nth-child(3) { top: 16%; right: 0%; rotate: 4deg;  animation-delay: 1.1s; }
.chip:nth-child(4) { bottom: 22%; left: 0%; rotate: 3deg; animation-delay: 1.8s; }
.chip:nth-child(5) { bottom: 6%; right: 8%; rotate: -4deg; animation-delay: 2.4s; }
.chip-answer {
  position: absolute; bottom: -4%; left: 50%; translate: -50% 0;
  background: var(--ink); color: var(--cream);
  border: none; z-index: 3; rotate: -1.5deg;
  animation: floaty 7s ease-in-out infinite 1s;
}

@keyframes bob { 0%,100% { transform: translateY(0) } 50% { transform: translateY(-14px) } }
@keyframes floaty { 0%,100% { transform: translateY(0) } 50% { transform: translateY(-9px) } }

/* Revelado escalonado al cargar */
.reveal { opacity: 0; translate: 0 22px; animation: reveal .8s cubic-bezier(.2,.7,.3,1) forwards; }
.reveal:nth-of-type(2) { animation-delay: .12s; }
.d1 { animation-delay: .08s } .d2 { animation-delay: .18s } .d3 { animation-delay: .28s } .d4 { animation-delay: .38s }
@keyframes reveal { to { opacity: 1; translate: 0 0; } }

/* ── Cinta marquee ──────────────────────────── */
.ticker {
  overflow: hidden; white-space: nowrap;
  background: var(--ink); color: var(--cream-deep);
  padding: 13px 0; font-weight: 600; font-size: 15px;
  border-block: 1px solid var(--ink);
}
.ticker-track { display: inline-block; animation: ticker 30s linear infinite; }
.ticker span { margin: 0 22px; }
@keyframes ticker { from { transform: translateX(0) } to { transform: translateX(-50%) } }

/* ── Secciones ──────────────────────────────── */
.section { max-width: 1200px; margin: 0 auto; padding: clamp(56px, 8vw, 100px) clamp(20px, 5vw, 56px); scroll-margin-top: 84px; }
.section-eyebrow {
  font-size: 13.5px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase;
  color: var(--terracota); margin-bottom: 12px;
}
.section h2 { font-size: clamp(30px, 4vw, 46px); margin-bottom: 14px; max-width: 22ch; }
.section-sub { color: var(--brown); font-size: 17px; max-width: 58ch; margin-bottom: 44px; }

/* Tarjetas-receta */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 22px; }
.card {
  position: relative;
  background: var(--white);
  border: 1.5px solid var(--sand-soft);
  border-radius: var(--radius);
  padding: 30px 26px 28px;
  box-shadow: var(--shadow-soft);
  transition: transform .22s ease, box-shadow .22s ease;
  overflow: hidden;
}
.card:hover { transform: translateY(-6px) rotate(-0.4deg); box-shadow: var(--shadow-lift); }
/* borde superior festoneado, como mantel de picnic */
.card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 7px;
  background: radial-gradient(circle at 7px -2px, transparent 7px, var(--card-tint, var(--orange-soft)) 8px);
  background-size: 22px 10px;
}
.card-icon {
  width: 54px; height: 54px; display: grid; place-items: center;
  font-size: 27px; border-radius: 16px;
  background: var(--cream-deep); border: 1px solid var(--sand-soft);
  margin-bottom: 18px;
}
.card h3 { font-size: 21px; margin-bottom: 8px; }
.card p { color: var(--brown); font-size: 15px; }
.card .pro-tag {
  position: absolute; top: 18px; right: 18px;
  background: var(--terracota); color: var(--cream);
  font-size: 11px; font-weight: 800; letter-spacing: .06em;
  padding: 4px 10px; border-radius: 999px;
}

/* ── Cómo funciona (mise en place) ──────────── */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 22px; counter-reset: paso; }
.step {
  position: relative;
  background: var(--cream-deep);
  border: 1.5px dashed var(--sand);
  border-radius: var(--radius);
  padding: 34px 26px 28px;
}
.step::before {
  counter-increment: paso; content: counter(paso);
  position: absolute; top: -18px; left: 22px;
  width: 40px; height: 40px; display: grid; place-items: center;
  background: var(--ink); color: var(--cream);
  font-family: var(--font-display); font-weight: 800; font-size: 19px;
  border-radius: 50%;
  box-shadow: 0 6px 16px rgba(44,26,14,.25);
}
.step h3 { font-size: 20px; margin-bottom: 8px; }
.step p { color: var(--brown); font-size: 15px; }

/* ── Banda Pro ──────────────────────────────── */
.pro-band {
  position: relative;
  background: linear-gradient(135deg, #A93E0C, var(--terracota));
  border-radius: 30px;
  padding: clamp(40px, 6vw, 72px);
  color: var(--cream);
  display: grid; grid-template-columns: 1.3fr .7fr; gap: 32px; align-items: center;
  overflow: hidden;
}
.pro-band::after {
  content: "🦊"; position: absolute; right: -26px; bottom: -40px;
  font-size: 190px; opacity: .14; rotate: -12deg;
}
.pro-band h2 { font-size: clamp(30px, 4vw, 44px); color: var(--cream); margin-bottom: 14px; }
.pro-band h2 em { font-style: italic; color: #FFE1B8; }
.pro-list { list-style: none; display: grid; gap: 10px; margin-top: 8px; }
.pro-list li { display: flex; gap: 10px; align-items: baseline; font-size: 16.5px; font-weight: 500; }
.pro-list li::before { content: "✦"; color: #FFE1B8; }
.pro-price {
  background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.3);
  border-radius: 22px; padding: 30px; text-align: center; backdrop-filter: blur(4px);
}
.pro-price .big { font-family: var(--font-display); font-size: 54px; font-weight: 800; line-height: 1; }
.pro-price .per { font-size: 15px; opacity: .85; }
.pro-price .alt { margin-top: 10px; font-size: 14.5px; opacity: .95; }
.pro-price .trial { margin-top: 14px; font-size: 13px; background: var(--ink); border-radius: 999px; padding: 7px 14px; display: inline-block; }

/* ── Redes flotantes (derecha) ──────────────── */
.social-float {
  position: fixed; right: 16px; top: 50%; translate: 0 -50%;
  display: grid; gap: 10px; z-index: 60;
}
.social-float a {
  width: 46px; height: 46px; display: grid; place-items: center;
  background: var(--white); border: 1.5px solid var(--sand);
  border-radius: 50%; color: var(--ink);
  box-shadow: var(--shadow-soft);
  transition: transform .18s ease, background .18s, color .18s, border-color .18s;
}
.social-float a:hover { transform: translateY(-3px) scale(1.06); background: var(--terracota); border-color: var(--terracota); color: var(--cream); }
.social-float svg { width: 20px; height: 20px; fill: currentColor; }
@media (max-width: 1150px) {
  .social-float { top: auto; bottom: 14px; right: 12px; translate: 0 0; gap: 8px; }
  .social-float a { width: 40px; height: 40px; }
}

/* ── Selector de idioma ─────────────────────── */
.lang {
  display: flex; align-items: center; gap: 4px;
  border: 1.5px solid var(--sand-soft); border-radius: 999px; padding: 3px;
  background: var(--white);
}
.lang a {
  text-decoration: none; color: var(--brown); font-weight: 700; font-size: 12.5px;
  padding: 4px 9px; border-radius: 999px; transition: background .15s, color .15s;
}
.lang a:hover { color: var(--terracota); }
.lang a.active { background: var(--ink); color: var(--cream); }

/* ── Cierre (segunda captura) ───────────────── */
.closing { text-align: center; }
.closing h2 { margin-inline: auto; }
.closing .btn-primary { margin-top: 6px; }
.closing .hero-note { margin-top: 16px; }

/* ── Footer ─────────────────────────────────── */
.footer {
  background: var(--ink); color: var(--sand);
  margin-top: clamp(60px, 8vw, 110px);
  padding: clamp(48px, 6vw, 80px) clamp(20px, 5vw, 56px) 36px;
}
.footer-grid {
  max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 36px;
}
.footer-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.footer-brand img { width: 44px; height: 44px; border-radius: 12px; }
.footer-brand span { font-family: var(--font-display); font-weight: 800; font-size: 26px; color: var(--cream); }
.footer p { font-size: 14.5px; color: #B8A898; max-width: 34ch; }
.footer h4 { color: var(--cream); font-size: 14px; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 14px; }
.footer ul { list-style: none; display: grid; gap: 10px; }
.footer a { color: #D8C6AE; text-decoration: none; font-size: 15px; transition: color .2s; }
.footer a:hover { color: var(--orange-soft); }
.footer-bottom {
  max-width: 1200px; margin: 44px auto 0; padding-top: 22px;
  border-top: 1px solid rgba(232, 213, 183, 0.15);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px;
  font-size: 13.5px; color: #B8A898;
}

/* ── Páginas legales ────────────────────────── */
.legal-wrap { max-width: 760px; margin: 0 auto; padding: clamp(40px, 6vw, 72px) clamp(20px, 5vw, 40px); }
.legal-wrap h1 { font-size: clamp(32px, 4.5vw, 46px); margin-bottom: 10px; }
.legal-updated {
  display: inline-block; background: var(--cream-deep); border: 1px solid var(--sand);
  border-radius: 999px; padding: 6px 14px; font-size: 13px; font-weight: 700; color: var(--brown);
  margin-bottom: 36px;
}
.legal-wrap h2 { font-size: 24px; margin: 40px 0 12px; }
.legal-wrap h3 { font-size: 18px; margin: 24px 0 8px; }
.legal-wrap p, .legal-wrap li { font-size: 16px; color: #4A3728; }
.legal-wrap ul { padding-left: 22px; margin: 10px 0 16px; }
.legal-wrap li { margin-bottom: 6px; }
.legal-wrap strong { color: var(--ink); }
.legal-callout {
  background: var(--cream-deep); border-left: 4px solid var(--orange);
  border-radius: 0 14px 14px 0; padding: 16px 20px; margin: 18px 0;
}

/* ── Responsive ─────────────────────────────── */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; text-align: center; padding-top: 40px; }
  .hero-sub { margin-inline: auto; }
  .hero-ctas { justify-content: center; }
  .hero-board { min-height: 360px; margin-top: 10px; }
  .pro-band { grid-template-columns: 1fr; text-align: center; }
  .pro-list li { justify-content: center; }
  .footer-grid { grid-template-columns: 1fr; }
  .nav-links > a:not(.nav-cta) { display: none; }
  .pro-list { max-width: 32ch; margin-inline: auto; }
  .pro-list li { justify-content: flex-start; text-align: left; }
  .hero-ctas .btn-primary { width: 100%; justify-content: center; }
}

/* Foco de teclado visible sobre crema */
.btn-primary:focus-visible, .btn-ghost:focus-visible, .nav-cta:focus-visible,
.lang a:focus-visible, .social-float a:focus-visible {
  outline: 3px solid var(--ink); outline-offset: 3px;
}

/* Pantallas intermedias: que las fichas no se metan bajo el zorro */
@media (max-width: 1150px) {
  .hero-foxy { width: clamp(190px, 23vw, 300px); }
  .chip { font-size: 13px; padding: 8px 11px; }
}

@media (max-width: 600px) {
  .ticker { padding: 9px 0; font-size: 13.5px; }
  .social-float a:nth-of-type(2) { display: none; }
  .footer { padding-bottom: 96px; }
}

@media (max-width: 480px) {
  .nav-brand span { display: none; }
  .nav-cta { padding: 11px 14px; }
  .hero-board { min-height: 300px; }
  .hero-foxy { width: 185px; }
  .chip { font-size: 12.5px; padding: 8px 10px; }
  .chip:nth-child(3) { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
