/* ==========================================================================
   Montejo · Cerrajería · Ferretería · Seguridad — v2 (Digital Bultzada)
   Tokens en :root. Movimiento en motion.js (sin librerías).
   ========================================================================== */

:root {
  /* Marca: el verde original del logotipo manda (#008400) */
  --brand: #008400;          /* logo, botones principales, enlaces sobre claro (4.5:1 sobre papel; texto blanco 4.9:1) */
  --brand-700: #006b00;      /* hover y texto verde pequeño sobre claro (6.2:1) */
  --brand-800: #005c00;      /* bloque de contacto (texto blanco 8.3:1) */
  --brand-bright: #6bd667;   /* el mismo verde aclarado para fondos oscuros (9.7:1) */
  --brand-tint: #a8e8a3;
  --brand-wash: #e3f3e1;
  /* Neutros oscuros con el mismo matiz que el logo (antes tiraban a azul) */
  --forest-950: #0b140c;
  --forest-900: #0f1a10;
  --forest-800: #142216;
  --forest-700: #1d3220;
  --green-600: var(--brand-700);
  --green-700: var(--brand-800);
  --acid: var(--brand-bright);
  --acid-200: var(--brand-tint);
  --paper: #f5f6f1;
  --sand: #e6eae1;
  --white: #fcfcfa;
  --ink: var(--forest-800);
  --muted: #545e55;
  --muted-on-sand: #48524a;
  --on-dark: #f3f6f1;
  --on-dark-muted: #b8c7b9;
  --line: rgba(15, 26, 16, .14);
  --line-dark: rgba(243, 246, 241, .18);
  --error: #a3402e;

  --font-display: "Manrope", "Segoe UI", system-ui, sans-serif;
  --font-body: "DM Sans", "Segoe UI", system-ui, sans-serif;
  --fs-xs: .8125rem; --fs-sm: .875rem; --fs-base: 1rem; --fs-md: 1.125rem; --fs-lg: 1.375rem;
  --fs-h3: clamp(1.5rem, 1.2rem + 1vw, 2rem);
  --fs-h2: clamp(2.75rem, 1.6rem + 4.6vw, 5.75rem);
  --fs-hero: clamp(3.5rem, 1.6rem + 7.4vw, 8rem);

  --s-1: .25rem; --s-2: .5rem; --s-3: .75rem; --s-4: 1rem; --s-5: 1.5rem; --s-6: 2rem; --s-7: 3rem; --s-8: 4rem; --s-9: 6rem; --s-10: 9rem;
  --wrap: min(1240px, calc(100% - 2 * clamp(1rem, 4vw, 2.5rem)));
  --r-sm: 10px; --r-md: 16px; --r-lg: 22px; --r-pill: 999px;
  --shadow: 0 30px 70px -24px rgba(15, 26, 16, .35);

  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --t-press: 160ms; --t-fast: 180ms;
  --touch: 44px;
  --header-h: 76px;
  --z-header: 50; --z-progress: 60; --z-call: 55; --z-intro: 200; --z-skip: 300;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 1rem); -webkit-text-size-adjust: 100%; -webkit-tap-highlight-color: transparent; background: var(--paper); }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--font-body); font-size: var(--fs-base); line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: clip; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 800; letter-spacing: -.035em; margin: 0; text-wrap: balance; }
h1 em, h2 em { font-style: normal; color: var(--acid); }
p { margin: 0; text-wrap: pretty; }
ul, ol { list-style: none; margin: 0; padding: 0; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
button, a, label { touch-action: manipulation; }
button, .btn, .tab, .nav a, .mobile-call, .urgent { user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
::selection { background: var(--brand); color: #fff; }
:focus-visible { outline: 2px solid var(--acid); outline-offset: 3px; border-radius: 6px; }
.section :focus-visible, .stores :focus-visible, .form :focus-visible, .site-header :focus-visible, .site-footer :focus-visible { outline-color: var(--brand); }
.contact :focus-visible { outline-color: var(--acid); }
[hidden] { display: none !important; }
img.is-broken { visibility: hidden; }
.wrap { width: var(--wrap); margin-inline: auto; }
.icon { width: 1.2em; height: 1.2em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.sprite { position: absolute; }
.skip-link { position: absolute; left: 1rem; top: -100px; z-index: var(--z-skip); background: var(--brand); color: #fff; padding: .75rem 1rem; border-radius: var(--r-sm); font-weight: 700; }
.skip-link:focus { top: 1rem; }

/* ---------- Botones ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--s-3); min-height: var(--touch); padding: 0 var(--s-5); border-radius: var(--r-pill); border: 1px solid transparent; font-size: var(--fs-sm); font-weight: 700; white-space: nowrap; transition: background-color var(--t-fast) ease, border-color var(--t-fast) ease, color var(--t-fast) ease, transform var(--t-press) var(--ease-out); }
.btn:active { transform: scale(.97); }
.btn-lg { min-height: 54px; padding: 0 var(--s-6); font-size: var(--fs-base); }
.btn-acid { background: var(--brand); color: #fff; }
.btn-ghost { color: var(--on-dark); border-color: rgba(244, 246, 241, .35); background: rgba(244, 246, 241, .06); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.btn-dark { background: var(--forest-800); color: var(--on-dark); }
.btn-ghost-dark { color: var(--forest-800); border-color: var(--line); background: transparent; }
@media (hover: hover) and (pointer: fine) {
  .btn-acid:hover { background: var(--brand-700); }
  .btn-ghost:hover { background: rgba(244, 246, 241, .14); }
  .btn-dark:hover { background: var(--forest-700); }
  .btn-ghost-dark:hover { border-color: var(--forest-800); }
}
.text-link { display: inline-flex; align-items: center; gap: var(--s-2); min-height: var(--touch); font-weight: 700; color: var(--brand-700); border-bottom: 2px solid var(--brand); }

/* ---------- Progreso y cabecera ---------- */
.scroll-progress { position: fixed; z-index: var(--z-progress); inset: 0 0 auto; height: 3px; pointer-events: none; }
.scroll-progress i { display: block; height: 100%; width: 100%; background: var(--brand); transform: scaleX(0); transform-origin: 0 50%; }
.site-header { position: fixed; z-index: var(--z-header); inset: 0 0 auto; height: var(--header-h); padding: env(safe-area-inset-top) clamp(1rem, 3vw, 2.25rem) 0; display: flex; align-items: center; justify-content: space-between; gap: var(--s-5); color: var(--on-dark); background: linear-gradient(180deg, rgba(5, 18, 14, .75), transparent); transition: background-color 300ms ease, height 300ms var(--ease-out), box-shadow 300ms ease; }
.site-header.scrolled { --header-h: 66px; background-color: rgba(10, 27, 22, .9); -webkit-backdrop-filter: blur(16px) saturate(150%); backdrop-filter: blur(16px) saturate(150%); box-shadow: 0 1px 0 var(--line-dark); }
.brand { display: flex; align-items: center; gap: var(--s-3); min-height: var(--touch); }
.brand-mark { width: 40px; height: 40px; flex: none; border: 1px solid rgba(244, 246, 241, .4); border-radius: 12px; display: grid; place-items: center; font: 800 1rem var(--font-display); color: var(--acid); }
.brand-text b { display: block; font: 800 1rem var(--font-display); letter-spacing: .14em; text-transform: uppercase; }
.brand-text small { display: block; font-size: .6875rem; letter-spacing: .06em; color: var(--on-dark-muted); }
.nav { display: flex; gap: var(--s-1); }
.nav a { display: inline-flex; align-items: center; min-height: var(--touch); padding: 0 var(--s-4); border-radius: var(--r-pill); font-size: var(--fs-sm); font-weight: 600; color: var(--on-dark-muted); transition: color var(--t-fast) ease, background-color var(--t-fast) ease; }
.nav a[aria-current="true"] { color: var(--on-dark); background: rgba(244, 246, 241, .1); }
@media (hover: hover) and (pointer: fine) { .nav a:hover { color: var(--on-dark); } }
.urgent { display: inline-flex; align-items: center; gap: var(--s-2); min-height: var(--touch); padding: 0 var(--s-4); border: 1px solid var(--line-dark); background: rgba(244, 246, 241, .06); border-radius: var(--r-pill); font-size: var(--fs-sm); transition: background-color var(--t-fast) ease, transform var(--t-press) var(--ease-out); }
.urgent b { font-weight: 800; color: var(--acid); }
.urgent:active { transform: scale(.97); }
@media (hover: hover) and (pointer: fine) { .urgent:hover { background: rgba(244, 246, 241, .14); } }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--acid); box-shadow: 0 0 0 0 rgba(107, 214, 103, .6); animation: live 2.4s ease-out infinite; flex: none; }
@keyframes live { 0% { box-shadow: 0 0 0 0 rgba(107, 214, 103, .55); } 70%, 100% { box-shadow: 0 0 0 10px rgba(107, 214, 103, 0); } }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100svh; display: grid; overflow: hidden; isolation: isolate; color: var(--on-dark); background: var(--forest-800); }
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; animation: settle 1600ms var(--ease-out) both; }
.hero-shade { position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(11, 20, 12, .94) 0%, rgba(11, 20, 12, .6) 50%, rgba(11, 20, 12, .2) 100%), linear-gradient(0deg, rgba(11, 20, 12, .7), transparent 40%); }
.hero-inner { display: flex; align-items: center; justify-content: space-between; gap: var(--s-7); padding: calc(var(--header-h) + var(--s-8)) 0 var(--s-9); }
.hero-content { max-width: 820px; }
.hero-content > * { animation: rise 700ms var(--ease-out) both; }
.hero-content > :nth-child(2) { animation-delay: 80ms; }
.hero-content > :nth-child(3) { animation-delay: 160ms; }
.hero-content > :nth-child(4) { animation-delay: 240ms; }
.hero-tag { display: inline-flex; align-items: center; gap: var(--s-2); font-size: var(--fs-sm); font-weight: 600; color: var(--acid-200); margin-bottom: var(--s-5); }
.hero h1 { font-size: var(--fs-hero); line-height: .88; letter-spacing: -.045em; }
.hero h1.is-split { animation: none; }
.lead { max-width: 36rem; color: var(--on-dark-muted); font-size: var(--fs-md); line-height: 1.65; margin: var(--s-6) 0; }
.actions { display: flex; flex-wrap: wrap; gap: var(--s-3); }
.proof { position: relative; width: 220px; height: 220px; flex: none; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line-dark); background: rgba(244, 246, 241, .05); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); animation: rise 800ms 320ms var(--ease-out) both; }
.proof-ring { position: absolute; inset: 0; width: 100%; height: 100%; animation: spin 26s linear infinite; }
.proof-ring text { font: 700 10.5px var(--font-body); letter-spacing: .22em; fill: var(--on-dark-muted); }
.proof strong { font: 800 4.75rem/.8 var(--font-display); letter-spacing: -.06em; font-variant-numeric: tabular-nums; }
.proof sup { font-size: 1.75rem; color: var(--acid); }
.hero-scroll { position: absolute; left: 50%; bottom: var(--s-6); translate: -50% 0; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; border: 1px solid var(--line-dark); color: var(--on-dark); animation: rise 700ms 500ms var(--ease-out) both; }
.hero-scroll .icon { animation: nudge 2.4s ease-in-out 1.6s infinite; }
@keyframes nudge { 0%, 60%, 100% { transform: none; } 30% { transform: translateY(4px); } }

/* ---------- Cinta ---------- */
.marquee { overflow: hidden; background: var(--forest-900); color: var(--on-dark); padding: var(--s-4) 0; border-top: 1px solid var(--line-dark); }
.marquee-track { display: flex; width: max-content; animation: marquee 40s linear infinite; }
.marquee-group { display: flex; align-items: center; gap: var(--s-6); padding-right: var(--s-6); }
.marquee-group span { font: 800 clamp(1.5rem, 1rem + 2vw, 2.75rem) var(--font-display); letter-spacing: -.03em; white-space: nowrap; }
.marquee-group .icon { width: 1.75rem; height: 1.75rem; color: var(--acid); }
@media (hover: hover) and (pointer: fine) { .marquee:hover .marquee-track { animation-play-state: paused; } }

/* ---------- Secciones claras ---------- */
.section { padding: var(--s-10) 0; }
.heading, .intro-section h2 { font-size: var(--fs-h2); line-height: .92; }
h2 .accent { color: var(--green-600); }
.body-lg { font-size: var(--fs-md); line-height: 1.7; color: var(--muted); max-width: 36rem; margin: var(--s-6) 0; }
.grid-intro { display: grid; grid-template-columns: 1.6fr 1fr; gap: var(--s-9); align-items: end; }
.stats { border-top: 1px solid var(--line); }
.stats li { display: flex; align-items: baseline; gap: var(--s-4); padding: var(--s-5) 0; border-bottom: 1px solid var(--line); }
.stats strong { font: 800 clamp(3rem, 2rem + 3vw, 4.5rem)/.9 var(--font-display); letter-spacing: -.05em; font-variant-numeric: tabular-nums; min-width: 2.2ch; }
.stats li > span { color: var(--muted); font-size: var(--fs-sm); }

/* ---------- Cerrajería: imagen que se expande ---------- */
.locks { background: var(--forest-900); color: var(--on-dark); padding-bottom: var(--s-9); }
.cinema { position: relative; height: 230vh; }
.cinema-sticky { position: sticky; top: 0; height: 100vh; height: 100svh; display: grid; place-items: center; overflow: hidden; }
.cinema-frame { position: absolute; inset: 0; clip-path: inset(14% 16% 14% 16% round 28px); background: var(--forest-700); }
.cinema-frame img { width: 100%; height: 100%; object-fit: cover; scale: 1.22; }
.cinema-shade { position: absolute; inset: 0; background: linear-gradient(0deg, rgba(11, 20, 12, .78), rgba(11, 20, 12, .25) 60%); }
.cinema-title { position: relative; z-index: 1; text-align: center; font-size: clamp(3rem, 1.5rem + 6vw, 7rem); line-height: .9; letter-spacing: -.045em; padding: 0 var(--s-5); max-width: 15ch; }
.locks-body { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s-6); padding-top: var(--s-8); }
.locks-body .body-lg { color: var(--on-dark-muted); margin: 0; }
html:not(.js) .cinema, html.js:not(.motion-ready) .cinema { height: auto; }
html:not(.js) .cinema-sticky { position: relative; height: 80vh; }

/* ---------- Tarjetas ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-4); margin-top: var(--s-8); }
.card { position: relative; display: flex; flex-direction: column; min-height: 560px; background: var(--white); border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line); transition: transform 400ms var(--ease-out), box-shadow 400ms var(--ease-out); }
.card-media { height: 55%; min-height: 260px; overflow: hidden; background: var(--sand); }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 800ms var(--ease-out); }
.card-body { display: grid; gap: var(--s-3); padding: var(--s-6); }
.card-icon { width: 28px; height: 28px; color: var(--green-600); }
.card h3 { font-size: var(--fs-h3); letter-spacing: -.03em; }
.card p { color: var(--muted); font-size: var(--fs-sm); line-height: 1.6; }
.card-dark { background: var(--forest-800); color: var(--on-dark); justify-content: flex-end; border-color: transparent; }
.card-dark p { color: var(--on-dark-muted); }
.card-dark .btn { justify-self: start; margin-top: var(--s-3); }
.card-hero-icon { position: absolute; top: var(--s-6); left: var(--s-6); width: 88px; height: 88px; color: var(--acid); stroke-width: 1.1; }
@media (hover: hover) and (pointer: fine) {
  .card:hover { box-shadow: var(--shadow); }
  .card:hover .card-media img { transform: scale(1.05); }
  .card::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity 300ms ease; background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(107, 214, 103, .16), transparent 60%); }
  .card:hover::after { opacity: 1; }
}

/* ---------- Experiencia: el número cuenta con el scroll ---------- */
.experience { position: relative; height: 200vh; background: var(--forest-900); color: var(--on-dark); }
.exp-sticky { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; display: grid; isolation: isolate; }
.exp-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; scale: 1.1; }
.exp-shade { position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(11, 20, 12, .25), rgba(11, 20, 12, .9) 60%); }
.exp-inner { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: var(--s-7); }
.years { font: 800 clamp(7rem, 4rem + 14vw, 15rem)/.8 var(--font-display); letter-spacing: -.07em; color: var(--acid); font-variant-numeric: tabular-nums; }
.years small { display: block; font: 700 var(--fs-lg) var(--font-body); letter-spacing: 0; color: var(--on-dark); margin-top: var(--s-4); }
.exp-card h2 { font-size: clamp(2.5rem, 1.6rem + 3.6vw, 4.75rem); line-height: .92; }
.exp-card p { margin-top: var(--s-5); color: var(--on-dark-muted); font-size: var(--fs-md); line-height: 1.7; max-width: 32rem; }
html:not(.js) .experience, html.js:not(.motion-ready) .experience { height: auto; }
html:not(.js) .exp-sticky { position: relative; min-height: 100vh; }

/* ---------- Historia: la línea se dibuja ---------- */
.timeline { background: var(--sand); }
.timeline-grid { display: grid; grid-template-columns: 1fr 1.8fr; gap: var(--s-9); }
.timeline-list { position: relative; padding-left: var(--s-7); }
.timeline-line { position: absolute; left: 7px; top: 8px; bottom: 8px; width: 2px; background: var(--line); }
.timeline-line i { position: absolute; inset: 0; background: var(--green-700); transform: scaleY(1); transform-origin: 50% 0; }
.timeline-item { position: relative; display: grid; gap: var(--s-2); padding: 0 0 var(--s-8); }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item::before { content: ""; position: absolute; left: calc(-1 * var(--s-7) + 1px); top: 4px; width: 14px; height: 14px; border-radius: 50%; background: var(--sand); border: 2px solid var(--green-700); transition: background-color 300ms ease, transform 300ms var(--ease-out); }
.timeline-item.is-lit::before { background: var(--acid); transform: scale(1.25); }
.t-when { font-size: var(--fs-xs); font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--green-700); }
.timeline-item h3 { font-size: var(--fs-h3); }
.timeline-item p { color: var(--muted-on-sand); max-width: 38rem; }

/* ---------- Urgencias ---------- */
.emergency { position: relative; min-height: 80svh; display: grid; overflow: hidden; isolation: isolate; color: var(--on-dark); background: var(--forest-900); }
.emergency-img { position: absolute; inset: -10% 0; width: 100%; height: 120%; object-fit: cover; z-index: -2; }
.emergency-shade { position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(11, 20, 12, .92), rgba(11, 20, 12, .55)); }
.emergency-inner { display: flex; align-items: center; justify-content: space-between; gap: var(--s-7); padding: var(--s-9) 0; }
.urg-tag { display: inline-flex; align-items: center; gap: var(--s-3); font-weight: 600; color: var(--acid-200); margin-bottom: var(--s-5); }
.emergency h2 { font-size: var(--fs-h2); line-height: .9; }
.emergency-action { border-left: 1px solid var(--line-dark); padding-left: var(--s-7); display: grid; gap: var(--s-4); }
.emergency-action p { color: var(--on-dark-muted); max-width: 18rem; }
.big-phone { display: inline-flex; align-items: center; gap: var(--s-3); font: 800 clamp(2rem, 1.4rem + 2.4vw, 3.25rem) var(--font-display); letter-spacing: -.03em; color: var(--acid); min-height: var(--touch); transition: translate 400ms var(--ease-out); }
.big-phone .icon { width: .8em; height: .8em; }

/* ---------- Tiendas ---------- */
.stores { background: var(--paper); }
.store-layout { display: grid; grid-template-columns: .8fr 1.6fr; gap: var(--s-4); margin-top: var(--s-8); }
.tabs { position: relative; display: flex; flex-direction: column; gap: var(--s-2); }
.tab { position: relative; z-index: 1; display: grid; gap: 2px; min-height: 72px; padding: var(--s-4) var(--s-5); text-align: left; border: 1px solid var(--line); border-radius: var(--r-md); background: transparent; transition: color 250ms ease, border-color 250ms ease, transform var(--t-press) var(--ease-out); }
.tab b { font: 800 var(--fs-lg) var(--font-display); letter-spacing: -.02em; }
.tab span { font-size: var(--fs-sm); color: var(--muted); transition: color 250ms ease; }
.tab[aria-pressed="true"] { color: var(--on-dark); border-color: transparent; }
.tab[aria-pressed="true"] span { color: var(--on-dark-muted); }
.tab:active { transform: scale(.98); }
.tab-indicator { position: absolute; left: 0; right: 0; top: 0; height: 72px; border-radius: var(--r-md); background: var(--forest-800); }
.tabs[data-ready] .tab-indicator { transition: transform 360ms var(--ease-out), height 360ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .tab:not([aria-pressed="true"]):hover { border-color: var(--forest-800); } }
.detail { min-height: 400px; display: flex; flex-direction: column; justify-content: space-between; gap: var(--s-6); padding: var(--s-7); background: var(--sand); border-radius: var(--r-lg); }
.detail-copy { transition: opacity 180ms ease, filter 180ms ease, transform 180ms var(--ease-out); }
.detail-copy.is-swapping { opacity: 0; filter: blur(4px); transform: translateY(6px); }
.detail-name { font-weight: 700; color: var(--green-700); }
.detail h3 { font-size: clamp(2rem, 1.3rem + 2.6vw, 3.5rem); line-height: 1; margin: var(--s-4) 0; max-width: 20ch; }
.detail-address { color: var(--muted-on-sand); }
.detail-actions { display: flex; flex-wrap: wrap; gap: var(--s-3); }

/* ---------- Contacto ---------- */
.contact { background: var(--green-700); color: var(--on-dark); }
.contact h2 { font-size: var(--fs-h2); line-height: .9; }
.contact h2 .accent { color: var(--acid-200); }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-9); }
.contact-copy > p { max-width: 30rem; color: rgba(244, 246, 241, .85); font-size: var(--fs-md); margin: var(--s-6) 0; }
.direct { display: flex; justify-content: space-between; align-items: baseline; gap: var(--s-4); border-top: 1px solid var(--line-dark); padding-top: var(--s-5); margin-top: var(--s-7); }
.direct span { font-size: var(--fs-sm); color: rgba(244, 246, 241, .8); }
.direct a { font: 800 var(--fs-lg) var(--font-display); min-height: var(--touch); display: inline-flex; align-items: center; }
.form { background: var(--white); color: var(--ink); padding: var(--s-7); border-radius: var(--r-lg); display: grid; gap: var(--s-4); box-shadow: var(--shadow); }
.field { display: grid; gap: 6px; }
.field label { font-size: var(--fs-sm); font-weight: 700; }
.opt { font-weight: 400; color: var(--muted); }
.form input, .form textarea { width: 100%; min-height: 50px; padding: var(--s-3) var(--s-4); border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--paper); font-size: var(--fs-base); transition: border-color var(--t-fast) ease; }
.form textarea { resize: vertical; min-height: 130px; }
.form input:focus-visible, .form textarea:focus-visible { outline-offset: 1px; border-color: var(--green-700); }
.form [aria-invalid="true"] { border-color: var(--error); }
.field-error { font-size: var(--fs-xs); color: var(--error); }
.field-error:empty { display: none; }
.submit { justify-content: space-between; width: 100%; }
.form-note { font-size: var(--fs-xs); color: var(--muted); }
.status { display: flex; align-items: center; gap: var(--s-2); font-size: var(--fs-sm); color: var(--green-700); font-weight: 600; }
.status:empty { display: none; }

/* ---------- Pie ---------- */
.site-footer { background: var(--forest-950); color: var(--on-dark); padding: var(--s-8) 0 var(--s-6); }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr .8fr; gap: var(--s-6); align-items: start; }
.footer-info { display: grid; gap: var(--s-2); color: var(--on-dark-muted); font-size: var(--fs-sm); }
.footer-info a { min-height: var(--touch); display: inline-flex; align-items: center; }
.footer-call { display: grid; justify-items: end; color: var(--acid); font-size: var(--fs-sm); }
.footer-call b { font: 800 var(--fs-lg) var(--font-display); }
.footer-bottom { margin-top: var(--s-8); padding-top: var(--s-4); border-top: 1px solid var(--line-dark); display: flex; justify-content: space-between; align-items: center; font-size: var(--fs-xs); color: var(--on-dark-muted); }
.footer-bottom a { display: inline-flex; align-items: center; gap: var(--s-2); min-height: var(--touch); }
.mobile-call { display: none; }

/* ==========================================================================
   Movimiento (estados iniciales activados por motion.js; sin JS no se oculta nada)
   ========================================================================== */
.intro { display: none; }
html.js:not(.no-intro) .intro { position: fixed; inset: 0; z-index: var(--z-intro); display: grid; place-items: center; background: var(--forest-900); animation: intro-failsafe 0s 4s forwards; }
.intro-mark { display: flex; align-items: center; gap: var(--s-4); color: var(--on-dark); font: 800 clamp(2rem, 1.4rem + 3vw, 3.5rem) var(--font-display); letter-spacing: .2em; text-transform: uppercase; opacity: 0; }
.intro-mark .brand-mark { width: 1.6em; height: 1.6em; font-size: .6em; letter-spacing: 0; }
@keyframes intro-failsafe { to { visibility: hidden; } }
html.js:not(.hero-go) .hero-content > *, html.js:not(.hero-go) .hero-img, html.js:not(.hero-go) .proof, html.js:not(.hero-go) .hero-scroll { animation-play-state: paused; }

[data-split].is-split .w { display: inline-block; overflow: hidden; vertical-align: top; padding: .04em .06em .26em; margin: -.04em -.06em -.26em; }
[data-split].is-split .w > span { display: inline-block; transform: translateY(calc(100% + .6em)); transition: transform 1000ms var(--ease-out); transition-delay: calc(var(--i, 0) * 50ms); }
[data-split].is-split.is-in .w > span { transform: none; }

[data-reveal] { opacity: 0; transform: translateY(40px); transition: opacity 900ms var(--ease-out), transform 1000ms var(--ease-out); transition-delay: var(--d, 0ms); }
[data-reveal].is-in { opacity: 1; transform: none; }
.card[data-reveal] { transform: translateY(70px) scale(.97); }
.card[data-reveal].is-in { transform: none; }
[data-magnetic] { transition: translate 400ms var(--ease-out), background-color var(--t-fast) ease, transform var(--t-press) var(--ease-out); }

@keyframes settle { from { transform: scale(1.08); } to { transform: none; } }
@keyframes rise { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-img, .proof-ring, .marquee-track, .hero-scroll .icon, .live-dot { animation: none; }
  .hero-content > *, .proof, .hero-scroll { animation: fade 200ms ease both; }
  .cinema, .experience { height: auto; }
  .cinema-sticky { position: relative; height: 80vh; }
  .cinema-frame { clip-path: none; }
  .cinema-frame img, .exp-img { scale: 1; }
  .exp-sticky { position: relative; min-height: 100vh; }
  .btn:active, .tab:active, .urgent:active { transform: none; }
  .detail-copy { transition: opacity 150ms ease; }
  .detail-copy.is-swapping { filter: none; transform: none; }
}

/* ---------- Tablet ---------- */
@media (max-width: 1000px) {
  .nav { display: none; }
  .grid-intro, .timeline-grid, .contact-grid, .store-layout { grid-template-columns: 1fr; gap: var(--s-6); }
  .cards { grid-template-columns: 1fr; }
  .card { min-height: 0; }
  .card-dark { min-height: 420px; }
  .exp-inner { grid-template-columns: 1fr; align-content: center; gap: var(--s-5); }
  .exp-shade { background: linear-gradient(0deg, rgba(11, 20, 12, .95), rgba(11, 20, 12, .55)); }
  .emergency-inner { flex-direction: column; align-items: flex-start; }
  .emergency-action { border-left: 0; border-top: 1px solid var(--line-dark); padding: var(--s-5) 0 0; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-call { justify-items: start; }
}

/* ---------- Móvil ---------- */
@media (max-width: 760px) {
  :root { --header-h: 64px; }
  .brand-text small { display: none; }
  .urgent span:not(.live-dot) { display: none; }
  .urgent { padding: 0 var(--s-3); }
  .hero-inner { flex-direction: column; align-items: flex-start; justify-content: flex-end; padding-bottom: calc(var(--s-9) + 40px); }
  .proof { position: absolute; right: 0; top: calc(var(--header-h) + var(--s-5)); width: 132px; height: 132px; }
  .proof strong { font-size: 2.75rem; }
  .proof sup { font-size: 1.125rem; }
  .proof-ring text { font-size: 15px; }
  .actions .btn { flex: 1 1 auto; }
  .hero-scroll { display: none; }
  .section { padding: var(--s-9) 0; }
  .cinema { height: 180vh; }
  .cinema-frame { clip-path: inset(14% 6% 14% 6% round 22px); }
  .experience { height: 170vh; }
  .years { font-size: 7rem; }
  .form { padding: var(--s-5); }
  .detail { padding: var(--s-5); min-height: 0; }
  .detail-actions .btn { flex: 1 1 auto; }
  .site-footer { padding-bottom: calc(var(--s-6) + 76px + env(safe-area-inset-bottom)); }
  .mobile-call { position: fixed; z-index: var(--z-call); left: var(--s-3); right: var(--s-3); bottom: calc(var(--s-3) + env(safe-area-inset-bottom)); display: flex; align-items: center; gap: var(--s-3); min-height: 56px; padding: 0 var(--s-5); border-radius: var(--r-pill); background: var(--acid); color: var(--forest-900); font-weight: 700; box-shadow: 0 16px 40px -10px rgba(0, 0, 0, .45); transition: transform var(--t-press) var(--ease-out); }
  .mobile-call b { margin-left: auto; font-family: var(--font-display); font-size: var(--fs-md); }
  .mobile-call .live-dot { background: var(--forest-800); }
  .mobile-call:active { transform: scale(.98); }
}

/* Movimiento reducido: va al final para ganar a las alturas de las secciones fijadas en móvil */
@media (prefers-reduced-motion: reduce) {
  html .cinema, html .experience { height: auto; }
}

/* ---------- Logotipo (vectorizado del original) ---------- */
.logo { display: block; height: auto; fill: currentColor; }
.brand { flex-direction: column; align-items: flex-start; justify-content: center; gap: 4px; }
.logo-header { width: 168px; color: var(--white); }
.brand-tag { font-size: .6875rem; letter-spacing: .06em; color: var(--on-dark-muted); white-space: nowrap; }
.site-header.scrolled .brand-tag { display: none; }
.site-header.scrolled .logo-header { width: 150px; }
.logo-header { transition: width 300ms var(--ease-out); }

/* Intro: el logo con su verde original sobre papel */
html.js:not(.no-intro) .intro { background: var(--paper); }
.intro-mark { flex-direction: column; gap: var(--s-4); letter-spacing: 0; text-transform: none; }
.logo-intro { width: min(560px, 78vw); color: #008400; }
.intro-tag { font: 600 var(--fs-sm) var(--font-body); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }

/* Pie */
.footer-brand { display: grid; gap: var(--s-3); }
.logo-footer { width: 220px; color: var(--white); }
.footer-brand small { font-size: var(--fs-xs); color: var(--on-dark-muted); }

@media (max-width: 760px) {
  .logo-header, .site-header.scrolled .logo-header { width: 132px; }
  .brand-tag { display: none; }
}

/* ==========================================================================
   v3 · Paleta alineada con el verde original del logo
   Cabecera y pie claros para que el logo luzca en su color, sin versiones blancas.
   ========================================================================== */
.site-header, .site-header.scrolled { color: var(--ink); background: rgba(245, 246, 241, .9); -webkit-backdrop-filter: blur(16px) saturate(150%); backdrop-filter: blur(16px) saturate(150%); box-shadow: 0 1px 0 var(--line); }
.site-header.scrolled { box-shadow: 0 1px 0 var(--line), 0 12px 30px -18px rgba(15, 26, 16, .35); }
.logo-header, .logo-footer { color: var(--brand); }
.brand-tag { color: var(--muted); }
.nav a { color: var(--muted); }
.nav a[aria-current="true"] { color: var(--brand-700); background: var(--brand-wash); }
@media (hover: hover) and (pointer: fine) { .nav a:hover { color: var(--ink); } .urgent:hover { background: var(--brand-wash); } }
.urgent { border-color: var(--line); background: var(--white); color: var(--ink); }
.urgent b { color: var(--brand-700); }
.urgent .live-dot { background: var(--brand); }
.hero-tag, .urg-tag { color: var(--brand-tint); }

.site-footer { background: var(--white); color: var(--ink); border-top: 1px solid var(--line); }
.footer-brand small, .footer-info, .footer-bottom { color: var(--muted); }
.footer-call { color: var(--brand-700) !important; }
.footer-call b { color: var(--brand); }
.footer-bottom { border-top-color: var(--line); }

.contact { background: var(--brand-800); }
.contact h2 .accent { color: var(--brand-tint); }
.contact :focus-visible { outline-color: #fff; }

.card-icon { color: var(--brand); }
.card-dark .card-hero-icon { color: var(--brand-bright); }
.t-when, .detail-name { color: var(--brand-700); }
.timeline-line i { background: var(--brand); }
.timeline-item::before { border-color: var(--brand); }
.timeline-item.is-lit::before { background: var(--brand); }
.tab-indicator { background: var(--brand-800); }
.btn-dark { background: var(--forest-800); }

@media (max-width: 760px) {
  .mobile-call { background: var(--brand); color: #fff; }
  .mobile-call .live-dot { background: #fff; box-shadow: none; animation: none; }
}

/* ==========================================================================
   v4 · Contacto directo (sin formulario) y sin urgencias 24 h
   ========================================================================== */
.urgent .icon { color: var(--brand); }
.contact-list { display: grid; gap: var(--s-3); align-content: start; }
.contact-item { display: flex; align-items: center; gap: var(--s-4); min-height: 88px; padding: var(--s-4) var(--s-5); background: var(--white); color: var(--ink); border-radius: var(--r-lg); box-shadow: var(--shadow); transition: background-color var(--t-fast) ease, transform var(--t-press) var(--ease-out); }
.contact-item > .icon:first-child { width: 48px; height: 48px; padding: 12px; border-radius: 50%; background: var(--brand-wash); color: var(--brand-700); }
.contact-item > span { display: grid; gap: 2px; min-width: 0; }
.contact-item small { font-size: var(--fs-xs); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.contact-item b { font: 800 clamp(1.25rem, 1rem + 1vw, 1.75rem) var(--font-display); letter-spacing: -.02em; overflow-wrap: anywhere; }
.contact-item .contact-mail { font-size: clamp(1.05rem, .9rem + .8vw, 1.5rem); }
.contact-go { margin-left: auto; color: var(--brand); }
.contact-item:active { transform: scale(.98); }
@media (hover: hover) and (pointer: fine) { .contact-item:hover { background: var(--brand-wash); } }
.footer-call { gap: 2px; }
.footer-call a { min-height: var(--touch); display: inline-flex; align-items: center; }
.mobile-call .icon { width: 1.1em; height: 1.1em; }
@media (max-width: 760px) {
  .contact-item { min-height: 76px; padding: var(--s-3) var(--s-4); gap: var(--s-3); }
  .contact-item > .icon:first-child { width: 42px; height: 42px; padding: 10px; }
}
@media (prefers-reduced-motion: reduce) { .contact-item:active { transform: none; } }

/* Firma Digital Bultzada */
.footer-bottom { flex-wrap: wrap; gap: var(--s-2) var(--s-5); }
.credit { display: inline-flex; align-items: center; gap: var(--s-2); min-height: var(--touch); color: var(--muted); transition: color var(--t-fast) ease; }
.credit img { width: 20px; height: 20px; border-radius: 50%; flex: none; }
.credit b { font-weight: 700; color: var(--ink); }
@media (hover: hover) and (pointer: fine) { .credit:hover, .credit:hover b { color: var(--brand-700); } }
@media (max-width: 760px) { .footer-bottom { justify-content: flex-start; } .credit { order: 3; width: 100%; } }

/* Titulares grandes: algo más de aire entre letras y palabras */
h1, h2 { letter-spacing: -.02em; }
.hero h1, .cinema-title { letter-spacing: -.022em; }
[data-split] { word-spacing: .06em; }
.cinema-title { line-height: 1.04; }
.hero h1 { line-height: .98; }
.heading, .intro-section h2, .emergency h2, .contact h2, .exp-card h2 { line-height: 1; }
