/* =========================================================
   Tortillas La Guadalupana — Tortillería tradicional
   Dirección: editorial artesanal · comal, maíz y barro
   ========================================================= */

:root {
  --cream: #F6EEDC;
  --cream-2: #EFE2C4;
  --paper: #FBF6EA;
  --corn: #E8B23A;
  --corn-soft: #F2CF74;
  --gold: #C48A22;
  --terracotta: #B5552E;
  --clay: #7A3B22;
  --clay-deep: #4A2416;
  --nopal: #4F6B3A;
  --nopal-soft: #7E9A5F;
  --ink: #2A1A12;
  --ink-soft: #5B463A;
  --line: rgba(42, 26, 18, .14);

  /* Colores fijos (no cambian con el tema: van sobre fondos de color propio) */
  --fixed-cream: #F6EEDC;
  --fixed-ink: #2A1A12;
  --fixed-clay: #7A3B22;

  /* Superficies y detalles que sí cambian con el tema */
  --nopal-text: var(--nopal);
  --surface-hover: #FFF9EC;
  --nav-bg: rgba(246, 238, 220, .86);
  --label-bg: rgba(251, 246, 234, .9);
  --field-focus: #FFFBF1;
  --dot-off: rgba(42, 26, 18, .2);
  --footer-bg: #2A1A12;
  --grain-opacity: .22;
  --grain-blend: multiply;
  color-scheme: light;

  --f-display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --f-body: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

  --gutter: clamp(16px, 4vw, 56px);
  --max: 1320px;
  --radius: 22px;
  --ease: cubic-bezier(.2, .7, .1, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
}

/* ---------- Modo oscuro: barro tostado y comal de noche ---------- */
:root[data-theme="dark"] {
  --cream: #17100B;
  --cream-2: #21170F;
  --paper: #1C130D;
  --ink: #F3E8D2;
  --ink-soft: #C9B79E;
  --line: rgba(243, 232, 210, .14);
  --clay: #E0A17A;
  --terracotta: #E27D52;

  --nopal-text: #A3C182;
  --surface-hover: #271C14;
  --nav-bg: rgba(23, 16, 11, .86);
  --label-bg: rgba(33, 23, 15, .9);
  --field-focus: #271C14;
  --dot-off: rgba(243, 232, 210, .22);
  --footer-bg: #0F0906;
  --grain-opacity: .1;
  --grain-blend: screen;
  color-scheme: dark;
}

/* Logo: versión de tinta oscura (modo claro) o crema (modo oscuro) */
.logo-dark { display: none; }
:root[data-theme="dark"] .logo-light { display: none; }
:root[data-theme="dark"] .logo-dark { display: block; }

/* Transición suave solo durante el cambio de tema */
html.theme-anim *, html.theme-anim *::before, html.theme-anim *::after {
  transition: background-color .45s ease, color .45s ease, border-color .45s ease, fill .45s ease !important;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: hidden; overflow-x: clip; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: clamp(16px, 1.05vw, 18px);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  overflow-x: clip;
}
/* Textura de papel / grano */
body::after {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 90;
  opacity: var(--grain-opacity);
  mix-blend-mode: var(--grain-blend);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .35 0 0 0 0 .22 0 0 0 0 .12 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

img { max-width: 100%; display: block; }
a { color: inherit; }
em { font-style: italic; }
h1, h2, h3 { margin: 0; font-weight: 400; }
p { margin: 0; }
::selection { background: var(--corn); color: var(--ink); }
:focus-visible { outline: 2px solid var(--terracotta); outline-offset: 3px; border-radius: 6px; }

.skip {
  position: absolute; left: -999px; top: 8px; z-index: 200;
  background: var(--ink); color: var(--cream); padding: 10px 16px; border-radius: 999px;
}
.skip:focus { left: 16px; }

/* ---------- Tipografía base ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 12.5px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--terracotta);
}
.eyebrow .dot {
  width: 7px; height: 7px; border-radius: 50%; background: var(--corn);
  box-shadow: 0 0 0 4px rgba(232, 178, 58, .22);
}
.eyebrow--light { color: var(--corn-soft); }

.h2 {
  font-family: var(--f-display);
  font-variation-settings: "opsz" 144, "SOFT" 60, "WONK" 0;
  font-weight: 380;
  font-size: clamp(36px, 5.4vw, 84px);
  line-height: 1.02;
  letter-spacing: -.025em;
  margin-top: 18px;
}
.h2 em {
  font-variation-settings: "opsz" 144, "SOFT" 100, "WONK" 1;
  color: var(--terracotta);
  font-weight: 340;
}
.h2--light { color: var(--fixed-cream); }
.h2--light em { color: var(--corn); }

/* ---------- Botones ---------- */
.btn {
  --bg: var(--ink); --fg: var(--cream);
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 16px 26px;
  border-radius: 999px;
  border: 1.5px solid transparent;
  background: var(--bg); color: var(--fg);
  font: 600 15px/1 var(--f-body);
  letter-spacing: .01em;
  text-decoration: none;
  cursor: pointer;
  transition: color .35s var(--ease), border-color .35s var(--ease), transform .35s var(--ease-out);
  will-change: transform;
}
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--fill, var(--terracotta));
  border-radius: inherit;
  transform: translateY(101%);
  transition: transform .5s var(--ease-out);
}
.btn:hover::before { transform: translateY(0); }
.btn:hover { color: var(--fill-fg, var(--cream)); }
.btn__arrow { display: inline-block; transition: transform .4s var(--ease-out); }
.btn:hover .btn__arrow { transform: translateX(5px); }

.btn--corn { --bg: var(--corn); --fg: var(--fixed-ink); --fill: var(--fixed-ink); --fill-fg: var(--corn); }
.btn--dark { --bg: var(--ink); --fg: var(--cream); --fill: var(--terracotta); }
.btn--ghost { --bg: transparent; --fg: var(--ink); border-color: var(--ink); --fill: var(--ink); --fill-fg: var(--cream); }
.btn--small { padding: 12px 20px; font-size: 14px; }
.btn--block { width: 100%; }

.link {
  color: var(--terracotta); text-decoration: none; font-weight: 600;
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1.5px no-repeat;
  transition: background-size .4s var(--ease-out);
}
.link:hover { background-size: 100% 1.5px; }

/* ---------- Placeholders de imagen ---------- */
.ph {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: var(--radius);
  background:
    radial-gradient(120% 80% at 30% 20%, rgba(232, 178, 58, .28), transparent 60%),
    repeating-linear-gradient(-45deg, rgba(122, 59, 34, .06) 0 2px, transparent 2px 14px),
    var(--cream-2);
  border: 1.5px dashed rgba(122, 59, 34, .28);
  display: grid; place-items: end start;
}
.ph__label {
  margin: 16px;
  max-width: calc(100% - 32px);
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px 8px 12px;
  border-radius: 999px;
  background: var(--label-bg);
  color: var(--clay);
  font-size: 12.5px; font-weight: 600; letter-spacing: .02em;
  box-shadow: 0 6px 20px -10px rgba(74, 36, 22, .4);
}
.ph__label::before {
  content: ""; width: 16px; height: 16px; flex: none;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 8h3l2-3h6l2 3h3v11H4z'/%3E%3Ccircle cx='12' cy='13' r='3.5'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 8h3l2-3h6l2 3h3v11H4z'/%3E%3Ccircle cx='12' cy='13' r='3.5'/%3E%3C/svg%3E") center / contain no-repeat;
}
.ph--arch { aspect-ratio: 3 / 4; border-radius: 999px 999px var(--radius) var(--radius); }
.ph--tall { aspect-ratio: 4 / 5; }
.ph--card { aspect-ratio: 4 / 3; border-radius: calc(var(--radius) - 6px); }
.ph--wide { aspect-ratio: 21 / 8; }
.ph--map { aspect-ratio: 16 / 9; }
.ph--dark {
  background:
    radial-gradient(90% 90% at 70% 30%, rgba(232, 178, 58, .22), transparent 60%),
    repeating-linear-gradient(-45deg, rgba(246, 238, 220, .05) 0 2px, transparent 2px 14px),
    #3A1C11;
  border-color: rgba(246, 238, 220, .2);
}

/* ---------- Splash ---------- */
.splash {
  position: fixed; inset: 0; z-index: 150;
  display: grid; place-items: center; align-content: center; gap: 26px;
  background: var(--cream);
  animation: splashSafety .6s ease 3s forwards; /* red de seguridad CSS */
}
html:not(.js) .splash { display: none; }
.splash.is-out {
  opacity: 0; visibility: hidden;
  transition: opacity .7s var(--ease), visibility 0s linear .7s;
}
@keyframes splashSafety { to { opacity: 0; visibility: hidden; } }
.splash__comal {
  width: 150px; height: 150px; border-radius: 50%;
  background: radial-gradient(circle, #3b2a22 0 58%, #2a1d17 60% 100%);
  display: grid; place-items: center;
  box-shadow: 0 30px 60px -30px rgba(42, 26, 18, .6);
}
.splash__tortilla {
  width: 104px; height: 104px; border-radius: 50%;
  background:
    radial-gradient(circle at 34% 38%, rgba(122, 59, 34, .55) 0 5px, transparent 7px),
    radial-gradient(circle at 64% 60%, rgba(122, 59, 34, .45) 0 7px, transparent 9px),
    radial-gradient(circle at 60% 30%, rgba(122, 59, 34, .35) 0 3px, transparent 5px),
    radial-gradient(circle at 50% 50%, var(--corn-soft), var(--corn) 70%, var(--gold));
  animation: puff 1.4s var(--ease) infinite alternate;
}
@keyframes puff {
  0% { transform: scale(.94); border-radius: 50%; }
  60% { transform: scale(1.06); border-radius: 48% 52% 50% 50% / 46% 50% 50% 54%; }
  100% { transform: scale(1.1); border-radius: 52% 48% 47% 53% / 50% 46% 54% 50%; }
}
.splash__logo { width: min(220px, 60vw); height: auto; }

/* ---------- Navegación ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; gap: 28px;
  padding: 18px var(--gutter);
  transition: transform .5s var(--ease-out), background .4s, box-shadow .4s, padding .4s;
}
.nav.is-scrolled {
  background: var(--nav-bg);
  -webkit-backdrop-filter: blur(14px) saturate(1.3);
          backdrop-filter: blur(14px) saturate(1.3);
  box-shadow: 0 1px 0 var(--line);
  padding-top: 12px; padding-bottom: 12px;
}
.nav.is-hidden { transform: translateY(-110%); }
.nav__brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; margin-right: auto; }
.nav__logo { width: auto; height: 92px; transition: height .4s var(--ease-out), transform .6s var(--ease-out); }
.nav.is-scrolled .nav__logo { height: 66px; }
.nav__brand:hover .nav__logo { transform: scale(1.04); }
.nav__links { display: flex; gap: 30px; }
.nav__links a {
  position: relative; text-decoration: none; font-size: 15px; font-weight: 500; color: var(--ink-soft);
  transition: color .3s;
}
.nav__links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 1.5px;
  background: var(--terracotta); transform: scaleX(0); transform-origin: right;
  transition: transform .45s var(--ease-out);
}
.nav__links a:hover { color: var(--ink); }
.nav__links a:hover::after { transform: scaleX(1); transform-origin: left; }

.nav__toggle {
  display: none;
  width: 46px; height: 46px; border-radius: 50%;
  border: 1.5px solid var(--ink); background: transparent; cursor: pointer;
  position: relative;
}
.nav__toggle span {
  position: absolute; left: 13px; right: 13px; height: 1.5px; background: var(--ink);
  transition: transform .4s var(--ease-out), top .4s var(--ease-out);
}
.nav__toggle span:first-child { top: 18px; }
.nav__toggle span:last-child { top: 26px; }
.nav__toggle[aria-expanded="true"] span:first-child { top: 22px; transform: rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:last-child { top: 22px; transform: rotate(-45deg); }

/* Botón de modo claro / oscuro */
.theme-toggle {
  position: relative; flex: none;
  width: 46px; height: 46px; border-radius: 50%;
  border: 1.5px solid var(--line); background: transparent; color: var(--ink);
  cursor: pointer; overflow: hidden;
  transition: border-color .3s, background .3s, transform .5s var(--ease-out);
}
.theme-toggle:hover { border-color: var(--ink); background: var(--surface-hover); }
.theme-toggle svg {
  position: absolute; inset: 0; margin: auto; width: 20px; height: 20px;
  fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round;
  transition: transform .6s var(--ease-out), opacity .4s;
}
.theme-toggle .i-sun { transform: translateY(140%) rotate(-90deg); opacity: 0; }
:root[data-theme="dark"] .theme-toggle .i-moon { transform: translateY(-140%) rotate(90deg); opacity: 0; }
:root[data-theme="dark"] .theme-toggle .i-sun { transform: none; opacity: 1; color: var(--corn); }
html:not(.js) .theme-toggle { display: none; }

.mobile-menu {
  position: fixed; inset: 0; z-index: 99;
  background: var(--cream);
  display: flex; flex-direction: column; justify-content: center; gap: 18px;
  padding: 100px var(--gutter) 40px;
}
.mobile-menu[hidden] { display: none; }
.mobile-menu a:not(.btn) {
  font-family: var(--f-display);
  font-variation-settings: "opsz" 144, "SOFT" 80;
  font-size: clamp(34px, 9vw, 54px); line-height: 1.1;
  text-decoration: none; letter-spacing: -.02em;
}
.mobile-menu .btn { margin-top: 18px; align-self: flex-start; }

/* ---------- HERO ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  max-width: var(--max); margin: 0 auto;
  padding: clamp(150px, 19vh, 190px) var(--gutter) 48px;
  display: grid;
  grid-template-columns: 1.08fr .92fr;
  grid-template-rows: 1fr auto;
  column-gap: clamp(24px, 4vw, 64px);
  row-gap: 48px;
  align-items: center;
}
.hero__glow {
  position: absolute; z-index: -1;
  width: min(900px, 90vw); aspect-ratio: 1;
  right: -18%; top: -8%;
  background: radial-gradient(circle, rgba(232, 178, 58, .45), rgba(232, 178, 58, .12) 40%, transparent 68%);
  filter: blur(20px);
  animation: breathe 9s ease-in-out infinite alternate;
}
@keyframes breathe { to { transform: scale(1.08) translate(-2%, 3%); opacity: .85; } }

.hero__title {
  font-family: var(--f-display);
  font-variation-settings: "opsz" 144, "SOFT" 50, "WONK" 0;
  font-weight: 360;
  font-size: clamp(56px, 9.2vw, 148px);
  line-height: .92;
  letter-spacing: -.045em;
  margin: 26px 0 30px;
}
.hero__title em {
  font-variation-settings: "opsz" 144, "SOFT" 100, "WONK" 1;
  font-weight: 300;
  color: var(--terracotta);
  padding-right: .06em;
}
.line { display: block; overflow: hidden; padding-bottom: .08em; margin-bottom: -.08em; }
.line__in { display: block; }
html.js .line__in {
  transform: translateY(110%);
  transition: transform 1.2s var(--ease-out);
  animation: lineSafety 0s linear 3.6s forwards; /* red de seguridad */
}
html.js .line:nth-child(2) .line__in { transition-delay: .12s; }
html.js body.is-ready .line__in { transform: none; }
@keyframes lineSafety { to { transform: none; } }

.hero__lead { max-width: 33em; color: var(--ink-soft); font-size: clamp(17px, 1.25vw, 20px); }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }

.hero__stage {
  position: relative;
  height: 100%;
  min-height: 520px;
  display: flex; align-items: center; justify-content: flex-end;
}
.hero__arch { width: min(78%, 420px); margin-right: 2%; }
.hero__arch .ph { box-shadow: 0 50px 80px -50px rgba(74, 36, 22, .55); }

/* La tortilla protagonista */
.tortilla {
  position: absolute;
  left: -4%; bottom: 2%;
  width: clamp(220px, 24vw, 360px);
  aspect-ratio: 1;
  pointer-events: none;
}
.tortilla__disc {
  position: absolute; inset: 0;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 50%, transparent 62%, rgba(196, 138, 34, .35) 72%, rgba(122, 59, 34, .25) 100%),
    radial-gradient(circle at 38% 34%, #F7DB92, var(--corn-soft) 35%, var(--corn) 70%, #D99D2E);
  box-shadow:
    inset 0 -14px 30px rgba(122, 59, 34, .25),
    inset 0 10px 24px rgba(255, 244, 210, .5),
    0 40px 60px -30px rgba(74, 36, 22, .55);
  animation: spin 80s linear infinite;
}
.tortilla__spot {
  position: absolute; border-radius: 50%;
  background: radial-gradient(circle, rgba(92, 44, 22, .62), rgba(122, 59, 34, .25) 55%, transparent 72%);
  filter: blur(.6px);
}
.sp1 { width: 15%; height: 12%; left: 24%; top: 28%; }
.sp2 { width: 22%; height: 18%; left: 56%; top: 52%; }
.sp3 { width: 9%; height: 8%; left: 62%; top: 22%; }
.sp4 { width: 11%; height: 10%; left: 30%; top: 64%; }
.sp5 { width: 6%; height: 6%; left: 45%; top: 42%; }
.sp6 { width: 8%; height: 7%; left: 74%; top: 38%; }
@keyframes spin { to { transform: rotate(360deg); } }

.steam {
  position: absolute; left: 10%; right: 10%; bottom: 62%;
  width: 80%; height: 70%;
  overflow: visible;
}
.steam__p {
  fill: none; stroke: rgba(122, 59, 34, .28); stroke-width: 3; stroke-linecap: round;
  stroke-dasharray: 60 240;
  animation: steam 4.2s ease-in-out infinite;
  filter: blur(1.2px);
}
.steam__p.s2 { animation-delay: 1.3s; stroke: rgba(122, 59, 34, .22); }
.steam__p.s3 { animation-delay: 2.5s; }
@keyframes steam {
  0% { stroke-dashoffset: 0; opacity: 0; }
  20% { opacity: 1; }
  100% { stroke-dashoffset: -300; opacity: 0; }
}

.badge {
  position: absolute; top: 4%; left: 6%;
  width: clamp(110px, 10vw, 140px); aspect-ratio: 1;
  display: grid; place-items: center;
  background: var(--nopal); color: var(--fixed-cream);
  border-radius: 50%;
  box-shadow: 0 20px 40px -20px rgba(42, 26, 18, .6);
}
.badge svg { position: absolute; inset: 0; width: 100%; height: 100%; animation: spin 22s linear infinite; }
.badge text { font: 600 8.4px var(--f-body); letter-spacing: .08em; fill: var(--fixed-cream); }
.hero__arch .ph { place-items: end end; }
.badge__core {
  font-family: var(--f-display); font-variation-settings: "opsz" 72, "SOFT" 100, "WONK" 1;
  font-size: 24px; line-height: 1; text-align: center; font-style: italic;
}
.badge__core small { display: block; font: 600 10px var(--f-body); letter-spacing: .18em; text-transform: uppercase; margin-top: 4px; font-style: normal; color: var(--corn-soft); }

.hero__stats {
  grid-column: 1 / -1;
  list-style: none; margin: 0; padding: 26px 0 0;
  border-top: 1px solid var(--line);
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px;
}
.hero__stats li { display: flex; flex-direction: column; gap: 2px; }
.hero__stats strong {
  font-family: var(--f-display); font-variation-settings: "opsz" 144, "SOFT" 60;
  font-weight: 400; font-size: clamp(30px, 3vw, 44px); line-height: 1; letter-spacing: -.03em;
}
.hero__stats span:not(.count) { color: var(--ink-soft); font-size: 14.5px; }

/* ---------- Marquee ---------- */
.marquee {
  position: relative; z-index: 2;
  background: var(--corn);
  padding: 22px 0;
  overflow: hidden;
  transform: rotate(-1.6deg);
  margin: 40px -2% 0;
  box-shadow: 0 20px 40px -30px rgba(74, 36, 22, .6);
}
.marquee__track {
  display: flex; align-items: center; gap: 36px;
  width: max-content;
  animation: marquee 38s linear infinite;
  font-family: var(--f-display); font-variation-settings: "opsz" 144, "SOFT" 80;
  font-size: clamp(34px, 4.6vw, 68px); line-height: 1; letter-spacing: -.02em;
  white-space: nowrap; color: var(--fixed-ink);
}
.marquee__track em { font-variation-settings: "opsz" 144, "SOFT" 100, "WONK" 1; color: var(--fixed-clay); }
.marquee__track i { font-style: normal; font-size: .4em; color: var(--terracotta); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Diferencia ---------- */
.diff {
  max-width: var(--max); margin: 0 auto;
  padding: clamp(100px, 14vw, 180px) var(--gutter) clamp(60px, 8vw, 110px);
  display: grid; grid-template-columns: .95fr 1.05fr; gap: clamp(40px, 6vw, 100px);
  align-items: start;
}
.diff__head { position: sticky; top: 110px; }
.diff__intro { color: var(--ink-soft); max-width: 30em; margin-top: 22px; font-size: clamp(16px, 1.15vw, 19px); }
.diff__photo { margin-top: 34px; max-width: 380px; }
.diff__photo .ph { transform: rotate(-2deg); }

.diff__list { list-style: none; margin: 0; padding: 0; counter-reset: d; }
.diff__item {
  display: grid; grid-template-columns: 92px 1fr; gap: 20px;
  padding: 38px 0 40px;
  border-top: 1px solid var(--line);
  transition: padding .5s var(--ease-out);
}
.diff__item:last-child { border-bottom: 1px solid var(--line); }
.diff__num {
  font-family: var(--f-display); font-variation-settings: "opsz" 144, "SOFT" 100, "WONK" 1;
  font-style: italic; font-size: 52px; line-height: .9; color: var(--corn);
  -webkit-text-stroke: 1px var(--gold);
  transition: color .4s, transform .5s var(--ease-out);
}
.diff__item h3 {
  font-family: var(--f-display); font-variation-settings: "opsz" 72, "SOFT" 60;
  font-size: clamp(26px, 2.4vw, 36px); line-height: 1.1; letter-spacing: -.02em; margin-bottom: 10px;
}
.diff__item p { color: var(--ink-soft); max-width: 34em; }
.diff__item:hover .diff__num { color: var(--terracotta); -webkit-text-stroke-color: var(--terracotta); transform: translateX(6px) rotate(-6deg); }
.diff__item:hover { padding-left: 10px; }

/* ---------- Proceso ---------- */
.process {
  max-width: var(--max); margin: 0 auto;
  padding: clamp(40px, 6vw, 80px) var(--gutter) clamp(100px, 12vw, 160px);
}
.process__head { display: flex; flex-direction: column; align-items: flex-start; margin-bottom: 60px; }
.process__rail { position: relative; }
.process__line {
  position: absolute; left: 0; right: 0; top: 9px; width: 100%; height: 20px;
  overflow: visible;
}
.process__line path {
  fill: none; stroke: var(--terracotta); stroke-width: 2; vector-effect: non-scaling-stroke;
  stroke-dasharray: 1000; stroke-dashoffset: calc(1000 - 1000 * var(--p, 1));
}
.process__steps {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px;
  position: relative;
}
.step__dot {
  display: block; width: 38px; height: 38px; border-radius: 50%;
  background: var(--cream); border: 2px solid var(--terracotta);
  margin-bottom: 28px;
  position: relative;
  transition: background .5s, transform .6s var(--ease-out);
}
.step__dot::after {
  content: ""; position: absolute; inset: 7px; border-radius: 50%;
  background: var(--corn); transform: scale(0); transition: transform .6s var(--ease-out);
}
.step.is-lit .step__dot { transform: scale(1.08); }
.step.is-lit .step__dot::after { transform: scale(1); }
html:not(.js) .step__dot::after { transform: scale(1); }
.step__k { font-size: 12px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--terracotta); }
.step h3 {
  font-family: var(--f-display); font-variation-settings: "opsz" 144, "SOFT" 100, "WONK" 1;
  font-style: italic; font-size: clamp(32px, 3vw, 46px); line-height: 1.05; margin: 6px 0 8px; letter-spacing: -.02em;
}
.step p { color: var(--ink-soft); max-width: 18em; }

/* ---------- Productos ---------- */
.products {
  background: var(--paper);
  border-radius: 40px 40px 0 0;
  padding: clamp(90px, 11vw, 150px) var(--gutter);
  box-shadow: 0 -1px 0 var(--line);
}
.products__head {
  max-width: var(--max); margin: 0 auto 60px;
  display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; flex-wrap: wrap;
}
.products__note { max-width: 26em; color: var(--ink-soft); }
.products__grid {
  max-width: var(--max); margin: 0 auto;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px;
}
.card {
  position: relative;
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px 12px 26px;
  transform-style: preserve-3d;
  transition: box-shadow .5s var(--ease-out), border-color .4s, background .4s;
  will-change: transform;
}
.card:hover {
  box-shadow: 0 40px 60px -40px rgba(74, 36, 22, .5);
  border-color: rgba(181, 85, 46, .35);
  background: var(--surface-hover);
}
.card .ph { transition: transform .8s var(--ease-out); }
.card:hover .ph { transform: scale(.985); }
.card__body { padding: 20px 12px 0; }
.card__tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.card__tags span {
  font-size: 11.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  padding: 5px 10px; border-radius: 999px;
  background: rgba(79, 107, 58, .12); color: var(--nopal-text);
}
:root[data-theme="dark"] .card__tags span { background: rgba(163, 193, 130, .14); }
:root[data-theme="dark"] .card__tags span:first-child:not(:only-child) { background: rgba(232, 178, 58, .18); }
.card__tags span:first-child:not(:only-child) { background: rgba(232, 178, 58, .25); color: var(--clay); }
.card h3 {
  font-family: var(--f-display); font-variation-settings: "opsz" 72, "SOFT" 60;
  font-size: clamp(24px, 2vw, 30px); line-height: 1.1; letter-spacing: -.02em; margin-bottom: 8px;
}
.card p { color: var(--ink-soft); font-size: 15.5px; }
.card__formats { list-style: none; padding: 0; margin: 18px 0 0; display: flex; flex-wrap: wrap; gap: 0; }
.card__formats li { font-size: 13.5px; font-weight: 500; color: var(--clay); }
.card__formats li + li::before { content: "·"; margin: 0 9px; color: var(--gold); }

.card--feature {
  grid-column: span 2;
  display: grid; grid-template-columns: 1.15fr 1fr; gap: 10px; align-items: center;
  background: var(--corn);
  border-color: transparent;
  color: var(--fixed-ink);
}
.card--feature:hover { background: var(--corn-soft); }
.card--feature .card__formats li { color: var(--fixed-clay); }
.card--feature .ph { aspect-ratio: 1 / 1; height: 100%; background-color: #F3D891; }
.card--feature .card__body { padding: 16px 22px; }
.card--feature h3 { font-size: clamp(34px, 3.4vw, 52px); }
.card--feature p { color: var(--fixed-ink); font-size: 16.5px; }
.card--feature .card__tags span, :root[data-theme="dark"] .card--feature .card__tags span { background: rgba(42, 26, 18, .1); color: var(--fixed-ink); }

.card--cta {
  grid-column: span 2;
  overflow: hidden;
  display: flex; flex-direction: column; justify-content: space-between; gap: 24px;
  padding: clamp(28px, 3vw, 44px);
  background: var(--nopal); color: var(--fixed-cream);
  border-color: transparent;
  text-decoration: none;
  min-height: 280px;
}
.card--cta:hover { background: #45602F; border-color: transparent; }
.card--cta__k { font-size: 12.5px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--corn-soft); }
.card--cta__t {
  position: relative; z-index: 1;
  font-family: var(--f-display); font-variation-settings: "opsz" 144, "SOFT" 70;
  font-size: clamp(28px, 2.8vw, 44px); line-height: 1.08; letter-spacing: -.02em; max-width: 16em;
}
.card--cta__t em { color: var(--corn); font-variation-settings: "opsz" 144, "SOFT" 100, "WONK" 1; }
.card--cta__go { font-weight: 600; display: inline-flex; gap: 10px; }
.card--cta__go span { transition: transform .4s var(--ease-out); }
.card--cta:hover .card--cta__go span { transform: translateX(6px); }
.card--cta__disc {
  position: absolute; right: -60px; bottom: -60px; width: 300px; height: 300px;
  color: rgba(242, 207, 116, .35);
  animation: spin 50s linear infinite;
}

/* ---------- Manifiesto ---------- */
.statement {
  background: var(--paper);
  padding: clamp(40px, 8vw, 120px) var(--gutter) clamp(100px, 14vw, 200px);
}
.statement__text {
  max-width: 1180px; margin: 0 auto;
  font-family: var(--f-display); font-variation-settings: "opsz" 144, "SOFT" 70;
  font-weight: 360;
  font-size: clamp(30px, 4.4vw, 68px);
  line-height: 1.12; letter-spacing: -.025em;
  text-wrap: balance;
}
.statement__text em { font-variation-settings: "opsz" 144, "SOFT" 100, "WONK" 1; color: var(--terracotta); }
.statement__text .w { opacity: .16; transition: opacity .35s linear; }
.statement__text .w.is-on { opacity: 1; }

/* ---------- Negocios ---------- */
.b2b {
  position: relative; overflow: hidden;
  background:
    radial-gradient(70% 60% at 85% 10%, rgba(181, 85, 46, .55), transparent 60%),
    radial-gradient(50% 50% at 0% 100%, rgba(232, 178, 58, .18), transparent 60%),
    var(--clay-deep);
  color: var(--fixed-cream);
  padding: clamp(90px, 11vw, 150px) var(--gutter) var(--gutter);
}
.b2b__inner {
  max-width: var(--max); margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 90px); align-items: start;
}
.b2b__lead { color: rgba(246, 238, 220, .78); max-width: 30em; margin: 24px 0 34px; font-size: clamp(16px, 1.15vw, 19px); }
.b2b__grid {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: 1fr 1fr;
  border-top: 1px solid rgba(246, 238, 220, .16);
  border-left: 1px solid rgba(246, 238, 220, .16);
}
.b2b__cell {
  padding: 30px 26px 32px;
  border-right: 1px solid rgba(246, 238, 220, .16);
  border-bottom: 1px solid rgba(246, 238, 220, .16);
  transition: background .4s;
}
.b2b__cell:hover { background: rgba(246, 238, 220, .05); }
.b2b__icon svg {
  width: 34px; height: 34px; fill: none; stroke: var(--corn); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round;
}
.b2b__cell h3 {
  font-family: var(--f-display); font-variation-settings: "opsz" 72, "SOFT" 60;
  font-size: 24px; margin: 18px 0 6px; letter-spacing: -.01em;
}
.b2b__cell p { color: rgba(246, 238, 220, .7); font-size: 15px; }
.b2b__photo { max-width: var(--max); margin: clamp(60px, 8vw, 100px) auto 0; }
.b2b__photo .ph__label { background: rgba(42, 26, 18, .75); color: var(--fixed-cream); }

/* ---------- Testimonios ---------- */
.testi {
  max-width: 1100px; margin: 0 auto;
  padding: clamp(100px, 12vw, 170px) var(--gutter);
  text-align: center;
}
.testi__wrap { margin-top: 36px; }
.testi__track { display: grid; gap: 60px; }
html.js .testi__track { gap: 0; }
html.js .testi__slide {
  grid-area: 1 / 1;
  opacity: 0; visibility: hidden;
  transform: translateY(16px);
  transition: opacity .8s var(--ease), transform .9s var(--ease-out), visibility 0s linear .8s;
}
html.js .testi__slide.is-active {
  opacity: 1; visibility: visible; transform: none;
  transition: opacity .8s var(--ease) .15s, transform .9s var(--ease-out) .15s, visibility 0s;
}
.testi__slide { margin: 0; }
.testi__slide blockquote {
  margin: 0;
  font-family: var(--f-display); font-variation-settings: "opsz" 144, "SOFT" 100, "WONK" 1;
  font-style: italic; font-weight: 340;
  font-size: clamp(28px, 3.6vw, 52px); line-height: 1.16; letter-spacing: -.02em;
  text-wrap: balance;
}
.testi__slide figcaption { margin-top: 30px; display: flex; flex-direction: column; gap: 2px; }
.testi__slide figcaption strong { font-weight: 600; }
.testi__slide figcaption span { color: var(--ink-soft); font-size: 14.5px; }
.testi__controls { display: none; align-items: center; justify-content: center; gap: 18px; margin-top: 44px; }
html.js .testi__controls { display: flex; }
.testi__btn {
  width: 50px; height: 50px; border-radius: 50%;
  border: 1.5px solid var(--ink); background: transparent; color: var(--ink);
  font-size: 18px; cursor: pointer;
  transition: background .3s, color .3s, transform .3s var(--ease-out);
}
.testi__btn:hover { background: var(--ink); color: var(--cream); }
.testi__dots { display: flex; gap: 8px; }
.testi__dot {
  width: 9px; height: 9px; padding: 0; border-radius: 999px; border: 0; cursor: pointer;
  background: var(--dot-off);
  transition: width .5s var(--ease-out), background .3s;
}
.testi__dot[aria-selected="true"] { width: 30px; background: var(--terracotta); }

/* ---------- Contacto ---------- */
.contact {
  background: var(--cream-2);
  border-radius: 40px 40px 0 0;
  padding: clamp(90px, 11vw, 150px) var(--gutter) clamp(90px, 10vw, 140px);
}
.contact__head { max-width: var(--max); margin: 0 auto 60px; }
.contact__grid {
  max-width: var(--max); margin: 0 auto;
  display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(30px, 5vw, 80px); align-items: start;
}
.contact__info { display: grid; grid-template-columns: 1fr 1fr; gap: 40px 30px; }
.info-block h3 {
  font-size: 12.5px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--terracotta);
  margin-bottom: 12px;
}
.info-block p { font-size: 17px; }
.contact__map { grid-column: 1 / -1; }
.hours { border-collapse: collapse; width: 100%; font-size: 15.5px; }
.hours th { text-align: left; font-weight: 500; padding: 5px 12px 5px 0; }
.hours td { text-align: right; padding: 5px 0; font-variant-numeric: tabular-nums; color: var(--ink-soft); }
.hours tr + tr { border-top: 1px dashed var(--line); }
.hours__status { margin-top: 12px; font-size: 14px; font-weight: 600; display: inline-flex; align-items: center; gap: 8px; }
.hours__status:empty { display: none; }
.hours__status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--terracotta); }
.hours__status.is-open { color: var(--nopal-text); }
.hours__status.is-open::before { background: var(--nopal); box-shadow: 0 0 0 4px rgba(79, 107, 58, .2); animation: pulse 2s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 8px rgba(79, 107, 58, 0); } }

.order {
  background: var(--paper);
  border-radius: 28px;
  padding: clamp(26px, 3.4vw, 46px);
  box-shadow: 0 50px 80px -60px rgba(74, 36, 22, .55);
  display: grid; gap: 16px;
}
.order__head { margin-bottom: 8px; }
.order__tag {
  display: inline-block; font-size: 11.5px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  background: var(--nopal); color: var(--fixed-cream); padding: 6px 12px; border-radius: 999px;
}
.order__head h3 {
  font-family: var(--f-display); font-variation-settings: "opsz" 144, "SOFT" 80, "WONK" 1;
  font-size: clamp(30px, 3vw, 44px); letter-spacing: -.02em; margin: 14px 0 8px; line-height: 1.05;
}
.order__head p { color: var(--ink-soft); }
.field { position: relative; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field input, .field textarea, .field select {
  width: 100%;
  padding: 26px 16px 10px;
  border: 1.5px solid var(--line);
  border-radius: 14px;
  background: var(--cream);
  font: 500 16px var(--f-body);
  color: var(--ink);
  transition: border-color .3s, background .3s, box-shadow .3s;
  resize: vertical;
  -webkit-appearance: none; appearance: none;
}
.field select {
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%237A3B22' stroke-width='1.6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 16px center; background-size: 12px;
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: var(--terracotta); background: var(--field-focus);
  box-shadow: 0 0 0 4px rgba(181, 85, 46, .12);
}
.field label {
  position: absolute; left: 17px; top: 18px;
  font-size: 16px; color: var(--ink-soft);
  pointer-events: none;
  transform-origin: left top;
  transition: transform .3s var(--ease-out), color .3s;
}
.field input:focus + label, .field input:not(:placeholder-shown) + label,
.field textarea:focus + label, .field textarea:not(:placeholder-shown) + label,
.field label.is-static {
  transform: translateY(-10px) scale(.76); color: var(--terracotta); font-weight: 600;
}
.chips { border: 0; margin: 4px 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips legend { font-size: 14px; font-weight: 600; margin-bottom: 10px; padding: 0; }
.chips label { position: relative; cursor: pointer; }
.chips input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.chips span {
  display: inline-block; padding: 9px 16px; border-radius: 999px;
  border: 1.5px solid var(--line); font-size: 14.5px; font-weight: 500;
  transition: background .3s, color .3s, border-color .3s;
}
.chips input:checked + span { background: var(--ink); color: var(--cream); border-color: var(--ink); }
.chips input:focus-visible + span { outline: 2px solid var(--terracotta); outline-offset: 2px; }
.chips label:hover span { border-color: var(--ink); }
.order__ok { color: var(--nopal-text); font-weight: 600; text-align: center; }

/* ---------- Footer ---------- */
.footer {
  background: var(--footer-bg); color: var(--fixed-cream);
  padding: clamp(70px, 9vw, 120px) var(--gutter) 30px;
  overflow: hidden;
}
.footer__top {
  max-width: var(--max); margin: 0 auto;
  display: flex; justify-content: space-between; align-items: flex-end; gap: 30px; flex-wrap: wrap;
}
.footer__claim {
  font-family: var(--f-display); font-variation-settings: "opsz" 144, "SOFT" 80;
  font-size: clamp(30px, 3.6vw, 54px); letter-spacing: -.02em; line-height: 1.05;
}
.footer__claim em { color: var(--corn); font-variation-settings: "opsz" 144, "SOFT" 100, "WONK" 1; }
.footer__links { display: flex; flex-wrap: wrap; gap: 26px; }
.footer__links a { text-decoration: none; color: rgba(246, 238, 220, .75); transition: color .3s; }
.footer__links a:hover { color: var(--corn); }
.footer__word {
  font-family: var(--f-display); font-variation-settings: "opsz" 144, "SOFT" 100, "WONK" 1;
  font-style: italic; font-weight: 300;
  font-size: clamp(54px, 13.6vw, 230px); line-height: .9; letter-spacing: -.05em;
  white-space: nowrap; text-align: center;
  color: var(--corn);
  margin: clamp(50px, 7vw, 90px) 0 30px;
}
.footer__word span {
  display: block;
  font-size: .34em; font-style: normal; font-weight: 500;
  letter-spacing: .32em; text-transform: uppercase;
  font-family: var(--f-body);
  color: var(--corn-soft);
  margin-bottom: .5em;
}
.footer__bottom {
  max-width: var(--max); margin: 0 auto;
  display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  font-size: 14px; color: rgba(246, 238, 220, .6);
  border-top: 1px solid rgba(246, 238, 220, .14); padding-top: 22px;
}
.footer .link { color: var(--corn); }

/* ---------- Reveal (fade = permitido siempre) ---------- */
html.js .reveal {
  opacity: 0; transform: translateY(26px);
  transition: opacity .9s var(--ease), transform 1.1s var(--ease-out);
  transition-delay: var(--d, 0s);
}
html.js .reveal.is-in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .nav__links { gap: 20px; }
  .card--feature { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 980px) {
  .nav__links, .nav > .btn { display: none; }
  .nav__toggle { display: block; }
  .nav { gap: 12px; }

  .hero { grid-template-columns: 1fr; grid-template-rows: auto; padding-top: 136px; row-gap: 40px; }
  .hero__stage { min-height: 0; justify-content: center; padding: 10px 0 40px; }
  .hero__arch { width: min(70%, 380px); margin: 0 0 0 12%; }
  .tortilla { left: 0; bottom: 0; width: clamp(180px, 40vw, 280px); }
  .badge { left: 2%; top: 0; }
  .hero__stats { grid-template-columns: repeat(2, 1fr); }

  .diff { grid-template-columns: 1fr; }
  .diff__head { position: static; }

  .process__steps { grid-template-columns: repeat(2, 1fr); row-gap: 50px; }
  .process__line { display: none; }

  .products__grid { grid-template-columns: repeat(2, 1fr); }
  .card--feature, .card--cta { grid-column: 1 / -1; }

  .b2b__inner { grid-template-columns: 1fr; }
  .contact__grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .nav__logo { height: 76px; }
  .nav.is-scrolled .nav__logo { height: 58px; }
  .hero__title { font-size: clamp(50px, 15vw, 80px); }
  .hero__ctas .btn { flex: 1 1 auto; }
  .hero__arch { width: 78%; margin-left: 18%; }
  .badge { width: 96px; }
  .badge text { font-size: 9px; }
  .badge__core { font-size: 19px; }
  .hero__stats { gap: 22px 14px; }

  .marquee { padding: 16px 0; }

  .diff__item { grid-template-columns: 1fr; gap: 6px; padding: 30px 0; }
  .diff__num { font-size: 40px; }
  .diff__item:hover { padding-left: 0; }

  .process__steps { grid-template-columns: 1fr; row-gap: 36px; }

  .products { border-radius: 26px 26px 0 0; }
  .products__grid { grid-template-columns: 1fr; }
  .card--feature { grid-template-columns: 1fr; }
  .card--feature .ph { aspect-ratio: 4 / 3; }
  .card--feature .card__body { padding: 16px 12px 6px; }

  .b2b__grid { grid-template-columns: 1fr; }
  .ph--wide { aspect-ratio: 4 / 3; }

  .contact { border-radius: 26px 26px 0 0; }
  .contact__info { grid-template-columns: 1fr; gap: 30px; }
  .field-row { grid-template-columns: 1fr; }
  .footer__links { gap: 18px; }
}

/* ---------- Movimiento reducido: solo se frena lo intrusivo ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .marquee__track { animation-duration: 140s; }
  .hero__glow { animation: none; }
  .splash__tortilla { animation-duration: 2.8s; }
}
