﻿/* ==========================================================================
   tokens.css â€” Design system (L T Blinds Â· warm greige / sage / warm-wood)
   VS Web Studio Â· 2026. Single source of truth for color, type, space, motion.
   Palette pulled from the brand mark (sage #5f7a67, espresso #3a322b, taupe #8a7f72).
   ========================================================================== */

:root {
  color-scheme: light dark;

  /* --- Raw palette: cream paper + espresso ink + sage signal + warm wood --- */
  --cream:     #f7f2e9;   /* warm paper */
  --cream-2:   #efe7d8;   /* sunken */
  --white:     #fffdf8;   /* elevated */

  --espresso:  #2f2822;   /* deep ink */
  --espresso-2:#43392f;
  --taupe-600: #6f6456;   /* muted text */
  --taupe-400: #a99a86;
  --taupe-200: #d9cebc;

  --sage-800:  #3f5546;
  --sage-700:  #4c6553;
  --sage-600:  #5f7a67;   /* brand primary */
  --sage-500:  #6f8b76;
  --sage-200:  #cfdbd0;
  --sage-100:  #e4ecdf;

  --wood:      #a9824f;   /* warm-wood accent (sparingly) */
  --wood-soft: #c9a879;

  /* Status */
  --good: #5f7a67;

  /* --- Semantic tokens (LIGHT default) --- */
  --bg:            var(--cream);
  --bg-elevated:   var(--white);
  --bg-sunken:     var(--cream-2);
  --bg-inverse:    var(--espresso);

  --text:          var(--espresso);
  --text-muted:    var(--taupe-600);
  --text-inverse:  var(--cream);

  --border:        #e6dcca;   /* hairline */
  --border-strong: #d6c9b2;

  --primary:           var(--sage-600);
  --primary-strong:    var(--sage-700);
  --primary-contrast:  #fbfcf9;
  --primary-tint:      var(--sage-100);

  --accent:        var(--wood);

  --focus-ring:    var(--sage-700);

  /* --- Typography â€” Fraunces (display) + Inter (body) --- */
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body:    "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono:    "Inter", ui-sans-serif, system-ui, sans-serif;

  /* Fluid type scale (clamp) â€” base 16px */
  --step--1: clamp(0.83rem, 0.80rem + 0.15vw, 0.92rem);
  --step-0:  clamp(1.00rem, 0.96rem + 0.20vw, 1.13rem);
  --step-1:  clamp(1.20rem, 1.12rem + 0.40vw, 1.50rem);
  --step-2:  clamp(1.44rem, 1.30rem + 0.70vw, 2.00rem);
  --step-3:  clamp(1.73rem, 1.50rem + 1.15vw, 2.67rem);
  --step-4:  clamp(2.07rem, 1.70rem + 1.85vw, 3.35rem);
  --step-5:  clamp(2.30rem, 1.85rem + 2.40vw, 3.9rem);

  --leading-tight: 1.08;
  --leading-snug:  1.25;
  --leading-body:  1.62;

  --tracking-tight: -0.018em;
  --tracking-wide:  0.18em;

  /* --- Space (4px scale) --- */
  --space-2xs: 0.25rem;
  --space-xs:  0.5rem;
  --space-sm:  0.75rem;
  --space-md:  1rem;
  --space-lg:  1.5rem;
  --space-xl:  2.5rem;
  --space-2xl: 4rem;
  --space-3xl: 6rem;

  /* --- Layout --- */
  --container:      74rem;
  --container-wide: 86rem;
  --container-prose: 42rem;
  --gutter: clamp(1.1rem, 4vw, 2.75rem);

  /* --- Radii --- */
  --radius-sm: 8px;
  --radius:    14px;
  --radius-lg: 22px;
  --radius-pill: 999px;

  /* --- Shadows (soft, warm) --- */
  --shadow-sm: 0 1px 2px rgba(47,40,34,0.06), 0 1px 1px rgba(47,40,34,0.04);
  --shadow:    0 6px 22px rgba(47,40,34,0.09), 0 2px 6px rgba(47,40,34,0.06);
  --shadow-lg: 0 26px 60px rgba(47,40,34,0.16), 0 8px 20px rgba(47,40,34,0.09);

  /* --- Motion --- */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-spring: cubic-bezier(0.34, 1.4, 0.5, 1);
  --dur-fast: 150ms;
  --dur:      320ms;
  --dur-slow: 620ms;

  --header-h: 4.6rem;
}

/* --- DARK theme --- */
[data-theme="dark"] {
  --bg:            #201c18;
  --bg-elevated:   #2a251f;
  --bg-sunken:     #1a1713;
  --bg-inverse:    var(--cream);

  --text:          #f1ebe0;
  --text-muted:    #b7ab99;
  --text-inverse:  var(--espresso);

  --border:        #3a332b;
  --border-strong: #4b4238;

  --primary:           #86a48c;
  --primary-strong:    #98b39d;
  --primary-contrast:  #1a1713;
  --primary-tint:      #2c352c;

  --accent:        var(--wood-soft);

  --shadow-sm: 0 1px 2px rgba(0,0,0,0.4);
  --shadow:    0 8px 24px rgba(0,0,0,0.45);
  --shadow-lg: 0 28px 64px rgba(0,0,0,0.55);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg:            #201c18;
    --bg-elevated:   #2a251f;
    --bg-sunken:     #1a1713;
    --bg-inverse:    var(--cream);
    --text:          #f1ebe0;
    --text-muted:    #b7ab99;
    --text-inverse:  var(--espresso);
    --border:        #3a332b;
    --border-strong: #4b4238;
    --primary:           #86a48c;
    --primary-strong:    #98b39d;
    --primary-contrast:  #1a1713;
    --primary-tint:      #2c352c;
    --accent:        var(--wood-soft);
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.4);
    --shadow:    0 8px 24px rgba(0,0,0,0.45);
    --shadow-lg: 0 28px 64px rgba(0,0,0,0.55);
  }
}

/* ==========================================================================
   base.css â€” Reset moderno + tipografÃ­a base + accesibilidad
   ========================================================================== */

/* Reset acotado y predecible */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  /* Compensa el header fijo al saltar a anclas */
  scroll-padding-top: calc(var(--header-h) + 1rem);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body {
  min-height: 100svh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: var(--leading-body);
  font-synthesis: none;
  /* Reserva ascendente para evitar CLS al cargar la fuente */
  overflow-x: clip;
}

img, picture, svg, video, canvas {
  display: block;
  max-width: 100%;
  height: auto;
}

input, button, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: none; }

ul[role="list"], ol[role="list"] { list-style: none; padding: 0; }

a { color: inherit; text-decoration-thickness: 0.08em; text-underline-offset: 0.16em; }

/* Titulares â€” equilibrio de lÃ­neas (evita huÃ©rfanas) */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-tight);
  text-wrap: balance;
}
p { text-wrap: pretty; }

h1 { font-size: var(--step-5); }
h2 { font-size: var(--step-4); }
h3 { font-size: var(--step-2); }
h4 { font-size: var(--step-1); }

strong { font-weight: 650; }

::selection {
  background: var(--primary);
  color: var(--primary-contrast);
}

/* Foco visible y consistente para teclado (a11y) */
:focus-visible {
  outline: 3px solid var(--focus-ring);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}
:focus:not(:focus-visible) { outline: none; }

/* Saltar al contenido (a11y) */
.skip-link {
  position: absolute;
  left: var(--space-md);
  top: -100%;
  z-index: 200;
  padding: 0.6rem 1rem;
  background: var(--bg-inverse);
  color: var(--text-inverse);
  border-radius: var(--radius-sm);
  font-weight: 600;
  transition: top var(--dur-fast) var(--ease-out);
}
.skip-link:focus-visible { top: var(--space-md); }

/* SÃ³lo lectores de pantalla */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

/* Respeta usuarios que reducen movimiento */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* ==========================================================================
   Viewport fit â€” el hero llena la pantalla sin recortar; secciones por contenido.
   Ver references/viewport-fit-system.md. "Caber" nunca significa clipear.
   ========================================================================== */

/* HERO: llena EXACTAMENTE una pantalla bajo el header sticky. El header es position:sticky
   (ocupa --header-h EN EL FLUJO), por eso se RESTA --header-h â€” NO se suma como padding. Sumarlo
   hace el hero = header + 100svh y se pasa de una pantalla (bug real). Contenido centrado, compacto
   y escalable con la altura. NUNCA height:100vh; NUNCA max-height que recorte el TEXTO. El hero se
   diseÃ±a para CABER; si el copy fuera excesivo, el salvavidas JS baja la escala (no crece, no clipea). */
.hero {
  min-height: calc(100svh - var(--header-h));
  display: grid;
  align-content: center;
  gap: clamp(0.8rem, 2svh, 1.75rem);
  padding-block: clamp(1rem, 2.4svh, 2.25rem);
  padding-inline: var(--gutter);
}
/* Tope del titular DELIBERADAMENTE bajo (<=3.6rem): en monitores anchos evita el titular gigante
   que se parte en 4 lÃ­neas y empuja los CTA fuera de pantalla. Mezcla ancho (vw) + alto (svh). */
.hero__title {
  font-size: clamp(1.9rem, 1.2rem + 2vw + 1.4svh, 3.6rem);
  line-height: 1.05;
  text-wrap: balance;
}
.hero__subtitle { font-size: clamp(1rem, 1.4svh + 0.4vw, 1.3rem); max-width: 46ch; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 0.75rem; }

/* Salvavidas opcional: si el contenido excede el alto, encoge la escala (no recorta, no crece). */
[data-hero-fit] > * { font-size: calc(1em * var(--hero-scale, 1)); }

/* Media del hero: en mÃ³vil (apilada bajo el texto) se limita para que TEXTO+IMAGEN quepan;
   en escritorio (2 col) se limita para no exceder el alto. object-fit:cover evita deformar. */
/* MÃ“VIL/TABLET: hero de ALTURA DEFINIDA; el texto va compacto y la 2Âª columna apilada (imagen)
   toma SOLO el hueco restante bajo el texto (flex-fill). AsÃ­ el hero nunca se pasa de una pantalla,
   sin importar el largo del copy â€” si el texto fuera enorme, la imagen se encoge (no desborda). */
@media (max-width: 59.99rem) {
  /* '.hero .hero-grid' (0,2,0) para GANARLE a layout.css '.hero-grid{display:grid}' (0,1,0), que se
     concatena despuÃ©s; si no, el grid seguirÃ­a activo y la imagen no tomarÃ­a el hueco restante. */
  .hero { display: flex; height: calc(100svh - var(--header-h)); min-height: 0; align-items: stretch; }
  .hero > .container { display: flex; flex-direction: column; min-height: 0; }
  .hero .hero-grid { display: flex; flex-direction: column; flex: 1 1 auto; min-height: 0; gap: clamp(0.7rem, 2svh, 1.2rem); align-items: stretch; }
  .hero .hero-grid > :first-child { flex: 0 0 auto; }                                   /* texto: alto natural */
  .hero .hero-grid > :last-child:not(:first-child) { flex: 1 1 auto; min-height: 0; overflow: hidden; aspect-ratio: auto; } /* media: el resto */
  /* !important vence cualquier aspect-ratio/height en lÃ­nea del autor: la imagen SIEMPRE llena el hueco
     restante y recorta con object-fit (centrado), garantizando que el hero quepa en una pantalla. */
  .hero .hero-grid > :last-child:not(:first-child) img { height: 100% !important; width: 100%; max-height: none !important; object-fit: cover; aspect-ratio: auto !important; }
  .hero__title { font-size: clamp(1.65rem, 5.5vw + 0.4rem, 2.5rem); }
  .hero__lead { font-size: 1rem; line-height: 1.45; }
}
/* ESCRITORIO: 2 columnas; la imagen se limita para no exceder el alto de la pantalla. */
@media (min-width: 60rem) {
  .hero-grid img, .hero-grid > figure, .hero-grid > .hero__media { max-height: calc(100svh - var(--header-h) - 4rem); object-fit: cover; }
}

/* Pantallas de POCA ALTURA: compactar por tramos para caber en laptops cortas / ventanas con
   muchas barras. El desborde real ocurriÃ³ a 1920x900 (ancha pero baja), no solo en mÃ³vil horizontal. */
@media (max-height: 820px) {
  .hero { padding-block: clamp(0.85rem, 1.8svh, 1.4rem); }
  .hero__title { font-size: clamp(1.7rem, 1.05rem + 1.7vw + 1svh, 2.9rem); }
}
@media (max-height: 660px) {
  .hero__title { font-size: clamp(1.5rem, 1rem + 1.5vw, 2.35rem); line-height: 1.06; }
  .hero__subtitle { font-size: 0.98rem; }
}
@media (max-height: 560px) {
  .hero { min-height: auto; align-content: start; padding-block: clamp(0.75rem, 1.5svh, 1.1rem); }
  .hero__title { font-size: clamp(1.5rem, 6.5vw, 2.2rem); }
}

/* SECCIONES: altura por contenido, NUNCA fija. Padding proporcional. */
.section { padding-block: clamp(3rem, 8vw, 6rem); padding-inline: var(--gutter); }
.section--tight { padding-block: clamp(2rem, 5vw, 3.5rem); }

/* SecciÃ³n full-screen SOLO para storytelling deliberado (no de contenido). */
.section--fullscreen {
  min-height: 100svh;      /* NO height:100vh */
  display: grid;
  align-content: center;
}
@media (max-height: 560px) { .section--fullscreen { min-height: auto; } }

/* ==========================================================================
   layout.css â€” Contenedores, secciones y rejillas
   Layout moderno: grid + flex + container queries + logical properties
   ========================================================================== */

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.container--wide  { max-width: var(--container-wide); }
.container--prose { max-width: var(--container-prose); }

/* Ritmo vertical por secciÃ³n */
.section {
  padding-block: var(--space-3xl);
}
.section--tight { padding-block: var(--space-2xl); }
.section--sunken { background: var(--bg-sunken); }
.section--ink {
  background: var(--bg-inverse);
  color: var(--text-inverse);
}
.section--ink .eyebrow { color: var(--amber-300); }
.section--ink .text-muted { color: var(--ink-300); }

/* Encabezado de secciÃ³n */
.section-head {
  max-width: 46rem;
  margin-bottom: var(--space-xl);
}
.section-head--center {
  margin-inline: auto;
  text-align: center;
}

/* Rejilla auto-fit reutilizable (responsive sin media queries) */
.grid {
  display: grid;
  gap: var(--space-lg);
}
.grid--auto {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr));
}
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr)); }

/* Hero: dos columnas que colapsan */
.hero-grid {
  display: grid;
  gap: var(--space-2xl);
  align-items: center;
}
@media (min-width: 60rem) {
  .hero-grid {
    grid-template-columns: 1.05fr 0.95fr;
    gap: var(--space-3xl);
  }
}

/* Cluster (fila flexible con wrap) */
.cluster {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
  align-items: center;
}
.cluster--between { justify-content: space-between; }

/* Stack (columna con gap) */
.stack { display: flex; flex-direction: column; gap: var(--space-md); }
.stack--lg { gap: var(--space-lg); }

/* Divisor con etiqueta de datos */
.rule {
  height: 1px;
  background: var(--border);
  border: 0;
}

/* Contexto de container query para tarjetas */
.cq { container-type: inline-size; }

/* ==========================================================================
   components.css â€” L T Blinds bespoke UI
   Warm greige / sage / warm-wood. Fraunces + Inter. Restrained, elegant motion.
   ========================================================================== */

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55ch;
  padding: .8rem 1.35rem; min-height: 2.9rem;
  background: var(--primary); color: var(--primary-contrast);
  border: 1px solid transparent; border-radius: var(--radius-pill);
  font-weight: 600; font-size: var(--step-0); line-height: 1;
  text-decoration: none; white-space: nowrap; cursor: pointer;
  box-shadow: 0 1px 2px rgba(47,40,34,.12);
  transition: transform var(--dur-fast) var(--ease-out), background var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease-out);
}
.btn:hover { background: var(--primary-strong); transform: translateY(-2px); box-shadow: var(--shadow); }
.btn:active { transform: translateY(0); }
.btn--lg { padding: 1rem 1.7rem; min-height: 3.3rem; font-size: var(--step-1); }
.btn--ghost {
  background: transparent; color: var(--text);
  border-color: var(--border-strong); box-shadow: none;
}
.btn--ghost:hover { background: color-mix(in srgb, var(--primary) 10%, transparent); border-color: var(--primary); color: var(--text); }
.btn svg { flex: 0 0 auto; }

.link-arrow {
  display: inline-flex; align-items: center; gap: .5ch;
  font-weight: 600; color: var(--primary-strong); text-decoration: none;
  font-size: var(--step-0);
}
.link-arrow svg { transition: transform var(--dur) var(--ease-out); }
.link-arrow:hover svg { transform: translateX(4px); }

/* ---------- Eyebrow ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: .6ch;
  font-family: var(--font-body); font-size: var(--step--1); font-weight: 600;
  letter-spacing: var(--tracking-wide); text-transform: uppercase; color: var(--primary-strong);
  margin-bottom: .9rem;
}
.eyebrow--center { justify-content: center; }
.eyebrow__dot { inline-size: .5rem; block-size: .5rem; border-radius: 50%; background: var(--accent); }

/* ---------- Header ---------- */
.site-header { border-block-end: 1px solid transparent; }
.site-header[data-scrolled="true"] {
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  border-block-end-color: var(--border);
  box-shadow: 0 1px 0 rgba(47,40,34,.02), var(--shadow-sm);
}
.brand__logo { height: 1.85rem; width: auto; }
.hdr__links { display: none; gap: .35rem; justify-self: center; }
.hdr__link {
  padding: .5rem .8rem; border-radius: var(--radius-pill);
  font-weight: 500; font-size: .96rem; color: var(--text); text-decoration: none;
  transition: background var(--dur-fast), color var(--dur-fast);
}
.hdr__link:hover { background: var(--primary-tint); color: var(--primary-strong); }
.hdr__actions { display: flex; align-items: center; gap: .6rem; justify-self: end; }
.hdr__phone {
  display: none; align-items: center; gap: .5ch;
  font-weight: 600; font-size: .95rem; color: var(--text); text-decoration: none;
}
.hdr__phone:hover { color: var(--primary-strong); }
.hdr__phone svg { color: var(--primary-strong); }
.hdr__cta { display: none; min-height: 2.6rem; padding: .55rem 1.1rem; }

.icon-btn {
  inline-size: 2.6rem; block-size: 2.6rem; display: inline-grid; place-items: center;
  border-radius: var(--radius-pill); border: 1px solid var(--border-strong);
  background: var(--bg-elevated); color: var(--text); cursor: pointer;
  transition: border-color var(--dur-fast), color var(--dur-fast);
}
.icon-btn:hover { border-color: var(--primary); color: var(--primary-strong); }
.icon-btn .sun { display: none; }
[data-theme="dark"] .icon-btn .sun { display: block; }
[data-theme="dark"] .icon-btn .moon { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .icon-btn .sun { display: block; }
  :root:not([data-theme="light"]) .icon-btn .moon { display: none; }
}

.nav-toggle {
  inline-size: 2.6rem; block-size: 2.6rem; display: inline-grid; place-items: center;
  border-radius: var(--radius-pill); border: 1px solid var(--border-strong);
  background: var(--bg-elevated); color: var(--text); cursor: pointer;
}

/* ---------- Mobile menu ---------- */
.mobile-menu {
  position: fixed; inset: var(--header-h) 0 auto 0; z-index: 99;
  display: none; flex-direction: column; gap: .25rem;
  padding: 1rem var(--gutter) 1.5rem;
  background: var(--bg-elevated); border-block-end: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
}
.mobile-menu[data-open="true"] { display: flex; animation: menuIn var(--dur) var(--ease-out); }
.mobile-menu a {
  padding: .85rem .5rem; font-size: 1.1rem; font-weight: 500;
  color: var(--text); text-decoration: none; border-block-end: 1px solid var(--border);
}
.mobile-menu a:last-child { border: 0; }
.mobile-menu__cta { justify-content: center; margin-top: .6rem; color: var(--primary-contrast) !important; }
@keyframes menuIn { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }

/* ---------- Section head ---------- */
.section-head__lead { color: var(--text-muted); font-size: var(--step-1); margin-top: .8rem; }
.section-head--center .section-head__lead { margin-inline: auto; }
h2 { font-size: var(--step-4); }

/* ---------- HERO ---------- */
.hero { position: relative; }
.hero__lead { color: var(--text-muted); font-size: clamp(1.02rem, 1.4svh + .4vw, 1.28rem); max-width: 40ch; margin-top: 1rem; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.6rem; }
.hero__trust {
  display: flex; flex-wrap: wrap; gap: 1.1rem; margin-top: 1.7rem;
  color: var(--text-muted); font-size: .92rem; font-weight: 500;
}
.hero__trust li { display: inline-flex; align-items: center; gap: .5ch; }
.hero__trust svg { color: var(--primary-strong); }
.hero__media { position: relative; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); }
.hero__media img { width: 100%; border-radius: var(--radius-lg); }
.hero__media-tag {
  position: absolute; left: .9rem; bottom: .9rem;
  display: inline-flex; align-items: center; gap: .5ch;
  padding: .5rem .85rem; border-radius: var(--radius-pill);
  background: color-mix(in srgb, var(--bg-elevated) 82%, transparent);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  font-size: .82rem; font-weight: 600; color: var(--text);
}
.hero__media-tag svg { color: var(--primary-strong); }

/* ---------- Product grid ---------- */
.product-grid {
  display: grid; gap: var(--space-lg);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
}
.product-card {
  display: flex; flex-direction: column;
  background: var(--bg-elevated); border: 1px solid var(--border);
  border-radius: var(--radius-lg); overflow: hidden;
  transition: transform var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease-out), border-color var(--dur);
}
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--border-strong); }
.product-card__media { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; }
.product-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--dur-slow) var(--ease-out); }
.product-card:hover .product-card__media img { transform: scale(1.06); }
.product-card__badge {
  position: absolute; left: .8rem; top: .8rem;
  display: inline-flex; align-items: center; gap: .5ch;
  padding: .4rem .75rem; border-radius: var(--radius-pill);
  background: color-mix(in srgb, var(--bg-elevated) 88%, transparent);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  font-size: .8rem; font-weight: 600; color: var(--text);
}
.product-card__badge svg { color: var(--primary-strong); }
.product-card__body { padding: 1.3rem 1.3rem 1.5rem; display: flex; flex-direction: column; gap: .5rem; flex: 1; }
.product-card__tag { font-size: .8rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--accent); }
.product-card__body h3 { font-size: var(--step-2); }
.product-card__desc { color: var(--text-muted); font-size: .96rem; flex: 1; }
.product-card__body .link-arrow { margin-top: .4rem; font-size: .95rem; }

/* ---------- Selector (star) ---------- */
.section--selector { background:
  radial-gradient(120% 90% at 80% -10%, color-mix(in srgb, var(--primary) 12%, transparent), transparent 60%),
  var(--bg); }
.selector {
  background: var(--bg-elevated); border: 1px solid var(--border);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); overflow: hidden;
}
.selector__tabs {
  display: flex; flex-wrap: wrap; gap: .4rem; padding: .7rem;
  border-block-end: 1px solid var(--border); background: var(--bg-sunken);
}
.selector__tab {
  flex: 1 1 auto; display: inline-flex; align-items: center; justify-content: center; gap: .5ch;
  min-height: 3rem; padding: .6rem 1rem; border-radius: var(--radius);
  border: 1px solid transparent; background: transparent;
  font-weight: 600; font-size: .98rem; color: var(--text-muted); cursor: pointer;
  transition: background var(--dur-fast), color var(--dur-fast), border-color var(--dur-fast);
}
.selector__tab svg { color: currentColor; }
.selector__tab:hover { color: var(--text); background: color-mix(in srgb, var(--primary) 8%, transparent); }
.selector__tab[aria-selected="true"] {
  background: var(--primary); color: var(--primary-contrast);
  border-color: var(--primary); box-shadow: 0 2px 8px color-mix(in srgb, var(--primary) 40%, transparent);
}
.selector__stage { display: grid; }
@media (min-width: 52rem) { .selector__stage { grid-template-columns: 1.05fr .95fr; } }
.selector__media { position: relative; aspect-ratio: 4 / 3; background: var(--bg-sunken); }
@media (min-width: 52rem) { .selector__media { aspect-ratio: auto; min-height: 26rem; } }
.selector__img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transform: scale(1.02);
  transition: opacity var(--dur-slow) var(--ease-out), transform var(--dur-slow) var(--ease-out);
}
.selector__img.is-active { opacity: 1; transform: scale(1); }
.selector__panels { position: relative; padding: 1.8rem clamp(1.3rem, 3vw, 2.2rem) 1.6rem; display: flex; flex-direction: column; }
.selector__panel { display: none; animation: panelIn var(--dur) var(--ease-out); }
.selector__panel.is-active { display: block; }
@keyframes panelIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.selector__tag { display: inline-flex; align-items: center; gap: .5ch; font-size: .82rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--accent); }
.selector__tag svg { color: var(--accent); }
.selector__title { font-size: var(--step-3); margin: .5rem 0 .6rem; }
.selector__desc { color: var(--text-muted); font-size: 1.02rem; }
.selector__best-label { margin-top: 1.1rem; font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--text); }
.selector__best { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .6rem; }
.selector__best li {
  display: inline-flex; align-items: center; gap: .45ch;
  padding: .35rem .75rem; border-radius: var(--radius-pill);
  background: var(--primary-tint); color: var(--primary-strong);
  font-size: .86rem; font-weight: 600;
}
.selector__best svg { color: var(--primary-strong); }
.selector__foot { margin-top: auto; padding-top: 1.5rem; border-block-start: 1px solid var(--border); display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.3rem; }
.selector__how { display: inline-flex; align-items: center; gap: .5rem; flex-wrap: wrap; }
.selector__how-step { display: inline-flex; align-items: center; gap: .45ch; font-size: .84rem; font-weight: 600; color: var(--text); }
.selector__how-step svg { color: var(--primary-strong); }
.selector__how-arrow { color: var(--text-muted); display: inline-flex; }
.selector__cta { margin-left: auto; }

/* ---------- Process ---------- */
.process {
  display: grid; gap: var(--space-lg); list-style: none; padding: 0; counter-reset: step;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr));
}
.process__step {
  position: relative; padding: 1.6rem 1.4rem;
  background: var(--bg-elevated); border: 1px solid var(--border); border-radius: var(--radius-lg);
}
.process__num {
  position: absolute; top: 1.1rem; right: 1.2rem;
  font-family: var(--font-display); font-size: 2.4rem; font-weight: 600;
  color: color-mix(in srgb, var(--accent) 40%, transparent); line-height: 1;
}
.process__icon { display: inline-grid; place-items: center; inline-size: 3rem; block-size: 3rem; border-radius: var(--radius); background: var(--primary-tint); color: var(--primary-strong); margin-bottom: 1rem; }
.process__title { font-size: var(--step-1); margin-bottom: .4rem; }
.process__text { color: var(--text-muted); font-size: .96rem; }
.process__cta { display: flex; justify-content: center; margin-top: var(--space-xl); }

/* ---------- Why ---------- */
.why-grid { display: grid; gap: var(--space-2xl); align-items: center; }
@media (min-width: 56rem) { .why-grid { grid-template-columns: .95fr 1.05fr; gap: var(--space-3xl); } }
.why__media { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); }
.why__media img { width: 100%; height: 100%; object-fit: cover; }
.why__lead { color: var(--text-muted); font-size: var(--step-1); margin: .4rem 0 1.4rem; }
.why-list { display: flex; flex-direction: column; gap: 1.1rem; margin-bottom: 1.8rem; }
.why-list__item { display: flex; gap: .9rem; align-items: flex-start; }
.why-list__icon { flex: 0 0 auto; display: inline-grid; place-items: center; inline-size: 2.7rem; block-size: 2.7rem; border-radius: var(--radius); background: var(--primary-tint); color: var(--primary-strong); }
.why-list__item strong { display: block; font-size: 1.06rem; margin-bottom: .15rem; }
.why-list__text { color: var(--text-muted); font-size: .96rem; }

/* ---------- Footer ---------- */
.site-footer { margin-top: var(--space-2xl); border-block-start: 1px solid var(--border); background: var(--bg-sunken); }
.footer-cta { background: var(--bg-inverse); color: var(--text-inverse); }
.footer-cta__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.4rem; padding-block: clamp(2rem, 5vw, 3.2rem); }
.footer-cta__kicker { font-size: .82rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--wood-soft); margin-bottom: .5rem; }
.footer-cta__title { font-family: var(--font-display); font-size: var(--step-3); color: var(--text-inverse); max-width: 22ch; }
.footer-cta__btn { background: var(--wood); color: #241c12; }
.footer-cta__btn:hover { background: var(--wood-soft); }

.footer-grid { display: grid; gap: var(--space-xl); padding-block: var(--space-2xl); grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr)); }
.footer-about { max-width: 22rem; }
.footer-about__tag { color: var(--text-muted); margin: 1rem 0; font-size: .98rem; }
.footer-phone { display: inline-flex; align-items: center; gap: .5ch; font-weight: 700; font-size: 1.15rem; color: var(--text); text-decoration: none; }
.footer-phone svg { color: var(--primary-strong); }
.footer-col h3 { font-family: var(--font-display); font-size: 1.1rem; margin-bottom: 1rem; }
.footer-col a { display: block; padding: .3rem 0; color: var(--text-muted); text-decoration: none; }
.footer-col a:hover { color: var(--primary-strong); }
.footer-hours { list-style: none; padding: 0; display: flex; flex-direction: column; gap: .5rem; }
.footer-hours li { display: flex; justify-content: space-between; gap: 1rem; font-size: .92rem; color: var(--text-muted); border-block-end: 1px dashed var(--border); padding-bottom: .5rem; }
.footer-hours li span:first-child { color: var(--text); font-weight: 600; }
.footer-note { margin-top: .9rem; font-size: .85rem; color: var(--text-muted); }
.footer-nap { font-style: normal; color: var(--text-muted); line-height: 1.7; margin-bottom: 1rem; }
.map-facade { position: relative; aspect-ratio: 16 / 10; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); background:
  repeating-linear-gradient(45deg, var(--bg-elevated), var(--bg-elevated) 10px, var(--bg-sunken) 10px, var(--bg-sunken) 20px);
  display: grid; place-items: center; gap: .4rem; cursor: pointer; color: var(--text-muted); text-align: center; }
.map-facade:hover { border-color: var(--primary); }
.map-facade__pin { color: var(--primary-strong); }
.map-facade__label { font-size: .85rem; font-weight: 600; }
.map-facade.is-loaded { cursor: default; border-color: var(--border); background: none; }

.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .8rem; padding-block: 1.6rem; border-block-start: 1px solid var(--border); font-size: .86rem; color: var(--text-muted); }
.studio-credit { font-size: .84rem; color: var(--text-muted); }
.studio-credit__link { color: var(--primary-strong); text-decoration: none; font-weight: 600; }
.studio-credit__link:hover { text-decoration: underline; }

/* ---------- Sticky mobile call bar ---------- */
.call-bar {
  position: fixed; left: .8rem; right: .8rem; bottom: .8rem; z-index: 90;
  display: flex; align-items: center; justify-content: center; gap: .6ch;
  padding: .95rem 1rem; border-radius: var(--radius-pill);
  background: var(--primary); color: var(--primary-contrast);
  font-weight: 700; text-decoration: none; box-shadow: var(--shadow-lg);
}
.call-bar svg { flex: 0 0 auto; }
@media (min-width: 46rem) { .call-bar { display: none; } }

/* ---------- Reveal (orchestrated) ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease-out), transform .7s var(--ease-out); transition-delay: calc(var(--d, 0) * 85ms); }
.reveal.is-in { opacity: 1; transform: none; }

/* Short viewports (landscape phones, wide-but-short windows): keep headline + CTA
   above the fold by dropping the hero image and trust row and tightening spacing. */
@media (max-height: 560px) {
  .hero__media { display: none !important; }
  .hero__trust { display: none; }
  .hero__lead { margin-top: .5rem; max-width: 52ch; }
  .hero__ctas { margin-top: .9rem; }
  .hero .hero-grid { gap: .5rem; }
  .eyebrow { margin-bottom: .5rem; }
}

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
  .selector__img { transition: opacity .001ms; transform: none !important; }
  .selector__panel { animation: none; }
  .product-card:hover, .btn:hover { transform: none; }
  .product-card:hover .product-card__media img { transform: none; }
}

/* ---------- Header responsive reveal of desktop nav ---------- */
@media (min-width: 62rem) {
  .hdr__links { display: flex; }
  .hdr__phone { display: inline-flex; }
  .hdr__cta { display: inline-flex; }
  .nav-toggle { display: none; }
}
@media (max-width: 61.99rem) {
  .hdr__cta { display: none; }
}

/* ==========================================================================
   utilities.css â€” Utilidades atÃ³micas (Ãºltimo en la cascada)
   ========================================================================== */

.text-muted   { color: var(--text-muted); }
.text-center  { text-align: center; }
.text-balance { text-wrap: balance; }
.mono         { font-family: var(--font-mono); }

.lead { font-size: var(--step-1); color: var(--text-muted); }

.mt-0  { margin-top: 0; }
.mt-sm { margin-top: var(--space-sm); }
.mt-md { margin-top: var(--space-md); }
.mt-lg { margin-top: var(--space-lg); }
.mt-xl { margin-top: var(--space-xl); }
.mb-lg { margin-bottom: var(--space-lg); }
.mb-xl { margin-bottom: var(--space-xl); }

.hidden { display: none; }

/* Tag / chip */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5ch;
  padding: 0.3rem 0.7rem;
  font-family: var(--font-mono);
  font-size: var(--step--1);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  color: var(--text-muted);
  background: var(--bg-elevated);
}
.tag--accent { color: var(--primary); border-color: color-mix(in oklch, var(--primary) 40%, var(--border)); }

/* Prose (contenido largo legible) */
.prose { max-width: var(--container-prose); }
.prose p { margin-block: var(--space-md); }
.prose h2 { margin-block: var(--space-xl) var(--space-md); }
.prose h3 { margin-block: var(--space-lg) var(--space-sm); }
.prose ul { margin-block: var(--space-md); padding-inline-start: 1.25rem; }
.prose li { margin-block: 0.4rem; }
.prose a { color: var(--primary); }
