@layer base, components;

@layer base {
  @font-face {
    font-family: 'DM Sans';
    src: url('/static/fonts/dm-sans-latin.woff2') format('woff2');
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6,
                   U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122,
                   U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
  }

  @font-face {
    font-family: 'Outfit';
    src: url('/static/fonts/outfit-latin.woff2') format('woff2');
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6,
                   U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122,
                   U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
  }

  @font-face {
    font-family: 'Outfit Fallback';
    src: local('Arial');
    size-adjust: 100.5%;
    ascent-override: 95%;
    descent-override: 22%;
    line-gap-override: 0%;
  }
}

@layer components {

  /* ═══════════════════════════════════════════
     @property — enable color interpolation
     ═══════════════════════════════════════════ */
  @property --bg {
    syntax: "<color>";
    inherits: true;
    initial-value: oklch(0.97 0.006 80);
  }
  @property --surface {
    syntax: "<color>";
    inherits: true;
    initial-value: oklch(0.99 0.003 80);
  }
  @property --text {
    syntax: "<color>";
    inherits: true;
    initial-value: oklch(0.15 0 0);
  }
  @property --text-muted {
    syntax: "<color>";
    inherits: true;
    initial-value: oklch(0.45 0 0);
  }
  @property --red {
    syntax: "<color>";
    inherits: true;
    initial-value: oklch(0.52 0.23 25);
  }

  /* ═══════════════════════════════════════════
     TOKENS — Light mode (default)
     ═══════════════════════════════════════════ */
  :root {
    --bg:          oklch(0.97 0.006 80);
    --surface:     oklch(0.99 0.003 80);
    --text:        oklch(0.15 0 0);
    --text-muted:  oklch(0.45 0 0);
    --red:         oklch(0.52 0.23 25);
    --red-hover:   oklch(0.58 0.24 25);
    --red-soft:    oklch(0.92 0.05 25);
    --black:       oklch(0.10 0 0);
    --border:      oklch(0.90 0 0);
    --whatsapp:    oklch(0.55 0.18 145);

    --sans:    'DM Sans', 'Outfit Fallback', system-ui, sans-serif;
    --display: 'Outfit', 'Outfit Fallback', system-ui, sans-serif;

    --radius-sm: 0.375rem;
    --radius:    0.75rem;
    --radius-lg: 1rem;
    --radius-xl: 1.5rem;

    --container: min(1200px, 100% - 3rem);
    --section-gap: clamp(3rem, 6vw, 6rem);

    --body-weight: 400;
    --body-lh: 1.65;
    --body-ls: 0.01em;

    --photo-brightness: 1;
    --photo-contrast: 1;
    --photo-shadow: 0 4px 20px oklch(0 0 0 / 0.1);
    --photo-shadow-hover: 0 12px 32px oklch(0 0 0 / 0.12);

    color-scheme: light;
    transition: --bg 0.4s ease, --surface 0.4s ease, --text 0.4s ease,
                --text-muted 0.4s ease, --red 0.4s ease;
  }

  /* ═══════════════════════════════════════════
     TOKENS — Dark mode
     ═══════════════════════════════════════════ */
  [data-theme="dark"] {
    --bg:          oklch(0.10 0.01 50);
    --surface:     oklch(0.15 0.01 50);
    --text:        oklch(0.92 0.01 80);
    --text-muted:  oklch(0.60 0.02 60);
    --red:         oklch(0.58 0.22 25);
    --red-hover:   oklch(0.63 0.23 25);
    --red-soft:    oklch(0.20 0.06 25);
    --black:       oklch(0.06 0 0);
    --border:      oklch(0.20 0.01 50);
    --whatsapp:    oklch(0.62 0.18 145);

    --body-weight: 400;
    --body-lh: 1.65;
    --body-ls: 0.01em;

    --photo-brightness: 0.85;
    --photo-contrast: 1.1;
    --photo-shadow: 0 4px 20px oklch(0 0 0 / 0.3);
    --photo-shadow-hover: 0 12px 32px oklch(0 0 0 / 0.35);

    color-scheme: dark;
  }

  @media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
      --bg:          oklch(0.10 0.01 50);
      --surface:     oklch(0.15 0.01 50);
      --text:        oklch(0.92 0.01 80);
      --text-muted:  oklch(0.60 0.02 60);
      --red:         oklch(0.58 0.22 25);
      --red-hover:   oklch(0.63 0.23 25);
      --red-soft:    oklch(0.20 0.06 25);
      --black:       oklch(0.06 0 0);
      --border:      oklch(0.20 0.01 50);
      --whatsapp:    oklch(0.62 0.18 145);

      --body-weight: 500;
      --body-lh: 1.7;
      --body-ls: 0.02em;

      --photo-brightness: 0.85;
      --photo-contrast: 1.1;
      --photo-shadow: 0 4px 20px oklch(0 0 0 / 0.3);
      --photo-shadow-hover: 0 12px 32px oklch(0 0 0 / 0.35);

      color-scheme: dark;
    }
  }

  /* View transition dark mode support */
  ::view-transition-old(root),
  ::view-transition-new(root) {
    animation: none;
    mix-blend-mode: normal;
  }

  /* ═══════════════════════════════════════════
     RESET
     ═══════════════════════════════════════════ */
  *, *::before, *::after { box-sizing: border-box; }

  html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

  body {
    font-family: var(--sans);
    font-size: clamp(1rem, 1vw + 0.6rem, 1.05rem);
    font-weight: var(--body-weight);
    line-height: var(--body-lh);
    letter-spacing: var(--body-ls);
    color: var(--text);
    background: var(--bg);
    margin: 0;
    overflow-x: hidden;
  }

  img {
    max-width: 100%;
    height: auto;
    display: block;
    filter: brightness(var(--photo-brightness)) contrast(var(--photo-contrast));
  }

  h1, h2, h3, h4 {
    font-family: var(--display);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.02em;
    text-wrap: balance;
    margin: 0;
    color: var(--text);
  }

  p { margin: 0; }
  a { color: inherit; text-decoration: none; }
  ul, ol { list-style: none; margin: 0; padding: 0; }

  ::selection {
    background: color-mix(in oklch, var(--red) 20%, transparent);
    color: var(--text);
  }

  :focus-visible {
    outline: 3px solid var(--red);
    outline-offset: 3px;
    border-radius: 2px;
  }

  button:focus:not(:focus-visible) { outline: none; }

  /* ═══════════════════════════════════════════
     UTILITY
     ═══════════════════════════════════════════ */
  .container { width: var(--container); margin-inline: auto; }

  .section-label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-block-end: clamp(2rem, 4vw, 3rem);
  }

  .section-label .label-num {
    font-family: var(--display);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: var(--red);
  }

  .section-label h2 {
    font-size: clamp(1.75rem, 3vw + 1rem, 2.75rem);
  }

  .price,
  [class*="__price"] {
    white-space: nowrap;
  }

  /* ═══════════════════════════════════════════
     SKIP LINK
     ═══════════════════════════════════════════ */
  .skip-link {
    position: absolute;
    inset-block-start: -100%;
    inset-inline-start: 1rem;
    z-index: 200;
    padding: 0.5rem 1rem;
    background: var(--red);
    color: white;
    font-size: 0.85rem;
    font-weight: 600;
    border-radius: var(--radius-sm);

    &:focus { inset-block-start: 1rem; }
  }

  /* ═══════════════════════════════════════════
     TORN DIVIDER — fiesta section transitions
     ═══════════════════════════════════════════ */
  .torn-divider {
    position: relative;
    width: 100%;
    overflow: hidden;
    z-index: 15;
    line-height: 0;
    margin-block-start: -1px;
  }

  .torn-divider svg {
    display: block;
    width: 100%;
    height: clamp(25px, 4vw, 50px);
  }

  .torn-divider--flip { rotate: 180deg; }

  .torn-divider__bridge {
    height: 3px;
    width: 100%;
    margin-top: -2px;
  }

  /* ═══════════════════════════════════════════
     PAPEL PICADO — decorative banner
     ═══════════════════════════════════════════ */
  .papel-picado {
    display: flex;
    justify-content: center;
    gap: 0;
    pointer-events: none;
    overflow: hidden;
  }

  .papel-picado span {
    width: 5px;
    height: 6px;
    flex-shrink: 0;
  }

  .papel-picado--bottom span {
    clip-path: polygon(0 30%, 100% 30%, 100% 100%, 50% 0%, 0 100%);
  }

  .papel-picado--top span {
    clip-path: polygon(0 0, 100% 0, 100% 70%, 50% 100%, 0 70%);
  }

  /* ═══════════════════════════════════════════
     HEADER — transparent → solid on scroll
     ═══════════════════════════════════════════ */
  header {
    position: fixed;
    inset-block-start: 0;
    inset-inline: 0;
    z-index: 100;
    background: transparent;
    transition: background 0.3s, border-color 0.3s;
    border-block-end: 1px solid transparent;
  }

  header.scrolled {
    background: color-mix(in oklch, var(--bg) 92%, transparent);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-block-end-color: var(--border);
  }

  header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    block-size: 4rem;
  }

  .logo {
    font-family: var(--display);
    font-weight: 900;
    font-size: 1.15rem;
    letter-spacing: 0.04em;
    color: white;
    display: flex;
    align-items: center;
    gap: 0.4em;
    transition: color 0.3s;
  }

  header.scrolled .logo { color: var(--text); }

  .logo img {
    block-size: 2.25rem;
    inline-size: 2.25rem;
    border-radius: 50%;
    object-fit: cover;
    filter: none;
    border: 2px solid var(--border);
    background: white;
  }

  [data-theme="dark"] .logo img {
    border-color: color-mix(in oklch, white 20%, transparent);
  }

  @media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) .logo img {
      border-color: color-mix(in oklch, white 20%, transparent);
    }
  }

  .logo span { color: var(--red); }

  .desktop-nav {
    display: none;
    gap: 0.25rem;
  }

  @media (width >= 768px) {
    .desktop-nav { display: flex; }
  }

  .desktop-nav a {
    font-size: 0.875rem;
    font-weight: 500;
    color: color-mix(in oklch, white 75%, transparent);
    padding: 0.5rem 0.875rem;
    border-radius: var(--radius-sm);
    position: relative;
    transition: color 0.2s;
  }

  header.scrolled .desktop-nav a { color: var(--text-muted); }

  .desktop-nav a::after {
    content: '';
    position: absolute;
    inset-block-end: 0;
    inset-inline: 0.875rem;
    block-size: 2px;
    background: var(--red);
    transform: scaleX(0);
    transition: transform 0.2s;
  }

  .desktop-nav a:hover::after,
  .desktop-nav a.active::after { transform: scaleX(1); }

  .desktop-nav a:hover { color: white; }
  header.scrolled .desktop-nav a:hover { color: var(--text); }
  .desktop-nav a.active { color: white; }
  header.scrolled .desktop-nav a.active { color: var(--text); }

  .nav-cta {
    display: none;
    font-size: 0.875rem;
    font-weight: 700;
    font-family: var(--display);
    background: var(--red);
    color: white;
    padding: 0.5rem 1.1rem;
    border-radius: var(--radius-sm);
    transition: background 0.2s, transform 0.15s;
    min-block-size: 48px;
    align-items: center;
  }

  @media (width >= 768px) {
    .nav-cta { display: flex; }
  }

  .nav-cta:hover { background: var(--red-hover); transform: scale(1.02); }

  .nav-active { color: white !important; }
  header.scrolled .nav-active { color: var(--text) !important; }

  /* Desktop: header over split hero — text side is light, need dark nav */
  @media (width >= 768px) {
    header:not(.scrolled) .logo { color: var(--text); }
    header:not(.scrolled) .desktop-nav a { color: var(--text-muted); }
    header:not(.scrolled) .desktop-nav a:hover { color: var(--text); }
    header:not(.scrolled) .desktop-nav a.active { color: var(--text); }
    header:not(.scrolled) .desktop-nav a::after { background: var(--red); }
    header:not(.scrolled) .theme-toggle { color: var(--text); }
  }
  /* Mobile: hero photo is full background — header stays white */

  /* Theme toggle */
  .theme-toggle {
    background: none;
    border: none;
    cursor: pointer;
    color: white;
    padding: 0.5rem;
    display: grid;
    place-items: center;
    transition: color 0.3s;
    min-block-size: 48px;
    min-inline-size: 48px;
  }

  header.scrolled .theme-toggle { color: var(--text); }

  .theme-toggle svg { transition: transform 0.3s; }
  .theme-toggle:hover svg { transform: rotate(30deg); }

  .theme-toggle .icon-moon { display: none; }
  [data-theme="dark"] .theme-toggle .icon-sun { display: none; }
  [data-theme="dark"] .theme-toggle .icon-moon { display: block; }

  @media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) .theme-toggle .icon-sun { display: none; }
    :root:not([data-theme="light"]) .theme-toggle .icon-moon { display: block; }
  }

  .nav-right {
    display: flex;
    align-items: center;
    gap: 0.25rem;
  }

  /* ═══════════════════════════════════════════
     MOBILE MENU — full-screen overlay
     ═══════════════════════════════════════════ */
  .mobile-menu { display: block; }

  @media (width >= 768px) {
    .mobile-menu { display: none; }
  }

  .mobile-menu summary {
    list-style: none;
    cursor: pointer;
    color: white;
    display: flex;
    align-items: center;
    padding: 0.5rem;
    transition: color 0.3s;
    min-block-size: 48px;
    min-inline-size: 48px;
  }

  header.scrolled .mobile-menu summary { color: var(--text); }
  .mobile-menu summary::-webkit-details-marker { display: none; }

  /* When open, the details element itself becomes the full-screen overlay.
     We also kill backdrop-filter on the header via :has() to prevent
     it from creating a stacking context that traps position:fixed children. */
  header:has(.mobile-menu[open]) {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: transparent !important;
    border-color: transparent !important;
  }

  .mobile-menu[open] {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: oklch(0.08 0 0);
  }

  .mobile-menu nav {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: oklch(0.08 0 0);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.25rem;
    padding: 2rem;
  }

  .mobile-menu nav a {
    color: white;
    font-family: var(--display);
    font-size: 1.5rem;
    font-weight: 700;
    padding: 0.75rem 2rem;
    min-block-size: 48px;
    transition: color 0.2s;
    animation: menu-link-slide 0.4s ease both;
  }

  .mobile-menu nav a:nth-child(2) { animation-delay: 0.05s; }
  .mobile-menu nav a:nth-child(3) { animation-delay: 0.1s; }
  .mobile-menu nav a:nth-child(4) { animation-delay: 0.15s; }
  .mobile-menu nav a:nth-child(5) { animation-delay: 0.2s; }
  .mobile-menu nav a:nth-child(6) { animation-delay: 0.25s; }

  @keyframes menu-link-slide {
    from { opacity: 0; translate: 0 12px; }
    to   { opacity: 1; translate: 0 0; }
  }

  .mobile-menu nav a:hover { color: var(--red); }

  .mobile-menu .menu-close {
    position: absolute;
    inset-block-start: 1.25rem;
    inset-inline-end: 1.25rem;
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    padding: 0.75rem;
    min-block-size: 48px;
    min-inline-size: 48px;
    z-index: 10000;
  }

  /* ═══════════════════════════════════════════
     BUTTONS
     ═══════════════════════════════════════════ */
  .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-family: var(--display);
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: 0.01em;
    padding: 0.85rem 1.75rem;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: background 0.2s, transform 0.15s, box-shadow 0.2s, border-color 0.2s, border-radius 0.3s;
    border: 1.5px solid transparent;
    text-decoration: none;
    min-block-size: 48px;
  }

  .btn:hover { transform: scale(1.02); border-radius: 1.5rem; }
  .btn:active { transform: scale(0.97); }

  .btn--primary {
    background: var(--red);
    color: white;
    box-shadow: 0 4px 20px color-mix(in oklch, var(--red) 35%, transparent);
  }

  .btn--primary:hover {
    background: var(--red-hover);
    box-shadow: 0 6px 28px color-mix(in oklch, var(--red) 45%, transparent);
  }

  .btn--outline {
    background: transparent;
    color: white;
    border-color: color-mix(in oklch, white 30%, transparent);
  }

  .btn--outline:hover {
    background: color-mix(in oklch, white 8%, transparent);
    border-color: color-mix(in oklch, white 50%, transparent);
  }

  .btn--outline-dark {
    background: transparent;
    color: var(--text);
    border-color: var(--border);
  }

  .btn--outline-dark:hover {
    background: var(--surface);
    border-color: var(--text-muted);
  }

  .btn--dark {
    background: var(--black);
    color: white;
  }

  .btn--dark:hover { background: color-mix(in oklch, var(--text) 15%, var(--surface)); }

  .btn--red-outline {
    background: transparent;
    color: var(--red);
    border-color: var(--red);
  }

  .btn--red-outline:hover {
    background: var(--red);
    color: white;
  }

  .btn--white {
    background: var(--surface);
    color: var(--red);
  }

  .btn--white:hover { background: var(--bg); }

  .btn--whatsapp {
    background: var(--whatsapp);
    color: white;
  }

  .btn--whatsapp:hover { background: oklch(0.50 0.16 145); }

  /* ═══════════════════════════════════════════
     HERO — Split composition
     ═══════════════════════════════════════════ */
  .hero {
    min-block-size: 100svh;
    display: grid;
    grid-template-columns: 1fr;
    overflow: hidden;
    background: var(--bg);
  }

  @media (width >= 768px) {
    .hero { grid-template-columns: 55% 45%; }
  }

  .hero__text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: clamp(6rem, 10vw, 8rem) clamp(1.5rem, 4vw, 4rem) clamp(2rem, 4vw, 4rem);
    background: var(--bg);
    animation: hero-text-in 0.5s ease both;
  }

  @keyframes hero-text-in {
    from { opacity: 0; translate: -30px 0; }
    to   { opacity: 1; translate: 0 0; }
  }

  .hero__eyebrow {
    font-family: var(--display);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--red);
    margin-block-end: 1.25rem;
  }

  .hero__title {
    font-size: clamp(2.5rem, 6vw + 1rem, 5rem);
    font-weight: 900;
    margin-block-end: 1.25rem;
  }

  .hero__title em {
    font-style: normal;
    color: var(--red);
  }

  .hero__sub {
    font-size: clamp(1rem, 1.5vw + 0.5rem, 1.2rem);
    color: var(--text-muted);
    max-inline-size: 50ch;
    margin-block-end: 2rem;
  }

  .hero__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-block-end: 2.5rem;
    animation: hero-tags-in 0.5s 0.3s ease both;
  }

  @keyframes hero-tags-in {
    from { opacity: 0; translate: 0 10px; }
    to   { opacity: 1; translate: 0 0; }
  }

  .hero__tags span {
    font-size: 0.8rem;
    font-weight: 600;
    font-family: var(--display);
    letter-spacing: 0.05em;
    color: var(--text-muted);
    background: var(--surface);
    border: 1px solid var(--border);
    padding: 0.35rem 0.85rem;
    border-radius: 999px;
  }

  .hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
  }

  .hero__photo {
    position: relative;
    overflow: hidden;
    min-block-size: 40svh;
    animation: hero-photo-in 0.6s 0.2s ease both;
  }

  @keyframes hero-photo-in {
    from { clip-path: inset(0 100% 0 0); }
    to   { clip-path: inset(0 0 0 0); }
  }

  .hero__photo img {
    inline-size: 100%;
    block-size: 100%;
    object-fit: cover;
    object-position: center;
  }

  .hero__photo::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E");
    pointer-events: none;
  }

  @media (width >= 768px) {
    .hero__photo img {
      clip-path: polygon(8% 0, 100% 0, 100% 100%, 0 100%);
    }
  }

  @media (width < 768px) {
    .hero {
      position: relative;
      min-block-size: 100svh;
      display: flex;
      align-items: flex-end;
    }

    .hero__text {
      position: relative;
      z-index: 2;
      background: linear-gradient(
        to top,
        oklch(0.08 0 0) 0%,
        oklch(0.08 0 0 / 0.92) 35%,
        oklch(0.08 0 0 / 0.6) 65%,
        transparent 100%
      );
      padding-block-start: 14rem;
      padding-block-end: 2.5rem;
    }

    .hero__title,
    .hero__sub,
    .hero__eyebrow { color: white; }

    .hero__title { color: white; }
    .hero__title em { color: var(--red); }

    .hero__sub { color: oklch(0.85 0 0); }

    .hero__tags span {
      color: oklch(0.75 0 0);
      background: oklch(1 0 0 / 0.08);
      border-color: oklch(1 0 0 / 0.15);
    }

    .hero__actions .btn--outline-dark {
      color: white;
      border-color: oklch(1 0 0 / 0.3);
    }

    .hero__actions .btn--outline-dark:hover {
      background: oklch(1 0 0 / 0.08);
      border-color: oklch(1 0 0 / 0.5);
    }

    .hero__photo {
      position: absolute;
      inset: 0;
      z-index: 1;
    }

    .hero__photo img {
      inline-size: 100%;
      block-size: 100%;
      object-fit: cover;
      object-position: center 30%;
    }

    .hero__photo::after {
      z-index: 2;
    }
  }

  /* ═══════════════════════════════════════════
     STATS — subtle proof strip
     ═══════════════════════════════════════════ */
  .stats {
    background: var(--bg);
    padding-block: 2.5rem;
    content-visibility: auto;
    contain-intrinsic-size: auto 120px;
  }

  .stats__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    text-align: center;
  }

  @media (width < 600px) {
    .stats__grid { grid-template-columns: repeat(2, 1fr); }
  }

  .stats__item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
  }

  .stats__num {
    font-family: var(--display);
    font-size: clamp(1.75rem, 3vw + 0.5rem, 2.25rem);
    font-weight: 900;
    color: var(--red);
    line-height: 1;
  }

  .stats__label {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-muted);
    letter-spacing: 0.04em;
  }

  /* ═══════════════════════════════════════════
     PILLARS — value props
     ═══════════════════════════════════════════ */
  .pillars {
    padding-block: var(--section-gap);
    background: var(--red-soft);
    position: relative;
    overflow: hidden;
  }

  .pillars::before {
    content: '';
    position: absolute;
    inline-size: 10px; block-size: 10px;
    border-radius: 50%;
    background: var(--red);
    opacity: 0.15;
    inset-block-start: 2rem; inset-inline-end: 8%;
  }

  .pillars::after {
    content: '';
    position: absolute;
    inline-size: 7px; block-size: 7px;
    border-radius: 50%;
    background: oklch(0.75 0.15 90);
    opacity: 0.2;
    inset-block-end: 3rem; inset-inline-start: 5%;
  }

  .pillars__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
  }

  .pillars__card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2rem 1.75rem;
    transition: transform 0.25s, box-shadow 0.25s;
  }

  .pillars__card:hover {
    transform: translateY(-4px);
    box-shadow: var(--photo-shadow-hover);
  }

  .pillars__card .icon {
    inline-size: 2.75rem;
    block-size: 2.75rem;
    background: color-mix(in oklch, var(--red) 12%, transparent);
    border-radius: var(--radius);
    display: grid;
    place-items: center;
    margin-block-end: 1.25rem;
    transition: transform 0.25s;
  }

  .pillars__card:hover .icon { transform: scale(1.08); }
  .pillars__card .icon svg { color: var(--red); }

  .pillars__card h3 {
    font-size: 1.05rem;
    font-weight: 800;
    margin-block-end: 0.5rem;
  }

  .pillars__card p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.6;
  }

  /* :has() sibling dimming */
  .pillars__grid:has(.pillars__card:hover) .pillars__card:not(:hover) {
    opacity: 0.75;
    transition: opacity 0.3s;
  }

  /* ═══════════════════════════════════════════
     SERVICES GRID
     ═══════════════════════════════════════════ */
  .services {
    padding-block: var(--section-gap);
  }

  .services__intro {
    max-inline-size: 55ch;
    color: var(--text-muted);
    font-size: 1rem;
    margin-block: 0.75rem clamp(2rem, 4vw, 3.5rem);
  }

  /* Mobile-first: horizontal scroll carousel */
  .services__grid {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 1rem;
    padding-block-end: 1rem;
    scrollbar-width: none;
  }

  .services__grid::-webkit-scrollbar { display: none; }

  .services__card {
    min-inline-size: 75vw;
    max-inline-size: 75vw;
    scroll-snap-align: start;
    flex-shrink: 0;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border);
    background: var(--surface);
    display: flex;
    flex-direction: column;
    transition: transform 0.25s, box-shadow 0.25s;
  }

  .services__card figure {
    aspect-ratio: 16 / 9;
  }

  /* Desktop: 2x2 grid */
  @media (width >= 768px) {
    .services__grid {
      display: grid;
      grid-template-columns: repeat(2, 1fr);
      gap: 1.25rem;
      overflow-x: visible;
      scroll-snap-type: none;
      padding-block-end: 0;
    }

    .services__card {
      min-inline-size: unset;
      max-inline-size: unset;
      scroll-snap-align: unset;
      flex-shrink: unset;
    }

    .services__card figure {
      aspect-ratio: 4 / 3;
    }
  }

  .services__card:hover {
    transform: translateY(-4px);
    box-shadow: var(--photo-shadow-hover);
  }

  .services__card figure {
    margin: 0;
    aspect-ratio: 4 / 3;
    overflow: hidden;
  }

  .services__card figure img {
    inline-size: 100%;
    block-size: 100%;
    object-fit: cover;
    transition: transform 0.4s;
  }

  .services__card:hover figure img { transform: scale(1.04); }

  .services__card__body {
    padding: 1.25rem 1.5rem 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
  }

  .services__card__tag {
    font-size: 0.7rem;
    font-weight: 700;
    font-family: var(--display);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--red);
  }

  .services__card h3 { font-size: 1.1rem; font-weight: 800; }

  .services__card p {
    font-size: 0.875rem;
    color: var(--text-muted);
    line-height: 1.55;
    flex: 1;
  }

  .services__card__price {
    font-family: var(--display);
    font-size: 0.875rem;
    font-weight: 700;
    margin-block-start: 0.75rem;
    padding-block-start: 0.75rem;
    border-block-start: 1px solid var(--border);
  }

  .services__grid:has(.services__card:hover) .services__card:not(:hover) {
    opacity: 0.75;
    transition: opacity 0.3s;
  }

  /* ═══════════════════════════════════════════
     ABOUT TEASER
     ═══════════════════════════════════════════ */
  .about-teaser {
    padding-block: var(--section-gap);
    background: var(--surface);
    position: relative;
    overflow: hidden;
  }

  .about-teaser::before {
    content: ''; position: absolute;
    inline-size: 8px; block-size: 8px; border-radius: 50%;
    background: oklch(0.60 0.12 250); opacity: 0.15;
    inset-block-start: 4rem; inset-inline-start: 12%;
  }

  .about-teaser::after {
    content: ''; position: absolute;
    inline-size: 6px; block-size: 6px; border-radius: 50%;
    background: var(--red); opacity: 0.12;
    inset-block-end: 2rem; inset-inline-end: 10%;
  }

  .about-teaser__inner {
    display: grid;
    gap: clamp(2.5rem, 6vw, 5rem);
    align-items: center;
  }

  @media (width >= 768px) {
    .about-teaser__inner { grid-template-columns: 1fr 1fr; }
  }

  .about-teaser__images {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
  }

  .about-teaser__images img {
    border-radius: var(--radius-lg);
    aspect-ratio: 3 / 4;
    object-fit: cover;
    inline-size: 100%;
    box-shadow: var(--photo-shadow);
  }

  .about-teaser__images img:first-child { margin-block-start: 2rem; }
  .about-teaser__images img:last-child {
    outline: 3px solid var(--red);
    outline-offset: 6px;
  }

  .about-teaser__eyebrow {
    font-family: var(--display);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--red);
    margin-block-end: 1rem;
  }

  .about-teaser h2 {
    font-size: clamp(1.75rem, 3vw + 1rem, 2.75rem);
    margin-block-end: 1.25rem;
  }

  .about-teaser p {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.7;
    margin-block-end: 1rem;
  }

  /* ═══════════════════════════════════════════
     GALLERY PREVIEW — asymmetric grid
     ═══════════════════════════════════════════ */
  .gallery-preview {
    padding-block: var(--section-gap);
  }

  .gallery-preview__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
    margin-block-start: clamp(2rem, 4vw, 3rem);
  }

  @media (width < 600px) {
    .gallery-preview__grid { grid-template-columns: repeat(2, 1fr); }
  }

  .gallery-preview__grid figure {
    margin: 0;
    overflow: hidden;
    border-radius: var(--radius);
    aspect-ratio: 1;
    position: relative;
  }

  .gallery-preview__grid figure:first-child {
    grid-column: span 2;
    aspect-ratio: 2 / 1;
  }

  @media (width < 600px) {
    .gallery-preview__grid figure:first-child {
      aspect-ratio: 3 / 2;
    }
  }

  .gallery-preview__grid figure img {
    inline-size: 100%; block-size: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.4s;
  }

  .gallery-preview__grid figure:hover img { transform: scale(1.05); }

  .gallery-preview__grid figure::after {
    content: ''; position: absolute; inset: 0;
    background: var(--red); opacity: 0;
    transition: opacity 0.3s; border-radius: inherit;
  }

  .gallery-preview__grid figure:hover::after { opacity: 0.1; }

  /* ═══════════════════════════════════════════
     UPSELL BAND — full-width red
     ═══════════════════════════════════════════ */
  .upsell {
    padding-block: var(--section-gap);
    background: var(--red);
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
  }

  .upsell::before,
  .upsell::after {
    content: ''; position: absolute; border-radius: 50%; opacity: 0.08;
  }

  .upsell::before {
    inline-size: 120px; block-size: 120px;
    background: white;
    inset-block-start: -20px; inset-inline-start: 10%;
  }

  .upsell::after {
    inline-size: 80px; block-size: 80px;
    background: oklch(0.80 0.15 90);
    inset-block-end: -10px; inset-inline-end: 15%;
  }

  .upsell h2 {
    font-size: clamp(1.75rem, 3vw + 1rem, 2.75rem);
    color: white; margin-block-end: 0.75rem; position: relative;
  }

  .upsell p {
    font-size: 1.05rem;
    color: color-mix(in oklch, white 80%, transparent);
    margin-block-end: 2rem; position: relative;
  }

  /* ═══════════════════════════════════════════
     FINAL CTA
     ═══════════════════════════════════════════ */
  .final-cta {
    padding-block: var(--section-gap);
    background: var(--bg);
    text-align: center;
  }

  .final-cta h2 {
    font-size: clamp(1.75rem, 3vw + 1rem, 2.75rem);
    margin-block-end: 0.75rem;
  }

  .final-cta p {
    color: var(--text-muted);
    font-size: 1rem;
    margin-block-end: 2rem;
    max-inline-size: 45ch;
    margin-inline: auto;
  }

  /* ═══════════════════════════════════════════
     FOOTER
     ═══════════════════════════════════════════ */
  footer {
    background: var(--black);
    color: color-mix(in oklch, white 50%, transparent);
    padding-block: 3rem 2rem;
    font-size: 0.875rem;
  }

  .footer__inner {
    display: grid;
    gap: 1.5rem;
  }

  /* Mobile: hide nav columns, show only brand */
  .footer-col {
    display: none;
  }

  .footer-brand {
    text-align: center;
  }

  .footer-brand .logo {
    margin-block-end: 0.75rem;
    color: white;
    justify-content: center;
  }

  .footer-brand p {
    line-height: 1.6;
    margin-inline: auto;
  }

  /* Social icons row on mobile */
  .footer-social {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-block-start: 1rem;
  }

  .footer-social a {
    display: grid;
    place-items: center;
    inline-size: 44px;
    block-size: 44px;
    border-radius: 50%;
    background: color-mix(in oklch, white 10%, transparent);
    color: white;
    transition: background 0.2s;
  }

  .footer-social a:hover {
    background: color-mix(in oklch, white 20%, transparent);
  }

  /* Desktop: show full 3-column layout */
  @media (width >= 768px) {
    .footer__inner {
      grid-template-columns: 1.5fr 1fr 1fr;
      gap: 3rem;
    }

    .footer-brand {
      text-align: start;
    }

    .footer-brand .logo {
      justify-content: flex-start;
    }

    .footer-brand p {
      margin-inline: 0;
      max-inline-size: 32ch;
    }

    .footer-col {
      display: block;
    }

    .footer-social {
      display: none;
    }
  }

  .footer-col h4 {
    font-family: var(--display);
    font-size: 0.8rem; font-weight: 700;
    letter-spacing: 0.1em; text-transform: uppercase;
    color: white; margin-block-end: 0.75rem;
  }

  .footer-col ul { display: flex; flex-direction: column; gap: 0.25rem; }
  .footer-col ul a {
    color: color-mix(in oklch, white 50%, transparent);
    transition: color 0.15s;
    padding-block: 0.3rem;
  }
  .footer-col ul a:hover { color: white; }

  .footer__bottom {
    margin-block-start: 1.5rem;
    padding-block-start: 1.25rem;
    border-block-start: 1px solid var(--red);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.75rem;
    text-align: center;
  }

  @media (width >= 768px) {
    .footer__bottom {
      flex-direction: row;
      justify-content: space-between;
      text-align: start;
      font-size: 0.8rem;
    }
  }

  .footer__bottom .made-by { color: color-mix(in oklch, white 35%, transparent); }
  .footer__bottom .made-by a {
    color: color-mix(in oklch, white 55%, transparent);
    transition: color 0.2s;
  }
  .footer__bottom .made-by a:hover { color: white; }

  /* ═══════════════════════════════════════════
     FLOATING WHATSAPP (desktop)
     ═══════════════════════════════════════════ */
  .floating-wa {
    position: fixed;
    inset-block-end: calc(1.5rem + env(safe-area-inset-bottom, 0px));
    inset-inline-end: 1.5rem;
    z-index: 90;
    inline-size: 56px; block-size: 56px;
    border-radius: 50%;
    background: var(--whatsapp);
    color: white;
    display: none;
    place-items: center;
    box-shadow: 0 4px 12px oklch(0 0 0 / 0.25);
    transition: transform 0.2s, opacity 0.3s;
    border: none;
    cursor: pointer;
    text-decoration: none;
  }

  @media (width >= 768px) {
    .floating-wa { display: grid; }
  }

  .floating-wa:hover { transform: scale(1.1); }
  .floating-wa[hidden] { opacity: 0; pointer-events: none; transform: translateY(20px); }

  /* ═══════════════════════════════════════════
     FLOATING CTA PANEL (mobile)
     ═══════════════════════════════════════════ */
  /* Sticky bottom CTA bar — mobile only */
  .floating-cta {
    position: fixed;
    inset-block-end: 0;
    inset-inline: 0;
    z-index: 90;
    display: flex;
    align-items: center;
    gap: 0.625rem;
    padding: 0.5rem 0.75rem;
    padding-block-end: calc(0.5rem + env(safe-area-inset-bottom, 0px));
    background: color-mix(in oklch, var(--bg) 85%, transparent);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-block-start: 1px solid var(--border);
  }

  @media (width >= 768px) {
    .floating-cta { display: none; }
  }

  .floating-cta__toggle { display: none; }

  .floating-cta__menu {
    display: flex;
    flex-direction: row;
    gap: 0.625rem;
    align-items: center;
    width: 100%;
  }

  /* WhatsApp: icon-only circle */
  .floating-cta__wa {
    flex-shrink: 0;
    inline-size: 48px;
    block-size: 48px;
    border-radius: 50%;
    background: var(--whatsapp);
    color: white;
    display: grid;
    place-items: center;
    text-decoration: none;
    box-shadow: 0 2px 8px color-mix(in oklch, var(--whatsapp) 30%, transparent);
    transition: transform 0.15s;
  }

  .floating-cta__wa:hover { transform: scale(1.05); }

  /* Cotizar: full-width pill */
  .floating-cta__main {
    flex: 1;
    padding: 0.85rem 1.25rem;
    border-radius: 999px;
    background: var(--red);
    color: white;
    font-family: var(--display);
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    min-block-size: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-shadow: 0 2px 12px color-mix(in oklch, var(--red) 30%, transparent);
    transition: background 0.15s, transform 0.15s;
  }

  .floating-cta__main:hover {
    background: var(--red-hover);
    transform: scale(1.02);
  }

  /* Prevent sticky bar from covering footer content */
  @media (width < 768px) {
    footer { padding-block-end: 5rem; }
  }

  /* ═══════════════════════════════════════════
     SCROLL PROGRESS BAR
     ═══════════════════════════════════════════ */
  .scroll-progress {
    position: fixed;
    inset-block-start: 0;
    inset-inline-start: 0;
    block-size: 3px;
    inline-size: 100%;
    background: var(--red);
    transform-origin: left;
    z-index: 200;
  }

  @supports (animation-timeline: scroll()) {
    .scroll-progress {
      animation: grow-bar linear both;
      animation-timeline: scroll();
    }

    @keyframes grow-bar {
      from { transform: scaleX(0); }
      to   { transform: scaleX(1); }
    }
  }

  /* ═══════════════════════════════════════════
     PAGE HERO (subpages)
     ═══════════════════════════════════════════ */
  .page-hero {
    background: var(--black);
    padding-block: 7rem 2.5rem;
    color: white;
  }

  @media (width < 768px) {
    .page-hero {
      padding-block: 6rem 2rem;
    }
  }

  .page-hero--red { background: var(--red); }

  .page-hero__eyebrow {
    font-family: var(--display);
    font-size: 0.75rem; font-weight: 700;
    letter-spacing: 0.15em; text-transform: uppercase;
    color: var(--red); margin-block-end: 1rem;
  }

  .page-hero--red .page-hero__eyebrow {
    color: color-mix(in oklch, white 70%, transparent);
  }

  .page-hero h1 {
    font-size: clamp(2.25rem, 5vw + 1rem, 4rem);
    color: white; margin-block-end: 1rem;
  }

  .page-hero p {
    font-size: 1.1rem;
    color: color-mix(in oklch, white 65%, transparent);
    max-inline-size: 52ch;
  }

  /* ═══════════════════════════════════════════
     BARRAS: included section
     ═══════════════════════════════════════════ */
  .included {
    padding-block: var(--section-gap);
    background: var(--black);
  }

  /* Mobile-first: horizontal scroll */
  .included__grid {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 1rem;
    padding-block-end: 1rem;
    scrollbar-width: none;
  }

  .included__grid::-webkit-scrollbar { display: none; }

  /* Tablet+: grid */
  @media (width >= 600px) {
    .included__grid {
      display: grid;
      grid-template-columns: repeat(2, 1fr);
      gap: 1.25rem;
      overflow-x: visible;
      scroll-snap-type: none;
    }
  }
  @media (width >= 1024px) { .included__grid { grid-template-columns: repeat(3, 1fr); } }

  .included__item {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    background: color-mix(in oklch, white 4%, transparent);
    border: 1px solid color-mix(in oklch, white 8%, transparent);
    border-radius: var(--radius-lg);
    padding: 1.75rem;
    color: white;
    min-inline-size: 75vw;
    max-inline-size: 75vw;
    scroll-snap-align: start;
    flex-shrink: 0;
  }

  @media (width >= 600px) {
    .included__item {
      min-inline-size: unset;
      max-inline-size: unset;
      scroll-snap-align: unset;
      flex-shrink: unset;
    }
  }

  .included__item .check {
    inline-size: 2rem;
    block-size: 2rem;
    flex-shrink: 0;
    background: var(--red);
    border-radius: 50%;
    display: grid;
    place-items: center;
  }

  .included__item .check svg { color: white; }

  .included__item h3 {
    font-size: 1.05rem;
    font-weight: 800;
    color: white;
  }

  .included__item p {
    font-size: 0.9rem;
    color: color-mix(in oklch, white 65%, transparent);
    line-height: 1.6;
  }

  /* ═══════════════════════════════════════════
     BARRAS: packages
     ═══════════════════════════════════════════ */
  .packages {
    padding-block: var(--section-gap);
    background: var(--bg);
  }

  .packages__grid {
    display: grid; gap: 1.25rem;
    margin-block: clamp(2rem, 4vw, 3rem);
  }

  @media (width >= 768px) { .packages__grid { grid-template-columns: repeat(3, 1fr); } }

  .packages__card {
    background: var(--surface);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 2rem 1.75rem;
    display: flex; flex-direction: column; gap: 1rem;
    position: relative;
  }

  .packages__card--featured {
    border-color: var(--red);
    box-shadow: 0 0 0 1px var(--red);
  }

  .packages__card__badge {
    position: absolute;
    inset-block-start: -0.7rem; inset-inline-start: 50%;
    translate: -50% 0;
    background: var(--red); color: white;
    font-family: var(--display);
    font-size: 0.7rem; font-weight: 700;
    letter-spacing: 0.08em; text-transform: uppercase;
    padding: 0.25rem 0.75rem; border-radius: 999px;
  }

  .packages__card__bars {
    font-family: var(--display);
    font-size: 0.75rem; font-weight: 700;
    letter-spacing: 0.1em; text-transform: uppercase;
    color: var(--red);
  }

  .packages__card h3 { font-size: 1.3rem; font-weight: 900; }
  .packages__card p { font-size: 0.9rem; color: var(--text-muted); line-height: 1.6; flex: 1; }
  .packages__card .btn { inline-size: 100%; }

  /* ═══════════════════════════════════════════
     BARRAS: full list
     ═══════════════════════════════════════════ */
  .barras-list {
    padding-block: var(--section-gap);
  }

  .barras-list__grid {
    display: grid; gap: 1.5rem;
    margin-block-start: clamp(2rem, 4vw, 3rem);
  }

  .barras-list__grid { gap: 1rem; }
  @media (width >= 768px)  { .barras-list__grid { grid-template-columns: repeat(2, 1fr); gap: 1.25rem; } }

  .barras-list__card {
    display: grid;
    grid-template-columns: 140px 1fr;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--surface);
    transition: transform 0.25s, box-shadow 0.25s;
  }

  @media (width >= 768px) {
    .barras-list__card {
      grid-template-columns: 180px 1fr;
    }
  }

  .barras-list__card:hover {
    transform: translateY(-3px);
    box-shadow: var(--photo-shadow-hover);
  }

  .barras-list__card figure {
    margin: 0;
    overflow: hidden;
    background: var(--bg);
  }

  .barras-list__card figure img {
    inline-size: 100%;
    block-size: 100%;
    object-fit: cover;
    transition: transform 0.4s;
  }

  .barras-list__card:hover figure img { transform: scale(1.06); }

  .barras-list__card__body {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    justify-content: center;
  }

  .barras-list__card__season {
    font-size: 0.65rem;
    font-weight: 700;
    font-family: var(--display);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--red);
  }

  .barras-list__card h3 {
    font-size: 1.05rem;
    font-weight: 800;
  }

  .barras-list__card p {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .barras-list__card__price {
    font-family: var(--display);
    font-size: 0.95rem;
    font-weight: 800;
    margin-block-start: 0.35rem;
  }

  .barras-list__card__actions {
    display: flex; gap: 0.75rem; margin-block-start: 0.75rem;
  }

  .barras-list__card__actions .btn { font-size: 0.8rem; padding: 0.6rem 1rem; }

  /* ═══════════════════════════════════════════
     NOSOTROS: story
     ═══════════════════════════════════════════ */
  .story {
    padding-block: var(--section-gap);
    content-visibility: auto;
    contain-intrinsic-size: auto 600px;
  }

  .story__inner {
    display: grid; gap: clamp(3rem, 6vw, 5rem); align-items: start;
  }

  @media (width >= 768px) { .story__inner { grid-template-columns: 1fr 1fr; } }

  .story__image {
    border-radius: var(--radius-xl); overflow: hidden;
    aspect-ratio: 3 / 4; box-shadow: var(--photo-shadow);
  }

  .story__image img { inline-size: 100%; block-size: 100%; object-fit: cover; }

  .story__text { display: flex; flex-direction: column; gap: 1.25rem; }
  .story__text p { color: var(--text-muted); line-height: 1.75; font-size: 1rem; }

  .blockquote {
    font-style: italic;
    color: var(--text-muted);
    border-inline-start: 3px solid var(--red);
    padding-inline-start: 1rem;
    margin-block-start: 0.5rem;
  }

  .blockquote strong { color: var(--text); font-style: normal; }

  /* ═══════════════════════════════════════════
     NOSOTROS: values
     ═══════════════════════════════════════════ */
  .values {
    padding-block: var(--section-gap);
    background: var(--black); color: white;
  }

  .values__grid { display: grid; gap: 1.25rem; }
  @media (width >= 600px) { .values__grid { grid-template-columns: repeat(2, 1fr); } }

  .values__card {
    background: color-mix(in oklch, white 4%, transparent);
    border: 1px solid color-mix(in oklch, white 8%, transparent);
    border-radius: var(--radius-lg); padding: 2rem 1.75rem;
    display: flex; flex-direction: column; gap: 0.75rem;
  }

  .values__card .num {
    font-family: var(--display); font-size: 2rem; font-weight: 900;
    color: var(--red); line-height: 1;
  }

  .values__card h3 { font-size: 1rem; font-weight: 800; color: white; }
  .values__card p { font-size: 0.9rem; color: color-mix(in oklch, white 60%, transparent); line-height: 1.65; }

  /* ═══════════════════════════════════════════
     NOSOTROS: team
     ═══════════════════════════════════════════ */
  .team {
    padding-block: var(--section-gap);
    background: var(--bg);
  }

  .team__grid {
    display: grid; gap: 1.5rem;
    margin-block-start: clamp(2rem, 4vw, 3rem);
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  }

  .team__card { text-align: center; }

  .team__card figure {
    margin: 0 auto 1.25rem;
    inline-size: 140px; block-size: 140px;
    border-radius: 50%; overflow: hidden;
    border: 3px solid var(--red);
  }

  .team__card figure img { inline-size: 100%; block-size: 100%; object-fit: cover; }

  .team__card__name {
    font-family: var(--display); font-size: 1.1rem; font-weight: 800;
    margin-block-end: 0.25rem;
  }

  .team__card__role {
    font-size: 0.825rem; font-weight: 600; color: var(--red);
    letter-spacing: 0.04em; text-transform: uppercase; font-family: var(--display);
  }

  /* ═══════════════════════════════════════════
     GALERIA: polaroid masonry
     ═══════════════════════════════════════════ */
  .gallery-bento {
    padding-block: var(--section-gap);
  }

  .polaroid-grid {
    columns: 2;
    column-gap: 1rem;
    margin-block-start: clamp(1.5rem, 3vw, 2.5rem);
  }

  @media (width >= 768px) {
    .polaroid-grid { columns: 3; column-gap: 1.25rem; }
  }

  .polaroid-grid figure {
    margin: 0 0 1rem 0;
    break-inside: avoid;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 0.4rem;
    padding-block-end: 0.5rem;
    box-shadow: var(--photo-shadow);
    transition: transform 0.3s, box-shadow 0.3s;
  }

  .polaroid-grid figure:hover {
    transform: translateY(-3px) rotate(0deg) !important;
    box-shadow: var(--photo-shadow-hover);
  }

  /* Subtle alternating rotation */
  .polaroid-grid figure:nth-child(odd)  { transform: rotate(-0.8deg); }
  .polaroid-grid figure:nth-child(even) { transform: rotate(0.6deg); }
  .polaroid-grid figure:nth-child(3n)   { transform: rotate(-0.3deg); }

  .polaroid-grid figure img {
    width: 100%;
    display: block;
    border-radius: calc(var(--radius) - 0.3rem);
  }

  .polaroid-grid figcaption {
    font-family: var(--display);
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
    text-align: center;
    padding-block-start: 0.4rem;
  }

  /* ═══════════════════════════════════════════
     GALERIA: charolas section
     ═══════════════════════════════════════════ */
  .charolas-section {
    padding-block: var(--section-gap);
    background: var(--bg);
  }

  .charolas-section__grid {
    display: grid;
    gap: 1rem;
    margin-block-start: clamp(2rem, 4vw, 3rem);
  }

  @media (width >= 768px) {
    .charolas-section__grid {
      grid-template-columns: repeat(2, 1fr);
      gap: 1.25rem;
    }
  }

  .charolas-section__card {
    display: grid;
    grid-template-columns: 120px 1fr;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: transform 0.25s, box-shadow 0.25s;
  }

  @media (width >= 768px) {
    .charolas-section__card {
      grid-template-columns: 160px 1fr;
    }
  }

  .charolas-section__card:hover {
    transform: translateY(-3px);
    box-shadow: var(--photo-shadow-hover);
  }

  .charolas-section__card figure {
    margin: 0;
    overflow: hidden;
    background: var(--bg);
  }

  .charolas-section__card figure img {
    inline-size: 100%;
    block-size: 100%;
    object-fit: cover;
    transition: transform 0.4s;
  }

  .charolas-section__card:hover figure img { transform: scale(1.06); }

  .charolas-section__card__body {
    padding: 1rem 1.25rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.3rem;
  }

  .charolas-section__card__name {
    font-family: var(--display);
    font-size: 1.05rem;
    font-weight: 800;
  }

  .charolas-section__card__desc {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .charolas-section__card__price {
    font-family: var(--display);
    font-size: 1rem;
    font-weight: 800;
    color: var(--red);
    margin-block-start: 0.25rem;
  }

  .charolas-section__card .btn {
    margin-block-start: 0.5rem;
    inline-size: fit-content;
  }

  /* ═══════════════════════════════════════════
     PRODUCTOS: product grid
     ═══════════════════════════════════════════ */
  .productos {
    padding-block: var(--section-gap);
  }

  .productos__grid {
    display: grid;
    gap: 1rem;
    margin-block-start: clamp(2rem, 4vw, 3rem);
  }

  @media (width >= 768px) {
    .productos__grid {
      grid-template-columns: repeat(2, 1fr);
      gap: 1.25rem;
    }
  }

  .productos__card {
    display: grid;
    grid-template-columns: 120px 1fr;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: transform 0.25s, box-shadow 0.25s;
  }

  @media (width >= 768px) {
    .productos__card {
      grid-template-columns: 140px 1fr;
    }
  }

  .productos__card:hover {
    transform: translateY(-3px);
    box-shadow: var(--photo-shadow-hover);
  }

  .productos__card figure {
    margin: 0;
    overflow: hidden;
    background: var(--bg);
  }

  .productos__card figure img {
    inline-size: 100%;
    block-size: 100%;
    object-fit: cover;
    transition: transform 0.4s;
  }

  .productos__card:hover figure img { transform: scale(1.06); }

  .productos__card__body {
    padding: 1rem 1.25rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.25rem;
  }

  .productos__card__name {
    font-family: var(--display);
    font-size: 1rem;
    font-weight: 800;
  }

  .productos__card__desc {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .productos__card__price {
    font-family: var(--display);
    font-size: 0.95rem;
    font-weight: 800;
    color: var(--red);
    margin-block-start: 0.25rem;
  }

  .productos__card .btn {
    font-size: 0.8rem;
    padding: 0.5rem 1rem;
    margin-block-start: 0.5rem;
    inline-size: fit-content;
  }

  /* ═══════════════════════════════════════════
     COTIZAR: content
     ═══════════════════════════════════════════ */
  .cotizar-hero {
    background: var(--black);
    padding-block: 7rem 3rem;
    text-align: center;
  }

  .cotizar-hero h1 {
    font-size: clamp(2rem, 5vw + 1rem, 3.75rem);
    color: white; margin-block-end: 1rem;
  }

  .cotizar-hero p {
    font-size: 1.1rem;
    color: color-mix(in oklch, white 65%, transparent);
    max-inline-size: 50ch; margin-inline: auto;
  }

  .cotizar-content {
    padding-block: clamp(2rem, 5vw, 4rem);
    background: var(--bg);
  }

  .cotizar-content__inner {
    display: grid;
    gap: clamp(2.5rem, 5vw, 4rem);
    align-items: start;
  }

  @media (width >= 768px) { .cotizar-content__inner { grid-template-columns: 1fr 1fr; } }

  .cotizar-content__steps {
    display: flex;
    flex-direction: column;
    gap: 0;
  }

  .cotizar-content__step {
    display: flex;
    gap: 1.25rem;
    align-items: flex-start;
    position: relative;
    padding-block-end: 2rem;
  }

  /* Connecting line between step numbers */
  .cotizar-content__step::before {
    content: '';
    position: absolute;
    inset-inline-start: calc(1.25rem - 1px);
    inset-block-start: 2.5rem;
    inline-size: 2px;
    block-size: calc(100% - 2.5rem);
    background: var(--border);
  }

  .cotizar-content__step:last-of-type::before {
    display: none;
  }

  .cotizar-content__step:last-of-type {
    padding-block-end: 0;
  }

  .cotizar-content__step .step-num {
    flex-shrink: 0;
    inline-size: 2.5rem;
    block-size: 2.5rem;
    background: var(--red);
    color: white;
    font-family: var(--display);
    font-size: 0.875rem;
    font-weight: 800;
    border-radius: 50%;
    display: grid;
    place-items: center;
    position: relative;
    z-index: 1;
  }

  .cotizar-content__step h3 {
    font-size: 1.05rem;
    font-weight: 800;
    margin-block-end: 0.35rem;
  }

  .cotizar-content__step p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.6;
  }

  .cotizar-content__cta {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl); padding: 2.5rem;
    text-align: center;
    display: flex; flex-direction: column;
    gap: 1.25rem; align-items: center;
  }

  .cotizar-content__cta .wa-icon {
    inline-size: 4rem; block-size: 4rem;
    background: var(--whatsapp); border-radius: 50%;
    display: grid; place-items: center;
  }

  .cotizar-content__cta .wa-icon svg { color: white; }
  .cotizar-content__cta h2 { font-size: clamp(1.5rem, 2.5vw + 0.5rem, 2rem); }
  .cotizar-content__cta p { font-size: 0.95rem; color: var(--text-muted); max-inline-size: 36ch; line-height: 1.65; }
  .cotizar-content__cta .btn { inline-size: 100%; font-size: 1.05rem; padding-block: 1rem; }

  .cotizar-info-card {
    padding: 1.5rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    margin-block-start: 1rem;
  }

  .cotizar-info-card h3 { font-size: 0.95rem; font-weight: 800; margin-block-end: 0.5rem; }
  .cotizar-info-card p { font-size: 0.875rem; color: var(--text-muted); }

  .cotizar-info-card ul { display: flex; flex-direction: column; gap: 0.4rem; }
  .cotizar-info-card ul li {
    font-size: 0.875rem; color: var(--text-muted);
    display: flex; gap: 0.5rem; align-items: center;
  }
  .cotizar-info-card ul li svg { color: var(--red); flex-shrink: 0; }

  /* ═══════════════════════════════════════════
     SCROLL ANIMATIONS (progressive enhancement)
     ═══════════════════════════════════════════ */
  @supports (animation-timeline: view()) {
    @keyframes fade-up {
      from { opacity: 0; translate: 0 24px; }
      to   { opacity: 1; translate: 0 0; }
    }

    @keyframes fade-up-stagger {
      from { opacity: 0; translate: 0 20px; }
      to   { opacity: 1; translate: 0 0; }
    }

    .section-label,
    .about-teaser__inner,
    .upsell h2,
    .final-cta h2,
    .story__inner,
    .cotizar-content__step,
    .cotizar-content__cta {
      animation: fade-up linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 30%;
    }

    .pillars__card,
    .services__card,
    .values__card,
    .team__card,
    .packages__card,
    .barras-list__card,
    .included__item,
    .charolas-section__card,
    .productos__card {
      animation: fade-up-stagger linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 25%;
    }

    .gallery-preview__grid figure,
    .gallery-masonry__grid figure {
      animation: fade-up-stagger linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 20%;
    }
  }

  /* ═══════════════════════════════════════════
     REDUCED MOTION
     ═══════════════════════════════════════════ */
  @media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
      animation-duration: 0.01ms !important;
      animation-iteration-count: 1 !important;
      transition-duration: 0.01ms !important;
      scroll-behavior: auto !important;
    }

    .hero__photo,
    .hero__text,
    .hero__tags { animation: none !important; clip-path: none !important; }
  }

  /* ═══════════════════════════════════════════
     COMBOS — Tabbed showcase (pure CSS)
     ═══════════════════════════════════════════ */
  .combos {
    padding-block: var(--section-gap);
    background: var(--bg);
  }

  .combos__title {
    font-size: clamp(1.75rem, 3vw + 1rem, 2.75rem);
    text-align: center;
    margin-block-end: 0.75rem;
  }

  .combos__sub {
    text-align: center;
    color: var(--text-muted);
    font-size: 1rem;
    max-inline-size: 50ch;
    margin-inline: auto;
    margin-block-end: clamp(1.5rem, 3vw, 2.5rem);
  }

  /* Hidden radios */
  .combos__radio {
    position: absolute;
    opacity: 0;
    pointer-events: none;
  }

  /* Tab bar */
  .combos__tabs {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    scrollbar-width: none;
    padding-block-end: 0.5rem;
    margin-block-end: 2rem;
    justify-content: center;
  }

  .combos__tabs::-webkit-scrollbar { display: none; }

  @media (width < 768px) {
    .combos__tabs { justify-content: flex-start; }
  }

  .combos__tab {
    flex-shrink: 0;
    font-family: var(--display);
    font-size: 0.85rem;
    font-weight: 700;
    padding: 0.6rem 1.25rem;
    border-radius: 999px;
    border: 1.5px solid var(--border);
    background: transparent;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
  }

  .combos__tab:hover {
    border-color: var(--text-muted);
    color: var(--text);
  }

  .combos__tab__badge {
    color: var(--red);
    font-size: 0.75rem;
  }

  /* Active tab */
  #combo-1:checked ~ .combos__tabs label[for="combo-1"],
  #combo-2:checked ~ .combos__tabs label[for="combo-2"],
  #combo-3:checked ~ .combos__tabs label[for="combo-3"],
  #combo-4:checked ~ .combos__tabs label[for="combo-4"],
  #combo-5:checked ~ .combos__tabs label[for="combo-5"] {
    background: var(--red);
    color: white;
    border-color: var(--red);
  }

  #combo-1:checked ~ .combos__tabs label[for="combo-1"] .combos__tab__badge,
  #combo-2:checked ~ .combos__tabs label[for="combo-2"] .combos__tab__badge {
    color: white;
  }

  /* Panels container */
  .combos__panels {
    position: relative;
  }

  /* All panels hidden by default */
  .combos__panel {
    display: none;
    grid-template-columns: 1fr;
    gap: 2rem;
    align-items: center;
  }

  @media (width >= 768px) {
    .combos__panel {
      grid-template-columns: 1fr 1fr;
      gap: 3rem;
    }
  }

  /* Show active panel */
  #combo-1:checked ~ .combos__panels #panel-1,
  #combo-2:checked ~ .combos__panels #panel-2,
  #combo-3:checked ~ .combos__panels #panel-3,
  #combo-4:checked ~ .combos__panels #panel-4,
  #combo-5:checked ~ .combos__panels #panel-5 {
    display: grid;
    animation: combo-fade 0.3s ease;
  }

  @keyframes combo-fade {
    from { opacity: 0; translate: 0 8px; }
    to   { opacity: 1; translate: 0 0; }
  }

  /* Photo grid — grid-auto-rows gives concrete height */
  .combos__panel__photos {
    display: grid;
    gap: 0.5rem;
    grid-template-columns: 1fr 1fr;
    grid-auto-rows: 300px;
    border-radius: var(--radius-lg);
    overflow: hidden;
  }

  .combos__panel__photos--triple {
    grid-template-columns: 1fr 1fr 1fr;
  }

  @media (max-width: 767px) {
    .combos__panel__photos { grid-auto-rows: 200px; }
  }

  .combos__panel__photos img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
  }

  /* Panel body */
  .combos__panel__body {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
  }

  .combos__panel__badge {
    font-family: var(--display);
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--red);
    letter-spacing: 0.05em;
  }

  .combos__panel h3 {
    font-size: clamp(1.5rem, 2.5vw + 0.5rem, 2rem);
    font-weight: 900;
  }

  .combos__panel p {
    font-size: 1rem;
    color: var(--text-muted);
    line-height: 1.65;
    max-inline-size: 40ch;
  }

  .combos__panel__pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
  }

  .combos__panel__pills span {
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0.3rem 0.75rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 999px;
    color: var(--text-muted);
  }

  .combos__panel .btn {
    inline-size: fit-content;
    margin-block-start: 0.5rem;
  }

  /* Typing dots */
  .typing-dots {
    display: inline;
    font-family: var(--sans);
    letter-spacing: 0.05em;
  }

  .typing-dots::after {
    content: '...';
    display: inline-block;
    inline-size: 1.5ch;
    overflow: hidden;
    white-space: nowrap;
    vertical-align: bottom;
    animation: typing-clip 1.8s steps(4, start) infinite;
  }

  @keyframes typing-clip {
    0%   { inline-size: 0; }
    100% { inline-size: 1.8ch; }
  }

  /* Small button variant */
  .btn--sm {
    font-size: 0.8rem;
    padding: 0.5rem 1rem;
    min-block-size: 40px;
  }

  /* Social proof micro-text */
  .hero__proof {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-muted);
    margin-block-start: 1.25rem;
  }

  @media (width < 768px) {
    .hero__proof { color: oklch(0.7 0 0); }
  }

  /* Response time promise */
  .response-promise {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-block-start: 0.75rem;
  }

  /* Scroll padding for fixed header */
  html { scroll-padding-block-start: 4.5rem; }

  /* Print */
  @media print {
    header, .floating-wa, .floating-cta, .scroll-progress,
    .torn-divider, .papel-picado { display: none; }
    .hero { min-block-size: auto; }
    body { overflow: visible; }
    .values, .included, footer, .page-hero, .page-hero--red,
    .cotizar-hero, .upsell { background: white !important; color: black !important; }
    .values__card, .included__item { background: white !important; color: black !important; border: 1px solid #ddd !important; }
    .values__card h3, .values__card .num, .included__item h3 { color: black !important; }
    [class*="__card"], [class*="__item"] { break-inside: avoid; }
  }
}
