/* Fonts (self-hosted) */
/* inter-cyrillic-ext-wght-normal */
@font-face {
  font-family: 'Inter Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url(/_astro/inter-cyrillic-ext-wght-normal.BOeWTOD4.woff2) format('woff2-variations');
  unicode-range: U+0460-052F,U+1C80-1C8A,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F;
}
/* inter-cyrillic-wght-normal */
@font-face {
  font-family: 'Inter Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url(/_astro/inter-cyrillic-wght-normal.DqGufNeO.woff2) format('woff2-variations');
  unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;
}
/* inter-greek-ext-wght-normal */
@font-face {
  font-family: 'Inter Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url(/_astro/inter-greek-ext-wght-normal.DlzME5K_.woff2) format('woff2-variations');
  unicode-range: U+1F00-1FFF;
}
/* inter-greek-wght-normal */
@font-face {
  font-family: 'Inter Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url(/_astro/inter-greek-wght-normal.CkhJZR-_.woff2) format('woff2-variations');
  unicode-range: U+0370-0377,U+037A-037F,U+0384-038A,U+038C,U+038E-03A1,U+03A3-03FF;
}
/* inter-vietnamese-wght-normal */
@font-face {
  font-family: 'Inter Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url(/_astro/inter-vietnamese-wght-normal.CBcvBZtf.woff2) format('woff2-variations');
  unicode-range: U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB;
}
/* inter-latin-ext-wght-normal */
@font-face {
  font-family: 'Inter Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url(/_astro/inter-latin-ext-wght-normal.DO1Apj_S.woff2) format('woff2-variations');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}
/* inter-latin-wght-normal */
@font-face {
  font-family: 'Inter Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url(/_astro/inter-latin-wght-normal.Dx4kXJAl.woff2) format('woff2-variations');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
/* fraunces-vietnamese-wght-normal */
@font-face {
  font-family: 'Fraunces Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url(/_astro/fraunces-vietnamese-wght-normal.CnvboYUG.woff2) format('woff2-variations');
  unicode-range: U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB;
}
/* fraunces-latin-ext-wght-normal */
@font-face {
  font-family: 'Fraunces Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url(/_astro/fraunces-latin-ext-wght-normal.Ca2vKHc0.woff2) format('woff2-variations');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}
/* fraunces-latin-wght-normal */
@font-face {
  font-family: 'Fraunces Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url(/_astro/fraunces-latin-wght-normal.ukD16Tqj.woff2) format('woff2-variations');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
/* jetbrains-mono-cyrillic-ext-wght-normal */
@font-face {
  font-family: 'JetBrains Mono Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 100 800;
  src: url(data:font/woff2;base64,d09GMgABAAAAAAfsABQAAAAAEAwAAAeCAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAGhwbHhwoP0hWQVJbBmA/U1RBVIFiJyYAdC9qEQgKhGSEAAsgADCGCAE2AiQDOgQgBYlMB4EUDAcbLQ4onoexrSC/2ZyLAa8p8VHB8/x3Vue+V0hVJalMJg2nx/TCrQXxBeqLjQG7FyM1WEa/X1tEXN7cFz9EJEMmMUz3RihWSSKeQCbcIou0izz/C8v+fq3VfajEa9gDD11CImXS7qL/RJFVzC1qiB6KmKeD6TZdQ6IRGv78dL6uSVVCfgni5mzu7kcgQBgAEAQTQRCoL++STTYybkJxNfQxAAIAGu8OdEB9teW2jh4BpgDqFjAeSEByW3zFP0CBBgNMsMCGEDjgggdhiEAUAeIIED7ABTDUEnkIE9Q9ahFgKttcVhApo4ACB4qobHaccgDfEjFO6aaWUhjMLt2SyIvHKoDqoA4CSUwEIYQCEjhAO9R1G6keDeDZGjNo+AhxOjCEGTr1WeIF3kYBiLAOKvkJSMiKX0VdAyQt3SDJClCkxJCHkCzfqyVTriJZLcolS32JZHUekq2TYNkYtCtjYHMQXSxGjXDz2t/yLWXzDzxz+o3zFwDEaN23F+13pyMdQAEaSKAR9vcGq4A4MTSKCElGW+M7UcY7xqkggITb28ZJhlqc9q2twYKTt0NjixBgYvO9BIihEBLYuOFXQzfIQ7dXGUEEEgFDooBfAzqiQbpJrhiWSuKJCRFKYbHCyJKI2G5GiZbNAvgAu5pc3vwx4G+g3aDkhklABiSz0BICXrYghtYhx/cdJ+44rY2oZ0aMNRFz3VZjb6W33F3gzltqtOCV8tTHSpOeXuItfvr5lCdfzFpqtEitvqdcdGGFd28ZqqC0tPbeChGXgrIlnhSWu/eUso4uKWFLugyDzQJhflY4659+WjQ++6x72WUMv9G8mw6QJl7BVxX5fe/kpUsOvnZwee9uQ0cGXYd0o89XB2748sDSnt8d2VphdOTTgceDVvOds0v9P/s7HPq15aGun/6Vllb56f1dl0t1LejqrNkpdRZsG8TOnM5vkBG5oiVyVGnS8LHps5cfNWJs6qKPfaNSxiQNBUm3cKNWROr0GSur7Za31k1vieq7LH11VF+jXdRIasRKflc7jkobm1Z9te1IyZA0pDkhLR98+H37Zf1c/8at+dB7x+7GfVyTfJMPiYztsnl59Y5l4j+0n1RXlpHnF3Tq7HecmNF/CJodEMAikruxiyJaGLvHOdAfoA+oDvpjBm2b91cHGRZMU9n25xEU0A8fgEEAdKI3Q1iDtc034sug5YVMkE2jsE+BIkwSoQ3gxXMqz9tELp48bd0cFKOKS7xYjEuXBnZP5ia7DyiO/X/YI+PQSbt2uSdqAkWL9nQbV1XB94/+uPfdZz8dnXYFBYrcTl2SIR/ybxJNJPz/Gupb0JaZeens2ekC7EKr8t+Ls/P5VJPYJdHKyqfg2nqU6bhlidzcddQV/7MmecTzJ5VPcKXkNKSEogHjYFx6QZ7rQ+FSe8njaiNuOnXS8H2ScQ619c2mC3VTtauL0rRbXd/CkSOP37FY9Zkjz8+GibYUMOEWF+RdrFS8Ecv1SHOpPUPZGEIpjPvFyU5cXKjd6OXqorTqy9GwRd++HVufPGnVsW+aO3vggKZ18jR9sXaTC1PWTEsVUaK0FkNySbTQDqlm2PfDjZcu4aalnSLKjnOoYQ0nUlqqXcGpPu/4VgV/xU2pAqW4BW3qzhQ8/hFKhV2qE3+BKAtDqBXjfgnVdH4y0wg5tbVNRenNdTWOrenWLcupQdmsbq5b+18piTe/xRdp1xbILxNPJGInm2z6hoB21Lal0i+ePTtd7B45+3XhFJ329evskXm7qurUVREotqSluSo/L29d3qDhI4YOQqWhI4YNvBNfsMHeXKemXrxQfKeuPOGRVayA3JtkJKEgbPp+dXUDluddutRYLFoXGXWX6N3WFaGLbQtRSitVYNacTNSdy7AaG/HSaUEANcBoGXNdcZvZsOqQ1icBDv21/gzAoYPHH/WDW0qNR3QTYKEAEHig6o13NXbND06CQPlRtYjGNnSktRc09k1mAMDvAlDKfQjgy6fssInlfzmNAjKkDxoxHOBLdVRAIVt9j4qo+hA1w9T1aNBNTUOTTNUHLbqokE+UAfJXCIGw/IxCSL5GRUJeR40rL/UxTm4Q08H6MbCs70ObuNyIIXrINHQYInF06UUlevTjbQzTh5upiDMzMMogUtEnjPs/Y7jAHCJeB0GBHh04tC6FiB6ZFB1oArUSIoFoqhzCeAN6lHwm0T4C3VVPWvjpSMXReuWesMEcoqrmgtNBGd2noWeV0hNAz9rFeShNJxHGsPa3HXeKTk8b55hahySYHaYKKFFLpCfN8rsoaJn01CR04Gkc+5k7KVTCmClX8Q10HCrUEkVlSX+XO33oQR9609tJ516H497WSobWs5Up6TLaS10/dessIskgJSLiDlWvHVUywpkQ7hdPZqGyiEF0uVQerVcPamT1A3eKXdyI1vG9OoflrSXihZ1qqGE3nhmAgiIbRCQgPLEPtOM3UQwTLYaYYomNlpA44opnjV6jkD6id80OOrzf6BzmMD6eEa1zKyeYG1fzfEf16V6jw9XYOaar1/b2kP/IYX8oR2mcFvv2GtBV3JXgd437AQAA) format('woff2-variations');
  unicode-range: U+0460-052F,U+1C80-1C8A,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F;
}
/* jetbrains-mono-cyrillic-wght-normal */
@font-face {
  font-family: 'JetBrains Mono Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 100 800;
  src: url(/_astro/jetbrains-mono-cyrillic-wght-normal.D73BlboJ.woff2) format('woff2-variations');
  unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;
}
/* jetbrains-mono-greek-wght-normal */
@font-face {
  font-family: 'JetBrains Mono Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 100 800;
  src: url(/_astro/jetbrains-mono-greek-wght-normal.Bw9x6K1M.woff2) format('woff2-variations');
  unicode-range: U+0370-0377,U+037A-037F,U+0384-038A,U+038C,U+038E-03A1,U+03A3-03FF;
}
/* jetbrains-mono-vietnamese-wght-normal */
@font-face {
  font-family: 'JetBrains Mono Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 100 800;
  src: url(/_astro/jetbrains-mono-vietnamese-wght-normal.Bt-aOZkq.woff2) format('woff2-variations');
  unicode-range: U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB;
}
/* jetbrains-mono-latin-ext-wght-normal */
@font-face {
  font-family: 'JetBrains Mono Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 100 800;
  src: url(/_astro/jetbrains-mono-latin-ext-wght-normal.DBQx-q_a.woff2) format('woff2-variations');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}
/* jetbrains-mono-latin-wght-normal */
@font-face {
  font-family: 'JetBrains Mono Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 100 800;
  src: url(/_astro/jetbrains-mono-latin-wght-normal.B9CIFXIH.woff2) format('woff2-variations');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
/* Base Layer */
:root {
  color-scheme: light;

  /* Surfaces */
  --bg: #f3efe5;
  --bg-alt: #faf7f0;
  --card: rgba(255, 253, 247, 0.72);

  /* Brand */
  --accent: #556b3b;
  --accent-deep: #3e4f2a;
  --accent-soft: #8fa16a;
  --accent-2: #c66b4c;
  --accent-2-deep: #a9502f;

  --accent-gradient: linear-gradient(135deg, #556b3b 0%, #3e4f2a 100%);
  --secondary-gradient: linear-gradient(135deg, #c66b4c 0%, #a9502f 100%);
  --gradient-text: linear-gradient(135deg, #2a2a24 0%, #4a4a40 100%);

  /* Text */
  --text: #2a2a24;
  --muted: #6b6b62;

  /* Strokes */
  --border: rgba(42, 42, 36, 0.08);
  --glass-bg: rgba(255, 253, 247, 0.5);
  --glass-border: rgba(42, 42, 36, 0.08);

  /* Shadows */
  --shadow-sm:
    0 4px 6px -1px rgba(42, 42, 36, 0.08),
    0 2px 4px -1px rgba(42, 42, 36, 0.05);
  --shadow-md:
    0 10px 15px -3px rgba(42, 42, 36, 0.1),
    0 4px 6px -2px rgba(42, 42, 36, 0.05);
  --shadow-lg:
    0 20px 25px -5px rgba(42, 42, 36, 0.1),
    0 10px 10px -5px rgba(42, 42, 36, 0.04);

  /* Typography stacks */
  --font-display:
    "Fraunces Variable", "Fraunces", Georgia, "Times New Roman", serif;
  --font-body:
    "Inter Variable", "Inter", system-ui, -apple-system, sans-serif;
  --font-mono:
    "JetBrains Mono Variable", "JetBrains Mono", ui-monospace, SFMono-Regular,
    Menlo, monospace;

  font-family: var(--font-body);
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 1.1rem;
  font-family: var(--font-body);
}
h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.15;
}
h1 {
  font-variation-settings: "SOFT" 50, "opsz" 144;
}
code,
kbd,
samp,
pre,
.mono {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}
img {
  max-width: 100%;
  display: block;
}
a {
  color: inherit;
  text-decoration: none;
  transition: color 0.3s ease;
}
main {
  padding: 0 clamp(24px, 8vw, 120px);
}
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 9999;
  background: var(--accent);
  color: #ffffff;
  padding: 12px 20px;
  border-radius: 0 0 8px 0;
  font-weight: 600;
}
.skip-link:focus {
  left: 0;
  outline: 3px solid #ffffff;
  outline-offset: -3px;
}
:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}
/* Layout Layer */
/* ============================================================
   Appbar "isla de papel"
   - Arranca fundida con el hero (transparente, ancha)
   - Al scrollear se condensa en una pill flotante de papel
   - Scroll-driven (animation-timeline: scroll()) con fallback
     .nav--scrolled que alterna ScrollFX
   - Links mono uppercase con scrollspy; CTA terracota
   ============================================================ */
.nav-shell {
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}
/* Se esconde al bajar, reaparece al subir (ScrollFX) */
.nav-shell.nav-shell--hidden {
  transform: translateY(-115%);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-inline: 0;
  margin-top: 0;
  padding: 18px clamp(24px, 8vw, 120px);
  background: rgba(255, 254, 248, 0);
  border: 1px solid rgba(42, 42, 36, 0);
  border-radius: 0;
  box-shadow: 0 0 0 rgba(42, 42, 36, 0);
  backdrop-filter: blur(0px);
  -webkit-backdrop-filter: blur(0px);
  transition:
    margin 0.45s cubic-bezier(0.2, 0.8, 0.2, 1),
    padding 0.45s cubic-bezier(0.2, 0.8, 0.2, 1),
    background-color 0.45s ease,
    border-color 0.45s ease,
    border-radius 0.45s cubic-bezier(0.2, 0.8, 0.2, 1),
    box-shadow 0.45s ease;
}
/* Estado condensado (fallback JS): isla de papel */
.nav--scrolled {
  margin-inline: clamp(10px, 3vw, 40px);
  margin-top: 10px;
  padding: 10px clamp(18px, 3vw, 32px);
  background: rgba(255, 254, 248, 0.9);
  border-color: rgba(42, 42, 36, 0.1);
  border-radius: 999px;
  box-shadow:
    0 1px 2px rgba(42, 42, 36, 0.06),
    0 18px 38px -18px rgba(42, 42, 36, 0.35);
  backdrop-filter: blur(12px) saturate(140%);
  -webkit-backdrop-filter: blur(12px) saturate(140%);
}
/* Scroll-driven en navegadores modernos: interpolación continua.
   La animación pisa a .nav--scrolled (las animaciones ganan en cascada). */
@supports (animation-timeline: scroll()) {
  .nav {
    transition: none;
    animation: nav-condense linear both;
    animation-timeline: scroll();
    animation-range: 0 160px;
  }

  @keyframes nav-condense {
    from {
      margin-inline: 0;
      margin-top: 0;
      padding: 18px clamp(24px, 8vw, 120px);
      background: rgba(255, 254, 248, 0);
      border-color: rgba(42, 42, 36, 0);
      border-radius: 0;
      box-shadow: 0 0 0 rgba(42, 42, 36, 0);
    }
    to {
      margin-inline: clamp(10px, 3vw, 40px);
      margin-top: 10px;
      padding: 10px clamp(18px, 3vw, 32px);
      background: rgba(255, 254, 248, 0.9);
      border-color: rgba(42, 42, 36, 0.1);
      border-radius: 999px;
      box-shadow:
        0 1px 2px rgba(42, 42, 36, 0.06),
        0 18px 38px -18px rgba(42, 42, 36, 0.35);
    }
  }

  /* backdrop-filter no interpola bien en keyframes: se activa por clase */
  .nav--scrolled {
    backdrop-filter: blur(12px) saturate(140%);
    -webkit-backdrop-filter: blur(12px) saturate(140%);
  }
}
@supports not (backdrop-filter: blur(1px)) {
  .nav--scrolled {
    background: rgba(255, 254, 248, 0.97);
  }
}
/* ---------- Logo: serif de mercado, no gradiente SaaS ---------- */
.logo {
  font-family: var(--font-display);
  font-size: 1.42rem;
  font-weight: 640;
  font-variation-settings: "SOFT" 60, "opsz" 60;
  letter-spacing: -0.01em;
  color: var(--accent-deep);
  text-decoration: none;
  display: inline-block;
  white-space: nowrap;
}
.logo em {
  font-style: normal;
  color: var(--accent-2-deep);
}
/* Subrayado a mano en hover */
.logo:hover em,
.logo:focus-visible em {
  text-decoration: underline wavy rgba(198, 107, 76, 0.55) 2px;
  text-underline-offset: 5px;
}
/* ---------- Links: etiqueta de mercado ---------- */
.nav-links {
  list-style: none;
  display: flex;
  align-items: center;
  gap: clamp(18px, 2.4vw, 34px);
  margin: 0;
  padding: 0;
}
.nav-num {
  display: none;
}
.nav-links a {
  position: relative;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 6px 2px;
  transition: color 0.25s ease;
}
.nav-links a:hover {
  color: var(--accent-deep);
}
/* Chincheta terracota bajo el link activo (scrollspy) */
.nav-links a::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -4px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent-2);
  transform: translateX(-50%) scale(0);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.nav-links a.active {
  color: var(--accent-deep);
}
.nav-links a.active::after {
  transform: translateX(-50%) scale(1);
}
/* CTA: pill terracota, la única tinta plana de la barra */
.nav-links a.nav-cta {
  color: #fffef8;
  background: var(--secondary-gradient);
  padding: 9px 20px;
  border-radius: 999px;
  letter-spacing: 0.14em;
  box-shadow: 0 8px 18px -8px rgba(169, 80, 47, 0.55);
  transition:
    transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1),
    box-shadow 0.3s ease;
}
.nav-links a.nav-cta::after {
  display: none;
}
.nav-links a.nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 22px -8px rgba(169, 80, 47, 0.6);
  color: #fffef8;
}
/* ---------- Toggle burger ---------- */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  padding: 8px;
  cursor: pointer;
}
body.nav-open {
  overflow: hidden;
}
.nav-toggle span {
  width: 28px;
  height: 2px;
  background: var(--text);
  border-radius: 4px;
  transition:
    transform 0.3s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.2s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}
/* ---------- Mobile: menú editorial a toda página ---------- */
@media (max-width: 1024px) {
  .nav {
    padding: 14px 24px;
  }

  .nav--scrolled {
    padding: 10px 20px;
  }

  @supports (animation-timeline: scroll()) {
    @keyframes nav-condense {
      from {
        margin-inline: 0;
        margin-top: 0;
        padding: 14px 24px;
        background: rgba(255, 254, 248, 0);
        border-color: rgba(42, 42, 36, 0);
        border-radius: 0;
        box-shadow: 0 0 0 rgba(42, 42, 36, 0);
      }
      to {
        margin-inline: 10px;
        margin-top: 8px;
        padding: 10px 20px;
        background: rgba(255, 254, 248, 0.9);
        border-color: rgba(42, 42, 36, 0.1);
        border-radius: 999px;
        box-shadow:
          0 1px 2px rgba(42, 42, 36, 0.06),
          0 18px 38px -18px rgba(42, 42, 36, 0.35);
      }
    }
  }

  .nav-links {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    background: #f2e2d0;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: clamp(18px, 4vh, 34px);
    padding: 0 clamp(28px, 9vw, 64px);
    /* Cerrado: oculto en el sitio — sin translateX positivo, que
       alargaría el ancho de scroll y partiría el layout en móvil. */
    opacity: 0;
    visibility: hidden;
    transition:
      opacity 0.35s ease,
      visibility 0s linear 0.35s;
    z-index: 1000;
  }

  .nav-links li {
    opacity: 0;
    transform: translateY(16px);
    transition:
      opacity 0.4s ease,
      transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
  }

  .nav-links.open {
    opacity: 1;
    visibility: visible;
    transition: opacity 0.35s ease;
  }

  .nav-links.open li {
    opacity: 1;
    transform: translateY(0);
    transition-delay: calc(0.07s * var(--i, 0));
  }

  /* Números de carta de mercado */
  .nav-num {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 0.66rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    color: var(--accent-2-deep);
    margin-right: 14px;
    vertical-align: super;
  }

  /* Links gigantes editorial */
  .nav-links a {
    font-family: var(--font-display);
    font-size: clamp(2rem, 8vw, 3rem);
    font-weight: 500;
    font-style: italic;
    font-variation-settings: "SOFT" 80, "opsz" 144;
    letter-spacing: -0.02em;
    text-transform: none;
    color: var(--text);
    padding: 2px 0;
  }

  .nav-links a::after {
    display: none;
  }

  .nav-links a.active {
    color: var(--accent-2-deep);
  }

  .nav-links a.nav-cta {
    background: none;
    box-shadow: none;
    color: var(--accent-2-deep);
    padding: 2px 0;
    border-radius: 0;
    text-decoration: underline wavy rgba(198, 107, 76, 0.5) 2px;
    text-underline-offset: 8px;
  }

  .nav-links a.nav-cta:hover {
    transform: none;
  }

  .nav-toggle {
    display: flex;
    z-index: 1002;
  }

  /* backdrop-filter y la animación crean containing block: el menú
     fixed quedaría atrapado dentro de la pill. Con el menú abierto,
     la barra vuelve a plano (el overlay tapa la página igualmente). */
  body.nav-open .nav {
    animation: none !important;
    transition: none;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    background: transparent;
    border-color: transparent;
    box-shadow: none;
    margin: 0;
  }

  body.nav-open .nav-shell {
    transform: none !important;
  }
}
@media (prefers-reduced-motion: reduce) {
  .nav {
    transition: none;
    animation: none;
  }

  .nav-shell,
  .nav-shell.nav-shell--hidden {
    transition: none;
  }

  .nav-links,
  .nav-links li {
    transition: none;
  }
}
/* ---------- Selector de idioma ---------- */
/* Hermano de .nav-links, no hijo: dentro heredaría el tipo display gigante
   que el overlay móvil aplica a .nav-links a. */
.lang-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
}
.lang-opt {
  color: var(--muted);
  text-decoration: none;
  padding: 4px 2px;
  transition: color 0.3s ease;
}
.lang-opt:hover {
  color: var(--accent-deep);
}
.lang-opt.is-active {
  color: var(--accent-deep);
  font-weight: 700;
}
.lang-opt:not(:last-child)::after {
  content: "|";
  margin-left: 8px;
  color: var(--border);
  font-weight: 400;
}
@media (max-width: 1024px) {
  /* Queda a la izquierda de la hamburguesa, y por encima del overlay
     (.nav-links es fixed con z-index 1000; .nav-toggle usa 1002). */
  .lang-toggle {
    position: relative;
    z-index: 1003;
    margin-left: auto;
    margin-right: 16px;
  }
}
/* Con tres idiomas, logo + ES|CA|EN + hamburguesa no caben en un móvil
   estrecho: a 360px la barra se salía. Se aprieta solo el selector. */
@media (max-width: 400px) {
  .lang-toggle {
    gap: 4px;
    letter-spacing: 0.08em;
    margin-right: 8px;
  }

  .lang-opt {
    padding: 4px 0;
  }

  .lang-opt:not(:last-child)::after {
    margin-left: 4px;
  }
}
/* A 320px la hamburguesa se salía. El `gap` de .nav cuenta también el hueco
   del .nav-links, que en móvil es un overlay fixed pero sigue siendo hijo
   flex y reserva espacio en el reparto. */
@media (max-width: 340px) {
  .nav,
  .nav--scrolled {
    padding-inline: 12px;
    gap: 8px;
  }
}
.section {
  padding: 100px 0;
}
.section-header {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 80px;
}
.badge {
  font-family: var(--font-mono);
  color: var(--accent-2);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.78rem;
  margin-bottom: 16px;
  display: inline-block;
  border: 1px solid var(--border);
  padding: 4px 12px;
  border-radius: 6px;
  background: var(--bg-alt);
}
.section-header h2 {
  font-size: clamp(2.3rem, 4.5vw, 3.2rem);
  font-weight: 500;
  line-height: 1.1;
  margin-bottom: 24px;
  letter-spacing: -0.015em;
}
@media (max-width: 768px) {
  .section-header h2 {
    font-size: 2.2rem;
  }
}
.footer {
  padding: 80px clamp(24px, 8vw, 120px);
  background: white;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: center;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: clamp(40px, 10vw, 160px);
}
.footer-brand {
  max-width: 280px;
}
/* Mismo bicolor que el appbar: "Kitchen" verde, "Loop" terracota
   (colores heredados de .logo y .logo em en nav.css) */
.footer-brand .logo {
  margin-bottom: 12px;
  display: inline-block;
}
.footer-brand p {
  color: var(--muted);
  font-size: 0.95rem;
}
.footer-nav-groups {
  display: flex;
  gap: 80px;
  justify-content: center;
}
.footer-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.footer-heading {
  margin: 0 0 8px;
  color: var(--text);
  font-size: 1.1rem;
  font-weight: 700;
}
.footer-links a {
  font-weight: 500;
  color: var(--muted);
  display: block;
  padding: 4px 0;
  transition: color 0.2s ease;
}
.footer-links a:hover {
  color: var(--accent);
}
@media (max-width: 768px) {
  .footer {
    flex-direction: column;
    align-items: stretch;
    text-align: left;
    gap: 28px;
    padding: 56px 24px 40px;
  }

  .footer-brand {
    max-width: none;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border);
  }

  .footer-brand .logo {
    margin-bottom: 8px;
  }

  .footer-brand p {
    max-width: none;
  }

  .footer-nav-groups {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
    width: 100%;
  }

  .footer-links {
    display: flex;
    flex-flow: row wrap;
    gap: 10px 18px;
    padding: 20px 0;
    border-bottom: 1px solid var(--border);
  }

  .footer-links:last-child {
    border-bottom: 0;
    padding-bottom: 0;
  }

  .footer-heading {
    flex: 0 0 100%;
    margin: 0 0 2px;
    font-family: var(--font-mono);
    font-size: 0.74rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--accent);
  }

  .footer-links a {
    padding: 0;
    font-size: 1rem;
    line-height: 1.35;
    color: var(--text);
  }
}
/* Component Layer */
.btn {
  border-radius: 100px;
  padding: 16px 36px;
  font-weight: 700;
  font-size: 1.1rem;
  border: 1px solid transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  cursor: pointer;
  white-space: nowrap;
}
.btn:focus-visible {
  outline: 3px solid #556b3b;
  outline-offset: 3px;
}
.btn.primary {
  background: var(--accent-gradient);
  color: #ffffff;
  box-shadow: 0 10px 20px rgba(85, 107, 59, 0.3);
}
.btn.primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 30px rgba(85, 107, 59, 0.4);
}
/* Transparente con borde: no compite en brillo con el CTA primario */
.btn.ghost {
  background: transparent;
  border: 2px solid rgba(42, 42, 36, 0.25);
  color: var(--text);
}
.btn.ghost:hover {
  background: rgba(42, 42, 36, 0.05);
  border-color: var(--muted);
}
.hero {
  position: relative;
  background: var(--bg);
  padding: 56px clamp(24px, 8vw, 120px) 140px;
  min-height: 92vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
/* Fondo full-bleed. El gradiente queda como respaldo mientras carga la foto. */
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(
      120% 90% at 78% 15%,
      rgba(198, 107, 76, 0.42),
      transparent 55%
    ),
    radial-gradient(
      100% 80% at 95% 95%,
      rgba(85, 107, 59, 0.4),
      transparent 60%
    ),
    radial-gradient(
      90% 70% at 15% 90%,
      rgba(217, 164, 65, 0.28),
      transparent 60%
    ),
    linear-gradient(120deg, #e7dcc6 0%, #d8c9a9 45%, #c9b489 100%);
}
.hero-bg-picture {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: block;
  overflow: hidden;
}
.hero-bg-photo {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center right;
}
/* Scrim con peso a la izquierda: mantiene legible el copy (texto oscuro)
   mientras la foto respira a la derecha. */
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    100deg,
    var(--bg) 0%,
    rgba(244, 240, 231, 0.92) 30%,
    rgba(244, 240, 231, 0.55) 52%,
    rgba(244, 240, 231, 0.12) 72%,
    transparent 100%
  );
}
.hero-content {
  position: relative;
  z-index: 2;
  display: block;
  margin-top: auto;
  margin-bottom: auto;
  width: 100%;
}
.hero-copy {
  max-width: 620px;
}
.hero-copy h1 {
  font-size: clamp(2.6rem, 5.4vw, 4.4rem);
  line-height: 1.04;
  font-weight: 500;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
  font-variation-settings: "SOFT" 30, "opsz" 144;
}
/* Acento de mercado: redonda terracota, sin itálica. En acentos de varias
   palabras el subrayado satura: solo color.
   :not(.word) — split-words envuelve cada palabra en un span y sin esto
   el acento se comería el titular entero. */
.hero-copy h1 span:not(.word) {
  color: var(--accent-2-deep);
  font-style: normal;
}
.lead {
  font-size: 1.2rem;
  line-height: 1.55;
  color: var(--muted);
  max-width: 560px;
  margin-bottom: 36px;
}
.hero-actions {
  display: flex;
  gap: 16px;
  margin-bottom: 44px;
  flex-wrap: wrap;
}
.hero-metrics {
  display: flex;
  gap: clamp(24px, 4vw, 48px);
  flex-wrap: wrap;
}
.metric-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.metric-value {
  font-family: var(--font-mono);
  font-size: 1.85rem;
  font-weight: 600;
  color: var(--text);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}
.metric-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.16em;
}
/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .hero {
    padding: 48px clamp(20px, 6vw, 80px) 96px;
  }

  .hero-copy {
    max-width: 560px;
  }

  /* En vertical, el scrim horizontal deja de cubrir bien el copy: pasamos a
     un overlay vertical (arriba legible → foto abajo). */
  .hero-overlay {
    background: linear-gradient(
      180deg,
      var(--bg) 0%,
      rgba(244, 240, 231, 0.9) 42%,
      rgba(244, 240, 231, 0.45) 70%,
      rgba(244, 240, 231, 0.1) 100%
    );
  }
}
@media (max-width: 640px) {
  .hero-bg-photo {
    object-position: center top;
  }

  .hero-overlay {
    background: linear-gradient(
      180deg,
      var(--bg) 0%,
      rgba(244, 240, 231, 0.94) 44%,
      rgba(244, 240, 231, 0.66) 74%,
      rgba(244, 240, 231, 0.2) 100%
    );
  }

  .hero-copy h1 {
    font-size: clamp(2rem, 8.5vw, 2.6rem);
    overflow-wrap: break-word;
  }
}
/* ============================================================
   Tour producto — 6 capacidades en zigzag con UI recreada
   ============================================================ */
.tour-stack {
  display: flex;
  flex-direction: column;
  gap: clamp(72px, 9vw, 132px);
  margin-top: 64px;
}
.tour-row {
  display: grid;
  grid-template-columns: minmax(0, 0.94fr) minmax(280px, 0.74fr);
  gap: clamp(36px, 5vw, 72px);
  align-items: center;
}
.tour-row[data-side="left"] {
  grid-template-columns: minmax(280px, 0.74fr) minmax(0, 0.94fr);
}
.tour-copy {
  display: flex;
  flex-direction: column;
  padding: clamp(24px, 5vw, 72px) 0;
}
.tour-detail {
  margin-top: 18px;
}
.tour-row[data-side="right"] .tour-mock {
  order: 2;
}
.tour-row[data-side="left"] .tour-mock {
  order: 1;
}
.tour-row[data-side="left"] .tour-copy {
  order: 2;
}
.tour-tag {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-2);
  display: inline-block;
  margin-bottom: 16px;
  font-weight: 500;
}
.tour-copy h3 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.4vw, 2.6rem);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 18px;
  font-variation-settings: "SOFT" 30, "opsz" 144;
  color: var(--text);
}
.tour-copy p {
  font-size: 1.1rem;
  line-height: 1.55;
  color: var(--muted);
  max-width: 480px;
  margin-bottom: 24px;
}
.tour-bullets {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.tour-bullets li {
  position: relative;
  padding-left: 22px;
  font-size: 0.98rem;
  line-height: 1.5;
  color: var(--text);
}
.tour-bullets li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-2);
}
/* ---------- Mock genérico ---------- */
.tour-mock {
  position: sticky;
  top: 18vh;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 32px;
  padding: clamp(20px, 2.5vw, 32px);
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 360px;
  isolation: isolate;
}
/* ============================================================
   01 · Chef IA
   ============================================================ */
.tour-mock--ai {
  background:
    radial-gradient(420px circle at 100% 0%, rgba(198, 107, 76, 0.1), transparent 60%),
    var(--bg-alt);
}
.ai-input {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  background: rgba(85, 107, 59, 0.06);
  border-radius: 999px;
  font-size: 0.9rem;
}
.ai-spark {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #f0b455, var(--accent-2) 70%);
  box-shadow: 0 0 12px rgba(240, 180, 85, 0.45);
  flex-shrink: 0;
}
.ai-text {
  flex: 1;
  color: var(--text);
}
.ai-send {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--text);
  color: var(--bg-alt);
  display: grid;
  place-items: center;
  font-size: 0.9rem;
}
.ai-context {
  display: flex;
  gap: 8px;
}
.ai-pill {
  padding: 4px 12px;
  background: rgba(85, 107, 59, 0.08);
  border-radius: 999px;
  font-size: 0.78rem;
  color: var(--text);
  font-family: var(--font-body);
}
.ai-chips {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 4px;
}
.ai-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 14px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  font-size: 0.85rem;
  color: var(--text);
  line-height: 1.2;
}
.dot {
  width: 22px;
  height: 22px;
  border-radius: 8px;
  flex-shrink: 0;
  display: inline-block;
}
.dot-green  { background: rgba(85, 107, 59, 0.18); }
.dot-orange { background: rgba(198, 107, 76, 0.22); }
.dot-yellow { background: rgba(240, 180, 85, 0.28); }
.dot-olive  { background: rgba(85, 107, 59, 0.28); }
.ai-result {
  display: flex;
  gap: 14px;
  align-items: stretch;
  padding: 14px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 18px;
  margin-top: 6px;
}
.ai-result-photo {
  width: 80px;
  height: 80px;
  border-radius: 12px;
  flex-shrink: 0;
  background:
    radial-gradient(circle at 30% 30%, #c79572, transparent 60%),
    radial-gradient(circle at 70% 70%, #6b8b5f, transparent 60%),
    linear-gradient(135deg, #ddc8a1, #b89968);
  position: relative;
  overflow: hidden;
}
.ai-result-photo::after {
  content: "";
  position: absolute;
  inset: 18% 22%;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #f0e6cc, transparent 70%);
  opacity: 0.7;
}
.ai-result-body {
  display: flex;
  flex-direction: column;
  gap: 4px;
  justify-content: center;
}
.ai-result-tag {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-2);
}
.ai-result-body strong {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--text);
  letter-spacing: -0.01em;
}
.ai-result-meta {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--muted);
}
/* ============================================================
   02 · Recetas & packs
   ============================================================ */
.tour-mock--packs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 16px;
}
.pack-card {
  border-radius: 22px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  color: #faf7f0;
  position: relative;
  overflow: hidden;
  min-height: 180px;
}
.pack-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.05) 0 8px,
    transparent 8px 18px
  );
  pointer-events: none;
}
.pack-card--mediterranean {
  background: linear-gradient(135deg, #6e8454 0%, #3e4f2a 100%);
}
.pack-card--asia {
  background: linear-gradient(135deg, #c66b4c 0%, #8a3d1f 100%);
  grid-column: 2;
  grid-row: 1 / span 2;
  min-height: 220px;
  transform: translateY(-12px);
}
.pack-card--save {
  background: linear-gradient(135deg, #2c2e26 0%, #1f201a 100%);
}
.pack-tag {
  align-self: flex-start;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  padding: 4px 10px;
  z-index: 1;
}
.pack-card strong {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  z-index: 1;
}
.pack-desc {
  font-size: 0.85rem;
  opacity: 0.86;
  line-height: 1.4;
  z-index: 1;
}
.pack-foot {
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  z-index: 1;
}
.pack-pill {
  background: rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 0.72rem;
  font-family: var(--font-mono);
  letter-spacing: 0.04em;
}
.pack-cta {
  font-size: 0.78rem;
  background: rgba(255, 255, 255, 0.92);
  color: var(--text);
  padding: 6px 12px;
  border-radius: 999px;
  font-weight: 500;
}
/* ============================================================
   03 · Plan semanal
   ============================================================ */
.tour-mock--plan {
  gap: 18px;
}
.plan-week {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
}
.plan-day {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  border-radius: 50%;
  border: 1px solid var(--border);
  color: var(--muted);
  background: var(--bg);
}
.plan-day--active {
  background: var(--accent-deep);
  border-color: var(--accent-deep);
  color: var(--bg-alt);
  font-weight: 600;
}
.plan-day--marked {
  position: relative;
}
.plan-day--marked::after {
  content: "";
  position: absolute;
  bottom: 4px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--accent-2);
}
.plan-slot {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.plan-slot-tag {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-2);
}
.plan-recipe {
  display: flex;
  gap: 12px;
  align-items: center;
}
.plan-recipe-photo {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  flex-shrink: 0;
  background:
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.06) 0 6px, transparent 6px 12px),
    linear-gradient(135deg, rgba(85, 107, 59, 0.7), rgba(62, 79, 42, 0.85));
}
.plan-recipe-body {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.plan-recipe-body strong {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--text);
  line-height: 1.2;
}
.plan-recipe-body span {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--muted);
}
.plan-types {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.plan-type {
  font-size: 0.78rem;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px dashed rgba(85, 107, 59, 0.35);
  color: var(--muted);
  background: transparent;
}
.plan-type--filled {
  background: rgba(85, 107, 59, 0.14);
  border-color: transparent;
  color: var(--accent-deep);
  font-weight: 500;
}
/* ============================================================
   04 · Despensa
   ============================================================ */
.tour-mock--pantry {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  align-items: start;
}
.pantry-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.pantry-card--alt {
  margin-top: 24px;
}
.pantry-head {
  display: flex;
  align-items: center;
  gap: 10px;
}
.pantry-icon {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: rgba(198, 107, 76, 0.12);
  display: grid;
  place-items: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}
.pantry-head > div {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
}
.pantry-head strong {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--text);
}
.pantry-head span {
  font-size: 0.74rem;
  color: var(--muted);
}
.pantry-count {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(85, 107, 59, 0.12);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  display: grid;
  place-items: center;
  color: var(--accent-deep);
  font-weight: 600;
  flex-shrink: 0;
}
.pantry-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  border-top: 1px dashed var(--border);
  padding-top: 10px;
}
.pantry-item > div {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.pantry-name {
  font-size: 0.92rem;
  color: var(--text);
}
.pantry-qty {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--muted);
}
.pantry-stock {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent-2);
  background: rgba(198, 107, 76, 0.12);
  padding: 2px 8px;
  border-radius: 999px;
  align-self: flex-start;
  margin-top: 2px;
}
.pantry-stepper {
  display: inline-flex;
  align-items: center;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: 999px;
  overflow: hidden;
  font-family: var(--font-mono);
  background: var(--bg-alt);
  flex-shrink: 0;
}
.pantry-stepper span {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  font-size: 0.78rem;
  color: var(--text);
}
.pantry-stepper span:nth-child(2) {
  border-left: 1px solid var(--border);
  border-right: 1px solid var(--border);
  color: var(--muted);
}
/* ============================================================
   05 · Cesta & comercios
   ============================================================ */
.tour-mock--basket {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}
.basket-list {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.basket-head {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  padding-bottom: 4px;
  border-bottom: 1px dashed var(--border);
}
.basket-count {
  color: var(--accent-deep);
  font-weight: 600;
}
.basket-item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 10px;
  align-items: center;
}
.basket-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-2);
}
.basket-item > div {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.basket-item strong {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text);
}
.basket-item span {
  font-size: 0.72rem;
  color: var(--muted);
}
.basket-pill {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  background: rgba(198, 107, 76, 0.12);
  color: var(--accent-2);
  padding: 4px 10px;
  border-radius: 999px;
  font-weight: 500;
}
.shop-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.shop-head {
  display: flex;
  align-items: center;
  gap: 10px;
}
.shop-avatar {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: var(--accent-deep);
  color: var(--bg-alt);
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 600;
  flex-shrink: 0;
}
.shop-head > div {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.shop-head strong {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text);
}
.shop-head span {
  font-size: 0.72rem;
  color: var(--muted);
}
.shop-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.shop-metrics span {
  display: flex;
  flex-direction: column;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 8px;
  align-items: flex-start;
}
.shop-metrics em {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-style: normal;
  color: var(--muted);
}
.shop-metrics strong {
  font-family: var(--font-mono);
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
}
.shop-bar {
  height: 6px;
  background: rgba(85, 107, 59, 0.12);
  border-radius: 999px;
  overflow: hidden;
}
.shop-bar i {
  display: block;
  height: 100%;
  background: var(--accent-gradient);
  border-radius: 999px;
}
.shop-cta {
  align-self: flex-start;
  font-size: 0.8rem;
  background: var(--text);
  color: var(--bg-alt);
  padding: 8px 14px;
  border-radius: 999px;
  font-weight: 500;
}
/* ============================================================
   06 · Comunidad
   ============================================================ */
.tour-mock--community {
  gap: 18px;
}
.post-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.post-head {
  display: flex;
  align-items: center;
  gap: 10px;
}
.post-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
}
.post-head > div {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.post-pill {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  background: rgba(85, 107, 59, 0.12);
  color: var(--accent-deep);
  padding: 3px 8px;
  border-radius: 999px;
  align-self: flex-start;
  width: fit-content;
}
.post-head strong {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--text);
}
.post-body {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1rem;
  line-height: 1.4;
  color: var(--text);
  margin: 0;
}
.post-reactions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.reaction {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.78rem;
  color: var(--text);
}
.reaction span {
  font-size: 0.85rem;
}
.reaction em {
  font-family: var(--font-mono);
  font-style: normal;
  font-size: 0.72rem;
  background: var(--accent-2);
  color: var(--bg-alt);
  border-radius: 999px;
  padding: 0 6px;
  margin-left: 2px;
}
.reaction--active {
  background: rgba(198, 107, 76, 0.14);
  border-color: rgba(198, 107, 76, 0.3);
}
.group-chips {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.group-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 14px;
}
.group-chip > span:first-child {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: rgba(85, 107, 59, 0.12);
  display: grid;
  place-items: center;
  font-size: 0.95rem;
  flex-shrink: 0;
}
.group-chip > div {
  display: flex;
  flex-direction: column;
  gap: 0;
  min-width: 0;
}
.group-chip strong {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text);
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.group-chip em {
  font-family: var(--font-mono);
  font-style: normal;
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
/* ============================================================
   Cocina compartida (share section)
   ============================================================ */
.share-section {
  position: relative;
  min-height: clamp(620px, 78vh, 780px);
  padding: clamp(72px, 9vw, 124px) clamp(24px, 8vw, 120px);
  overflow-x: clip;
  overflow-y: hidden;
  display: flex;
  align-items: center;
  background: var(--bg);
  isolation: isolate;
}
.share-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(
      90% 70% at 18% 30%,
      rgba(85, 107, 59, 0.18),
      transparent 62%
    ),
    linear-gradient(120deg, #e7dcc6 0%, #d8c9a9 100%);
}
.share-bg-picture {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: block;
  overflow: hidden;
}
.share-bg-photo {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: left center;
}
.share-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    90deg,
    rgba(244, 240, 231, 0.02) 0%,
    rgba(244, 240, 231, 0.12) 34%,
    rgba(244, 240, 231, 0.7) 58%,
    rgba(244, 240, 231, 0.95) 76%,
    var(--bg) 100%
  );
}
.share-block {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(380px, 540px);
  gap: clamp(36px, 6vw, 76px);
  align-items: center;
}
.share-copy {
  grid-column: 2;
  max-width: 540px;
}
.share-copy h2 {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 16px 0 20px;
  font-variation-settings: "SOFT" 30, "opsz" 144;
}
.share-copy p {
  font-size: 1.1rem;
  line-height: 1.55;
  color: var(--muted);
  max-width: 500px;
  margin-inline: 0;
  margin-bottom: 24px;
}
.share-copy .tour-bullets {
  max-width: 500px;
  margin-inline: 0;
  text-align: left;
}
/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1024px) {
  .share-block {
    grid-template-columns: minmax(0, 0.78fr) minmax(340px, 0.92fr);
    gap: clamp(28px, 5vw, 48px);
  }

  .share-copy {
    max-width: 520px;
  }

  /* ---- Tour mobile = carrusel horizontal scroll-snap ----
     .tour-stack pasa de columna vertical a riel horizontal; cada
     .tour-row es un slide a ancho casi-viewport con snap al centro.
     Las capturas (con sus overlays .shot-fx) y el copy viven dentro
     de cada slide. El progreso lo dirige ScrollFX por slide en vista. */
  .tour-stack {
    display: flex;
    flex-direction: row;
    gap: 16px;
    margin-top: 8px;
    /* sangrado a ambos bordes para que se vea el slide siguiente */
    margin-inline: calc(-1 * clamp(20px, 6vw, 80px));
    padding-inline: clamp(20px, 6vw, 80px);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: clamp(20px, 6vw, 80px);
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
  }

  .tour-stack::-webkit-scrollbar {
    display: none;
  }

  .tour-row,
  .tour-row[data-side="left"],
  .tour-row[data-side="left"] .tour-mock,
  .tour-row[data-side="right"] .tour-mock,
  .tour-row[data-side="left"] .tour-copy {
    order: initial;
  }

  /* Orden del slide: tag → CAPTURA (protagonista) → título → bullets.
     La captura sube para que el producto se vea al instante tras el snap. */
  .tour-row,
  .tour-row[data-side="left"] {
    flex: 0 0 min(84%, 360px);
    scroll-snap-align: center;
    display: grid;
    grid-template-columns: 1fr;
    grid-template-areas:
      "intro"
      "media"
      "detail";
    gap: 14px;
    align-content: start;
    padding: 18px 16px 20px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.62);
    border: 1px solid rgba(42, 42, 36, 0.07);
  }

  .tour-mock {
    grid-area: media;
    order: 2 !important;
    position: relative;
    top: auto;
    margin: 0;
  }

  /* Teléfono acotado: el slide entero cabe en viewport, sin scroll
     vertical dentro del slide (era lo que se sentía "entrecortado"). */
  .tour-shot--phone {
    width: min(100%, 200px);
    padding: 7px;
    border-radius: 28px;
  }

  .tour-shot--phone .tour-shot-image {
    max-height: 300px;
  }

  .tour-copy {
    display: contents;
    order: 1 !important;
    padding: 0;
  }

  .tour-intro {
    grid-area: intro;
  }

  .tour-detail {
    grid-area: detail;
    margin-top: 0;
  }

  /* Tag compacto y título a 2 líneas como mucho. */
  .tour-tag {
    margin-bottom: 8px;
  }

  .tour-row .tour-copy h3 {
    font-size: clamp(1.25rem, 6vw, 1.6rem);
    line-height: 1.12;
    margin-bottom: 0;
  }

  /* Slide compacto: una frase y 3 bullets como mucho. */
  .tour-row .tour-detail p {
    font-size: 0.92rem;
    line-height: 1.45;
    margin-bottom: 10px;
  }

  .tour-row .tour-bullets {
    gap: 7px;
  }

  .tour-row .tour-bullets li {
    font-size: 0.86rem;
    line-height: 1.4;
  }

  /* 2 bullets como mucho: el slide cabe en pantalla. */
  .tour-row .tour-bullets li:nth-child(n + 3) {
    display: none;
  }
}
@media (max-width: 640px) {
  .share-section {
    min-height: 760px;
    padding-block: 64px 76px;
    align-items: flex-start;
  }

  .share-block {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .share-bg-photo {
    object-position: 38% center;
  }

  .share-overlay {
    background: linear-gradient(
      180deg,
      var(--bg) 0%,
      rgba(244, 240, 231, 0.94) 40%,
      rgba(244, 240, 231, 0.58) 72%,
      rgba(244, 240, 231, 0.18) 100%
    );
  }

  .share-copy {
    grid-column: 1;
    max-width: 520px;
  }

  .share-copy h2 {
    font-size: clamp(2rem, 10vw, 2.55rem);
  }

  .share-copy p {
    font-size: 1rem;
  }

  .tour-row,
  .tour-row[data-side="left"] {
    flex-basis: min(86%, 320px);
    padding: 16px 14px 18px;
  }

  .tour-shot--phone {
    width: min(100%, 190px);
  }

  .tour-shot--phone .tour-shot-image {
    max-height: 280px;
  }

  .tour-copy h3 {
    font-size: clamp(1.55rem, 9vw, 2.05rem);
    margin-bottom: 0;
  }

  .tour-copy p {
    font-size: 1rem;
    margin-bottom: 16px;
  }

  .tour-bullets {
    gap: 8px;
  }

  .tour-bullets li {
    font-size: 0.94rem;
  }

  .tour-mock {
    padding: 18px;
    border-radius: 24px;
  }

  .ai-chips,
  .tour-mock--packs,
  .tour-mock--pantry,
  .tour-mock--basket,
  .group-chips {
    grid-template-columns: 1fr;
  }

  .pack-card--asia {
    grid-column: 1;
    grid-row: auto;
    transform: none;
  }

  .pantry-card--alt {
    margin-top: 0;
  }

  .shop-metrics {
    grid-template-columns: 1fr 1fr 1fr;
  }
}
/* ============================================================
   Capturas reales de producto
   ============================================================ */
.tour-shot {
  margin: 0;
  min-height: 0;
  padding: 10px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(250, 247, 240, 0.96), rgba(236, 228, 210, 0.9));
  border-color: rgba(42, 42, 36, 0.12);
  box-shadow: var(--shadow-lg);
}
.tour-shot-image {
  display: block;
  width: 100%;
  background: var(--bg);
}
.tour-shot--phone {
  position: relative;
  width: min(100%, 340px);
  margin-inline: auto;
  padding: 12px;
  border-radius: 38px;
  background: #15120e;
  border-color: rgba(255, 255, 255, 0.12);
  align-self: start;
}
.tour-shot--phone .tour-shot-image {
  height: auto;
  max-height: 640px;
  object-fit: contain;
  border-radius: 28px;
}
/* #comparte: mismo tratamiento "feature" que el tour desktop —
   sin marco de tarjeta, captura flotando con sombra difusa y
   sangrado hacia el borde derecho de la sección */
.share-shot {
  margin: 0;
  margin-right: calc(-1 * clamp(24px, 8vw, 120px));
  padding: 0;
  background: none;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}
.share-shot-image {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  border: 1px solid rgba(42, 42, 36, 0.1);
  border-radius: 16px;
  box-shadow:
    0 2px 6px rgba(42, 42, 36, 0.05),
    0 28px 60px -28px rgba(42, 42, 36, 0.42);
  background: var(--bg);
}
@media (max-width: 1024px) {
  /* .tour-shot--phone sizing within the carousel lives in the carousel block
     above; here only #comparte (fuera del carrusel) deja de sangrar. */
  .share-shot {
    margin-right: 0;
  }
}
@media (max-width: 640px) {
  .tour-shot {
    border-radius: 24px;
    padding: 8px;
  }

  .share-shot-image {
    border-radius: 16px;
  }

  .tour-shot--phone .tour-shot-image {
    border-radius: 24px;
  }
}
/* ============================================================
   Microanimaciones de producto (overlays sobre capturas reales)
   El movimiento explica valor; no es decoración. Se dispara cuando
   la fila entra (.tour-row.active, lo añade ScrollFX por IO).
   ============================================================ */
.shot-fx {
  position: absolute;
  z-index: 3;
  pointer-events: none;
  opacity: 0;
  transform: translateY(8px) scale(0.96);
  transition:
    opacity 0.5s ease,
    transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}
.tour-row.active .shot-fx {
  opacity: 1;
  transform: translateY(0) scale(1);
  /* Aparece tras el reveal de la captura, no a la vez. */
  transition-delay: 0.45s;
}
/* ---- Badge base (chips flotantes) ---- */
.shot-fx--badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--text);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 10px 26px -12px rgba(42, 42, 36, 0.5);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.shot-fx--badge strong {
  color: var(--accent-2);
}
/* ---- 01 Plan · check "cesta calculada" ---- */
.shot-fx--check {
  right: 18px;
  bottom: 26px;
  color: #2f6b3a;
}
.shot-fx--check svg {
  flex-shrink: 0;
  color: #2f6b3a;
}
.tour-row.active .shot-fx--check svg {
  animation: shot-check-draw 0.6s ease 0.85s both;
}
@keyframes shot-check-draw {
  from {
    transform: scale(0.4);
    opacity: 0;
  }
  60% {
    transform: scale(1.15);
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}
/* ---- 02 Despensa · "stock cubierto" con dot vivo ---- */
.shot-fx--stock {
  left: 18px;
  top: 26px;
}
.shot-fx-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #2f6b3a;
  box-shadow: 0 0 0 0 rgba(47, 107, 58, 0.5);
}
.tour-row.active .shot-fx-dot {
  animation: shot-dot-pulse 2s ease-out 1s infinite;
}
@keyframes shot-dot-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(47, 107, 58, 0.5);
  }
  70% {
    box-shadow: 0 0 0 7px rgba(47, 107, 58, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(47, 107, 58, 0);
  }
}
/* ---- 03 Cesta · barra de cobertura que se llena ---- */
.shot-fx--coverage {
  left: 16px;
  right: 16px;
  bottom: 22px;
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 14px 32px -14px rgba(42, 42, 36, 0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.shot-fx-coverage-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-family: var(--font-mono);
  font-size: 0.64rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}
.shot-fx-coverage-head strong {
  font-size: 0.82rem;
  color: var(--accent-2);
}
.shot-fx-coverage-track {
  position: relative;
  height: 6px;
  border-radius: 6px;
  background: rgba(85, 107, 59, 0.16);
  overflow: hidden;
}
.shot-fx-coverage-fill {
  position: absolute;
  inset: 0 auto 0 0;
  width: 0%;
  border-radius: 6px;
  background: var(--accent-gradient);
}
.tour-row.active .shot-fx-coverage-fill {
  animation: shot-coverage-fill 1.1s cubic-bezier(0.22, 1, 0.36, 1) 0.9s both;
}
@keyframes shot-coverage-fill {
  from {
    width: 0%;
  }
  to {
    width: 92%;
  }
}
/* ---- 04 Recetas · "te falta" ---- */
.shot-fx--missing {
  right: 18px;
  top: 26px;
  background: rgba(255, 248, 235, 0.96);
}
.shot-fx--missing strong {
  color: #b5701a;
}
/* ---- 05 Chef IA · pensando con dots ---- */
.shot-fx--thinking {
  left: 18px;
  bottom: 28px;
}
.shot-fx-dots {
  display: inline-flex;
  gap: 3px;
}
.shot-fx-dots i {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--accent-2);
  opacity: 0.4;
}
.tour-row.active .shot-fx-dots i {
  animation: shot-think 1.2s ease-in-out infinite;
}
.tour-row.active .shot-fx-dots i:nth-child(2) {
  animation-delay: 0.18s;
}
.tour-row.active .shot-fx-dots i:nth-child(3) {
  animation-delay: 0.36s;
}
@keyframes shot-think {
  0%,
  100% {
    opacity: 0.3;
    transform: translateY(0);
  }
  40% {
    opacity: 1;
    transform: translateY(-2px);
  }
}
/* ---- 06 Comunidad · reacción ---- */
.shot-fx--react {
  right: 18px;
  bottom: 28px;
}
.shot-fx-heart {
  color: #d6455d;
  font-size: 0.85rem;
  line-height: 1;
}
.tour-row.active .shot-fx-heart {
  animation: shot-heart 0.7s ease 1s both;
}
@keyframes shot-heart {
  0% {
    transform: scale(0);
  }
  55% {
    transform: scale(1.35);
  }
  100% {
    transform: scale(1);
  }
}
/* Sin animación con menos efectos: los overlays quedan visibles y quietos. */
@media (prefers-reduced-motion: reduce) {
  .shot-fx {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .shot-fx-coverage-fill {
    width: 92%;
  }

  .shot-fx--check svg,
  .shot-fx-dot,
  .shot-fx-dots i,
  .shot-fx-heart {
    animation: none !important;
  }
}
.features-grid {
  display: flex;
  flex-direction: column;
  gap: 80px;
  margin-top: 40px;
}
.feature-card {
  display: flex;
  align-items: center;
  gap: 60px;
  padding: 0;
  border-radius: 0;
  background: transparent;
  width: 100%;
}
/* Alternating layout */
.feature-card:nth-child(even) {
  flex-direction: row-reverse;
}
.feature-content {
  flex: 1;
  padding: 20px;
}
.feature-image-wrapper {
  flex: 1;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  aspect-ratio: 16/9;
}
.feature-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.feature-card:hover .feature-image {
  transform: scale(1.05);
}
.feature-card h3 {
  font-size: clamp(2.2rem, 4vw, 3rem);
  font-weight: 500;
  line-height: 1.1;
  margin-bottom: 24px;
  letter-spacing: -0.015em;
  color: var(--text);
}
.feature-card p {
  font-size: 1.2rem;
  line-height: 1.65;
  color: var(--muted);
}
@media (max-width: 1024px) {
  .features-grid {
    gap: 60px;
  }

  .feature-card {
    flex-direction: column !important; /* Stack vertically on mobile */
    gap: 30px;
    text-align: center;
  }

  .feature-icon {
    margin: 0 auto 20px;
  }
}
.target-grid {
  display: flex;
  flex-direction: column;
  gap: 40px;
  margin-top: 60px;
}
.target-card {
  padding: 0;
  border-radius: 48px;
  display: flex;
  flex-direction: row;
  align-items: stretch;
  overflow: hidden;
  min-height: 400px;
  position: relative;
}
.card-content {
  flex: 1;
  padding: 60px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 24px;
  z-index: 1;
}
.card-image-wrapper {
  flex: 1;
  position: relative;
  min-height: 300px;
}
.card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
}
.target-card.consumer {
  background: linear-gradient(
    135deg,
    rgba(85, 107, 59, 0.06),
    rgba(85, 107, 59, 0.02)
  );
  border: 1px solid rgba(85, 107, 59, 0.12);
}
.target-card.manager {
  background: linear-gradient(
    135deg,
    rgba(198, 107, 76, 0.06),
    rgba(198, 107, 76, 0.02)
  );
  border: 1px solid rgba(198, 107, 76, 0.12);
}
.target-card h3 {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  margin: 0;
  font-weight: 500;
  letter-spacing: -0.015em;
}
.target-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.target-card li {
  padding-left: 32px;
  position: relative;
  margin-bottom: 16px;
  font-weight: 500;
  font-size: 1.1rem;
  opacity: 0.9;
}
.target-card li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-family: var(--font-mono);
  font-weight: 600;
}
/* Alternate layout for Manager card */
.target-card.manager {
  flex-direction: row-reverse;
}
.target-card.manager .card-content {
  text-align: right;
  align-items: flex-end; /* Align content to right */
}
/* Ensure checkmarks are correctly positioned in RTL-ish layout */
.target-card.manager li {
  padding-left: 0;
  padding-right: 32px;
}
.target-card.manager li::before {
  left: auto;
  right: 0;
  color: var(--accent-2); /* Use secondary accent color */
}
@media (max-width: 1024px) {
  .target-card, 
  .target-card.manager {
    flex-direction: column-reverse; /* Image on top, then text */
    height: auto;
  }

  .card-image-wrapper {
    height: 300px;
    flex: none; /* Don't grow/shrink, fixed height */
    width: 100%;
  }
  
  .card-content {
    padding: 40px 32px;
    align-items: flex-start; /* Reset alignment on mobile */
    text-align: left;
  }
  
  .target-card h3 {
    font-size: 2rem;
  }

  /* Reset list style for mobile manager card */
  .target-card.manager .card-content {
    align-items: flex-start;
    text-align: left;
  }
  
  .target-card.manager li {
    padding-right: 0;
    padding-left: 32px;
  }
  
  .target-card.manager li::before {
    right: auto;
    left: 0;
  }
}
.flow-story {
  display: grid;
  grid-template-columns: minmax(520px, 1fr) minmax(300px, 380px);
  gap: clamp(52px, 7vw, 112px);
  align-items: start;
  width: min(100%, 1160px);
  margin: 0 auto;
}
.timeline {
  position: relative;
  max-width: none;
  margin: 0;
  padding: 20px 0;
  scroll-timeline: --timelineProgress block;
}
.timeline::before,
.timeline::after {
  content: "";
  position: absolute;
  left: 31px;
  top: 40px;
  bottom: 40px;
  width: 2px;
  border-radius: 2px;
}
.timeline::before {
  background: rgba(85, 107, 59, 0.15);
}
.timeline::after {
  background: linear-gradient(
    180deg,
    var(--accent) 0%,
    var(--accent-2) 100%
  );
  transform-origin: top;
  transform: scaleY(0);
  animation: timeline-spine-fill 1ms linear both;
  animation-timeline: --timelineProgress;
  animation-range: entry 10% exit 60%;
}
@keyframes timeline-spine-fill {
  to {
    transform: scaleY(1);
  }
}
.timeline-item {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 32px;
  align-items: start;
  position: relative;
  min-height: clamp(400px, 57vh, 570px);
  padding: clamp(54px, 10vh, 100px) 0;
  view-timeline-name: --stepProgress;
  view-timeline-axis: block;
}
.timeline-item:last-child {
  min-height: clamp(360px, 52vh, 520px);
}
.timeline-item.is-current .step-number {
  animation: none;
  background: var(--accent);
  color: var(--bg-alt);
  border-color: var(--accent);
  transform: scale(1.05);
  box-shadow: 0 12px 24px rgba(85, 107, 59, 0.28);
}
.timeline-item.is-current .timeline-step {
  animation: none;
  opacity: 1;
  transform: translateY(0);
}
.step-number {
  width: 64px;
  height: 64px;
  border-radius: 14px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 1.5rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
  font-variant-numeric: tabular-nums;
  position: relative;
  z-index: 1;
  transition:
    background 0.5s ease,
    color 0.5s ease,
    border-color 0.5s ease,
    transform 0.5s ease;
  animation: step-activate 1ms linear both;
  animation-timeline: --stepProgress;
  animation-range: entry 40% cover 40%;
}
@keyframes step-activate {
  to {
    background: var(--accent);
    color: var(--bg-alt);
    border-color: var(--accent);
    transform: scale(1.05);
    box-shadow: 0 12px 24px rgba(85, 107, 59, 0.28);
  }
}
.timeline-step {
  display: flex;
  flex-direction: column;
  gap: 16px;
  opacity: 0.35;
  transform: translateY(20px);
  transition:
    opacity 0.6s ease,
    transform 0.6s ease;
  animation: step-copy-reveal 1ms linear both;
  animation-timeline: --stepProgress;
  animation-range: entry 30% cover 40%;
}
@keyframes step-copy-reveal {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.timeline-step h3 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.015em;
  margin: 0;
  color: var(--text);
  font-variation-settings: "SOFT" 40, "opsz" 144;
}
.timeline-step .step-tag {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
}
.timeline-step p {
  font-size: 1.1rem;
  line-height: 1.65;
  color: var(--muted);
  margin: 0;
  max-width: 560px;
}
.step-signals {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}
.step-signals span {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text);
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 6px 10px;
  font-variant-numeric: tabular-nums;
}
.step-signals span:nth-child(3n) {
  color: var(--accent);
  border-color: rgba(85, 107, 59, 0.25);
  background: rgba(85, 107, 59, 0.06);
}
.step-signals span:nth-child(3n + 2) {
  color: var(--accent-2);
  border-color: rgba(198, 107, 76, 0.25);
  background: rgba(198, 107, 76, 0.06);
}
/* Fallback for browsers without scroll-timeline (Safari/Firefox) */
@supports not (animation-timeline: view()) {
  .timeline::after {
    transform: scaleY(1);
    animation: none;
  }

  .step-number {
    animation: none;
  }

  .timeline-step {
    opacity: 1;
    transform: none;
    animation: none;
  }

  .timeline-item.active .step-number {
    background: var(--accent);
    color: var(--bg-alt);
    border-color: var(--accent);
    transform: scale(1.05);
    box-shadow: 0 12px 24px rgba(85, 107, 59, 0.28);
  }
}
@media (prefers-reduced-motion: reduce) {
  .timeline::after {
    animation: none;
    transform: scaleY(1);
  }

  .step-number,
  .timeline-step {
    animation: none;
    opacity: 1;
    transform: none;
  }
}
@media (max-width: 768px) {
  .flow-story {
    display: flex;
    flex-direction: column;
    width: min(100%, 620px);
  }

  .flow-story > .flow-object {
    order: -1;
    align-self: center;
  }

  .timeline::before,
  .timeline::after {
    left: 27px;
  }

  .timeline-item {
    grid-template-columns: 56px 1fr;
    gap: 20px;
    min-height: 58vh;
    padding: 72px 0 28px;
  }

  .timeline-item:last-child {
    min-height: 52vh;
  }

  .step-number {
    width: 56px;
    height: 56px;
    font-size: 1.3rem;
  }

  .timeline-step h3 {
    font-size: 1.6rem;
  }

  .timeline-step p {
    font-size: 1rem;
  }
}
@media (min-width: 769px) and (max-width: 1100px) {
  .flow-story {
    grid-template-columns: minmax(400px, 1fr) minmax(280px, 330px);
    gap: 40px;
  }
}
.exports-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.export-preview {
  border-radius: 32px;
  overflow: hidden;
  /* box-shadow: var(--shadow-lg); - Removed frame */
  display: flex; /* Ensure image behaves well inside */
  justify-content: center;
}
.export-preview img {
  max-height: 400px; /* Constrain height to avoid overflowing text section */
  width: auto;
  object-fit: contain;
  border-radius: 20px; /* Round corners to match hero image */
}
@media (max-width: 1024px) {
  .exports-wrapper {
    grid-template-columns: 1fr;
  }
}
.exports-grid {
  display: flex;
  gap: 16px;
  margin-top: 32px;
}
.export-card {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 20px;
  flex: 1;
  box-shadow: var(--shadow-sm);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease,
    border-color 0.3s ease;
}
.export-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(var(--primary-rgb), 0.3);
}
.export-card h3 {
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text);
}
.export-card p {
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--muted);
}
@media (max-width: 1200px) {
  .exports-grid {
    flex-direction: column;
  }
}
/* ─── CTA final: cartel de barrio ───────────────────────────────
   Un flyer de papel pegado con celo sobre una banda de tinta
   full-bleed, con pestañas arrancables como los anuncios del
   portal. Apuntarse = arrancar tu pestaña. Las pestañas laterales
   ya arrancadas sugieren que el tablón tiene vida.
   ──────────────────────────────────────────────────────────────── */
.cta-section {
  padding: 120px 0 0;
}
/* Banda de tinta: cancela el padding lateral de <main> */
.cta-tablon {
  margin-inline: calc(-1 * clamp(24px, 8vw, 120px));
  padding: clamp(72px, 9vw, 110px) clamp(24px, 8vw, 120px)
    clamp(88px, 10vw, 130px);
  background:
    radial-gradient(700px circle at 12% -10%, rgba(198, 107, 76, 0.16), transparent 60%),
    radial-gradient(700px circle at 88% 110%, rgba(217, 164, 65, 0.12), transparent 60%),
    var(--text);
  overflow: clip;
}
/* drop-shadow (no box-shadow): la sombra sigue el borde rasgado
   de las pestañas arrancadas */
.cta-flyer {
  max-width: 620px;
  margin: 0 auto;
  position: relative;
  transform: rotate(-0.8deg);
  filter: drop-shadow(0 24px 36px rgba(10, 10, 8, 0.45));
}
.cta-paper {
  background: linear-gradient(180deg, #fffef8 0%, #faf5e8 100%);
  padding: clamp(40px, 6vw, 56px) clamp(24px, 5vw, 52px) clamp(20px, 3vw, 26px);
  text-align: center;
  border-radius: 3px 3px 0 0;
  position: relative;
}
/* Celo translúcido en las esquinas superiores */
.cta-tape {
  position: absolute;
  width: 92px;
  height: 27px;
  top: -13px;
  background: linear-gradient(
    100deg,
    rgba(255, 254, 248, 0.34),
    rgba(255, 254, 248, 0.52) 45%,
    rgba(255, 254, 248, 0.36)
  );
  pointer-events: none;
}
.cta-tape--l {
  left: 7%;
  transform: rotate(-5deg);
}
.cta-tape--r {
  right: 7%;
  transform: rotate(4deg);
}
/* Sello de tampón, girado como si lo estamparan a mano */
.cta-stamp {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 74px;
  height: 74px;
  display: grid;
  place-items: center;
  border: 1.5px solid rgba(198, 107, 76, 0.5);
  border-radius: 50%;
  transform: rotate(10deg);
  font-family: var(--font-mono);
  font-size: 0.5rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  line-height: 1.5;
  color: rgba(169, 80, 47, 0.75);
  pointer-events: none;
}
/* Línea de clasificado: filetes a ambos lados del kicker */
.cta-kicker {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 24px;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent-2-deep);
}
.cta-kicker::before,
.cta-kicker::after {
  content: "";
  height: 1px;
  flex: 1;
  background: rgba(42, 42, 36, 0.18);
}
.cta-paper h2 {
  font-size: clamp(1.9rem, 3.6vw, 2.5rem);
  font-weight: 540;
  line-height: 1.1;
  letter-spacing: -0.015em;
  color: var(--text);
  margin: 0 0 16px;
}
.cta-paper > p:not(.cta-tear-note) {
  color: var(--muted);
  max-width: 46ch;
  margin: 0 auto;
  line-height: 1.6;
}
.cta-tear-note {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(107, 107, 98, 0.85);
  margin: 30px 0 0;
}
/* ---- Tira de pestañas: perforación + cortes verticales ---- */
.cta-tabs {
  display: grid;
  grid-template-columns: 34px 1fr 1fr 34px;
  border-top: 2px dashed rgba(42, 42, 36, 0.28);
  align-items: start;
}
.cta-tab {
  min-height: 96px;
  padding: 16px 14px 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 7px;
  text-align: center;
  background: linear-gradient(180deg, #fdf9ee 0%, #f5efdd 100%);
  border-left: 2px dashed rgba(42, 42, 36, 0.22);
  transform-origin: top center;
  transition:
    transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1),
    background 0.3s ease;
}
.cta-tab strong {
  font-family: var(--font-display);
  font-size: 1.08rem;
  font-weight: 600;
  line-height: 1.15;
  color: var(--text);
}
.cta-tab span {
  font-family: var(--font-mono);
  font-size: 0.64rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}
/* Pestaña primaria: papel entintado en oliva */
.cta-tab--primary {
  background: linear-gradient(180deg, #edf0e0 0%, #e2e7cf 100%);
}
.cta-tab--primary strong {
  color: var(--accent-deep);
}
.cta-tab--primary span {
  color: var(--accent);
}
@media (hover: hover) {
  .cta-tab:hover {
    transform: rotate(2deg) translateY(4px);
    background: #fffef8;
  }

  .cta-tab--primary:hover {
    transform: rotate(-2.5deg) translateY(4px);
    background: linear-gradient(180deg, #f0f3e4 0%, #eaeeda 100%);
  }
}
.cta-tab:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: -3px;
}
/* Pestañas ya arrancadas: papel corto con borde rasgado */
.cta-stub {
  height: 38px;
  background: linear-gradient(180deg, #fdf9ee, #f1ead4);
  clip-path: polygon(
    0 0,
    100% 0,
    100% 68%,
    78% 100%,
    58% 74%,
    38% 96%,
    18% 72%,
    0 90%
  );
}
.cta-stub--b {
  height: 52px;
  border-left: 2px dashed rgba(42, 42, 36, 0.22);
}
/* ─── Hilo común: la cadena ─────────────────────────────────────
   Eje narrativo central. Nodos numerados unidos por un hilo que se
   dibuja al hacer scroll. El tercer eslabón es aspiracional (no débil).
   ──────────────────────────────────────────────────────────────── */
.section-chain {
  padding: clamp(72px, 10vw, 120px) clamp(24px, 8vw, 120px);
}
.chain-strip {
  max-width: 1040px;
  margin: 0 auto;
  text-align: center;
  padding: clamp(44px, 6vw, 80px) clamp(28px, 6vw, 72px);
  background:
    radial-gradient(
      120% 90% at 50% -10%,
      rgba(85, 107, 59, 0.06),
      transparent 60%
    ),
    var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: clamp(24px, 3vw, 36px);
  box-shadow: var(--shadow-sm);
}
.chain-head {
  max-width: 680px;
  margin: 0 auto clamp(48px, 6vw, 72px);
}
.chain-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.4rem);
  font-weight: 540;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 18px 0 20px;
}
.chain-lede {
  color: var(--muted);
  font-size: clamp(1rem, 1.6vw, 1.12rem);
  line-height: 1.65;
  margin: 0;
}
/* ---- La cadena: nodos + hilo ---- */
.chain-links {
  list-style: none;
  margin: 0 0 clamp(36px, 5vw, 48px);
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(20px, 3vw, 36px);
  text-align: center;
  position: relative;
}
/* Hilo horizontal que une los dos nodos */
.chain-links::before {
  content: "";
  position: absolute;
  top: 28px;
  left: 25%;
  right: 25%;
  height: 2px;
  background: linear-gradient(
    90deg,
    var(--accent) 0%,
    var(--accent) 50%,
    var(--accent-2) 100%
  );
  opacity: 0.28;
  transform-origin: left center;
  z-index: 0;
}
.chain-link {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}
/* Nodo numerado: protagonista visual */
.chain-node {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--accent);
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 0.95rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  box-shadow: 0 0 0 6px var(--bg-alt);
  transition:
    transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1),
    box-shadow 0.4s ease;
}
.chain-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 30ch;
}
.chain-link strong {
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 1.8vw, 1.3rem);
  font-weight: 560;
  line-height: 1.2;
  color: var(--text);
}
.chain-body span {
  font-size: 0.96rem;
  line-height: 1.55;
  color: var(--muted);
}
@media (hover: hover) {
  .chain-link:hover .chain-node {
    transform: translateY(-3px);
    box-shadow:
      0 0 0 6px var(--bg-alt),
      var(--shadow-md);
  }
}
/* ---- Scroll-driven: dibujar el hilo + aparecer nodos ---- */
@supports (animation-timeline: view()) {
  .chain-links {
    view-timeline-name: --chain;
    view-timeline-axis: block;
  }

  .chain-links::before {
    animation: chain-draw linear both;
    animation-timeline: --chain;
    animation-range: entry 20% cover 45%;
  }

  @keyframes chain-draw {
    from {
      transform: scaleX(0);
    }
    to {
      transform: scaleX(1);
    }
  }

  /* Más específico que .reveal (animations.css) para conservar el stagger nativo */
  .chain-links .chain-link {
    animation: chain-node-in linear both;
    animation-timeline: --chain;
    animation-range: entry 15% cover 40%;
    animation-delay: calc(var(--link-i, 0) * 80ms);
  }

  @keyframes chain-node-in {
    from {
      opacity: 0;
      transform: translateY(14px);
    }
    to {
      opacity: 1;
      transform: none;
    }
  }
}
/* ---- Mobile: cadena vertical, hilo por la izquierda ---- */
@media (max-width: 768px) {
  .section-chain {
    padding: 56px 16px;
  }

  .chain-strip {
    padding: 40px 24px 44px;
    border-radius: 24px;
  }

  .chain-head {
    margin-bottom: 40px;
  }

  .chain-links {
    grid-template-columns: 1fr;
    gap: 0;
    text-align: left;
    max-width: 420px;
    margin-inline: auto;
  }

  .chain-links::before {
    top: 28px;
    bottom: 28px;
    left: 27px;
    right: auto;
    width: 2px;
    height: auto;
    transform-origin: top center;
    background: linear-gradient(
      180deg,
      var(--accent) 0%,
      var(--accent) 50%,
      var(--accent-2) 100%
    );
  }

  .chain-link {
    flex-direction: row;
    align-items: flex-start;
    gap: 20px;
    padding-bottom: 32px;
  }

  .chain-link:last-child {
    padding-bottom: 0;
  }

  .chain-node {
    flex-shrink: 0;
    width: 52px;
    height: 52px;
  }

  .chain-body {
    text-align: left;
    align-items: flex-start;
    padding-top: 6px;
  }

  .chain-strip > .btn {
    width: 100%;
    max-width: 100%;
    padding-inline: 18px;
    white-space: normal;
  }

  @supports (animation-timeline: view()) {
    .chain-links::before {
      animation-name: chain-draw-v;
    }
    @keyframes chain-draw-v {
      from {
        transform: scaleY(0);
      }
      to {
        transform: scaleY(1);
      }
    }
  }
}
@media (prefers-reduced-motion: reduce) {
  .chain-links::before,
  .chain-link {
    animation: none;
    opacity: 1;
    transform: none;
  }
}
/* ---- Mobile: pestañas apiladas, sin stubs laterales ---- */
@media (max-width: 768px) {
  .cta-section {
    padding: 48px 0 0;
  }

  .cta-tablon {
    padding-top: 56px;
    padding-bottom: 72px;
  }

  .cta-flyer {
    transform: rotate(-0.5deg);
  }

  .cta-paper {
    padding: 32px 20px 18px;
  }

  .cta-paper h2 {
    font-size: 1.7rem;
    line-height: 1.15;
  }

  .cta-paper > p {
    font-size: 0.95rem;
  }

  .cta-tear-note {
    margin-top: 24px;
  }

  .cta-stamp {
    display: none;
  }

  .cta-tape {
    width: 72px;
  }

  .cta-tabs {
    grid-template-columns: 1fr;
  }

  .cta-stub {
    display: none;
  }

  .cta-tab {
    border-left: none;
    min-height: 84px;
  }

  .cta-tab + .cta-tab {
    border-top: 2px dashed rgba(42, 42, 36, 0.22);
  }
}
@media (prefers-reduced-motion: reduce) {
  .cta-tab,
  .cta-tab:hover,
  .cta-tab--primary:hover {
    transition: none;
    transform: none;
  }
}
/* ============================================================
   PARA TIENDAS · el mismo pedido, al otro lado del mostrador
   Lenguaje: hoja de encargo, anotación, cierre de caja.
   Sin cards de producto ni patrones de pricing SaaS.
   ============================================================ */
.store-kicker {
  margin: 0 0 18px;
  color: var(--accent-2-deep);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 650;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
/* ---------- El recorrido de un pedido ---------- */
.store-operativa {
  padding-top: clamp(84px, 10vw, 140px);
}
.store-section-head {
  width: min(100%, 1160px);
  margin: 0 auto clamp(72px, 9vw, 116px);
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.65fr);
  column-gap: clamp(48px, 8vw, 120px);
  align-items: end;
}
.store-section-head .store-kicker {
  grid-column: 1 / -1;
}
.store-section-head h2 {
  margin: 0;
  font-size: clamp(2.6rem, 5.8vw, 5.2rem);
  font-weight: 520;
  line-height: 0.98;
  letter-spacing: -0.035em;
}
.store-section-head > p:last-child {
  margin: 0 0 0.35rem;
  color: var(--muted);
  font-size: clamp(1rem, 1.4vw, 1.12rem);
  line-height: 1.65;
}
.order-story {
  width: min(100%, 1160px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 390px);
  gap: clamp(56px, 8vw, 112px);
  align-items: start;
}
.order-journey {
  list-style: none;
  margin: 0;
  padding: 0;
}
.order-stage {
  position: relative;
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) 88px;
  gap: clamp(20px, 3vw, 34px);
  align-items: start;
  min-height: clamp(250px, 34vh, 330px);
  padding: clamp(38px, 6vh, 64px) 0;
  border-top: 1px solid rgba(42, 42, 36, 0.2);
}
.order-stage:last-child {
  border-bottom: 1px solid rgba(42, 42, 36, 0.2);
}
.order-stage__number {
  padding-top: 4px;
  color: var(--accent-2);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
}
.order-stage__moment {
  display: block;
  margin-bottom: 12px;
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 650;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.order-stage h3 {
  margin: 0 0 14px;
  font-size: clamp(1.65rem, 3vw, 2.35rem);
  font-weight: 540;
  line-height: 1.08;
  letter-spacing: -0.02em;
}
.order-stage p {
  max-width: 52ch;
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.68;
}
.order-stage__status {
  align-self: center;
  justify-self: end;
  padding: 7px 8px 6px;
  border: 2px solid currentColor;
  border-radius: 4px;
  color: var(--accent-2);
  font-family: var(--font-mono);
  font-size: 0.54rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  opacity: 0.72;
  text-transform: uppercase;
  transform: rotate(-5deg);
}
.order-stage:nth-child(2) .order-stage__status {
  color: var(--accent);
  transform: rotate(3deg);
}
.order-stage:nth-child(3) .order-stage__status {
  color: var(--accent-deep);
  transform: rotate(-2deg);
}
.order-sheet {
  position: sticky;
  top: clamp(90px, 15vh, 150px);
  padding: 52px 34px 30px;
  overflow: hidden;
  border: 1px solid rgba(42, 42, 36, 0.15);
  border-radius: 4px 4px 12px 12px;
  background:
    linear-gradient(rgba(42, 42, 36, 0.026) 1px, transparent 1px) 0 0 / 100%
      25px,
    #fffdf7;
  box-shadow: 0 24px 54px rgba(56, 51, 39, 0.13);
  transform: rotate(0.65deg);
}
.order-sheet::after,
.closing-ticket::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 8px;
  background: linear-gradient(135deg, transparent 5px, #d9d3c4 0) 0 0 / 10px
    10px repeat-x;
  opacity: 0.42;
}
.order-sheet__clip {
  position: absolute;
  top: -9px;
  left: 50%;
  width: 94px;
  height: 28px;
  border: 2px solid rgba(42, 42, 36, 0.24);
  border-bottom: 0;
  border-radius: 48px 48px 0 0;
  transform: translateX(-50%);
}
.order-sheet header,
.closing-ticket header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 18px;
  border-bottom: 2px solid var(--text);
  font-family: var(--font-mono);
  text-transform: uppercase;
}
.order-sheet header span,
.closing-ticket header span {
  color: var(--accent-2);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.13em;
}
.order-sheet header strong,
.closing-ticket header strong {
  font-size: 0.64rem;
  letter-spacing: 0.1em;
}
.order-sheet__meta {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 5px 18px;
  padding: 18px 0;
  border-bottom: 1px dashed rgba(42, 42, 36, 0.3);
  font-family: var(--font-mono);
  font-size: 0.6rem;
}
.order-sheet__meta span {
  color: var(--muted);
  text-transform: uppercase;
}
.order-sheet__meta strong {
  font-weight: 650;
}
.order-sheet ul {
  list-style: none;
  margin: 16px 0 22px;
  padding: 0;
}
.order-sheet li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 7px 0;
  border-bottom: 1px dotted rgba(42, 42, 36, 0.23);
  font-family: var(--font-mono);
  font-size: 0.64rem;
}
.order-sheet li strong {
  color: var(--accent);
  font-weight: 650;
}
.order-sheet__route {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.45rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.order-sheet__route i {
  height: 1px;
  flex: 1;
  background: rgba(85, 107, 59, 0.28);
}
.order-sheet__stamp {
  display: grid;
  width: 70px;
  height: 70px;
  margin: 26px 0 6px auto;
  place-items: center;
  border: 2px solid currentColor;
  border-radius: 50%;
  color: var(--accent-2);
  font-family: var(--font-mono);
  font-size: 0.58rem;
  font-weight: 800;
  line-height: 1.1;
  opacity: 0.85;
  text-align: center;
  transform: rotate(-12deg);
}
.order-sheet footer {
  padding-top: 13px;
  border-top: 1px dashed rgba(42, 42, 36, 0.24);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.48rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.store-types {
  width: min(100%, 1160px);
  margin: clamp(90px, 12vw, 150px) auto 0;
  padding: 32px 0 28px;
  border-block: 1px solid rgba(42, 42, 36, 0.2);
}
.store-types p {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 0.9rem;
}
.store-types ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 0;
}
.store-types li {
  display: flex;
  align-items: center;
  color: var(--text);
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2.3vw, 2rem);
  font-style: italic;
  font-variation-settings:
    "SOFT" 45,
    "opsz" 144;
}
.store-types li:not(:last-child)::after {
  content: "·";
  margin: 0 clamp(12px, 2vw, 26px);
  color: var(--accent-2);
  font-style: normal;
}
/* ---------- El personal también cocina: composición abierta ---------- */
.store-community {
  position: relative;
  width: min(100%, 1180px);
  margin: 0 auto;
  padding-top: clamp(100px, 13vw, 180px);
  padding-bottom: clamp(100px, 13vw, 180px);
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
  gap: clamp(64px, 9vw, 130px);
  align-items: center;
  background: none;
  border: 0;
  border-radius: 0;
}
.store-community__visual {
  position: relative;
  min-width: 0;
}
.store-photo-slot {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;
  margin: 0;
  overflow: hidden;
  background: none;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}
.store-team-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.staff-note {
  position: absolute;
  right: clamp(-26px, -2vw, -10px);
  bottom: clamp(24px, 5vw, 70px);
  width: min(280px, 65%);
  padding: 24px 25px 22px;
  background: #fffaf0;
  box-shadow: 0 18px 38px rgba(56, 51, 39, 0.14);
  transform: rotate(-2.2deg);
}
.staff-note::before {
  content: "";
  position: absolute;
  top: -12px;
  left: 50%;
  width: 82px;
  height: 24px;
  background: rgba(211, 196, 161, 0.52);
  transform: translateX(-50%) rotate(1deg);
}
.staff-note span,
.staff-note small {
  display: block;
  font-family: var(--font-mono);
  text-transform: uppercase;
}
.staff-note span {
  margin-bottom: 10px;
  color: var(--accent-2);
  font-size: 0.55rem;
  font-weight: 700;
  letter-spacing: 0.14em;
}
.staff-note strong {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  font-style: italic;
  font-weight: 520;
  line-height: 1.3;
}
.staff-note small {
  margin-top: 14px;
  color: var(--muted);
  font-size: 0.48rem;
  letter-spacing: 0.08em;
}
.store-community__copy h2 {
  margin: 0 0 28px;
  font-size: clamp(2.8rem, 5.5vw, 5rem);
  font-weight: 520;
  line-height: 0.98;
  letter-spacing: -0.035em;
}
.store-community__copy > p:not(.store-kicker) {
  margin: 0 0 20px;
  color: var(--muted);
  font-size: 1.06rem;
  line-height: 1.72;
}
.store-community__copy .store-community__lead {
  color: var(--text);
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2.1vw, 1.65rem);
  font-weight: 480;
  line-height: 1.45;
}
.store-community__principle {
  margin-top: 36px !important;
  padding: 22px 0;
  border-block: 1px solid rgba(198, 107, 76, 0.35);
  color: var(--text) !important;
  font-family: var(--font-display);
  font-size: 1.18rem !important;
  font-style: italic;
}
/* ---------- Modelo económico: un cierre de caja ---------- */
.store-model {
  margin-inline: calc(-1 * clamp(24px, 8vw, 120px));
  padding: clamp(88px, 11vw, 150px) clamp(24px, 8vw, 120px);
  overflow: hidden;
  background:
    radial-gradient(
      100% 100% at 18% 0%,
      rgba(143, 161, 106, 0.17),
      transparent 58%
    ),
    #242e19;
}
.store-model__inner {
  width: min(100%, 1100px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 430px);
  gap: clamp(70px, 10vw, 150px);
  align-items: center;
}
.store-model .store-kicker {
  color: #c9d3ae;
}
.store-model__copy h2 {
  margin: 0 0 28px;
  color: #f6f2e7;
  font-size: clamp(2.8rem, 5.8vw, 5.4rem);
  font-weight: 500;
  line-height: 0.98;
  letter-spacing: -0.04em;
}
.store-model__copy h2 em {
  color: #d7a18b;
  font-weight: inherit;
}
.store-model__copy > p:last-child {
  max-width: 46ch;
  margin: 0;
  color: rgba(246, 242, 231, 0.72);
  font-size: 1.05rem;
  line-height: 1.7;
}
.closing-ticket {
  position: relative;
  padding: 42px 32px 34px;
  background:
    linear-gradient(rgba(42, 42, 36, 0.026) 1px, transparent 1px) 0 0 / 100%
      24px,
    #fffdf7;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.3);
  color: var(--text);
  transform: rotate(-1deg);
}
.closing-ticket header {
  margin-bottom: 22px;
}
.closing-ticket__row {
  display: grid;
  grid-template-columns: 1fr minmax(120px, auto);
  gap: 18px;
  padding: 16px 0;
  border-bottom: 1px dotted rgba(42, 42, 36, 0.28);
  font-family: var(--font-mono);
  font-size: 0.64rem;
}
.closing-ticket__row span {
  color: var(--muted);
}
.closing-ticket__row strong {
  color: var(--accent);
  font-weight: 700;
  text-align: right;
}
.closing-ticket__total {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-top: 26px;
  padding: 17px 0;
  border-block: 2px solid var(--text);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  text-transform: uppercase;
}
.closing-ticket__total strong {
  color: var(--accent-2);
}
.closing-ticket footer {
  margin-top: 24px;
  color: var(--muted);
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-style: italic;
  text-align: center;
}
/* ---------- Balance semanal: lista, no dashboard ---------- */
.store-week {
  width: min(100%, 1120px);
  margin: 0 auto;
  padding-top: clamp(100px, 13vw, 170px);
  padding-bottom: clamp(80px, 11vw, 140px);
}
.store-week__head {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.55fr);
  column-gap: clamp(50px, 9vw, 130px);
  align-items: end;
  margin-bottom: clamp(70px, 9vw, 110px);
}
.store-week__head .store-kicker {
  grid-column: 1 / -1;
}
.store-week__head h2 {
  margin: 0;
  font-size: clamp(2.7rem, 5.5vw, 5rem);
  font-weight: 520;
  line-height: 0.98;
  letter-spacing: -0.035em;
}
.store-week__head > p:last-child {
  margin: 0 0 0.4rem;
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.65;
}
.week-ledger {
  list-style: none;
  margin: 0;
  padding: 0;
  border-bottom: 1px solid rgba(42, 42, 36, 0.22);
}
.week-ledger__row {
  display: grid;
  grid-template-columns: 54px 120px minmax(180px, 0.65fr) minmax(260px, 1fr);
  gap: clamp(18px, 3vw, 40px);
  align-items: baseline;
  padding: 29px 0;
  border-top: 1px solid rgba(42, 42, 36, 0.22);
}
.week-ledger__index,
.week-ledger__tag {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}
.week-ledger__index {
  color: var(--accent-2);
  font-weight: 700;
}
.week-ledger__tag {
  color: var(--accent);
}
.week-ledger__row strong {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2vw, 1.5rem);
  font-weight: 560;
  line-height: 1.25;
}
.week-ledger__row p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.58;
}
.store-week__foot {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(12px, 2vw, 28px);
  margin-top: clamp(56px, 8vw, 90px);
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}
.store-week__foot i {
  color: var(--accent-2);
  font-style: normal;
}
/* ---------- Motion: solo sellos y lectura del documento ---------- */
@supports (animation-timeline: view()) {
  .order-stage {
    animation: store-stage-focus linear both;
    animation-timeline: view();
    animation-range: entry 12% cover 42%;
  }

  .order-stage__status {
    animation: store-stamp-in linear both;
    animation-timeline: view();
    animation-range: entry 22% cover 45%;
  }

  @keyframes store-stage-focus {
    from {
      opacity: 0.32;
    }
    to {
      opacity: 1;
    }
  }

  @keyframes store-stamp-in {
    from {
      opacity: 0;
      scale: 1.35;
    }
    to {
      opacity: 0.72;
      scale: 1;
    }
  }
}
@media (max-width: 980px) {
  .store-section-head,
  .store-week__head {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .order-story {
    display: flex;
    flex-direction: column;
  }

  .order-sheet {
    position: relative;
    top: auto;
    order: -1;
    width: min(100%, 430px);
    margin: 0 auto 28px;
  }

  .store-community {
    grid-template-columns: 1fr;
    gap: 70px;
  }

  .store-community__visual {
    width: min(100%, 680px);
  }

  .store-community__copy {
    max-width: 650px;
  }

  .store-model__inner {
    grid-template-columns: 1fr;
    gap: 64px;
  }

  .closing-ticket {
    width: min(100%, 470px);
    margin-inline: auto;
  }

  .week-ledger__row {
    grid-template-columns: 44px 110px 1fr;
  }

  .week-ledger__row p {
    grid-column: 3;
  }
}
@media (max-width: 640px) {
  .store-section-head,
  .store-week__head {
    margin-bottom: 56px;
  }

  .store-section-head h2,
  .store-community__copy h2,
  .store-model__copy h2,
  .store-week__head h2 {
    font-size: clamp(2.35rem, 12vw, 3.45rem);
  }

  .order-stage {
    grid-template-columns: 36px 1fr;
    gap: 14px;
    min-height: 0;
    padding: 42px 0;
  }

  .order-stage__status {
    grid-column: 2;
    justify-self: start;
    margin-top: 6px;
  }

  .order-sheet {
    padding: 46px 24px 26px;
  }

  .store-types {
    margin-top: 72px;
  }

  .store-types li {
    font-size: 1.25rem;
  }

  .store-community {
    gap: 48px;
  }

  .staff-note {
    right: -8px;
    bottom: 20px;
    width: min(245px, 76%);
    padding: 21px;
  }

  .closing-ticket {
    padding: 36px 23px 30px;
  }

  .closing-ticket__row {
    grid-template-columns: 1fr;
    gap: 5px;
  }

  .closing-ticket__row strong {
    text-align: left;
  }

  .week-ledger__row {
    grid-template-columns: 34px 1fr;
    gap: 8px 16px;
    padding: 26px 0;
  }

  .week-ledger__tag,
  .week-ledger__row strong,
  .week-ledger__row p {
    grid-column: 2;
  }

  .store-week__foot {
    flex-wrap: wrap;
    gap: 8px 12px;
    font-size: 0.56rem;
    text-align: center;
  }
}
@media (prefers-reduced-motion: reduce) {
  .order-stage,
  .order-stage__status {
    animation: none;
    opacity: 1;
    scale: 1;
  }
}
/* ─── Placeholder editorial reutilizable ───────────────────── */
.img-placeholder {
  width: 100%;
  height: 100%;
  min-height: 200px;
  border-radius: 20px;
  background: linear-gradient(
    135deg,
    rgba(85, 107, 59, 0.08),
    rgba(198, 107, 76, 0.06)
  );
  border: 1px solid rgba(85, 107, 59, 0.16);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  box-shadow: var(--shadow-sm);
}
.img-placeholder::after {
  content: "";
  position: absolute;
  inset: 12px;
  border: 1px dashed rgba(85, 107, 59, 0.25);
  border-radius: 16px;
  pointer-events: none;
}
.img-placeholder span {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 24px 32px;
  text-align: center;
  line-height: 1.5;
  position: relative;
  z-index: 1;
}
.img-placeholder.ratio-16x9 {
  aspect-ratio: 16 / 9;
  min-height: 0;
}
.img-placeholder.ratio-4x5 {
  aspect-ratio: 4 / 5;
  min-height: 0;
}
.img-placeholder.hero {
  min-height: 380px;
  border-radius: 24px;
  box-shadow: var(--shadow-lg);
}
.img-placeholder.fill {
  border-radius: 0;
  box-shadow: none;
}
.img-placeholder.fill::after {
  inset: 16px;
  border-radius: 12px;
}
/* ─── Marquee de barrios ─────────────────────────────────────── */
.marquee-barrios {
  background: linear-gradient(
    90deg,
    rgba(85, 107, 59, 0.06),
    rgba(198, 107, 76, 0.06)
  );
  border-block: 1px solid var(--border);
  padding: 20px 0;
  overflow: hidden;
  position: relative;
}
.marquee-barrios::before,
.marquee-barrios::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 120px;
  z-index: 2;
  pointer-events: none;
}
.marquee-barrios::before {
  left: 0;
  background: linear-gradient(90deg, var(--bg), transparent);
}
.marquee-barrios::after {
  right: 0;
  background: linear-gradient(270deg, var(--bg), transparent);
}
.marquee-label {
  display: inline-block;
  margin-right: 32px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  vertical-align: middle;
}
.marquee-track {
  display: flex;
  gap: 0;
  width: max-content;
  animation: marquee-scroll 40s linear infinite;
  will-change: transform;
}
.marquee-barrios:hover .marquee-track {
  animation-play-state: paused;
}
.marquee-group {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  padding-right: 48px;
}
.marquee-item {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.2vw, 1.8rem);
  font-weight: 500;
  font-style: italic;
  color: var(--text);
  font-variation-settings:
    "SOFT" 50,
    "opsz" 144;
  padding: 0 32px;
  white-space: nowrap;
}
.marquee-item + .marquee-item {
  border-left: 1px solid rgba(42, 42, 36, 0.18);
}
.marquee-item.accent {
  color: var(--accent-2);
}
@keyframes marquee-scroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}
@media (prefers-reduced-motion: reduce) {
  .marquee-track {
    animation: none;
  }
}
/* ─── Voces del piloto ──────────────────────────────────────── */
.voices-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}
.voice-card {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: relative;
  transition:
    border-color 0.3s ease,
    transform 0.3s ease;
}
.voice-card::before {
  content: "“";
  position: absolute;
  top: 12px;
  right: 24px;
  font-family: var(--font-display);
  font-size: 4.5rem;
  line-height: 1;
  color: var(--accent);
  opacity: 0.2;
  font-variation-settings:
    "SOFT" 100,
    "opsz" 144;
}
.voice-card:hover {
  border-color: rgba(85, 107, 59, 0.3);
  transform: translateY(-2px);
}
.voice-card.wide {
  grid-column: span 2;
}
.voice-quote {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.2rem;
  line-height: 1.45;
  color: var(--text);
  margin: 0;
  font-variation-settings:
    "SOFT" 40,
    "opsz" 144;
}
.voice-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}
.voice-role {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
}
.voice-name {
  font-size: 0.95rem;
  color: var(--muted);
  font-weight: 500;
}
.voices-note {
  text-align: center;
  margin-top: 32px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
/* ─── Detrás del mostrador ──────────────────────────────────── */
.team-block {
  width: min(100%, 1140px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(360px, 0.92fr);
  gap: clamp(76px, 10vw, 140px);
  align-items: center;
  padding: clamp(72px, 9vw, 120px) 0;
}
.team-artifacts {
  position: relative;
  min-width: 0;
  padding: 34px 12px 28px;
  isolation: isolate;
}
.team-artifacts__collage {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
  filter: drop-shadow(0 22px 24px rgba(56, 51, 39, 0.08));
  transform: rotate(0.5deg);
}
.team-process-note {
  position: absolute;
  z-index: 3;
  padding: 19px 20px 17px;
  background: #fffaf0;
  box-shadow: 0 16px 34px rgba(56, 51, 39, 0.16);
  color: var(--text);
}
.team-process-note::before {
  content: "";
  position: absolute;
  top: -10px;
  left: 50%;
  width: 70px;
  height: 20px;
  background: rgba(211, 196, 161, 0.54);
  transform: translateX(-50%) rotate(1deg);
}
.team-process-note--list {
  top: 26px;
  left: -10px;
  width: 205px;
  transform: rotate(-4deg);
}
.team-process-note--code {
  right: -20px;
  bottom: 28px;
  width: 220px;
  transform: rotate(3deg);
}
.team-process-note span,
.team-process-note i,
.team-process-note code {
  display: block;
  font-family: var(--font-mono);
}
.team-process-note span {
  margin-bottom: 8px;
  color: var(--accent-2);
  font-size: 0.52rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}
.team-process-note strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.12rem;
  font-weight: 560;
}
.team-process-note i {
  margin-top: 9px;
  color: var(--muted);
  font-size: 0.56rem;
  font-style: normal;
}
.team-process-note code {
  color: var(--accent-deep);
  font-size: 0.62rem;
  line-height: 1.5;
}
.team-copy h2 {
  font-size: clamp(2rem, 3.8vw, 2.8rem);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.015em;
  margin: 16px 0 24px;
}
.team-copy p {
  font-size: 1.15rem;
  line-height: 1.7;
  color: var(--text);
  margin-bottom: 16px;
}
.team-signature {
  margin-top: 32px;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.1rem;
  color: var(--muted);
  font-variation-settings:
    "SOFT" 50,
    "opsz" 144;
}
.team-signature strong {
  color: var(--accent);
  font-weight: 500;
}
@media (max-width: 1024px) {
  .voices-grid {
    grid-template-columns: 1fr;
  }

  .voice-card.wide {
    grid-column: span 1;
  }

  .team-block {
    grid-template-columns: 1fr;
    gap: 54px;
  }

  .team-artifacts {
    width: min(100%, 680px);
    margin-inline: auto;
  }

  .marquee-item {
    font-size: 1.3rem;
    padding: 0 24px;
  }
}
@media (max-width: 768px) {
  #equipo {
    padding-bottom: 16px;
  }

  .team-block {
    gap: 28px;
    padding-bottom: 0;
  }

  .team-artifacts {
    padding: 28px 0 22px;
  }

  .team-process-note--list {
    left: -6px;
    width: 172px;
  }

  .team-process-note--code {
    right: -8px;
    width: 184px;
  }

  .team-signature {
    margin-top: 24px;
    margin-bottom: 0;
  }
}
/* ─── Sección impacto: consecuencias, no dashboard ─────────── */
.section-impact {
  padding: clamp(88px, 11vw, 150px) clamp(24px, 8vw, 120px);
}
.impact-block {
  max-width: 1120px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(300px, 0.82fr) minmax(420px, 1.18fr);
  gap: clamp(64px, 9vw, 130px);
  align-items: start;
}
.impact-kicker {
  margin: 0 0 18px !important;
  color: var(--accent-2);
  font-family: var(--font-mono);
  font-size: 0.68rem !important;
  font-weight: 650;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.impact-copy h2 {
  margin: 0 0 26px;
  font-size: clamp(2.75rem, 5vw, 4.7rem);
  font-weight: 520;
  line-height: 0.98;
  letter-spacing: -0.035em;
}
.impact-copy p {
  max-width: 38ch;
  margin: 0;
  color: var(--muted);
  font-size: 1.06rem;
  line-height: 1.7;
}
.impact-consequences {
  list-style: none;
  margin: 0;
  padding: 0;
  border-bottom: 1px solid rgba(42, 42, 36, 0.22);
}
.impact-consequence {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: clamp(18px, 3vw, 34px);
  align-items: baseline;
  padding: clamp(26px, 3.5vw, 38px) 0;
  border-top: 1px solid rgba(42, 42, 36, 0.22);
}
.impact-consequence__number {
  color: var(--accent-2);
  font-family: var(--font-mono);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.12em;
}
.impact-consequence strong {
  display: block;
  color: var(--text);
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 2.5vw, 2rem);
  font-weight: 540;
  line-height: 1.15;
  letter-spacing: -0.015em;
}
.impact-consequence p {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 0.93rem;
  line-height: 1.55;
}
/* ─── Sección modelo (confianza) ────────────────────────────── */
.section-model {
  padding: clamp(48px, 6vw, 80px) clamp(24px, 8vw, 120px);
}
.model-box {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
  padding: clamp(40px, 5vw, 64px);
  background: linear-gradient(
    135deg,
    rgba(85, 107, 59, 0.08),
    rgba(198, 107, 76, 0.06)
  );
  border: 1px solid rgba(85, 107, 59, 0.16);
  border-radius: 28px;
}
.model-box h2 {
  font-size: clamp(1.8rem, 3.2vw, 2.4rem);
  font-weight: 500;
  letter-spacing: -0.015em;
  margin: 16px 0 16px;
}
.model-box p {
  font-size: 1.15rem;
  line-height: 1.65;
  color: var(--text);
  margin: 0 auto 28px;
  max-width: 560px;
}
.model-points {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}
.model-point {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-deep);
  background: var(--bg-alt);
  border: 1px solid rgba(85, 107, 59, 0.25);
  border-radius: 999px;
  padding: 8px 16px;
}
/* ─── Pillars: variante 2 columnas ──────────────────────────── */
.pillars-grid--2 {
  grid-template-columns: repeat(2, 1fr);
}
@media (max-width: 1024px) {
  .impact-block {
    grid-template-columns: 1fr;
    gap: 54px;
  }

  .pillars-grid--2 {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 560px) {
  .section-impact {
    padding-inline: 0;
  }

  .impact-consequence {
    grid-template-columns: 36px minmax(0, 1fr);
    gap: 14px;
  }
}
.cookie-consent {
  position: fixed;
  inset: auto 0 0 0;
  z-index: 1000;
  display: flex;
  justify-content: center;
  padding: 16px;
  pointer-events: none;
}
.cookie-consent[hidden] {
  display: none;
}
.cookie-consent-banner,
.cookie-consent-prefs {
  pointer-events: auto;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 20px;
  box-shadow: var(--shadow-lg);
  padding: 20px 24px;
  width: 100%;
  max-width: 720px;
}
.cookie-consent-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 24px;
}
.cookie-consent-text {
  flex: 1 1 320px;
  margin: 0;
  color: var(--text);
  font-size: 0.95rem;
  line-height: 1.5;
}
.cookie-consent-text a {
  color: var(--accent-deep);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.cookie-consent-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  flex: 0 0 auto;
}
.btn.sm {
  padding: 10px 20px;
  font-size: 0.9rem;
}
.cookie-consent-prefs[hidden] {
  display: none;
}
.cookie-consent-prefs h2 {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--text);
}
.cookie-consent-prefs-intro {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.5;
}
.cookie-consent-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  border-top: 1px solid var(--border);
}
.cookie-consent-row-label {
  margin: 0;
  font-weight: 600;
  color: var(--text);
}
.cookie-consent-row-desc {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1.4;
}
.cookie-consent-row input[type='checkbox'] {
  margin-top: 4px;
  width: 18px;
  height: 18px;
  accent-color: var(--accent);
  flex: 0 0 auto;
}
.cookie-consent-prefs-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 16px;
}
@media (max-width: 560px) {
  .cookie-consent-banner {
    flex-direction: column;
    align-items: stretch;
  }

  .cookie-consent-actions {
    justify-content: stretch;
  }

  .cookie-consent-actions .btn {
    flex: 1 1 auto;
  }
}
/* Utility Layer */
:root {
  --reveal-distance: clamp(22px, 3vw, 46px);
  --reveal-duration: 820ms;
  --reveal-ease: cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal,
.reveal-left,
.reveal-right {
  --reveal-x: 0px;
  --reveal-y: var(--reveal-distance);
  --reveal-delay: 0ms;
  --reveal-scale: 0.97;
  opacity: 0;
  transform: translate3d(var(--reveal-x), var(--reveal-y), 0)
    scale(var(--reveal-scale));
  transition:
    opacity var(--reveal-duration) var(--reveal-ease) var(--reveal-delay),
    transform var(--reveal-duration) var(--reveal-ease) var(--reveal-delay);
}
.reveal-left {
  --reveal-x: calc(var(--reveal-distance) * -1);
  --reveal-y: 0px;
}
.reveal-right {
  --reveal-x: var(--reveal-distance);
  --reveal-y: 0px;
}
[data-reveal-group] > .reveal,
[data-reveal-group] > .reveal-left,
[data-reveal-group] > .reveal-right {
  --reveal-delay: calc(var(--reveal-index, 0) * 90ms);
}
.reveal.is-animating,
.reveal-left.is-animating,
.reveal-right.is-animating {
  will-change: opacity, transform;
}
.reveal.active,
.reveal-left.active,
.reveal-right.active {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
}
@supports (animation-timeline: view()) {
  .reveal,
  .reveal-left,
  .reveal-right {
    opacity: 1;
    transform: none;
    transition: none;
    animation: section-reveal 1ms linear both;
    animation-timeline: view(block);
    animation-range: entry 12% cover 38%;
  }

  @keyframes section-reveal {
    from {
      opacity: 0;
      transform: translate3d(var(--reveal-x), var(--reveal-y), 0)
        scale(var(--reveal-scale));
    }

    to {
      opacity: 1;
      transform: translate3d(0, 0, 0) scale(1);
    }
  }
}
@media (prefers-reduced-motion: reduce) {
  .reveal,
  .reveal-left,
  .reveal-right {
    opacity: 1;
    transform: none;
    transition: none;
    animation: none;
  }
}
.glass {
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-md);
}
/* ============================================================
   Scroll-driven effects (Tier 1)
   - Word reveal en h1/h2 con [data-split-words]
   - Hero mock cards parallax depth
   - Tour progress sidebar (sticky con fill scroll-driven)
   ============================================================ */
/* ---------- Word reveal ---------- */
[data-split-words] .word {
  display: inline-block;
  white-space: pre;
  opacity: 0.16;
  transform: translateY(0.25em);
  will-change: opacity, transform;
}
@supports (animation-timeline: view()) {
  [data-split-words] .word {
    animation: word-fade-in linear both;
    animation-timeline: view();
    animation-range: entry 5% cover 35%;
    animation-delay: calc(var(--w-i, 0) * 18ms);
  }

  @keyframes word-fade-in {
    to {
      opacity: 1;
      transform: none;
    }
  }
}
/* Fallback: IntersectionObserver añade .words-in */
@supports not (animation-timeline: view()) {
  [data-split-words] .word {
    transition:
      opacity 0.7s cubic-bezier(0.2, 0.8, 0.2, 1)
        calc(var(--w-i, 0) * 50ms),
      transform 0.7s cubic-bezier(0.2, 0.8, 0.2, 1)
        calc(var(--w-i, 0) * 50ms);
  }

  [data-split-words].words-in .word {
    opacity: 1;
    transform: none;
  }
}
/* ---------- Hero parallax depth ---------- */
@supports (animation-timeline: view()) {
  .hero-mock {
    view-timeline-name: --hero-mock;
    view-timeline-axis: block;
  }

  .mock-card {
    animation: parallax-card linear both;
    animation-timeline: --hero-mock;
    animation-range: cover 0% cover 100%;
  }

  .mock-card[data-depth="1"] {
    --shift: -28px;
  }

  .mock-card[data-depth="2"] {
    --shift: -52px;
  }

  .mock-card[data-depth="3"] {
    --shift: -8px;
  }

  .mock-card[data-depth="4"] {
    --shift: -76px;
  }

  @keyframes parallax-card {
    from {
      transform: translateY(calc(var(--shift, 0px) * -1)) var(--rot, );
    }
    to {
      transform: translateY(var(--shift, 0px)) var(--rot, );
    }
  }

  /* Preservar rotaciones individuales */
  .mock-card--basket {
    --rot: rotate(-1.2deg);
  }
  .mock-card--ai {
    --rot: rotate(1.5deg);
  }
  .mock-card--recipe {
    --rot: rotate(2.5deg);
  }
}
/* ---------- Tour progress sidebar ---------- */
/* el sangrado de las capturas feature no debe generar scroll horizontal;
   clip (no hidden) preserva el sticky del rail de progreso */
.tour {
  overflow-x: clip;
}
.tour-layout {
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: start;
  position: relative;
  margin-top: 64px;
  timeline-scope: --tour;
}
.tour-layout .tour-stack {
  margin-top: 0;
}
.tour-progress {
  position: sticky;
  top: 18vh;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 8px 0;
  align-self: start;
}
/* Compact horizontal progress, mobile only (shown in <=1024 block below). */
.tour-progress-mobile {
  display: none;
}
.tour-progress-track {
  position: relative;
  width: 2px;
  background: rgba(85, 107, 59, 0.14);
  border-radius: 2px;
  flex-shrink: 0;
  height: 320px;
  overflow: hidden;
}
.tour-progress-fill {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 0;
  background: var(--accent-gradient);
  border-radius: 2px;
}
@supports (animation-timeline: --tour) {
  .tour-stack {
    view-timeline-name: --tour;
    view-timeline-axis: block;
  }

  .tour-progress-fill {
    animation: tour-fill linear both;
    animation-timeline: --tour;
    animation-range: cover 0% cover 100%;
  }

  @keyframes tour-fill {
    from {
      height: 0%;
    }
    to {
      height: 100%;
    }
  }
}
.tour-progress-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 320px;
}
.tour-progress-steps li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  opacity: 0.4;
  transition:
    opacity 0.4s ease,
    transform 0.4s ease,
    color 0.4s ease;
  white-space: nowrap;
}
.tour-progress-steps li span {
  font-weight: 600;
  color: var(--text);
}
.tour-progress-steps li em {
  font-style: normal;
  font-size: 0.62rem;
  color: var(--muted);
}
.tour-progress-steps li.active {
  opacity: 1;
  transform: translateX(2px);
  color: var(--accent-2);
}
.tour-progress-steps li.active span {
  color: var(--accent-2);
}
.tour-progress-steps li.active em {
  color: var(--text);
}
/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .tour-layout {
    grid-template-columns: 1fr;
  }

  .tour-progress {
    display: none;
  }

  /* Compact step tracker above the carousel. Reflects the slide in view
     (ScrollFX) and each chip jumps to its slide on tap. */
  .tour-progress-mobile {
    display: block;
    margin: 0 0 18px;
    padding: 10px 14px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.82);
    backdrop-filter: blur(10px) saturate(140%);
    -webkit-backdrop-filter: blur(10px) saturate(140%);
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 8px 24px -16px rgba(42, 42, 36, 0.35);
  }

  .tour-progress-mobile-track {
    position: relative;
    height: 3px;
    border-radius: 3px;
    background: rgba(85, 107, 59, 0.16);
    overflow: hidden;
  }

  .tour-progress-mobile-fill {
    position: absolute;
    inset: 0 auto 0 0;
    width: 0%;
    border-radius: 3px;
    background: var(--accent-gradient);
    transition: width 0.45s ease;
  }

  .tour-progress-mobile-steps {
    list-style: none;
    margin: 8px 0 0;
    padding: 0;
    display: flex;
    gap: 6px;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    /* Desvanece los bordes: señala que hay más pasos a los lados. */
    -webkit-mask-image: linear-gradient(
      90deg,
      transparent 0,
      #000 14px,
      #000 calc(100% - 14px),
      transparent 100%
    );
    mask-image: linear-gradient(
      90deg,
      transparent 0,
      #000 14px,
      #000 calc(100% - 14px),
      transparent 100%
    );
  }

  .tour-progress-mobile-steps::-webkit-scrollbar {
    display: none;
  }

  .tour-progress-mobile-steps li {
    display: inline-flex;
    align-items: baseline;
    gap: 5px;
    flex: 0 0 auto;
    font-family: var(--font-mono);
    font-size: 0.6rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted);
    opacity: 0.45;
    cursor: pointer;
    transition:
      opacity 0.4s ease,
      color 0.4s ease;
  }

  .tour-progress-mobile-steps li span {
    font-weight: 600;
    color: var(--text);
  }

  .tour-progress-mobile-steps li.active {
    opacity: 1;
    color: var(--accent-2);
  }

  .tour-progress-mobile-steps li.active span {
    color: var(--accent-2);
  }
}
@media (prefers-reduced-motion: reduce) {
  .tour-progress-mobile-fill {
    transition: none;
  }
}
/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  [data-split-words] .word {
    opacity: 1;
    transform: none;
    animation: none;
    transition: none;
  }

  .mock-card {
    animation: none;
  }

  .tour-progress-fill {
    animation: none;
    height: 100%;
  }
}
/* ============================================================
   Barrio editorial — capa "disruptiva" de la home
   - Fondo que cambia de color por sección (scroll-driven, IO)
   - Grano de papel global
   - Manifiesto tipográfico gigante
   - Tour como collage de mercado (polaroids, celo, sellos)
   - Sección cadena en verde noche (contraste)
   ============================================================ */
/* ---------- Fondo vivo: morph de color por sección ---------- */
body {
  background-color: var(--bg);
  transition: background-color 1.1s cubic-bezier(0.4, 0, 0.2, 1);
}
body[data-bg="base"] {
  background-color: var(--bg);
}
body[data-bg="crema"] {
  background-color: #fbf6e9;
}
body[data-bg="salvia"] {
  background-color: #e7e9d6;
}
body[data-bg="terra"] {
  background-color: #f2e2d0;
}
/* ---------- Grano de papel global ---------- */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 2000;
  pointer-events: none;
  opacity: 0.05;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 140px 140px;
}
/* ---------- Manifiesto tipográfico ---------- */
.manifesto {
  padding: clamp(110px, 15vw, 200px) clamp(24px, 8vw, 120px);
  max-width: 1280px;
  margin: 0 auto;
}
.manifesto-kicker {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent-2);
  margin: 0 0 clamp(20px, 3vw, 36px);
}
.manifesto-lines {
  display: flex;
  flex-direction: column;
  gap: 0.04em;
  margin: 0;
}
.manifesto-line {
  font-family: var(--font-display);
  font-weight: 470;
  font-size: clamp(2.7rem, 8.6vw, 7.6rem);
  line-height: 1.02;
  letter-spacing: -0.03em;
  color: var(--text);
  font-variation-settings: "SOFT" 40, "opsz" 144;
  overflow-wrap: break-word;
}
/* Acentos sin itálica: material de mercado, no tipografía editorial */
.manifesto-line em {
  font-style: normal;
  color: var(--accent-2-deep);
  font-variation-settings: "SOFT" 40, "opsz" 144;
}
/* Palabra descartada: tachón de rotulador */
.mani-tachado {
  position: relative;
}
.mani-tachado::after {
  content: "";
  position: absolute;
  left: -0.06em;
  right: -0.06em;
  top: 50%;
  height: 0.085em;
  background: var(--accent-2);
  border-radius: 999px;
  transform: rotate(-2.4deg);
  pointer-events: none;
}
/* Palabra estampada: sello en el cajón de fruta */
.mani-sello {
  display: inline-block;
  padding: 0 0.16em;
  border: 0.04em solid rgba(198, 107, 76, 0.7);
  border-radius: 0.14em;
  transform: rotate(-1.6deg);
  background: rgba(198, 107, 76, 0.07);
  mix-blend-mode: multiply;
}
/* Se estampa al entrar en viewport (scroll-driven, con fallback sin FX) */
@supports (animation-timeline: view()) {
  .mani-sello {
    animation: mani-stamp linear both;
    animation-timeline: view();
    animation-range: entry 20% cover 42%;
  }

  @keyframes mani-stamp {
    from {
      transform: rotate(-1.6deg) scale(1.35);
      opacity: 0;
    }
    60% {
      opacity: 1;
    }
    to {
      transform: rotate(-1.6deg) scale(1);
      opacity: 1;
    }
  }
}
/* Palabra subrayada: cera gruesa por detrás del trazo */
.mani-subrayado {
  position: relative;
}
.mani-subrayado::after {
  content: "";
  position: absolute;
  left: -0.04em;
  right: -0.04em;
  bottom: 0.03em;
  height: 0.16em;
  background: rgba(198, 107, 76, 0.4);
  border-radius: 999px;
  transform: skewY(-0.7deg);
  z-index: -1;
  pointer-events: none;
}
.manifesto-line--shift {
  margin-left: clamp(2rem, 12vw, 11rem);
}
.manifesto-line--end {
  align-self: flex-end;
  text-align: right;
}
.manifesto-foot {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--muted);
  margin: clamp(24px, 4vw, 44px) 0 0;
}
@media (max-width: 640px) {
  .manifesto-line--shift {
    margin-left: 1.2rem;
  }
}
/* ---------- Tour como collage de mercado ---------- */
.tour--mercado .tour-shot--phone {
  background: #fffef8;
  border: 1px solid rgba(42, 42, 36, 0.1);
  border-radius: 4px;
  padding: 14px 14px 10px;
  box-shadow:
    0 1px 2px rgba(42, 42, 36, 0.07),
    0 30px 52px -24px rgba(42, 42, 36, 0.4);
  transform: rotate(var(--tilt, -1.7deg));
  transition:
    transform 0.55s cubic-bezier(0.2, 0.8, 0.2, 1),
    box-shadow 0.55s ease;
  overflow: visible;
}
.tour--mercado .tour-row[data-side="left"] .tour-shot--phone {
  --tilt: 1.9deg;
}
@media (hover: hover) {
  .tour--mercado .tour-shot--phone:hover {
    transform: rotate(0deg) translateY(-5px);
    box-shadow:
      0 2px 4px rgba(42, 42, 36, 0.08),
      0 38px 64px -26px rgba(42, 42, 36, 0.46);
  }
}
.tour--mercado .tour-shot--phone .tour-shot-image {
  border-radius: 3px;
  max-height: 560px;
}
/* Tira de celo sujetando la polaroid */
.tour--mercado .tour-shot--phone::before {
  content: "";
  position: absolute;
  top: -13px;
  left: 50%;
  width: 96px;
  height: 28px;
  background: rgba(232, 224, 200, 0.82);
  box-shadow: 0 1px 3px rgba(42, 42, 36, 0.15);
  transform: translateX(-50%) rotate(-2.4deg);
  z-index: 4;
}
.tour--mercado .tour-row[data-side="left"] .tour-shot--phone::before {
  transform: translateX(-50%) rotate(2deg);
}
/* Nota manuscrita al pie de la polaroid */
.polaroid-note {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 480;
  font-size: 0.98rem;
  line-height: 1.3;
  color: #55524a;
  text-align: center;
  padding: 8px 6px 4px;
  font-variation-settings: "SOFT" 100, "opsz" 20;
}
/* ---------- Sello de mercado ---------- */
.sello {
  position: absolute;
  z-index: 5;
  top: -18px;
  right: -20px;
  width: 88px;
  height: 88px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 10px;
  font-family: var(--font-mono);
  font-size: 0.55rem;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-2-deep);
  border: 2px solid currentColor;
  background: radial-gradient(circle, rgba(198, 107, 76, 0.1), transparent 72%);
  transform: rotate(11deg);
  opacity: 0.88;
  mix-blend-mode: multiply;
  pointer-events: none;
}
.sello::before {
  content: "";
  position: absolute;
  inset: 5px;
  border-radius: 50%;
  border: 1px dashed currentColor;
}
.sello--verde {
  color: var(--accent-deep);
  background: radial-gradient(circle, rgba(85, 107, 59, 0.1), transparent 72%);
  transform: rotate(-9deg);
  right: auto;
  left: -20px;
}
@media (max-width: 640px) {
  .sello {
    width: 72px;
    height: 72px;
    font-size: 0.48rem;
    top: -12px;
    right: -8px;
  }

  .sello--verde {
    right: auto;
    left: -8px;
  }
}
/* El badge de cobertura vivía pegado al borde inferior del marco phone;
   en la polaroid ese espacio es de la nota manuscrita. */
.tour--mercado .shot-fx--coverage {
  bottom: 56px;
}
/* ---------- #comparte: foto a sangre completa ---------- */
.share-section {
  /* main acolcha los laterales; la foto debe llegar de borde a borde */
  margin-inline: calc(-1 * clamp(24px, 8vw, 120px));
}
/* ---------- Banda verde noche (cadena, modelo…) ---------- */
.section-chain,
.section-noche {
  /* main acolcha los laterales; esta banda oscura debe sangrar a viewport */
  margin-inline: calc(-1 * clamp(24px, 8vw, 120px));
  background:
    radial-gradient(
      110% 90% at 50% 0%,
      rgba(143, 161, 106, 0.14),
      transparent 60%
    ),
    #242e19;
}
/* Transición suave: el verde noche sube en degradado sobre la foto
   de #comparte en vez de cortar en seco. */
.section-chain {
  position: relative;
}
.section-chain::before {
  content: "";
  position: absolute;
  bottom: 100%;
  left: 0;
  right: 0;
  height: clamp(180px, 30vh, 320px);
  /* rampa con ease-in: sin borde perceptible donde empieza el velo */
  background: linear-gradient(
    180deg,
    rgba(36, 46, 25, 0) 0%,
    rgba(36, 46, 25, 0.03) 22%,
    rgba(36, 46, 25, 0.12) 44%,
    rgba(36, 46, 25, 0.32) 64%,
    rgba(36, 46, 25, 0.64) 84%,
    #242e19 100%
  );
  pointer-events: none;
}
.section-noche .model-box {
  background: transparent;
  border-color: rgba(246, 242, 231, 0.16);
}
.section-noche .model-box h2 {
  color: #f6f2e7;
}
.section-noche .model-box p {
  color: rgba(246, 242, 231, 0.74);
}
.section-noche .model-point {
  color: #dfe7c8;
  background: rgba(246, 242, 231, 0.06);
  border-color: rgba(246, 242, 231, 0.24);
}
.section-chain .chain-strip {
  background: transparent;
  border-color: rgba(246, 242, 231, 0.14);
  box-shadow: none;
}
.section-chain .chain-title {
  color: #f6f2e7;
}
.section-chain .chain-lede {
  color: rgba(246, 242, 231, 0.7);
}
.section-chain .chain-node {
  background: transparent;
  border-color: #c9d3ae;
  color: #e7edd4;
  box-shadow: 0 0 0 6px rgba(246, 242, 231, 0.05);
}
.section-chain .chain-links::before {
  opacity: 0.5;
}
.section-chain .chain-link strong {
  color: #f6f2e7;
}
.section-chain .chain-body span {
  color: rgba(246, 242, 231, 0.64);
}
.section-chain .btn.ghost {
  background: transparent;
  border-color: rgba(246, 242, 231, 0.34);
  color: #f6f2e7;
}
.section-chain .btn.ghost:hover {
  background: rgba(246, 242, 231, 0.09);
  border-color: rgba(246, 242, 231, 0.6);
}
@media (hover: hover) {
  .section-chain .chain-link:hover .chain-node {
    box-shadow:
      0 0 0 6px rgba(246, 242, 231, 0.08),
      var(--shadow-md);
  }
}
/* Dato clave sin scroll: la letra pequeña honesta bajo los CTAs */
.hero-fineprint {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
  margin: -24px 0 36px;
}
/* ---------- Papel ticket reutilizable ---------- */
/* Hero de subpágina con ticket al lado: dos columnas en desktop */
.hero-content:has(> .papel-ticket-wrap),
.hero-content:has(> .waitlist-wrap) {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
@media (max-width: 900px) {
  .hero-content:has(> .papel-ticket-wrap),
  .hero-content:has(> .waitlist-wrap) {
    grid-template-columns: 1fr;
  }

  /* Subpáginas con ticket: sin el 92vh del hero de la home, para que
     el ticket (y su sello) entren en la primera pantalla. */
  .hero:has(.papel-ticket-wrap),
  .hero:has(.waitlist-wrap) {
    min-height: auto;
    padding-bottom: 64px;
  }
}
.papel-ticket-wrap {
  transform: rotate(-1.2deg);
  filter: drop-shadow(0 24px 36px rgba(42, 42, 36, 0.26));
}
.papel-ticket {
  position: relative;
  font-family: var(--font-mono);
  background: #fffdf4;
  color: #2a2a24;
  padding: 26px 24px 20px;
  width: min(100%, 420px);
  margin-inline: auto;
}
.papel-ticket-head {
  display: flex;
  flex-direction: column;
  gap: 4px;
  text-align: center;
  padding-bottom: 14px;
  margin-bottom: 10px;
  border-bottom: 1px dashed rgba(42, 42, 36, 0.3);
}
.papel-ticket-head strong {
  font-size: 0.95rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}
.papel-ticket-head span {
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  color: #6b6b62;
}
.papel-ticket-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.82rem;
  padding: 4px 0;
}
.papel-ticket-row span:last-child {
  color: #6b6b62;
  white-space: nowrap;
}
.papel-ticket-note {
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  color: #6b6b62;
  border-top: 1px dashed rgba(42, 42, 36, 0.3);
  margin-top: 10px;
  padding-top: 10px;
}
.papel-ticket-tear {
  width: min(100%, 420px);
  margin-inline: auto;
  height: 12px;
  background:
    linear-gradient(-135deg, #fffdf4 6px, transparent 0) 0 0 / 12px 12px repeat-x,
    linear-gradient(135deg, #fffdf4 6px, transparent 0) 6px 0 / 12px 12px repeat-x;
}
/* Sello medio fuera del papel: no tapa las líneas del pedido */
.papel-ticket .sello {
  top: auto;
  bottom: 34px;
  right: -26px;
}
/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  body {
    transition: none;
  }

  .mani-sello {
    animation: none;
  }

  .tour--mercado .tour-shot--phone {
    transition: none;
  }
}
/* Route announcer */
	.astro-route-announcer {
		position: absolute;
		left: 0;
		top: 0;
		clip: rect(0 0 0 0);
		clip-path: inset(50%);
		overflow: hidden;
		white-space: nowrap;
		width: 1px;
		height: 1px;
	}