    /* ──────────────────────────────────────────────────────────────────
       Olmos /dev v6 rebuild — 2026-05-22
       Replaces v5's broken CSS-3D plank + colliding animation system
       with: hero Veo loop, Canvas-2D 3D configurator, clean reveal
       transitions, real IG-photo tiles. Mobile-first, no kitchen-sink
       main.css dependency on this page.
       ────────────────────────────────────────────────────────────── */
    :root {
      color-scheme: light;
      --bg:        #f5f1e8;   /* paper-cream */
      --bg-warm:   #efe7d5;   /* slightly warmer cream */
      --panel:     #ffffff;
      --ink:       #1a1612;   /* near-black warm */
      --ink-soft:  #4d4339;
      --ink-quiet: #786a5a;
      --line:      rgba(26, 22, 18, 0.14);
      --line-soft: rgba(26, 22, 18, 0.06);
      --accent:    #b8732a;   /* oak / cinnamon */
      --accent-warm: #e0a766; /* soft amber */
      --burl:      #e9b048;   /* burl gold */
      --green:     #4d6a3a;   /* moss for envíos */
      --serif: "Cormorant Garamond", "Iowan Old Style", Georgia, serif;
      --sans:  "Inter", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", sans-serif;
      --mono:  ui-monospace, SFMono-Regular, Menlo, monospace;
    }
    * { box-sizing: border-box; }
    html { scroll-behavior: smooth; }
    body {
      margin: 0;
      min-height: 100vh;
      font-family: var(--sans);
      font-size: 16px;
      line-height: 1.55;
      color: var(--ink);
      background: var(--bg);
      -webkit-font-smoothing: antialiased;
    }
    img, video { max-width: 100%; display: block; }
    a { color: inherit; }

    /* ── Container + reveal ──────────────────────────────────────── */
    .shell { width: min(1160px, calc(100% - 32px)); margin: 0 auto; }
    .pad-y { padding-block: clamp(56px, 8vw, 96px); }

    [data-reveal] {
      opacity: 0;
      transform: translateY(18px);
      transition: opacity 0.7s ease, transform 0.7s ease;
    }
    [data-reveal].is-visible {
      opacity: 1;
      transform: none;
    }

    /* ── Top bar ──────────────────────────────────────────────────── */
    .top {
      position: sticky;
      top: 0;
      z-index: 10;
      backdrop-filter: blur(14px) saturate(1.4);
      -webkit-backdrop-filter: blur(14px) saturate(1.4);
      background: rgba(245, 241, 232, 0.78);
      border-bottom: 1px solid var(--line-soft);
    }
    .top-inner {
      display: flex; align-items: center; justify-content: space-between;
      padding: 14px 0; gap: 16px;
    }
    .brand {
      display: inline-flex; align-items: center; gap: 12px;
      text-decoration: none; color: var(--ink);
    }
    .brand-mark {
      width: 34px; height: 34px;
      border-radius: 50%;
      background: var(--ink);
      color: var(--bg);
      display: grid; place-items: center;
      font-family: var(--serif);
      font-size: 18px; font-weight: 600; font-style: italic;
    }
    .brand-name {
      font-family: var(--serif); font-size: 21px; font-weight: 600;
      letter-spacing: 0.01em;
    }
    .brand-name em { font-style: italic; color: var(--accent); }
    .top-nav {
      display: flex; gap: 18px; align-items: center;
      font-size: 14px; font-weight: 500;
    }
    .top-nav a {
      text-decoration: none; color: var(--ink-soft);
      transition: color 0.2s ease;
    }
    .top-nav a:hover { color: var(--accent); }
    .top-wa {
      display: inline-flex; align-items: center; gap: 6px;
      background: var(--ink); color: var(--bg);
      padding: 8px 14px; border-radius: 999px;
      font-size: 13px; font-weight: 600;
      text-decoration: none;
    }
    @media (max-width: 720px) {
      .top-nav { display: none; }
    }

    /* ── HERO ─────────────────────────────────────────────────────── */
    .hero {
      position: relative;
      min-height: clamp(560px, 84vh, 760px);
      display: grid; place-items: center;
      overflow: hidden;
      isolation: isolate;
    }
    .hero-video {
      position: absolute; inset: 0;
      width: 100%; height: 100%;
      object-fit: cover;
      z-index: -2;
    }
    .hero-veil {
      position: absolute; inset: 0;
      background:
        linear-gradient(180deg, rgba(245, 241, 232, 0.20) 0%, rgba(245, 241, 232, 0.55) 60%, rgba(245, 241, 232, 0.88) 100%);
      z-index: -1;
    }
    .hero-inner {
      text-align: center;
      padding: clamp(48px, 8vw, 96px) 24px;
      max-width: 920px;
    }
    .hero-eyebrow {
      display: inline-flex;
      border: 1px solid var(--ink);
      color: var(--ink);
      background: rgba(245, 241, 232, 0.6);
      padding: 6px 14px;
      border-radius: 999px;
      font: 700 11px/1 var(--mono);
      letter-spacing: 0.16em;
      text-transform: uppercase;
      margin-bottom: 24px;
    }
    .hero h1 {
      margin: 0 0 22px;
      font-family: var(--serif); font-weight: 500;
      font-size: clamp(48px, 8vw, 88px);
      line-height: 0.96;
      letter-spacing: -0.012em;
      color: var(--ink);
    }
    .hero h1 em {
      font-style: italic; color: var(--accent);
    }
    .hero p {
      margin: 0 auto 28px;
      max-width: 56ch;
      color: var(--ink-soft);
      font-size: clamp(17px, 1.6vw, 20px);
      line-height: 1.55;
    }
    .hero-cta-row {
      display: flex; gap: 12px; justify-content: center; flex-wrap: wrap;
    }

    /* ── Buttons ──────────────────────────────────────────────────── */
    .btn {
      display: inline-flex; align-items: center; gap: 8px;
      padding: 13px 20px;
      border-radius: 999px;
      text-decoration: none;
      font-weight: 600; font-size: 15px;
      transition: transform 0.15s ease, opacity 0.2s ease, background 0.2s ease;
      border: 1px solid transparent;
      cursor: pointer;
      font-family: var(--sans);
    }
    .btn-primary {
      background: var(--ink); color: var(--bg); border-color: var(--ink);
    }
    .btn-primary:hover { transform: translateY(-1px); }
    .btn-ghost {
      background: transparent;
      color: var(--ink);
      border-color: var(--ink);
    }
    .btn-ghost:hover { background: var(--ink); color: var(--bg); }
    .btn-accent {
      background: var(--accent); color: var(--bg); border-color: var(--accent);
    }
    .btn-accent:hover { transform: translateY(-1px); }

    /* ── Section heading ─────────────────────────────────────────── */
    .section-head {
      display: flex; align-items: baseline; gap: 18px;
      margin-bottom: clamp(28px, 4vw, 44px);
      flex-wrap: wrap;
    }
    .section-num {
      font: 700 12px/1 var(--mono);
      letter-spacing: 0.18em;
      text-transform: uppercase;
      color: var(--accent);
      padding-top: 8px;
    }
    .section-head h2 {
      margin: 0;
      font-family: var(--serif); font-weight: 500;
      font-size: clamp(34px, 4.4vw, 56px);
      line-height: 1.02;
      letter-spacing: -0.008em;
      color: var(--ink);
    }
    .section-head h2 em { font-style: italic; color: var(--accent); }
    .section-head p {
      flex: 1 1 320px;
      margin: 0;
      font-size: clamp(15px, 1.4vw, 17px);
      color: var(--ink-soft);
      max-width: 56ch;
    }

    /* ── §01 Catálogo (IG photo tiles) ───────────────────────────── */
    .catalogo {
      background: var(--bg-warm);
      border-block: 1px solid var(--line-soft);
    }
    .tile-grid {
      display: grid;
      grid-template-columns: repeat(4, minmax(0, 1fr));
      gap: 14px;
    }
    .tile {
      position: relative;
      aspect-ratio: 1 / 1;
      overflow: hidden;
      border-radius: 14px;
      border: 1px solid var(--line);
      background: linear-gradient(135deg, var(--ink-soft) 0%, var(--ink) 100%);
      display: block;
      text-decoration: none;
      color: var(--bg);
    }
    .tile img {
      width: 100%; height: 100%; object-fit: cover;
      transition: transform 0.6s ease;
    }
    .tile:hover img { transform: scale(1.04); }
    .tile-cap {
      position: absolute; left: 12px; bottom: 12px; right: 12px;
      font-family: var(--serif); font-style: italic; font-size: 14px;
      text-shadow: 0 2px 12px rgba(0,0,0,0.5);
    }
    @media (max-width: 720px) {
      .tile-grid { grid-template-columns: repeat(2, 1fr); }
    }

    /* ── §02 Configurador 3D — Canvas-based single plank ─────────── */
    .cfg {
      background: var(--bg);
    }
    .cfg-layout {
      display: grid;
      grid-template-columns: minmax(0, 1fr) minmax(280px, 380px);
      gap: clamp(20px, 3vw, 36px);
      align-items: start;
    }
    .cfg-stage {
      position: relative;
      width: 100%;
      max-width: 100%;
      min-width: 0;
      border-radius: 22px;
      overflow: hidden;
      border: 1px solid var(--line);
      background:
        radial-gradient(circle at 28% 30%, rgba(184,115,42,0.10), transparent 50%),
        linear-gradient(180deg, #ffffff 0%, #efe7d5 100%);
      box-shadow: 0 32px 80px -50px rgba(26,22,18,0.35);
      aspect-ratio: 5 / 4;
      min-height: clamp(240px, 70vw, 320px);
    }
    .cfg-stage canvas {
      width: 100%; height: 100%;
      max-width: 100%;
      display: block;
      cursor: grab;
      touch-action: none;
    }
    .cfg-stage canvas:active { cursor: grabbing; }
    .cfg-stage-hint {
      position: absolute; left: 14px; bottom: 14px;
      font: 700 10px/1 var(--mono);
      letter-spacing: 0.14em;
      text-transform: uppercase;
      color: var(--ink-quiet);
      background: rgba(245, 241, 232, 0.85);
      padding: 6px 10px;
      border-radius: 999px;
      border: 1px solid var(--line-soft);
    }
    .cfg-controls {
      display: grid; gap: 18px;
      padding: 22px;
      background: var(--panel);
      border: 1px solid var(--line);
      border-radius: 22px;
      box-shadow: 0 18px 50px -40px rgba(26,22,18,0.25);
    }
    .cfg-controls fieldset {
      margin: 0; padding: 0; border: 0;
    }
    .cfg-controls legend {
      display: block;
      font: 700 11px/1 var(--mono);
      letter-spacing: 0.16em;
      text-transform: uppercase;
      color: var(--ink-quiet);
      margin-bottom: 10px;
    }
    .cfg-materials {
      display: grid;
      grid-template-columns: repeat(4, 1fr);
      gap: 6px;
    }
    .cfg-mat {
      appearance: none;
      border: 1px solid var(--line);
      background: var(--bg-warm);
      color: var(--ink-soft);
      padding: 9px 8px;
      border-radius: 10px;
      font-size: 12px;
      font-weight: 600;
      cursor: pointer;
      transition: background 0.15s ease, color 0.15s ease;
    }
    .cfg-mat:hover { background: var(--line-soft); }
    .cfg-mat.is-active {
      background: var(--ink); color: var(--bg); border-color: var(--ink);
    }
    .cfg-slider-row {
      display: grid; gap: 12px;
    }
    .cfg-slider {
      display: grid; gap: 6px;
    }
    .cfg-slider label {
      display: flex; justify-content: space-between;
      font-size: 13px; color: var(--ink-soft);
      font-weight: 500;
    }
    .cfg-slider label strong { color: var(--ink); font-weight: 600; }
    .cfg-slider input[type="range"] {
      width: 100%; accent-color: var(--accent);
    }
    .cfg-summary {
      padding: 12px 14px;
      background: var(--bg-warm);
      border-radius: 10px;
      font: 600 14px/1.5 var(--sans);
      color: var(--ink);
      border: 1px solid var(--line-soft);
    }
    .cfg-summary span { color: var(--ink-quiet); font-weight: 500; margin-right: 4px; font-size: 12px; text-transform: uppercase; letter-spacing: 0.1em; }
    .cfg-cta-row {
      display: grid; gap: 8px;
    }
    @media (max-width: 880px) {
      .cfg-layout { grid-template-columns: 1fr; }
    }

    /* ── §03 Pedido rápido — WhatsApp form ───────────────────────── */
    .order {
      background: var(--bg-warm);
      border-block: 1px solid var(--line-soft);
    }
    .order-form {
      max-width: 720px;
      display: grid; gap: 16px;
    }
    .order-row { display: grid; gap: 6px; }
    .order-row label {
      font: 600 12px/1 var(--mono);
      letter-spacing: 0.12em;
      text-transform: uppercase;
      color: var(--ink-quiet);
    }
    .order-row input,
    .order-row select,
    .order-row textarea {
      width: 100%;
      padding: 12px 14px;
      border: 1px solid var(--line);
      border-radius: 10px;
      background: var(--panel);
      color: var(--ink);
      font-family: var(--sans); font-size: 15px;
      transition: border-color 0.2s ease;
    }
    .order-row input:focus,
    .order-row select:focus,
    .order-row textarea:focus {
      outline: none; border-color: var(--accent);
    }
    .order-row textarea { min-height: 92px; resize: vertical; }

    /* ── §04 Videos — 3-clip Veo strip ───────────────────────────── */
    .videos { background: var(--bg); }
    .video-strip {
      display: grid;
      grid-template-columns: repeat(3, minmax(0, 1fr));
      gap: clamp(14px, 2vw, 20px);
    }
    .video-card {
      border-radius: 16px;
      overflow: hidden;
      border: 1px solid var(--line);
      background: var(--panel);
      box-shadow: 0 18px 48px -38px rgba(26,22,18,0.3);
    }
    .video-card video {
      width: 100%; aspect-ratio: 16/9;
      object-fit: cover;
      background: var(--ink);
    }
    .video-card-cap {
      padding: 12px 16px 14px;
      display: flex; align-items: baseline; gap: 8px;
      font-family: var(--serif); font-style: italic;
      font-size: 15px; color: var(--ink-soft);
    }
    .video-card-tag {
      font: 700 10px/1 var(--mono);
      letter-spacing: 0.14em; text-transform: uppercase;
      color: var(--accent);
      font-style: normal;
    }
    @media (max-width: 880px) {
      .video-strip { grid-template-columns: 1fr; }
    }

    /* ── §05 Ubicación ───────────────────────────────────────────── */
    .locate {
      background: var(--bg-warm);
      border-block: 1px solid var(--line-soft);
    }
    .locate-grid {
      display: grid;
      grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
      gap: clamp(20px, 4vw, 56px);
      align-items: center;
    }
    .locate-photo {
      aspect-ratio: 5 / 4;
      border-radius: 22px;
      overflow: hidden;
      border: 1px solid var(--line);
      box-shadow: 0 24px 64px -42px rgba(26,22,18,0.4);
    }
    .locate-photo img { width: 100%; height: 100%; object-fit: cover; }
    .locate-text h2 {
      margin: 0 0 16px;
      font-family: var(--serif); font-weight: 500;
      font-size: clamp(32px, 4vw, 48px);
      line-height: 1.04;
    }
    .locate-text address {
      font-style: normal;
      color: var(--ink-soft);
      margin: 0 0 16px;
      font-size: 16px;
      line-height: 1.6;
    }
    .locate-cta-row { display: flex; gap: 10px; flex-wrap: wrap; }
    @media (max-width: 720px) {
      .locate-grid { grid-template-columns: 1fr; }
    }

    /* ── §06 Contacto + footer ───────────────────────────────────── */
    .contact {
      background: var(--ink);
      color: var(--bg);
    }
    .contact .section-head h2 { color: var(--bg); }
    .contact .section-num { color: var(--accent-warm); }
    .contact .section-head p { color: rgba(245, 241, 232, 0.7); }
    .contact-grid {
      display: grid;
      grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
      gap: clamp(24px, 4vw, 56px);
      align-items: start;
    }
    .contact-meta {
      list-style: none; padding: 0; margin: 0;
      display: grid; gap: 14px;
    }
    .contact-meta li {
      display: grid; gap: 4px;
      padding-bottom: 12px;
      border-bottom: 1px solid rgba(245, 241, 232, 0.12);
    }
    .contact-meta li:last-child { border: 0; }
    .contact-meta span {
      font: 700 11px/1 var(--mono);
      letter-spacing: 0.14em; text-transform: uppercase;
      color: var(--accent-warm);
    }
    .contact-meta strong, .contact-meta a {
      font-weight: 500; color: var(--bg);
      text-decoration: none;
      font-size: 16px;
    }
    .contact-meta a:hover { color: var(--accent-warm); }
    .contact-cta-row {
      display: flex; gap: 10px; flex-wrap: wrap; margin-top: 22px;
    }
    .contact .btn-primary {
      background: var(--accent); color: var(--bg); border-color: var(--accent);
    }
    .contact .btn-ghost {
      color: var(--bg); border-color: var(--bg);
    }
    .contact .btn-ghost:hover { background: var(--bg); color: var(--ink); }
    .footer {
      padding: 22px 0 30px;
      border-top: 1px solid rgba(245, 241, 232, 0.12);
      margin-top: 40px;
      font-size: 13px;
      color: rgba(245, 241, 232, 0.6);
      display: flex; justify-content: space-between; gap: 16px;
      flex-wrap: wrap;
    }
    @media (max-width: 720px) {
      .contact-grid { grid-template-columns: 1fr; }
    }

    /* ── Reduce motion guard ─────────────────────────────────────── */
    @media (prefers-reduced-motion: reduce) {
      [data-reveal] { opacity: 1; transform: none; transition: none; }
      .tile img { transition: none; }
      html { scroll-behavior: auto; }
    }
  
/* ── Utility classes (replaces CSP-blocked inline style="" attrs) ──── */
.link-accent { color: var(--accent); }
.locate-note {
  color: var(--ink-soft);
  max-width: 44ch;
  margin: 0 0 22px;
}
.contact-note {
  color: rgba(245, 241, 232, 0.78);
  font-size: 16px;
  line-height: 1.6;
  max-width: 38ch;
  margin: 0 0 22px;
}

/* ═══════════════════════════════════════════════════════════════════
   v6.1 — Phase 1 conversion plumbing (2026-05-22)
   - Catálogo tile rewritten as <div> with two <a> children:
       .tile-main → WhatsApp prefilled per material
       .tile-ig   → corner IG link
   - .mbar → sticky mobile-only quick-actions bar
   ═══════════════════════════════════════════════════════════════════ */

.tile {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: linear-gradient(135deg, var(--ink-soft) 0%, var(--ink) 100%);
}
.tile-main {
  position: absolute; inset: 0;
  display: block;
  text-decoration: none;
  color: var(--bg);
}
.tile-main img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.6s ease;
}
.tile-main:hover img { transform: scale(1.04); }
.tile-cap {
  position: absolute; left: 12px; bottom: 12px; right: 60px;
  font-family: var(--serif); font-style: italic; font-size: 15px;
  text-shadow: 0 2px 12px rgba(0,0,0,0.6);
  color: var(--bg);
  pointer-events: none;
}
.tile-ig {
  position: absolute;
  right: 10px; top: 10px;
  width: 36px; height: 36px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: rgba(245, 241, 232, 0.92);
  color: var(--ink);
  font: 700 11px/1 var(--mono);
  letter-spacing: 0.08em;
  text-decoration: none;
  border: 1px solid var(--line);
  transition: background 0.2s ease, transform 0.2s ease;
}
.tile-ig:hover {
  background: var(--accent);
  color: var(--bg);
  transform: scale(1.08);
}

/* Sticky mobile quick-actions bar */
.mbar {
  display: none;
}
@media (max-width: 720px) {
  .mbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: fixed;
    left: 8px; right: 8px;
    bottom: max(10px, env(safe-area-inset-bottom, 10px));
    z-index: 50;
    padding: 8px;
    gap: 6px;
    background: rgba(26, 22, 18, 0.94);
    backdrop-filter: blur(14px) saturate(1.4);
    -webkit-backdrop-filter: blur(14px) saturate(1.4);
    border-radius: 999px;
    border: 1px solid rgba(245, 241, 232, 0.18);
    box-shadow: 0 14px 40px -16px rgba(0,0,0,0.5);
  }
  .mbar-btn {
    flex: 1 1 auto;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: 7px 6px;
    border-radius: 999px;
    text-decoration: none;
    color: var(--bg);
    font: 600 10px/1.1 var(--sans);
    letter-spacing: 0.02em;
    transition: background 0.15s ease;
    min-width: 56px;
  }
  .mbar-btn svg { color: var(--accent-warm, var(--accent)); }
  .mbar-btn:active { background: rgba(245, 241, 232, 0.08); }
  .mbar-wa { background: var(--accent); }
  .mbar-wa svg { color: var(--bg); }
  .mbar-hours {
    padding: 0 10px;
    font: 600 10px/1.2 var(--mono);
    letter-spacing: 0.06em;
    color: rgba(245, 241, 232, 0.7);
    border-left: 1px solid rgba(245, 241, 232, 0.16);
    white-space: nowrap;
    min-width: 70px;
    text-align: right;
  }
  /* Lift footer + last section padding so mbar doesn't cover content */
  body { padding-bottom: 84px; }
}
@media (prefers-reduced-motion: reduce) {
  .tile-main img { transition: none; }
  .tile-ig { transition: none; }
}

/* ── /pago-exitoso (Stripe success return) ────────────────────────── */
.hero-fullscreen { min-height: 100vh; }

/* ── Configurador Pago CTA (hidden by default; revealed via
       data-payment-ready="true" on <body> when Jorge sets CF env vars
       + flips the config) ────────────────────────────────────────── */
.cfg-pago-cta { display: none; }
body[data-payment-ready="true"] .cfg-pago-cta { display: inline-flex; }
.cfg-pago-cta {
  background: #635bff;       /* Stripe brand purple */
  color: #ffffff;
  border-color: #635bff;
  justify-content: center;
}
.cfg-pago-cta:hover { transform: translateY(-1px); opacity: 0.95; }
.cfg-pago-cta:disabled,
.cfg-pago-cta.is-loading {
  opacity: 0.65; cursor: progress;
}
.cfg-pago-note {
  display: none;
  margin: 0;
  font: 600 11px/1.4 var(--mono);
  letter-spacing: 0.06em;
  color: var(--ink-quiet);
  text-align: center;
}
body[data-payment-ready="true"] .cfg-pago-note { display: block; }

/* ── §05 Ubicación · satellite-to-store video (replaces static fachada photo) ── */
.locate-photo video {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.locate-photo {
  display: grid;
  grid-template-rows: 1fr auto;
  position: relative;
}
.locate-photo-cap {
  margin: 10px 0 0;
  padding: 0 4px;
  font: 600 12px/1.4 var(--mono);
  letter-spacing: 0.06em;
  color: var(--ink-quiet);
  text-align: right;
}
.locate-photo-cap a { text-decoration: none; }
.locate-photo-cap a:hover { text-decoration: underline; }

/* §06 zoom video — Skip-to-storefront button overlay (2026-05-22 interaction pass) */
.locate-skip-btn {
  position: absolute;
  bottom: 48px;
  right: 12px;
  z-index: 2;
  border: 0;
  border-radius: 999px;
  padding: 9px 14px;
  font: 600 12px/1 var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #1a120a;
  background: rgba(244, 180, 24, 0.92);
  box-shadow: 0 4px 14px rgba(20, 12, 4, 0.28);
  cursor: pointer;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  transition: transform 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}
.locate-skip-btn:hover,
.locate-skip-btn:focus-visible {
  transform: translateY(-1px);
  background: rgba(255, 196, 38, 0.98);
  box-shadow: 0 6px 18px rgba(20, 12, 4, 0.36);
  outline: 2px solid rgba(20, 12, 4, 0.85);
  outline-offset: 2px;
}
.locate-skip-btn:active { transform: translateY(0); }
.locate-skip-btn span { margin-right: 4px; font-weight: 700; }
@media (prefers-reduced-motion: reduce) {
  .locate-skip-btn { display: none; }
}
@media (max-width: 720px) {
  .locate-skip-btn { bottom: 56px; right: 10px; padding: 8px 12px; font-size: 11px; }
}

/* ═══════════════════════════════════════════════════════════════════
   v6.2 — §01 Servicios + Especies (replaces misleading IG-photo grid)
   §05 — Real Google Maps satellite iframe (replaces geographically-wrong
        generated Veo clip — the actual Olmos shop sits in a commercial
        corridor on Av. Fco. I. Madero, not the wide-palm boulevard the
        generator imagined.)
   ═══════════════════════════════════════════════════════════════════ */

/* ── §01.A · Servicios cards ─────────────────────────────────────── */
.svc-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(12px, 1.6vw, 18px);
  margin-bottom: clamp(40px, 5vw, 64px);
}
.svc-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 24px 22px 22px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--ink);
  text-decoration: none;
  box-shadow: 0 18px 50px -40px rgba(26,22,18,0.3);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.svc-card:hover {
  transform: translateY(-3px);
  border-color: var(--accent);
  box-shadow: 0 22px 60px -32px rgba(184,115,42,0.4);
}
.svc-icon { color: var(--accent); }
.svc-card h3 {
  margin: 4px 0 0;
  font-family: var(--serif); font-weight: 600;
  font-size: 22px;
  line-height: 1.1;
  letter-spacing: -0.006em;
}
.svc-card p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.5;
  flex: 1 1 auto;
}
.svc-cta {
  display: inline-flex;
  margin-top: 6px;
  font: 600 12px/1 var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}
@media (max-width: 900px) {
  .svc-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 520px) {
  .svc-grid { grid-template-columns: 1fr; }
}

/* ── §01.B · Especies swatches ───────────────────────────────────── */
.species-head {
  display: flex;
  align-items: baseline;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.species-head h3 {
  margin: 0;
  font-family: var(--serif); font-weight: 600;
  font-size: clamp(22px, 2.4vw, 28px);
  letter-spacing: -0.004em;
}
.species-head p {
  margin: 0;
  color: var(--ink-quiet);
  font-size: 13px;
}
.species-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}
.species {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 4px;
  padding: 14px 14px 12px;
  aspect-ratio: 4 / 3;
  border-radius: 12px;
  text-decoration: none;
  color: #f5f1e8;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  border: 1px solid rgba(26,22,18,0.15);
}
.species::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(160deg, var(--w-light) 0%, var(--w-base) 55%, var(--w-dark) 100%);
  z-index: -2;
}
.species::after {
  /* Subtle grain texture via repeating-linear-gradient */
  content: "";
  position: absolute; inset: 0;
  background:
    repeating-linear-gradient(95deg, rgba(0,0,0,0.05) 0 1.5px, transparent 1.5px 6px),
    repeating-linear-gradient(95deg, rgba(255,255,255,0.04) 0 0.8px, transparent 0.8px 4px);
  z-index: -1;
  pointer-events: none;
  opacity: 0.7;
}
.species:hover {
  transform: translateY(-2px) scale(1.01);
  box-shadow: 0 14px 40px -20px rgba(26,22,18,0.5);
}
.species-name {
  font-family: var(--serif); font-weight: 600;
  font-size: 22px;
  line-height: 1;
  letter-spacing: -0.005em;
  text-shadow: 0 2px 12px rgba(0,0,0,0.45);
}
.species-note {
  font: 500 11px/1.3 var(--sans);
  letter-spacing: 0.02em;
  opacity: 0.86;
  text-shadow: 0 1px 8px rgba(0,0,0,0.5);
}
/* Wood-species palettes (light highlight, base, deep shadow) */
.species[data-wood="nogal"]     { --w-light:#6e4b2a; --w-base:#3a2614; --w-dark:#1a120a; }
.species[data-wood="roble"]     { --w-light:#c39061; --w-base:#8b6b3f; --w-dark:#5e4623; }
.species[data-wood="cedro"]     { --w-light:#b35b3a; --w-base:#7a3a22; --w-dark:#3f1c10; }
.species[data-wood="burl"]      { --w-light:#c8902a; --w-base:#5a3a18; --w-dark:#241408; }
.species[data-wood="quarter"]   { --w-light:#cca37a; --w-base:#a08157; --w-dark:#6a5638; }
.species[data-wood="cerezo"]    { --w-light:#b5613d; --w-base:#7e3a1f; --w-dark:#4a200f; }
.species[data-wood="arce"]      { --w-light:#e8d3b0; --w-base:#c8a87f; --w-dark:#8a7251; color: #1a1612; }
.species[data-wood="arce"] .species-name,
.species[data-wood="arce"] .species-note { text-shadow: none; }
.species[data-wood="bordevivo"] { --w-light:#7a5230; --w-base:#46301c; --w-dark:#1f140b; }

@media (max-width: 720px) {
  .species-grid { grid-template-columns: repeat(2, 1fr); }
}

.catalogo-ig-note {
  margin: 32px 0 0;
  color: var(--ink-quiet);
  font-size: 14px;
  text-align: center;
}

/* ── §05 · Google Maps iframe (replaces video) ───────────────────── */
.locate-photo iframe {
  width: 100%;
  height: 100%;
  display: block;
  border: 0;
}

/* ── Subtle MILO attribution mark in the footer ───────────────────── */
.milo-mark {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font: 650 10px/1 var(--mono);
  letter-spacing: 0.16em;
  text-decoration: none;
  text-transform: uppercase;
  color: rgba(245, 241, 232, 0.46);
  padding: 5px 9px;
  border-radius: 999px;
  border: 1px solid rgba(245, 241, 232, 0.10);
  background: rgba(245, 241, 232, 0.02);
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease, opacity 0.2s ease;
}
.milo-mark::before {
  content: "";
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--accent-warm);
  opacity: 0.46;
}
.milo-mark:hover,
.milo-mark:focus-visible {
  color: var(--accent-warm);
  border-color: rgba(232, 168, 70, 0.32);
  background: rgba(232, 168, 70, 0.045);
  outline: none;
}
.milo-mark:focus-visible {
  box-shadow: 0 0 0 3px rgba(232, 168, 70, 0.18);
}

/* ═══════════════════════════════════════════════════════════════════
   v6.3 — Olmos batch:
     C8 price bands per species
     C1 stock ticker
     C7 founder section (Jose)
     C9 finished-projects grid
     C3 a11y contrast bumps
   ═══════════════════════════════════════════════════════════════════ */

/* ── C8 · Species price band ───────────────────────────────────── */
.species-price {
  display: inline-block;
  margin-top: 4px;
  padding: 3px 9px;
  font: 700 11px/1.2 var(--mono);
  letter-spacing: 0.04em;
  border-radius: 999px;
  background: rgba(245, 241, 232, 0.92);
  color: var(--ink);
  align-self: flex-start;
  border: 1px solid rgba(26, 22, 18, 0.08);
}
.species[data-wood="arce"] .species-price {
  background: rgba(26, 22, 18, 0.85);
  color: var(--bg);
  border-color: transparent;
}
.species-price-note {
  margin: 18px 0 0;
  font: 500 12px/1.4 var(--sans);
  color: var(--ink-quiet);
  text-align: center;
  font-style: italic;
}

/* ── C1 · Stock ticker ────────────────────────────────────────── */
.stock-ticker {
  margin: clamp(20px, 3vw, 32px) 0 clamp(28px, 3vw, 40px);
  padding: 14px 20px;
  border-radius: 14px;
  background: var(--ink);
  color: var(--bg);
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  border: 1px solid var(--line);
  box-shadow: 0 14px 40px -30px rgba(26,22,18,0.6);
}
.stock-label {
  font: 700 10px/1 var(--mono);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-warm);
  padding: 5px 10px;
  border: 1px solid rgba(232, 168, 70, 0.42);
  border-radius: 999px;
  white-space: nowrap;
}
.stock-list {
  flex: 1 1 320px;
  font: 500 14px/1.4 var(--sans);
  color: var(--bg);
  letter-spacing: 0.005em;
  min-width: 0;
}
.stock-stamp {
  font: 500 11px/1.2 var(--mono);
  letter-spacing: 0.04em;
  color: rgba(245, 241, 232, 0.55);
  white-space: nowrap;
}
@media (max-width: 720px) {
  .stock-ticker { padding: 12px 14px; }
  .stock-list { font-size: 13px; }
}

/* ── C7 · Founder (Jose) section ───────────────────────────────── */
.founder {
  background: var(--bg);
}
.founder-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
}
.founder-photo {
  margin: 0;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: 0 32px 80px -40px rgba(26,22,18,0.4);
  background: var(--ink);
}
.founder-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 5 / 6;
  display: block;
}
.founder-photo figcaption {
  padding: 12px 16px;
  font: 600 12px/1.4 var(--mono);
  letter-spacing: 0.06em;
  color: var(--ink-soft);
  background: var(--bg-warm);
  border-top: 1px solid var(--line);
}
.founder-text h2 {
  margin: 8px 0 22px;
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(34px, 4.4vw, 56px);
  line-height: 1.02;
  letter-spacing: -0.008em;
}
.founder-text h2 em { font-style: italic; color: var(--accent); }
.founder-lead {
  margin: 0 0 18px;
  padding: 0 0 0 18px;
  border-left: 3px solid var(--accent);
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(19px, 2vw, 24px);
  line-height: 1.35;
  color: var(--ink);
}
.founder-text > p:not(.founder-lead) {
  margin: 0 0 24px;
  color: var(--ink-soft);
  font-size: 16px;
  line-height: 1.65;
  max-width: 52ch;
}
.founder-cta-row { display: flex; gap: 10px; flex-wrap: wrap; }
@media (max-width: 880px) {
  .founder-grid { grid-template-columns: 1fr; }
}

/* ── C9 · Finished projects grid (real IG photos via worker) ─── */
.projects-head {
  margin-top: clamp(48px, 6vw, 80px);
  margin-bottom: 18px;
}
.projects-head h3 {
  margin: 0 0 4px;
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(22px, 2.6vw, 30px);
  letter-spacing: -0.005em;
}
.projects-head p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 14px;
}
.projects-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(12px, 1.6vw, 16px);
}
.project {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--ink);
  text-decoration: none;
  display: block;
  color: var(--bg);
}
.project img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.6s ease;
}
.project:hover img { transform: scale(1.04); }
.project-cap {
  position: absolute; left: 12px; bottom: 12px; right: 12px;
  font-family: var(--serif); font-style: italic; font-size: 14px;
  text-shadow: 0 2px 12px rgba(0,0,0,0.6);
}
@media (max-width: 880px) {
  .projects-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ── C3 · A11y / contrast bumps ───────────────────────────────── */
:root {
  /* The previous --ink-quiet 0x786a5a hit ~3.7:1 against cream — below
     WCAG AA 4.5:1 for body text. Bump to a darker shade. */
  --ink-quiet: #5e5246;
}
.video-card-tag { color: #9d5b1f; }   /* was var(--accent) = #b8732a — small text
                                          needs more contrast than the body color */
.svc-card { outline-offset: 2px; }
.svc-card:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}
.species:focus-visible,
.tile-main:focus-visible,
.project:focus-visible,
.btn:focus-visible,
.cfg-mat:focus-visible,
.cfg-pago-cta:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

/* §04 candid grid variant — 3 cards on desktop instead of 4 */
.projects-grid.projects-grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
@media (max-width: 880px) {
  .projects-grid.projects-grid-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .projects-grid.projects-grid-3 { grid-template-columns: 1fr; }
}

/* §04 strip with 4 cards (satellite zoom leads the story) */
.video-strip.video-strip-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
@media (max-width: 1024px) {
  .video-strip.video-strip-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .video-strip.video-strip-4 { grid-template-columns: 1fr; }
}

/* ═══════════════════════════════════════════════════════════════
   MILO floating chat FAB + panel — Olmos brand context (2026-05-22)
   Walnut-dark glass pill + burl-gold pulse. Subtle on paper-cream bg.
   Hidden ≤720px to defer to the existing .mbar bottom quick-actions.
   ═══════════════════════════════════════════════════════════════ */
.milo-fab {
  position: fixed; bottom: 20px; right: 20px; z-index: 90;
  display: inline-flex; align-items: center; gap: 0;
  padding: 10px;
  background: rgba(26, 22, 18, 0.78);
  color: rgba(255, 245, 230, 0.94);
  border: 1px solid rgba(233, 176, 72, 0.32);
  border-radius: 999px;
  font: 500 12.5px/1 var(--sans);
  letter-spacing: 0.02em;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(26, 22, 18, 0.22), 0 1px 0 rgba(255, 245, 230, 0.04) inset;
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  overflow: hidden;
  transition: transform .25s ease, background .25s ease, box-shadow .25s ease, border-color .25s ease, gap .25s ease, padding-right .25s ease;
}
.milo-fab .milo-fab-text {
  display: inline-block;
  max-width: 0; opacity: 0;
  white-space: nowrap; overflow: hidden;
  transition: max-width .3s ease, opacity .2s ease;
}
.milo-fab:hover, .milo-fab:focus-visible, .milo-fab.is-expanded {
  background: rgba(26, 22, 18, 0.94);
  border-color: rgba(233, 176, 72, 0.60);
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(26, 22, 18, 0.36);
  gap: 8px;
  padding-right: 16px;
}
.milo-fab:hover .milo-fab-text,
.milo-fab:focus-visible .milo-fab-text,
.milo-fab.is-expanded .milo-fab-text {
  max-width: 200px; opacity: 1;
}
.milo-fab:focus-visible { outline: 2px solid var(--burl); outline-offset: 3px; }
.milo-fab strong { color: var(--burl); font-weight: 600; letter-spacing: 0.04em; }
/* FAB icon is the "M" letter — mirrors the navbar "O" brand mark.
   Same serif italic, same cream-on-ink. O (Olmos) ↔ M (Mensaje/MILO). */
.milo-fab-icon {
  position: relative;
  display: inline-flex; width: 24px; height: 24px;
  align-items: center; justify-content: center;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 600;
  font-size: 17px;
  line-height: 1;
  color: var(--bg);
  letter-spacing: 0;
  transform: translateY(-0.5px);
}
.milo-fab-icon::after {
  content: ""; position: absolute; top: -1px; right: -1px;
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--burl);
  box-shadow: 0 0 0 1.5px rgba(26, 22, 18, 0.78);
  animation: milo-fab-pulse 2.4s ease-in-out infinite;
}
@keyframes milo-fab-pulse {
  0%, 100% { opacity: 0.55; transform: scale(1);    box-shadow: 0 0 0 1.5px rgba(26, 22, 18, 0.78), 0 0 0 0 rgba(233, 176, 72, 0.5); }
  50%      { opacity: 1.00; transform: scale(1.15); box-shadow: 0 0 0 1.5px rgba(26, 22, 18, 0.78), 0 0 0 5px rgba(233, 176, 72, 0); }
}
@media (prefers-reduced-motion: reduce) { .milo-fab-icon::after { animation: none; opacity: 0.85; } }

/* ═══════════════════════════════════════════════════════════════
   MILO panel v3 — seamless Olmos chat surface (2026-05-22)
   Structured 3-section layout: brand header · scrollable body
   (suggestions or messages) · compose row · slim footer.
   ═══════════════════════════════════════════════════════════════ */
.milo-panel {
  position: fixed; bottom: 84px; right: 20px; z-index: 91;
  width: min(380px, calc(100vw - 40px));
  max-height: calc(100vh - 110px);
  display: flex; flex-direction: column;
  background: var(--panel);
  border-radius: 20px;
  border: 1px solid var(--line);
  box-shadow:
    0 24px 70px rgba(26, 22, 18, 0.28),
    0 4px 12px rgba(26, 22, 18, 0.10),
    0 0 0 1px rgba(255, 245, 230, 0.30) inset;
  overflow: hidden;
  opacity: 0; pointer-events: none; transform: translateY(8px) scale(0.98);
  transition: opacity .25s ease, transform .25s ease;
}
.milo-panel.is-open { opacity: 1; pointer-events: auto; transform: translateY(0) scale(1); }

/* ── Header: avatar + brand + close ─────────────────────────── */
.milo-panel-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  background:
    linear-gradient(135deg, rgba(233, 176, 72, 0.08) 0%, rgba(184, 115, 42, 0.04) 50%, rgba(255, 255, 255, 0) 100%),
    var(--panel);
  border-bottom: 1px solid var(--line-soft);
}
.milo-brand-row { display: flex; align-items: center; gap: 12px; }
/* Panel header avatar — mirrors the navbar .brand-mark O exactly.
   Same shape, same ink bg, same cream letter, same serif italic.
   The visual pair reads as: O (Olmos brand) ↔ M (Mensaje + MILO). */
.milo-avatar {
  position: relative;
  display: grid; place-items: center;
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--bg);
  font: 600 20px/1 var(--serif);
  font-style: italic;
  box-shadow: 0 2px 8px rgba(26, 22, 18, 0.20);
}
.milo-avatar-letter { transform: translateX(0.5px) translateY(-1px); }
.milo-avatar-dot {
  position: absolute; bottom: 1px; right: 1px;
  width: 9px; height: 9px; border-radius: 50%;
  background: #4d6a3a; /* moss-green = "online" */
  box-shadow: 0 0 0 2px var(--panel);
  animation: milo-status-pulse 2.4s ease-in-out infinite;
}
@keyframes milo-status-pulse {
  0%, 100% { box-shadow: 0 0 0 2px var(--panel), 0 0 0 0 rgba(77, 106, 58, 0.45); }
  50%      { box-shadow: 0 0 0 2px var(--panel), 0 0 0 5px rgba(77, 106, 58, 0); }
}
.milo-brand-text { display: flex; flex-direction: column; gap: 2px; }
.milo-brand-name {
  font: 700 14.5px/1 var(--sans); color: var(--ink);
  letter-spacing: 0.04em;
}
.milo-brand-status {
  font: 500 11px/1.2 var(--mono); color: var(--ink-quiet);
  letter-spacing: 0.04em;
}
.milo-brand-status strong { color: #4d6a3a; font-weight: 600; }
.milo-panel-close {
  border: 0; background: transparent; cursor: pointer;
  font-size: 22px; line-height: 1; color: var(--ink-quiet);
  width: 32px; height: 32px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  transition: background .18s ease, color .18s ease;
}
.milo-panel-close:hover, .milo-panel-close:focus-visible {
  background: var(--bg-warm); color: var(--ink);
}

/* ── Body: suggestions (empty state) or scrollable message list ── */
.milo-panel-body {
  flex: 1 1 auto; min-height: 0;
  overflow-y: auto; overscroll-behavior: contain;
  padding: 16px;
  display: flex; flex-direction: column;
  background:
    radial-gradient(120% 80% at 50% 0%, rgba(233, 176, 72, 0.05), transparent 60%),
    var(--panel);
}
.milo-suggestions {
  display: flex; flex-direction: column; gap: 8px; align-items: flex-start;
}
.milo-suggestions.is-hidden { display: none; }
.milo-suggestions-lead {
  font: 400 13.5px/1.5 var(--sans); color: var(--ink-soft);
  margin: 0 0 6px;
}
.milo-chip {
  display: inline-flex; align-items: center;
  padding: 8px 13px;
  font: 500 13px/1.3 var(--sans); color: var(--ink);
  background: var(--bg-warm);
  border: 1px solid var(--line);
  border-radius: 999px;
  cursor: pointer;
  transition: transform .18s ease, background .18s ease, border-color .18s ease, color .18s ease;
  text-align: left;
}
.milo-chip:hover, .milo-chip:focus-visible {
  background: var(--ink); color: var(--bg);
  border-color: var(--ink);
  transform: translateY(-1px);
  outline: none;
}

/* ── Message list ─────────────────────────────────────────── */
.milo-msg-list {
  display: flex; flex-direction: column; gap: 12px;
  padding: 0;
  min-height: 0;
}
.milo-msg-list:empty { display: none; }
.milo-msg-row {
  display: flex; align-items: flex-end; gap: 8px;
  animation: milo-msg-in .35s cubic-bezier(0.2, 0.8, 0.2, 1);
}
@keyframes milo-msg-in {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}
/* AI bubble mini-avatar — same O↔M serif treatment as the navbar.  */
.milo-msg-row-ai .milo-msg-mini-avatar {
  flex: 0 0 auto;
  width: 26px; height: 26px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--bg);
  font: 600 14px/1 var(--serif); font-style: italic;
  display: grid; place-items: center;
  box-shadow: 0 1px 4px rgba(26, 22, 18, 0.18);
}
.milo-msg-row-user { justify-content: flex-end; }
.milo-msg {
  font-size: 13.5px; line-height: 1.55;
  padding: 10px 14px; border-radius: 16px;
  max-width: 78%;
  word-break: break-word;
}
.milo-msg-user {
  background: var(--ink); color: #f7eedf;
  border-bottom-right-radius: 6px;
}
.milo-msg-ai {
  background: var(--bg-warm); color: var(--ink);
  border: 1px solid var(--line);
  border-bottom-left-radius: 6px;
  white-space: pre-wrap;
}
.milo-msg-ai strong { color: var(--accent); }
.milo-msg-typing {
  background: var(--bg-warm); color: var(--ink-quiet);
  border: 1px solid var(--line);
  font-style: italic;
  border-bottom-left-radius: 6px;
}
.milo-msg-typing-dots {
  display: inline-flex; gap: 4px; margin-left: 2px; vertical-align: middle;
}
.milo-msg-typing-dots span {
  width: 4px; height: 4px; border-radius: 50%;
  background: var(--accent);
  animation: milo-typing 1.2s ease-in-out infinite;
}
.milo-msg-typing-dots span:nth-child(2) { animation-delay: 0.18s; }
.milo-msg-typing-dots span:nth-child(3) { animation-delay: 0.36s; }
@keyframes milo-typing {
  0%, 60%, 100% { opacity: 0.3; transform: translateY(0); }
  30% { opacity: 1; transform: translateY(-2px); }
}
.milo-msg-error {
  align-self: stretch;
  background: rgba(184, 60, 50, 0.07);
  color: #7a2820;
  border: 1px solid rgba(184, 60, 50, 0.22);
  font-size: 12.5px; line-height: 1.4;
  padding: 9px 11px; border-radius: 10px;
}

/* ── Compose row ──────────────────────────────────────────── */
.milo-panel-compose {
  display: flex; align-items: flex-end; gap: 8px;
  padding: 12px 14px;
  border-top: 1px solid var(--line-soft);
  background: var(--panel);
}
.milo-panel-compose textarea {
  flex: 1 1 auto;
  padding: 10px 14px;
  min-height: 42px; max-height: 140px;
  border: 1px solid var(--line);
  border-radius: 14px;
  font: 400 14px/1.45 var(--sans);
  color: var(--ink); background: var(--bg-warm);
  resize: none; overflow-y: auto;
  transition: border-color .18s ease, background .18s ease;
}
.milo-panel-compose textarea:focus-visible {
  outline: none; border-color: var(--accent); background: var(--panel);
  box-shadow: 0 0 0 3px rgba(184, 115, 42, 0.12);
}
.milo-send-btn {
  flex: 0 0 auto;
  width: 42px; height: 42px; border-radius: 50%;
  border: 0;
  background: linear-gradient(135deg, var(--ink) 0%, #2a2218 100%);
  color: var(--burl);
  display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: transform .18s ease, background .18s ease, box-shadow .18s ease;
  box-shadow: 0 4px 12px rgba(26, 22, 18, 0.22);
}
.milo-send-btn:hover, .milo-send-btn:focus-visible {
  transform: translateY(-1px);
  background: linear-gradient(135deg, #2a2218 0%, var(--ink) 100%);
  box-shadow: 0 6px 16px rgba(26, 22, 18, 0.32);
  outline: none;
}
.milo-send-btn:disabled { opacity: 0.4; cursor: not-allowed; transform: none; box-shadow: none; }
.milo-send-btn svg { transform: translateX(-1px); }

/* ── Footer hint + WhatsApp fallback ──────────────────────── */
.milo-panel-foot {
  display: flex; align-items: center; justify-content: space-between;
  gap: 10px;
  padding: 9px 14px 11px;
  background: var(--panel);
  border-top: 1px solid var(--line-soft);
}
.milo-panel-hint {
  font: 500 10.5px/1.3 var(--mono); letter-spacing: 0.04em;
  color: var(--ink-quiet);
}
.milo-panel-human {
  font: 600 11.5px/1.3 var(--sans); color: var(--accent);
  text-decoration: underline; text-decoration-color: var(--burl);
  text-underline-offset: 3px;
  white-space: nowrap;
}
.milo-panel-human:hover { color: var(--ink); }

/* ── Mobile positioning ─ never HIDE on mobile (Jorge caught this 3×)
   The MILO chat is the AI access point — it must stay reachable on
   every viewport. The .mbar quick-actions strip sits at bottom on
   ≤720px; raise the FAB + panel above it so both coexist. */
@media (max-width: 720px) {
  .milo-fab {
    bottom: calc(84px + env(safe-area-inset-bottom, 10px));
    right: 12px;
  }
  .milo-panel {
    bottom: calc(146px + env(safe-area-inset-bottom, 10px));
    right: 8px;
    width: calc(100vw - 16px);
    max-height: calc(100vh - 200px - env(safe-area-inset-bottom, 10px));
  }
  /* Slightly larger touch target on mobile while staying subtle */
  .milo-fab { padding: 11px; }
  .milo-fab .milo-fab-icon { width: 26px; height: 26px; font-size: 19px; }
}
@media (max-width: 500px) {
  /* Icon-only on small phones (text would crowd the .mbar above) */
  .milo-fab .milo-fab-text { display: none; }
  .milo-fab:hover .milo-fab-text,
  .milo-fab:focus-visible .milo-fab-text { display: none; }
}

/* ─── DEV pilot additions (2026-06-16) ───────────────────────────
   New surface: dev-pilot-badge in top-bar, <model-viewer> in the
   configurator, coherence-check grid in §08. Same design tokens as
   the rest of the v6 build (paper-cream, oak accent, Cormorant +
   Inter). Mobile-first, prefers-reduced-motion honored. */

/* Top-bar pill that tags the page as the design pilot. */
.dev-pilot-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border: 1px solid var(--accent);
  border-radius: 999px;
  background: rgba(184, 115, 42, 0.10);
  color: var(--accent);
  font: 700 11px/1 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background 0.2s ease;
}
.dev-pilot-badge:hover { background: rgba(184, 115, 42, 0.18); }
.dev-pilot-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 6px rgba(184, 115, 42, 0.6);
}
.dev-pilot-meta {
  color: var(--ink-quiet);
  font-weight: 600;
  letter-spacing: 0.05em;
}

/* 2026-06-16: The configurator's <canvas> is now the primary view
   (works without WebGL, follows the LEARNINGS layout discipline for
   mobile/desktop). The <model-viewer> is the iPhone-AR / desktop-WebGL
   upgrade. When model-viewer loads, the canvas dims to a small preview
   below. When model-viewer fails (CSP block, no WebGL, etc.) the canvas
   is the canonical view. */
.cfg-stage {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.cfg-stage model-viewer {
  width: 100%;
  height: clamp(360px, 50vw, 540px);
  border-radius: 8px;
  background: rgba(26, 22, 18, 0.03);
  --poster-color: transparent;
}
.cfg-stage canvas {
  width: 100%;
  height: clamp(280px, 40vw, 380px);
  border-radius: 8px;
  background: rgba(26, 22, 18, 0.02);
  border: 1px solid var(--line-soft);
}
.mv-ar-btn {
  background: var(--ink);
  color: var(--bg);
  border: none;
  border-radius: 999px;
  padding: 9px 16px;
  font: 600 13px/1 var(--sans);
  cursor: pointer;
}
.mv-progress {
  display: block;
  height: 2px;
  background: rgba(184, 115, 42, 0.85);
  width: 0%;
  transition: width 0.2s ease;
}

/* Footer pilot note (was §08 "coherence" — moved to a footer link
   so the page doesn't end on dev-internal chrome). */
.footer-pilot-note {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--ink-quiet);
}
.footer-pilot-note a {
  color: var(--ink-soft);
  text-decoration: none;
  border-bottom: 1px dashed var(--line-strong);
  padding-bottom: 1px;
}
.footer-pilot-note a:hover { color: var(--accent); border-bottom-color: var(--accent); }

@media (max-width: 820px) {
  .footer-pilot-note { flex-wrap: wrap; }
  .cfg-stage model-viewer { height: clamp(280px, 60vw, 380px); }
}
@media (prefers-reduced-motion: reduce) {
  .dev-pilot-dot { box-shadow: none; }
}
