/* ============================================================
   Wurth Streami — Monochrome Plus system
   ============================================================ */

@layer reset, base, layout, components, utilities;

@layer reset {
  *, *::before, *::after { box-sizing: border-box; }
  html { scroll-behavior: smooth; }
  body, h1, h2, h3, h4, p, figure, ul, ol { margin: 0; }
  ul { padding: 0; list-style: none; }
  img { max-width: 100%; display: block; }
  a { color: inherit; text-decoration: none; }
  button, input, select, textarea { font: inherit; color: inherit; }
  button { cursor: pointer; }
}

:root{
  --primary:#7a5a42;
  --ink:#241d17;
  --accent:#c1502e;

  --bg: color-mix(in oklch, var(--primary), white 96%);
  --bg-alt: color-mix(in oklch, var(--primary), white 90%);
  --surface: color-mix(in oklch, var(--primary), white 98%);
  --surface-2: color-mix(in oklch, var(--primary), white 84%);
  --border: color-mix(in oklch, var(--primary), white 78%);
  --border-strong: color-mix(in oklch, var(--primary), black 6%);

  --text: color-mix(in oklch, var(--ink), var(--primary) 12%);
  --text-muted: color-mix(in oklch, var(--ink), white 42%);
  --text-soft: color-mix(in oklch, var(--ink), white 60%);
  --text-inverse: color-mix(in oklch, var(--primary), white 96%);

  --primary-50: color-mix(in oklch, var(--primary), white 93%);
  --primary-100: color-mix(in oklch, var(--primary), white 82%);
  --primary-300: color-mix(in oklch, var(--primary), white 48%);
  --primary-500: var(--primary);
  --primary-700: color-mix(in oklch, var(--primary), black 25%);
  --primary-900: color-mix(in oklch, var(--primary), black 46%);

  --accent-light: color-mix(in oklch, var(--accent), white 30%);
  --accent-dark: color-mix(in oklch, var(--accent), black 18%);

  --shadow-sm: 0 1px 2px rgba(36,29,23,.07), 0 1px 1px rgba(36,29,23,.05);
  --shadow-md: 0 8px 20px -6px rgba(36,29,23,.14), 0 2px 8px rgba(36,29,23,.06);
  --shadow-lg: 0 24px 48px -14px rgba(36,29,23,.24), 0 10px 20px -10px rgba(36,29,23,.14);

  --radius-xs: 6px;
  --radius-sm: 10px;
  --radius-md: 18px;
  --radius-lg: 30px;
  --radius-full: 999px;

  --ff-head: 'Unbounded', sans-serif;
  --ff-body: 'Inter', sans-serif;

  --sp-1: .5rem;
  --sp-2: 1rem;
  --sp-3: 1.5rem;
  --sp-4: 2.5rem;
  --sp-5: 4rem;
  --sp-6: 6rem;
}

@layer base {
  body {
    font-family: var(--ff-body);
    background: var(--bg);
    color: var(--text);
    line-height: 1.65;
    font-size: 1rem;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
  }
  h1, h2, h3, h4 { font-family: var(--ff-head); color: var(--ink); font-weight: 600; line-height: 1.15; letter-spacing: -.01em; }
  h1 { font-size: clamp(2.6rem, 5.6vw, 5rem); font-weight: 700; }
  h2 { font-size: clamp(1.9rem, 3.6vw, 2.8rem); }
  h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); }
  p { color: var(--text); }
  .lead { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: var(--text-muted); }
}

/* ============================================================
   LAYOUT
   ============================================================ */
@layer layout {
  .wrap { max-width: 1180px; margin-inline: auto; padding-inline: clamp(1.25rem, 4vw, 2.5rem); }

  .sec { padding-block: var(--sp-6); background: var(--surface); }
  .sec-alt { background: var(--bg-alt); }
  .sec-dark { background: var(--primary-900); color: color-mix(in oklch, var(--primary-900), white 88%); }
  .sec-dark h2, .sec-dark h3 { color: #fff; }
  .sec-tight { padding-block: var(--sp-4); }

  .sec-head { max-width: 680px; margin-bottom: var(--sp-4); }
  .sec-head.center { margin-inline: auto; text-align: center; }
  .sec-kicker {
    display: inline-flex; align-items: center; gap: .5rem;
    font-size: .78rem; text-transform: uppercase; letter-spacing: .14em;
    font-weight: 600; color: var(--accent-dark); margin-bottom: var(--sp-2);
  }
  .sec-kicker::before { content: ''; width: 22px; height: 2px; background: var(--accent); border-radius: 2px; }
  .sec-title { margin-bottom: var(--sp-2); }
  .sec-lead { color: var(--text-muted); }
}

/* ============================================================
   HEADER / NAV
   ============================================================ */
@layer components {
  .hdr {
    position: sticky; top: 0; z-index: 100;
    background: transparent;
    transition: background-color .4s ease, box-shadow .4s ease, border-color .4s ease;
    border-bottom: 1px solid transparent;
  }
  .hdr.is-scrolled {
    background: color-mix(in oklch, var(--surface), white 2%);
    box-shadow: var(--shadow-md);
    border-bottom-color: var(--border);
    backdrop-filter: blur(10px);
  }
  .hdr-inner {
    max-width: 1240px; margin-inline: auto;
    padding: 1.1rem clamp(1.25rem, 4vw, 2.5rem);
    display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
  }
  .hdr-logo { display: flex; align-items: center; gap: .6rem; font-family: var(--ff-head); font-weight: 600; font-size: 1.05rem; color: var(--ink); }
  .hdr-logo img { width: 34px; height: 34px; }
  .hdr-nav ul { display: flex; align-items: center; gap: 2rem; }
  .hdr-nav a {
    font-size: .93rem; font-weight: 500; color: var(--text); position: relative; padding: .3rem 0;
    transition: color .25s ease;
  }
  .hdr-nav a::after {
    content: ''; position: absolute; left: 0; bottom: -2px; width: 0; height: 2px;
    background: var(--accent); transition: width .3s ease;
  }
  .hdr-nav a:hover, .hdr-nav a[aria-current="page"] { color: var(--ink); }
  .hdr-nav a:hover::after, .hdr-nav a[aria-current="page"]::after { width: 100%; }

  .hdr-cta {
    display: inline-flex; align-items: center; gap: .5rem;
    background: var(--accent); color: #fff; font-weight: 600; font-size: .88rem;
    padding: .75rem 1.4rem; border-radius: var(--radius-full);
    box-shadow: var(--shadow-sm); transition: transform .25s ease, box-shadow .25s ease, background .25s ease;
    white-space: nowrap;
  }
  .hdr-cta:hover { background: var(--accent-dark); transform: translateY(-2px); box-shadow: var(--shadow-md); }

  .hdr-burger {
    display: none; flex-direction: column; justify-content: center; gap: 5px;
    width: 44px; height: 44px; background: none; border: 1px solid var(--border-strong); border-radius: var(--radius-sm);
  }
  .hdr-burger span { display: block; width: 20px; height: 2px; background: var(--ink); margin-inline: auto; transition: transform .3s ease, opacity .3s ease; }
  .hdr-burger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .hdr-burger.is-open span:nth-child(2) { opacity: 0; }
  .hdr-burger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  @media (max-width: 880px) {
    .hdr-nav {
      position: static; width: 100%; order: 3;
      max-height: 0; overflow: hidden;
      transition: max-height .4s ease;
      flex-basis: 100%;
    }
    .hdr-nav.is-open { max-height: 420px; }
    .hdr-nav ul { flex-direction: column; align-items: stretch; gap: 0; padding: .5rem 0 1rem; }
    .hdr-nav li { border-bottom: 1px solid var(--border); }
    .hdr-nav a { display: block; padding: .9rem .25rem; }
    .hdr-nav a::after { display: none; }
    .hdr-inner { flex-wrap: wrap; }
    .hdr-cta { display: none; }
    .hdr-burger { display: flex; }
  }
}

/* ============================================================
   HERO
   ============================================================ */
@layer components {
  .hero {
    position: relative; min-height: 92vh; display: flex; align-items: flex-end;
    background: linear-gradient(180deg, rgba(36,29,23,.25), rgba(36,29,23,.72)), url('../images/hero-valles-calchaquies.jpg') center/cover no-repeat;
    color: #fff; overflow: hidden;
  }
  .hero-inner { position: relative; z-index: 2; padding: var(--sp-6) clamp(1.25rem, 4vw, 2.5rem) var(--sp-5); max-width: 1240px; margin-inline: auto; width: 100%; }
  .hero-kicker { display:inline-flex; align-items:center; gap:.6rem; font-size:.8rem; letter-spacing:.16em; text-transform:uppercase; font-weight:600; color: var(--accent-light); margin-bottom: 1.3rem; }
  .hero-kicker::before { content:''; width:26px; height:2px; background: var(--accent); }
  .hero-title { max-width: 900px; margin-bottom: 1.6rem; color: white; }
  .hero-title .word { display: inline-block; }
  .hero-title .char {
    display: inline-block; opacity: 0; transform: translateY(48px) rotate(4deg);
    animation: charIn .9s cubic-bezier(.2,.8,.2,1) forwards;
    animation-delay: calc(var(--char-index) * 28ms);
  }
  @keyframes charIn { to { opacity: 1; transform: none; } }
  .hero-sub { max-width: 560px; font-size: clamp(1.05rem, 1.6vw, 1.2rem); color: rgba(255,255,255,.86); margin-bottom: 2.2rem; }
  .hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; }
  .hero-meta { display:flex; gap: 2.5rem; margin-top: 3rem; flex-wrap: wrap; }
  .hero-meta div { border-left: 2px solid rgba(255,255,255,.3); padding-left: 1rem; }
  .hero-meta strong { display:block; font-family: var(--ff-head); font-size: 1.05rem; }
  .hero-meta span { font-size: .82rem; color: rgba(255,255,255,.7); }
}

/* ============================================================
   BUTTONS
   ============================================================ */
@layer components {
  .btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
    padding: .95rem 1.7rem; border-radius: var(--radius-full); font-weight: 600; font-size: .93rem;
    border: 1px solid transparent; transition: transform .25s ease, box-shadow .25s ease, background-color .25s ease, color .25s ease, border-color .25s ease;
    min-height: 44px;
  }
  .btn-accent { background: var(--accent); color: #fff; box-shadow: var(--shadow-sm); }
  .btn-accent:hover { background: var(--accent-dark); transform: translateY(-3px); box-shadow: var(--shadow-md); }
  .btn-ghost { background: rgba(255,255,255,.08); color: #fff; border-color: rgba(255,255,255,.4); backdrop-filter: blur(6px); }
  .btn-ghost:hover { background: rgba(255,255,255,.18); border-color: #fff; transform: translateY(-3px); }
  .btn-outline { background: transparent; color: var(--ink); border-color: var(--border-strong); }
  .btn-outline:hover { background: var(--primary-50); border-color: var(--primary); transform: translateY(-2px); }
  .btn-dark { background: var(--ink); color: #fff; }
  .btn-dark:hover { background: var(--primary-700); transform: translateY(-3px); box-shadow: var(--shadow-md); }
  .btn:active { transform: translateY(0); }
  .btn[disabled] { opacity: .45; cursor: not-allowed; transform: none !important; }
}

/* ============================================================
   CARDS
   ============================================================ */
@layer components {
  .crd-grid { display: grid; gap: 1.6rem; }
  .crd-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
  .crd-grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
  @media (max-width: 980px) { .crd-grid.cols-3, .crd-grid.cols-4 { grid-template-columns: repeat(2,1fr); } }
  @media (max-width: 620px) { .crd-grid.cols-3, .crd-grid.cols-4 { grid-template-columns: 1fr; } }

  .crd {
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md);
    overflow: hidden; box-shadow: var(--shadow-sm); transition: transform .35s ease, box-shadow .35s ease, border-color .35s ease;
    display: flex; flex-direction: column;
  }
  .crd:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: var(--primary-300); }
  .crd-img { aspect-ratio: 4/3; overflow: hidden; }
  .crd-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2,.8,.2,1); }
  .crd:hover .crd-img img { transform: scale(1.07); }
  .crd-body { padding: 1.6rem; display: flex; flex-direction: column; gap: .7rem; flex: 1; }
  .crd-ico {
    width: 52px; height: 52px; border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center;
    background: var(--primary-50); color: var(--accent-dark); font-size: 1.3rem; border: 1px solid var(--border);
  }
  .crd-txt { color: var(--text-muted); font-size: .95rem; }
  .crd-tags { display: flex; flex-wrap: wrap; gap: .45rem; margin-top: .3rem; }
  .crd-tag { font-size: .74rem; padding: .3rem .7rem; background: var(--primary-50); border-radius: var(--radius-full); color: var(--primary-700); border: 1px solid var(--border); }
  .crd-link { margin-top: auto; font-weight: 600; font-size: .88rem; color: var(--accent-dark); display: inline-flex; align-items: center; gap: .4rem; }
  .crd-link i { transition: transform .25s ease; }
  .crd:hover .crd-link i { transform: translateX(4px); }
}

/* ============================================================
   PARALLAX
   ============================================================ */
@layer components {
  .par { position: relative; min-height: 62vh; display: flex; align-items: center; justify-content: center; overflow: hidden; }
  .par-bg {
    position: absolute; inset: -18% 0; background: url('../images/atardecer-cerro-siete-colores.jpg') center/cover no-repeat;
    will-change: transform; z-index: 0;
  }
  .par-overlay { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(36,29,23,.5), rgba(36,29,23,.75)); z-index: 1; }
  .par-content { position: relative; z-index: 2; max-width: 720px; text-align: center; padding: 0 1.5rem; color: #fff; }
  .par-content h2 { color: #fff; font-size: clamp(1.6rem, 3.2vw, 2.4rem); }
  .par-content p { color: rgba(255,255,255,.85); margin-top: 1rem; font-size: 1.05rem; }
}

/* ============================================================
   GALLERY
   ============================================================ */
@layer components {
  .gal { display: grid; grid-template-columns: repeat(6, 1fr); grid-auto-rows: 160px; gap: .9rem; }
  .gal-item { position: relative; overflow: hidden; border-radius: var(--radius-md); box-shadow: var(--shadow-sm); border: 1px solid var(--border); }
  .gal-item:nth-child(1) { grid-column: span 3; grid-row: span 2; }
  .gal-item:nth-child(2) { grid-column: span 3; grid-row: span 1; }
  .gal-item:nth-child(3) { grid-column: span 3; grid-row: span 1; }
  .gal-item:nth-child(4) { grid-column: span 2; grid-row: span 2; }
  .gal-item:nth-child(5) { grid-column: span 2; grid-row: span 2; }
  .gal-item:nth-child(6) { grid-column: span 2; grid-row: span 2; }
  .gal-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease, filter .6s ease; }
  .gal-item:hover img { transform: scale(1.08); filter: saturate(1.1); }
  .gal-cap {
    position: absolute; left: 0; right: 0; bottom: 0; padding: .9rem 1rem;
    background: linear-gradient(180deg, transparent, rgba(20,16,13,.82));
    color: #fff; font-size: .82rem; font-weight: 500; opacity: 0; transform: translateY(10px);
    transition: opacity .35s ease, transform .35s ease;
  }
  .gal-item:hover .gal-cap { opacity: 1; transform: translateY(0); }
  @media (max-width: 760px) {
    .gal { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 150px; }
    .gal-item:nth-child(n) { grid-column: span 1; grid-row: span 1; }
    .gal-item:nth-child(1) { grid-column: span 2; grid-row: span 2; }
  }
}

/* ============================================================
   CONTACT CARDS
   ============================================================ */
@layer components {
  .cc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
  @media (max-width: 880px) { .cc-grid { grid-template-columns: 1fr; } }
  .cc-card {
    padding: 2.1rem 1.7rem; text-align: center; background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius-md); box-shadow: var(--shadow-sm); transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
  }
  .cc-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: var(--primary-300); }
  .cc-card .crd-ico { margin-inline: auto; margin-bottom: 1rem; }
  .cc-card h3 { margin-bottom: .5rem; }
  .cc-card p { color: var(--text-muted); font-size: .92rem; }
  .cc-card a.cc-link { display: inline-block; margin-top: .8rem; font-weight: 600; color: var(--accent-dark); }
}

/* ============================================================
   STEPS / PROCESS
   ============================================================ */
@layer components {
  .stp-list { display: grid; gap: 1.2rem; }
  .stp-item { display: flex; gap: 1.2rem; padding: 1.4rem 0; border-bottom: 1px solid var(--border); }
  .stp-item:last-child { border-bottom: none; }
  .stp-num { font-family: var(--ff-head); font-size: 1.6rem; color: var(--accent); min-width: 3rem; }
  .stp-body h3 { margin-bottom: .35rem; }
  .stp-body p { color: var(--text-muted); font-size: .95rem; }
}

/* ============================================================
   TABLE (itinerarios)
   ============================================================ */
@layer components {
  .tbl-wrap { overflow-x: auto; border-radius: var(--radius-md); border: 1px solid var(--border); box-shadow: var(--shadow-sm); }
  .tbl { width: 100%; border-collapse: collapse; min-width: 640px; background: var(--surface); }
  .tbl th, .tbl td { padding: .95rem 1.2rem; text-align: left; font-size: .9rem; border-bottom: 1px solid var(--border); }
  .tbl th { background: var(--primary-50); font-family: var(--ff-head); font-weight: 600; font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; color: var(--primary-700); }
  .tbl tr:last-child td { border-bottom: none; }
  .tbl tr:hover td { background: var(--bg-alt); }
}

/* ============================================================
   FOOTER
   ============================================================ */
@layer components {
  .ftr { background: var(--ink); color: color-mix(in oklch, var(--ink), white 70%); }
  .ftr-cta { text-align: center; padding: var(--sp-6) clamp(1.25rem,4vw,2.5rem) var(--sp-5); max-width: 800px; margin-inline: auto; }
  .ftr-cta h2 { color: #fff; font-size: clamp(2rem, 4.4vw, 3.4rem); margin-bottom: 1.2rem; }
  .ftr-cta p { color: color-mix(in oklch, var(--ink), white 65%); margin-bottom: 2rem; font-size: 1.05rem; }
  .ftr-grid {
    max-width: 1180px; margin-inline: auto; padding: var(--sp-5) clamp(1.25rem,4vw,2.5rem) var(--sp-4);
    display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 2.4rem;
    border-top: 1px solid color-mix(in oklch, var(--ink), white 18%);
  }
  @media (max-width: 880px) { .ftr-grid { grid-template-columns: 1fr 1fr; } }
  @media (max-width: 560px) { .ftr-grid { grid-template-columns: 1fr; } }
  .ftr-col h4 { color: #fff; font-family: var(--ff-head); font-size: .95rem; margin-bottom: 1rem; letter-spacing: .02em; }
  .ftr-col p { color: color-mix(in oklch, var(--ink), white 60%); font-size: .9rem; }
  .ftr-col ul { display: flex; flex-direction: column; gap: .6rem; }
  .ftr-col a { color: color-mix(in oklch, var(--ink), white 68%); font-size: .9rem; transition: color .25s ease, padding-left .25s ease; }
  .ftr-col a:hover { color: var(--accent-light); padding-left: 4px; }
  .ftr-logo { display: flex; align-items: center; gap: .6rem; font-family: var(--ff-head); color: #fff; font-weight: 600; margin-bottom: 1rem; }
  .ftr-logo img { width: 30px; height: 30px; }
  .ftr-bottom {
    border-top: 1px solid color-mix(in oklch, var(--ink), white 18%);
    padding: 1.4rem clamp(1.25rem,4vw,2.5rem); display: flex; justify-content: space-between; flex-wrap: wrap; gap: .8rem;
    font-size: .82rem; color: color-mix(in oklch, var(--ink), white 50%); max-width: 1180px; margin-inline: auto;
  }
  .ftr-bottom a { color: inherit; }
  .ftr-bottom a:hover { color: var(--accent-light); }
}

/* ============================================================
   PAGE BANNER (inner pages)
   ============================================================ */
@layer components {
  .pgb { position: relative; padding: 8rem clamp(1.25rem,4vw,2.5rem) 4.5rem; color: #fff; overflow: hidden; }
  .pgb::before { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(36,29,23,.5), rgba(36,29,23,.85)); z-index: 0; }
  .pgb-img { position: absolute; inset: 0; background-size: cover; background-position: center; z-index: -1; }
  .pgb-inner { position: relative; z-index: 1; max-width: 900px; margin-inline: auto; text-align: center; }
  .pgb-kicker { display: inline-flex; align-items: center; gap: .5rem; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 600; color: var(--accent-light); margin-bottom: 1rem; }
  .pgb h1 { color: #fff; margin-bottom: 1rem; }
  .pgb p { color: rgba(255,255,255,.85); max-width: 640px; margin-inline: auto; }
  .pgb .char { display: inline-block; opacity: 0; transform: translateY(30px); animation: charIn .8s cubic-bezier(.2,.8,.2,1) forwards; animation-delay: calc(var(--char-index) * 24ms); }
}

/* ============================================================
   REVEAL ON SCROLL
   ============================================================ */
@layer utilities {
  .rvl { opacity: 0; transform: translateY(28px); transition: opacity .8s ease, transform .8s ease; }
  .rvl.is-vis { opacity: 1; transform: none; }
  .rvl-1 { transition-delay: .08s; } .rvl-2 { transition-delay: .16s; } .rvl-3 { transition-delay: .24s; } .rvl-4 { transition-delay: .32s; }
}

/* ============================================================
   FORM (wizard-three-step)
   ============================================================ */
@layer components {
  .frm-wrap { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-md); padding: clamp(1.6rem,4vw,3rem); max-width: 640px; margin-inline: auto; }
  .frm-steps { display: flex; align-items: center; justify-content: center; gap: .8rem; margin-bottom: 2.4rem; }
  .frm-step-dot {
    width: 34px; height: 34px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
    border: 2px solid var(--border-strong); font-size: .85rem; font-weight: 600; color: var(--text-muted);
    transition: all .35s ease; background: var(--surface);
  }
  .frm-step-dot.is-active { border-color: var(--accent); background: var(--accent); color: #fff; }
  .frm-step-dot.is-done { border-color: var(--accent); color: var(--accent-dark); }
  .frm-step-line { width: 40px; height: 2px; background: var(--border-strong); transition: background .35s ease; }
  .frm-step-line.is-done { background: var(--accent); }

  .frm-viewport { overflow: hidden; }
  .frm-track { display: flex; width: 300%; transition: transform .5s cubic-bezier(.3,.8,.3,1); }
  .frm-step { width: calc(100% / 3); flex-shrink: 0; padding: .2rem; }

  .frm-field { margin-bottom: 1.3rem; }
  .frm-field label { display: block; font-size: .86rem; font-weight: 600; margin-bottom: .5rem; color: var(--ink); }
  .frm-field input[type="text"], .frm-field input[type="email"], .frm-field input[type="tel"], .frm-field select, .frm-field textarea {
    width: 100%; padding: .85rem 1rem; border: 1px solid var(--border-strong); border-radius: var(--radius-sm);
    background: var(--bg); font-size: .95rem; transition: border-color .25s ease, box-shadow .25s ease;
  }
  .frm-field input:focus, .frm-field select:focus, .frm-field textarea:focus {
    outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in oklch, var(--accent), transparent 78%);
  }
  .frm-field textarea { min-height: 130px; resize: vertical; }
  .frm-check { display: flex; align-items: flex-start; gap: .7rem; font-size: .87rem; color: var(--text-muted); }
  .frm-check input { width: 20px; height: 20px; margin-top: .1rem; accent-color: var(--accent); flex-shrink: 0; }
  .frm-actions { display: flex; justify-content: space-between; margin-top: 1.6rem; gap: 1rem; }
  .frm-title { text-align: center; margin-bottom: .4rem; }
  .frm-sub { text-align: center; color: var(--text-muted); margin-bottom: 2rem; font-size: .92rem; }
  .iti, #phone { width: 100%; }
}

/* ============================================================
   COOKIE CONSENT (corner-modal, bottom-left)
   ============================================================ */
@layer components {
  .cc {
    position: fixed; left: 20px; bottom: 20px; z-index: 999; width: min(360px, calc(100vw - 40px));
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg); padding: 1.4rem; transform: translateY(140%); opacity: 0;
    transition: transform .5s cubic-bezier(.2,.8,.2,1), opacity .5s ease;
  }
  .cc.is-visible { transform: translateY(0); opacity: 1; }
  .cc-icon { width: 40px; height: 40px; border-radius: var(--radius-sm); background: var(--primary-50); display: flex; align-items: center; justify-content: center; color: var(--accent-dark); margin-bottom: .9rem; }
  .cc h4 { font-family: var(--ff-head); font-size: 1rem; margin-bottom: .5rem; }
  .cc p { font-size: .84rem; color: var(--text-muted); margin-bottom: 1rem; }
  .cc p a { color: var(--accent-dark); font-weight: 600; }
  .cc-actions { display: flex; flex-direction: column; gap: .6rem; }
  .cc-actions .btn { width: 100%; font-size: .85rem; padding: .75rem 1rem; }
  .cc-more { max-height: 0; overflow: hidden; transition: max-height .4s ease, margin .4s ease; }
  .cc-more.is-open { max-height: 320px; margin-top: 1rem; }
  .cc-opt { display: flex; align-items: center; justify-content: space-between; padding: .6rem 0; border-bottom: 1px solid var(--border); font-size: .84rem; }
  .cc-opt:last-child { border-bottom: none; }
  .cc-opt span small { display: block; color: var(--text-soft); font-size: .74rem; font-weight: 400; }
  .cc-toggle { width: 40px; height: 22px; background: var(--border-strong); border-radius: var(--radius-full); position: relative; flex-shrink: 0; transition: background .25s ease; border: none; }
  .cc-toggle::after { content: ''; position: absolute; top: 2px; left: 2px; width: 18px; height: 18px; background: #fff; border-radius: 50%; transition: transform .25s ease; box-shadow: var(--shadow-sm); }
  .cc-toggle.is-on { background: var(--accent); }
  .cc-toggle.is-on::after { transform: translateX(18px); }
  .cc-toggle[disabled] { opacity: .6; cursor: not-allowed; }
  @media (max-width: 480px) { .cc { left: 12px; bottom: 12px; width: calc(100vw - 24px); } }
}

/* ============================================================
   LEGAL PAGES
   ============================================================ */
@layer components {
  .lgl { padding-block: var(--sp-6); }
  .lgl-inner { max-width: 780px; margin-inline: auto; }
  .lgl-updated { display: inline-block; background: var(--primary-50); border: 1px solid var(--border); padding: .5rem 1rem; border-radius: var(--radius-full); font-size: .82rem; color: var(--primary-700); margin-bottom: 2rem; }
  .lgl h2 { font-size: 1.4rem; margin: 2.2rem 0 .9rem; }
  .lgl h3 { font-size: 1.1rem; margin: 1.6rem 0 .6rem; }
  .lgl p, .lgl li { color: var(--text-muted); font-size: .96rem; margin-bottom: .8rem; }
  .lgl ul, .lgl ol { padding-left: 1.3rem; }
  .lgl ul li, .lgl ol li { list-style: disc; margin-bottom: .5rem; }
  .lgl ol li { list-style: decimal; }
  .lgl-section { border-left: 3px solid var(--border-strong); padding-left: 1.4rem; margin-bottom: 1.6rem; }
  .lgl-letter { color: var(--accent-dark); font-weight: 700; margin-right: .4rem; }
  .lgl-divider { border: none; border-top: 1px solid var(--border); margin: 2.4rem 0; }
}

/* ============================================================
   THANKS PAGE — ENVELOPE
   ============================================================ */
@layer components {
  .thx { padding-block: var(--sp-6); text-align: center; }
  .env-stage { width: 220px; height: 160px; margin: 0 auto 2.6rem; position: relative; perspective: 900px; }
  .env-body { position: absolute; inset: 0; top: 40px; background: var(--primary-100); border: 1px solid var(--border-strong); border-radius: var(--radius-sm); box-shadow: var(--shadow-md); }
  .env-flap {
    position: absolute; top: 0; left: 0; width: 100%; height: 90px;
    background: var(--primary-300); clip-path: polygon(0 0, 50% 68%, 100% 0);
    transform-origin: top center; transform: rotateX(0deg); animation: flapOpen 2.2s ease-in-out infinite;
    border-radius: var(--radius-sm) var(--radius-sm) 0 0;
  }
  @keyframes flapOpen { 0%, 20% { transform: rotateX(0deg); } 45%, 75% { transform: rotateX(180deg); } 100% { transform: rotateX(180deg); } }
  .env-letter {
    position: absolute; left: 50%; top: 70px; width: 74%; height: 90px; background: #fff;
    border: 1px solid var(--border); border-radius: var(--radius-xs); box-shadow: var(--shadow-sm);
    transform: translate(-50%, 0); animation: letterUp 2.2s ease-in-out infinite; z-index: 1;
    display: flex; flex-direction: column; gap: 6px; padding: 12px;
  }
  .env-letter span { display: block; height: 6px; background: var(--border-strong); border-radius: 3px; }
  .env-letter span:nth-child(2) { width: 70%; }
  .env-letter span:nth-child(3) { width: 85%; }
  @keyframes letterUp { 0%, 40% { transform: translate(-50%, 0); } 65%, 100% { transform: translate(-50%, -58px); } }
  .thx-content { opacity: 0; animation: thxIn 1s ease forwards; animation-delay: 1.4s; }
  @keyframes thxIn { to { opacity: 1; } }
  .thx h1 { margin-bottom: 1rem; }
  .thx p { max-width: 560px; margin: 0 auto 2rem; color: var(--text-muted); }
}

/* ============================================================
   VIDEO CARDS
   ============================================================ */
@layer components {
  .vid-play { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: rgba(36,29,23,.28); opacity: 0; transition: opacity .3s ease; }
  .crd:hover .vid-play { opacity: 1; }
  .vid-play span { width: 58px; height: 58px; border-radius: 50%; background: rgba(255,255,255,.9); display: flex; align-items: center; justify-content: center; color: var(--ink); font-size: 1.2rem; box-shadow: var(--shadow-md); }
  .vid-dur { position: absolute; right: .7rem; bottom: .7rem; background: rgba(20,16,13,.8); color: #fff; font-size: .74rem; padding: .25rem .55rem; border-radius: var(--radius-full); }
}

/* ============================================================
   MISC UTILITIES
   ============================================================ */
@layer utilities {
  .center-text { text-align: center; }
  .mt-0 { margin-top: 0; }
  .grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 2.4rem; align-items: center; }
  @media (max-width: 880px) { .grid-2 { grid-template-columns: 1fr; } }
  .badge-list { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.2rem; }
  .badge { font-size: .82rem; padding: .5rem .9rem; border: 1px solid var(--border-strong); border-radius: var(--radius-full); color: var(--text-muted); display: inline-flex; align-items: center; gap: .4rem; }
  .badge i { color: var(--accent-dark); }
  .note-box { background: var(--primary-50); border-left: 3px solid var(--accent); padding: 1.2rem 1.4rem; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; font-size: .92rem; color: var(--text-muted); margin-top: 1.6rem; }
}