/* =========================================================
   Juárez Etiquetas — Landing page (v3: rediseño de layout)
   Basado en el Manual de identidad V01
   ========================================================= */

/* ---------- Tipografías (solo las del manual) ----------
   RF Dewi Expanded Bold Italic → display
   RF Dewi Bold                 → títulos (Heading 2)
   RF Dewi Regular              → títulos secundarios y texto
   RF Dewi Expanded Regular     → botones y captions
   ---------------------------------------------------------- */
@font-face { font-family: "RF Dewi"; src: url("../assets/fonts/RFDewi-Regular.ttf") format("truetype"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "RF Dewi"; src: url("../assets/fonts/RFDewi-Bold.ttf") format("truetype"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "RF Dewi Expanded"; src: url("../assets/fonts/RFDewiExpanded-Regular.ttf") format("truetype"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "RF Dewi Expanded"; src: url("../assets/fonts/RFDewiExpanded-BoldItalic.ttf") format("truetype"); font-weight: 700; font-style: italic; font-display: swap; }
@font-face { font-family: "RF Dewi"; src: url("../assets/fonts/RFDewi-Semibold.ttf") format("truetype"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "RF Dewi Expanded"; src: url("../assets/fonts/RFDewiExpanded-Semibold.ttf") format("truetype"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "RF Dewi Expanded"; src: url("../assets/fonts/RFDewiExpanded-Black.ttf") format("truetype"); font-weight: 900; font-style: normal; font-display: swap; }
@font-face { font-family: "RF Dewi Expanded"; src: url("../assets/fonts/RFDewiExpanded-BlackItalic.ttf") format("truetype"); font-weight: 900; font-style: italic; font-display: swap; }

/* ---------- Tokens ---------- */
:root {
  /* Colores de marca */
  --blue: #2C5697;   /* Pantone 7685 C */
  --navy: #1B365D;   /* Pantone 534 C  */
  --coral: #EE5340;  /* Pantone 2027 C */
  --white: #FFFFFF;

  /* Derivados */
  --ink: #1B365D;
  --muted: #4A5A74;
  --paper: #F4F6FA;      /* fondo de página */
  --surface: #E9EEF6;    /* secciones con tinte */
  --sky: #DCE5F2;
  --line: color-mix(in srgb, var(--navy) 12%, transparent);
  --line-strong: color-mix(in srgb, var(--navy) 22%, transparent);

  /* Tipografía por rol. El panel de administración las sobrescribe con un <style> en index.php */
  --f-display: "RF Dewi Expanded", "RF Dewi", system-ui, sans-serif;
  --f-display-weight: 700;
  --f-display-style: italic;
  --f-showcase: "RF Dewi Expanded", "RF Dewi", system-ui, sans-serif;
  --f-showcase-weight: 700;
  --f-showcase-style: italic;
  --f-footer: "RF Dewi Expanded", "RF Dewi", system-ui, sans-serif;
  --f-footer-weight: 700;
  --f-footer-style: italic;
  --f-hero: "RF Dewi", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --f-hero-weight: 700;
  --f-hero-style: normal;
  --f-heading: "RF Dewi", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --f-heading-weight: 700;
  --f-body: "RF Dewi", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --f-button: "RF Dewi Expanded", "RF Dewi", system-ui, sans-serif;
  --f-button-weight: 400;
  --font-body: var(--f-body);
  --font-wide: var(--f-button);

  --radius-sm: 14px;
  --radius: 24px;
  --radius-lg: 36px;

  --header-top: 14px;
  --header-h: 64px;
  --gutter: clamp(16px, 4vw, 40px);
  --section-y: clamp(80px, 10vw, 150px);
  --shadow: 0 24px 48px -24px color-mix(in srgb, var(--navy) 35%, transparent);
  --ease: cubic-bezier(.65, 0, .25, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);

  /* Línea punteada de marca: trazo 40 px (= 30 pt) · hueco 16 px.
     Solo en tarjetas y botones secundarios (nunca en secciones ni divisores).
     Contornos redondeados como SVG de fondo; el radio (rx) coincide con el border-radius. */
  --dash-blue-24: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg'%3E%3Crect width='100%25' height='100%25' rx='24' fill='none' stroke='%232C5697' stroke-opacity='.45' stroke-width='4' stroke-dasharray='40 16'/%3E%3C/svg%3E");
  --dash-coral-24: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg'%3E%3Crect width='100%25' height='100%25' rx='24' fill='none' stroke='%23EE5340' stroke-opacity='.9' stroke-width='4' stroke-dasharray='40 16'/%3E%3C/svg%3E");
  --dash-blue-16: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg'%3E%3Crect width='100%25' height='100%25' rx='16' fill='none' stroke='%232C5697' stroke-opacity='.4' stroke-width='4' stroke-dasharray='40 16'/%3E%3C/svg%3E");
  --dash-blue-26: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg'%3E%3Crect width='100%25' height='100%25' rx='26' fill='none' stroke='%232C5697' stroke-opacity='.35' stroke-width='4' stroke-dasharray='40 16'/%3E%3C/svg%3E");
  --dash-btn-blue: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg'%3E%3Crect width='100%25' height='100%25' rx='14' fill='none' stroke='%232C5697' stroke-opacity='.85' stroke-width='4' stroke-dasharray='40 16'/%3E%3C/svg%3E");
  --dash-btn-coral: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg'%3E%3Crect width='100%25' height='100%25' rx='14' fill='none' stroke='%23EE5340' stroke-opacity='1' stroke-width='4' stroke-dasharray='40 16'/%3E%3C/svg%3E");
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-top) + var(--header-h) + 24px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--f-body);
  font-size: 1.0625rem;
  line-height: 1.55;
  color: var(--muted);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  font-synthesis: none; /* nunca simular negritas/itálicas */
  overflow-x: hidden;
  overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, p, figure { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--coral); outline-offset: 3px; border-radius: 6px; }

/* Lenis (scroll suave) */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

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

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 400;
  background: var(--navy); color: var(--white); padding: 10px 16px; border-radius: 10px;
}
.skip-link:focus { top: 12px; }

/* ---------- Tipografía ---------- */
.display {
  font-family: var(--f-display);
  font-weight: var(--f-display-weight);
  font-style: var(--f-display-style);
  text-transform: uppercase;
  color: var(--c-title, var(--navy));
  line-height: .98;
  letter-spacing: -.01em;
}
.display .accent, .accent { color: var(--c-accent, var(--coral)); }
.h2 {
  font-weight: 700;
  font-size: calc(clamp(1.85rem, 1.2rem + 2.2vw, 3rem) * var(--s-title, 1));
  line-height: 1.08;
  letter-spacing: -.02em;
  color: var(--c-title, var(--navy));
  text-wrap: balance;
}
.h3 { font-weight: 700; font-size: calc(1.25rem * var(--s-item-title, 1)); line-height: 1.25; color: var(--c-card-title, var(--navy)); }
.lead {
  font-size: calc(clamp(1.0625rem, 1rem + .35vw, 1.25rem) * var(--s-text, 1));
  line-height: 1.5;
  color: var(--c-text, var(--muted));
  max-width: 46ch;
}
.dot { color: var(--c-accent, var(--coral)); }

/* Texto que "rueda" al pasar el cursor (enlaces y botones) */
.roll-text { display: inline-block; overflow: hidden; vertical-align: top; height: 1.25em; line-height: 1.25; }
.roll-text > span { display: block; text-shadow: 0 1.25em 0 currentColor; transition: transform .55s var(--ease); }
a:hover .roll-text > span, button:hover .roll-text > span,
a:focus-visible .roll-text > span { transform: translateY(-1.25em); }

/* Marcas de corte (registro de impresión) */
.mark { position: absolute; width: 9px; height: 9px; border-radius: 50%; background: var(--navy); z-index: 2; }
.mark.tl { left: -4.5px; top: -4.5px; }
.mark.tr { right: -4.5px; top: -4.5px; }
.mark.bl { left: -4.5px; bottom: -4.5px; }
.mark.br { right: -4.5px; bottom: -4.5px; }

/* ---------- Botones ---------- */
.btn {
  position: relative;
  display: inline-flex; align-items: center; justify-content: space-between; gap: 16px;
  border: 0; cursor: pointer;
  font-family: var(--f-button);
  font-weight: var(--f-button-weight);
  text-transform: uppercase;
  letter-spacing: .08em;
  border-radius: var(--radius-sm);
  white-space: nowrap;
  transition: background-color .35s var(--ease), color .35s var(--ease), transform .35s var(--ease), box-shadow .35s var(--ease);
}
.btn-icon {
  display: grid; place-items: center; flex: none; overflow: hidden;
  border-radius: 10px;
  transition: background-color .35s var(--ease), color .35s var(--ease);
}
.btn-icon svg { width: 16px; height: 16px; }
.btn:hover .btn-icon svg { animation: icon-swap .6s var(--ease); }
@keyframes icon-swap {
  0%   { transform: translate(0, 0); }
  45%  { transform: translate(140%, -140%); }
  46%  { transform: translate(-140%, 140%); }
  100% { transform: translate(0, 0); }
}
.btn-lg { font-size: .78rem; gap: 12px; padding: 5px 5px 5px 18px; min-height: 44px; }
.btn-lg .btn-icon { width: 34px; height: 34px; border-radius: 8px; }
.btn-sm { font-size: .7rem; gap: 10px; padding: 4px 4px 4px 14px; min-height: 34px; border-radius: 10px; }
.btn-sm .btn-icon { width: 26px; height: 26px; border-radius: 7px; }
.btn-sm .btn-icon svg { width: 14px; height: 14px; }
.btn-block { width: 100%; }

/* Colores: --c-btn-* (paleta general o de cada sección en el panel). Si no hay, colores de marca. */
.btn-primary {
  --bp-bg: var(--c-btn-bg, var(--coral)); --bp-fg: var(--c-btn-text, var(--white));
  --bp-hover-bg: var(--c-btn-hover-bg, var(--navy)); --bp-hover-fg: var(--c-btn-hover-text, var(--white));
  background: var(--bp-bg); color: var(--bp-fg); box-shadow: 0 14px 28px -14px color-mix(in srgb, var(--bp-bg) 80%, transparent);
}
.btn-primary .btn-icon { background: var(--bp-fg); color: var(--bp-bg); }
.btn-primary:hover { background: var(--bp-hover-bg); color: var(--bp-hover-fg); box-shadow: 0 14px 28px -14px color-mix(in srgb, var(--bp-hover-bg) 80%, transparent); transform: translateY(-2px); }
.btn-primary:hover .btn-icon { background: var(--bp-hover-fg); color: var(--bp-hover-bg); }

/* Secundario: contorno punteado de marca (azul → coral al pasar el cursor) */
.btn-secondary { background-color: transparent; background-image: var(--dash-btn-blue); color: var(--c-btn2-text, var(--navy)); }
.btn-secondary .btn-icon { background: var(--sky); color: var(--blue); }
.btn-secondary::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background-image: var(--dash-btn-coral); opacity: 0; transition: opacity .35s var(--ease);
}
.btn-secondary:hover { color: var(--coral); transform: translateY(-2px); }
.btn-secondary:hover::after { opacity: 1; }
.btn-secondary:hover .btn-icon { background: var(--coral); color: var(--white); }

/* ---------- Intro ---------- */
.intro { display: none; }
.intro-on .intro {
  display: block; position: fixed; inset: 0; z-index: 300;
  background: var(--blue); clip-path: inset(0 0 0 0);
}
.intro-on body { overflow: hidden; }
.intro-line { position: absolute; background: rgba(255, 255, 255, .3); }
.intro-h, .intro-h2 { left: 0; right: 0; height: 1px; }
.intro-h { top: calc(50% - 90px); }
.intro-h2 { top: calc(50% + 90px); }
.intro-v, .intro-v2 { top: 0; bottom: 0; width: 1px; }
.intro-v { left: calc(50% - 90px); }
.intro-v2 { left: calc(50% + 90px); }
.intro-box { position: absolute; left: 50%; top: 50%; width: 180px; height: 180px; margin: -90px 0 0 -90px; display: grid; place-items: center; }
.intro-box .mark { background: var(--white); }
.intro-logo { width: 92px; height: 92px; color: var(--white); }

/* ---------- Header: barra flotante ---------- */
.site-header {
  position: fixed; top: var(--header-top); left: 0; right: 0; z-index: 100;
  padding-inline: var(--gutter);
  pointer-events: none;
  transition: translate .6s var(--ease);
}
.site-header.is-hidden { translate: 0 calc(-100% - var(--header-top) - 10px); }
.nav-pill {
  pointer-events: auto;
  position: relative;
  max-width: 1200px; height: var(--header-h); margin-inline: auto;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 0 9px 0 22px;
  border-radius: 18px;
  border: 1px solid var(--line);
  transition: box-shadow .4s var(--ease);
}
.nav-pill::before {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit;
  background: color-mix(in srgb, var(--c-bg, var(--white)) 86%, transparent);
  -webkit-backdrop-filter: saturate(160%) blur(16px);
  backdrop-filter: saturate(160%) blur(16px);
}
.site-header.is-scrolled .nav-pill { box-shadow: 0 16px 40px -24px color-mix(in srgb, var(--navy) 45%, transparent); }
.brand { display: inline-flex; color: var(--c-logo, var(--blue)); }
.brand-logo { height: 32px; width: auto; aspect-ratio: 244.72 / 56.78; }

.main-nav { display: flex; align-items: center; gap: clamp(18px, 2.6vw, 36px); }
.main-nav ul { display: flex; gap: clamp(16px, 2.2vw, 32px); }
.main-nav ul a { display: inline-block; color: var(--c-text, var(--navy)); font-size: calc(1rem * var(--s-text, 1)); padding: 6px 0; transition: color .3s var(--ease); }
.main-nav ul a:hover { color: var(--c-accent, var(--coral)); }

.nav-toggle {
  display: none; position: relative; width: 46px; height: 46px; border: 0; border-radius: 12px;
  background: var(--sky); cursor: pointer;
}
.nav-toggle span {
  position: absolute; left: 13px; right: 13px; height: 2.5px; border-radius: 2px; background: var(--navy);
  transition: transform .35s var(--ease), top .35s var(--ease);
}
.nav-toggle span:first-child { top: 18px; }
.nav-toggle span:last-child { top: 26px; }
.nav-toggle[aria-expanded="true"] span:first-child { top: 22px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:last-child { top: 22px; transform: rotate(-45deg); }

@media (max-width: 960px) {
  .nav-toggle { display: block; }
  .main-nav {
    position: absolute; left: 0; right: 0; top: calc(100% + 10px);
    flex-direction: column; align-items: stretch; gap: 20px;
    padding: 12px 20px 20px;
    background: var(--c-bg, var(--white)); border-radius: 18px; border: 1px solid var(--line);
    box-shadow: var(--shadow);
    opacity: 0; visibility: hidden; transform: translateY(-10px) scale(.98); transform-origin: top center;
    transition: opacity .35s var(--ease), transform .35s var(--ease), visibility .35s;
  }
  .main-nav.is-open { opacity: 1; visibility: visible; transform: none; }
  .main-nav ul { flex-direction: column; gap: 0; }
  .main-nav ul a { display: block; font-size: calc(1.375rem * var(--s-text, 1)); padding: 14px 0; border-bottom: 1px solid var(--line); }
  .main-nav ul a .roll-text { height: auto; overflow: visible; }
  .main-nav ul a .roll-text > span { text-shadow: none; transform: none !important; }
  .nav-cta { min-height: 44px; font-size: .75rem; }
}

/* ---------- Recursos gráficos ---------- */
.halftone {
  position: absolute; pointer-events: none;
  background-image: radial-gradient(circle, currentColor 1.6px, transparent 1.9px);
  background-size: 16px 16px;
}
.halftone-light {
  color: rgba(255, 255, 255, .28);
  inset: 0 0 auto auto; width: 80%; height: 70%;
  -webkit-mask-image: radial-gradient(ellipse at top right, #000 10%, transparent 70%);
  mask-image: radial-gradient(ellipse at top right, #000 10%, transparent 70%);
}

/* Espacio para foto: se rellena con <img> y la nota desaparece sola */
.photo-slot {
  position: relative; overflow: hidden;
  background-color: var(--slot, var(--navy));
  background-image: radial-gradient(circle, var(--dot, rgba(255, 255, 255, .16)) 1.4px, transparent 1.7px);
  background-size: 18px 18px;
}
.photo-slot > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.photo-slot:has(> img) .photo-note,
.photo-slot:has(> img) .slot-art,
.photo-slot:has(> img) .halftone { display: none; }
.photo-note {
  position: absolute; left: 14px; bottom: 14px; z-index: 3;
  display: inline-flex; align-items: center; gap: 8px;
  max-width: calc(100% - 28px);
  padding: 8px 12px; border-radius: 10px;
  background: rgba(255, 255, 255, .94); color: var(--navy);
  font-size: .8125rem; line-height: 1.3;
}
.photo-note svg { width: 16px; height: 16px; flex: none; color: var(--coral); }

/* ---------- Hero ---------- */
/* Azul de marca con 3 tiras de papel (liner) llenas de etiquetas que avanzan en perspectiva.
   Texto centrado encima. El hero + la franja de clientes ocupan la primera pantalla. */
:root { --clients-h: 148px; }
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: max(560px, calc(100vh - var(--clients-h)));
  min-height: max(560px, calc(100svh - var(--clients-h)));
  display: grid; place-items: center;
  padding-block: calc(var(--header-top) + var(--header-h) + 40px) clamp(48px, 8vh, 96px);
  --hero-bg: var(--c-bg, var(--blue));
  background: var(--hero-bg);
  color: var(--white);
  text-align: center;
}
.hero-copy { position: relative; z-index: 2; display: grid; justify-items: center; gap: clamp(18px, 2.4vw, 28px); }
.hero-title {
  font-family: var(--f-hero); font-weight: var(--f-hero-weight); font-style: var(--f-hero-style);
  font-size: calc(clamp(2.35rem, .9rem + 4.4vw, 4.9rem) * var(--s-title, 1));
  line-height: 1.02; letter-spacing: -.03em;
  color: var(--c-title, var(--white));
  max-width: 17em; text-wrap: balance;
}
.hero-title .accent { color: var(--c-accent, var(--coral)); }
.hero-lead {
  font-size: calc(clamp(1.0625rem, 1rem + .4vw, 1.3rem) * var(--s-text, 1));
  line-height: 1.5; max-width: 40ch; color: var(--c-text, color-mix(in srgb, var(--white) 88%, transparent));
  text-shadow: 0 1px 18px color-mix(in srgb, var(--navy) 45%, transparent);
}
.hero-copy .btn { margin-top: 4px; }
.hero .btn-primary { --bp-hover-bg: var(--c-btn-hover-bg, var(--white)); --bp-hover-fg: var(--c-btn-hover-text, var(--navy)); }

/* Escena 3D: el punto de fuga está detrás del título */
.hero-scene { position: absolute; inset: 0; z-index: 0; pointer-events: none; --vp-y: 44%; }
.tunnel {
  position: absolute; left: 50%; top: var(--vp-y); width: 0; height: 0;
  perspective: 700px; perspective-origin: 0 0;
  transform: scale(var(--k, 1));
}
.lane {
  --z: 0px;
  position: absolute; left: 0; top: 0;
  transform-style: preserve-3d;
  transform: rotate(var(--rot)) translateZ(var(--z));
}
/* Cada tira es un plano acostado (rotateX 90°) que va de la pantalla hacia el fondo */
.paper {
  position: absolute; width: var(--w); height: var(--len);
  left: calc(var(--w) / -2); top: calc(var(--len) * -1);
  transform-origin: 50% 100%;
  transform: translate3d(0, var(--drop), var(--near)) rotateX(90deg);
  background: var(--white);
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to top, #000 0%, #000 30%, rgba(0, 0, 0, .55) 62%, transparent 88%);
  mask-image: linear-gradient(to top, #000 0%, #000 30%, rgba(0, 0, 0, .55) 62%, transparent 88%);
}
.track {
  position: absolute; left: 0; right: 0; top: 0;
  height: calc(var(--tile) * 5);
  background: var(--img) center top / 100% var(--tile) repeat-y;
  animation: var(--dir, lane-forward) var(--dur, 22s) linear infinite;
  will-change: transform;
}
@keyframes lane-forward { from { transform: translate3d(0, calc(var(--tile) * -1), 0); } to { transform: translate3d(0, 0, 0); } }
@keyframes lane-back { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(0, calc(var(--tile) * -1), 0); } }
.hero.is-off .track { animation-play-state: paused; }

/* Arriba a la izquierda · avanza hacia ti */
.lane-a { --rot: 124deg; --w: 300px; --tile: 920px;  --img: url("../assets/img/hero/paper-a.svg"); --len: 3600px; --drop: 400px; --near: 420px; --dur: 26s; }
/* Derecha · avanza hacia ti */
.lane-b { --rot: -97deg; --w: 340px; --tile: 1110px; --img: url("../assets/img/hero/paper-b.svg"); --len: 3600px; --drop: 560px; --near: 420px; --dur: 30s; }
/* Piso · se aleja hacia el fondo */
.lane-c { --rot: 0deg;   --w: 480px; --tile: 1170px; --img: url("../assets/img/hero/paper-c.svg"); --len: 3600px; --drop: 205px; --near: 420px; --dur: 32s; --dir: lane-back; }

/* Desenfoque progresivo hacia el punto de fuga + bruma azul: las tiras se pierden en la profundidad */
.hero-blur { position: absolute; inset: 0; }
.hero-blur-1 {
  -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px);
  -webkit-mask-image: radial-gradient(circle at 50% var(--vp-y), #000 0, #000 16vmax, transparent 34vmax);
  mask-image: radial-gradient(circle at 50% var(--vp-y), #000 0, #000 16vmax, transparent 34vmax);
}
.hero-blur-2 {
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  -webkit-mask-image: radial-gradient(circle at 50% var(--vp-y), #000 0, #000 7vmax, transparent 20vmax);
  mask-image: radial-gradient(circle at 50% var(--vp-y), #000 0, #000 7vmax, transparent 20vmax);
}
.hero-fog {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 46vmax 24vmax at 50% var(--vp-y), var(--hero-bg) 0%, color-mix(in srgb, var(--hero-bg) 96%, transparent) 45%, color-mix(in srgb, var(--hero-bg) 60%, transparent) 70%, transparent 100%),
    linear-gradient(180deg, color-mix(in srgb, var(--hero-bg) 35%, transparent) 0%, transparent 22%);
}

@media (min-width: 1700px) { .tunnel { --k: 1.18; } }
@media (max-width: 1100px) { .tunnel { --k: .86; } }
@media (max-width: 760px)  {
  .tunnel { --k: .62; }
  .hero-scene { --vp-y: 40%; }
  .tunnel .lane { --near: 600px; } /* en vertical las tiras deben llegar hasta los bordes de la pantalla */
  .tunnel .lane-a { --rot: 150deg; }
  .tunnel .lane-b { --rot: -118deg; --drop: 470px; }
}
@media (max-width: 480px)  { .tunnel { --k: .5; } }
@media (prefers-reduced-motion: reduce) { .track { animation: none; transform: translate3d(0, -12%, 0); } }

.word-mask { display: inline-block; overflow: hidden; vertical-align: top; padding-right: .06em; margin-right: -.06em; padding-bottom: .08em; margin-bottom: -.08em; }
.word { display: inline-block; will-change: transform; }

/* ---------- Clientes ---------- */
.clients { background: var(--c-bg, var(--white)); padding-block: 28px; }
.clients-title {
  text-align: center; margin-bottom: 18px; color: var(--c-title, var(--muted));
  font-size: calc(1rem * var(--s-title, 1));
}
.client-logos {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: clamp(12px, 2vw, 28px);
  max-width: 1040px; margin-inline: auto;
}
.client-logo {
  position: relative; display: grid; place-items: center;
  height: 92px; padding: 14px 18px; border-radius: 16px;
}
.client-logo img {
  max-width: 100%; max-height: 64px; width: auto; height: auto; object-fit: contain;
  filter: grayscale(1); opacity: .72; transition: filter .4s var(--ease), opacity .4s var(--ease), transform .5s var(--ease-out);
}
.client-logo:hover img { filter: none; opacity: 1; transform: scale(1.04); }
/* Espacio vacío para logo: fondo suave, sin contorno */
.client-logo.is-empty { background-color: var(--c-card-bg, var(--paper)); }
.logo-note {
  display: grid; justify-items: center; gap: 6px; text-align: center; text-wrap: balance;
  color: var(--navy); font-size: .75rem; line-height: 1.3;
}
.logo-note svg { width: 16px; height: 16px; flex: none; color: var(--coral); }
@media (max-width: 760px) {
  :root { --clients-h: 0px; }
  .client-logos { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .client-logo { height: 80px; }
}

/* ---------- Declaración ---------- */
.statement-section { background: var(--c-bg, transparent); padding-block: clamp(96px, 12vw, 170px) clamp(64px, 8vw, 110px); }
.statement {
  max-width: 980px; margin-inline: auto; text-align: center;
  font-weight: 700; font-size: calc(clamp(1.9rem, 1.1rem + 3vw, 3.6rem) * var(--s-text, 1)); line-height: 1.12; letter-spacing: -.02em;
  color: var(--c-text, var(--navy)); text-wrap: balance;
}

/* ---------- Foto que se expande ---------- */
.showcase-media {
  height: min(86vh, 820px); min-height: 440px;
  clip-path: inset(0 var(--gutter) round var(--radius-lg));
}
.showcase-media::after {
  /* velo para que el texto se lea sobre la foto */
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(180deg, color-mix(in srgb, var(--c-overlay, var(--navy)) 10%, transparent) 0%, color-mix(in srgb, var(--c-overlay, var(--navy)) 55%, transparent) 100%);
}
.showcase-content {
  position: absolute; z-index: 2;
  inset: clamp(64px, 10vw, 140px) max(calc(var(--gutter) + clamp(24px, 6vw, 96px)), calc((100% - 1200px) / 2 + 48px));
  border: 1px solid color-mix(in srgb, var(--c-line, var(--white)) 35%, transparent);
  display: flex; flex-direction: column; justify-content: space-between;
  padding: clamp(20px, 3vw, 40px);
}
.showcase-content .mark { background: var(--c-line, var(--white)); }
.showcase-line { font-family: var(--f-showcase); font-weight: var(--f-showcase-weight); font-style: var(--f-showcase-style); color: var(--c-title, var(--white)); font-size: calc(clamp(1.9rem, 5vw, 4.8rem) * var(--s-title, 1)); }
.showcase-line.accent { align-self: flex-end; text-align: right; color: var(--c-accent, var(--coral)); }
.showcase .photo-note { left: max(calc(var(--gutter) + 14px), calc((100% - 1200px) / 2 + 14px)); }

/* ---------- Secciones ---------- */
.section { position: relative; padding-block: var(--section-y); background: var(--c-bg, transparent); color: var(--c-text, inherit); }
.section-tint { background: var(--c-bg, var(--surface)); }
.section-flush { padding-bottom: 0; }
.section-head { display: grid; gap: 14px; margin-bottom: clamp(40px, 5vw, 72px); }
.section-head.split { grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); align-items: end; gap: 24px 48px; }
.section-head.split .h2 { max-width: 18ch; }
.section-head.split .lead { justify-self: end; max-width: 30ch; }
.section-head.center { text-align: center; justify-items: center; }

/* ---------- Servicios ---------- */
.service-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2vw, 24px); }
.service-grid > li { display: flex; }
.card {
  position: relative; display: block; width: 100%;
  background-color: var(--c-card-bg, var(--white));
  background-image: var(--dash-blue-24);
  border-radius: var(--radius);
  padding: clamp(26px, 2.6vw, 36px);
  transition: transform .5s var(--ease-out), box-shadow .5s var(--ease-out);
}
/* Línea punteada tipo "troquel": cambia a coral al pasar el cursor */
.card::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background-image: var(--dash-coral-24); opacity: 0; transition: opacity .4s var(--ease);
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.card:hover::after { opacity: 1; }
.service-icon {
  display: grid; place-items: center; width: 60px; height: 60px; border-radius: 16px;
  background: var(--c-icon-bg, var(--sky)); color: var(--c-icon-fg, var(--blue)); margin-bottom: 28px;
  transition: background-color .45s var(--ease), color .45s var(--ease), transform .6s var(--ease-out);
}
.service-icon svg { width: 34px; height: 34px; }
.card:hover .service-icon { background: var(--c-icon-fg, var(--blue)); color: var(--c-icon-bg, var(--white)); transform: rotate(-8deg); }
.card-arrow {
  position: absolute; top: 24px; right: 24px;
  display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px;
  background: var(--c-accent, var(--coral)); color: var(--white);
  opacity: 0; transform: translate(-10px, 10px) scale(.7);
  transition: opacity .4s var(--ease), transform .5s var(--ease-out);
}
.card-arrow svg { width: 20px; height: 20px; }
.card:hover .card-arrow, .card:focus-visible .card-arrow { opacity: 1; transform: none; }
.service .h3 { margin-bottom: 8px; }
.service p { color: var(--c-card-text, inherit); max-width: 32ch; font-size: calc(1.0625rem * var(--s-item-text, 1)); }

/* Materiales */
.materials {
  margin-top: clamp(48px, 6vw, 88px);
  display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); align-items: center;
  gap: clamp(28px, 5vw, 72px);
  background: var(--c-card-bg, var(--white)); border-radius: var(--radius-lg);
  padding: clamp(28px, 5vw, 72px);
  color: var(--c-text, var(--muted));
}
/* Materiales está dentro de Servicios: se reinician los colores de esa sección (initial = usar el de marca) */
.materials { --c-bg: initial; --c-title: initial; --c-text: initial; --c-accent: initial; --c-card-bg: initial; --c-card-title: initial; --c-card-text: initial; --c-icon-fg: initial; --c-icon-bg: initial; }
.materials-art { display: grid; place-items: center; }
.layers-svg { width: min(100%, 420px); height: auto; overflow: visible; }
.materials-copy { display: grid; gap: 14px; }
.materials-lists { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin-top: 18px; }
.list-title {
  font-family: var(--f-button); font-weight: var(--f-button-weight); text-transform: uppercase; letter-spacing: .12em;
  font-size: calc(.8125rem * var(--s-list, 1)); color: var(--c-list-title, var(--blue)); margin-bottom: 12px;
}
.check-list li {
  position: relative; padding: 12px 0 12px 26px; color: var(--c-list, var(--navy));
  font-size: calc(1.0625rem * var(--s-list, 1));
  border-bottom: 1px solid var(--line);
}
.check-list li::before {
  content: ""; position: absolute; left: 0; top: 50%; width: 12px; height: 12px; margin-top: -6px;
  border-radius: 50%; background: var(--c-accent, var(--coral));
}

/* ---------- Proceso: línea de tiempo ---------- */
.process { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
.process-intro { align-self: stretch; } /* la columna mide lo mismo que la línea de tiempo: el sticky tiene recorrido */
.process-sticky { position: sticky; top: calc(var(--header-top) + var(--header-h) + 48px); display: grid; gap: 18px; justify-items: start; }
.process-sticky .btn { margin-top: 10px; }
.timeline { position: relative; }
.timeline-track { position: absolute; left: 27px; top: 28px; bottom: 28px; width: 2px; background: var(--line-strong); }
.timeline-track span { position: absolute; inset: 0; background: var(--c-accent, var(--coral)); transform-origin: top; transform: scaleY(0); }
.steps { display: grid; gap: clamp(36px, 6vw, 80px); }
.step { position: relative; display: grid; grid-template-columns: 56px 1fr; gap: 24px; align-items: start; opacity: .4; transition: opacity .5s var(--ease); }
.step.is-active { opacity: 1; }
.step-num {
  display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%;
  background: var(--paper); border: 2px solid var(--c-number, var(--blue)); color: var(--c-number, var(--blue));
  font-family: var(--f-display); font-weight: var(--f-display-weight); font-style: var(--f-display-style); font-size: 1.05rem;
  transition: background-color .45s var(--ease), border-color .45s var(--ease), color .45s var(--ease), transform .6s var(--ease-out);
}
.step.is-active .step-num { background: var(--c-accent, var(--coral)); border-color: var(--c-accent, var(--coral)); color: var(--white); transform: scale(1.06); }
.step .h3 { font-size: calc(clamp(1.35rem, 1.1rem + .8vw, 1.75rem) * var(--s-item-title, 1)); margin: 10px 0 6px; }
.step p { color: var(--c-card-text, inherit); max-width: 34ch; font-size: calc(1.0625rem * var(--s-item-text, 1)); }
.no-anim .step { opacity: 1; }
.no-anim .timeline-track span { transform: none; }

/* ---------- Aplicaciones: tarjetas apiladas ---------- */
.stack { display: grid; gap: 28px; }
.stack-card {
  position: sticky; top: calc(var(--header-top) + var(--header-h) + 28px + var(--i) * 16px);
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(20px, 3vw, 48px);
  min-height: min(540px, 72vh);
  background: var(--c-card-bg, var(--white)); border-radius: var(--radius-lg);
  padding: clamp(16px, 2vw, 24px);
  box-shadow: 0 -18px 50px -30px color-mix(in srgb, var(--navy) 45%, transparent);
  transform-origin: center top;
}
.stack-copy { display: flex; flex-direction: column; justify-content: center; gap: 14px; padding: clamp(12px, 3vw, 40px); }
.stack-num { font-family: var(--f-display); font-weight: var(--f-display-weight); font-style: var(--f-display-style); font-size: 1.6rem; color: var(--c-accent, var(--coral)); line-height: 1; }
.stack-num em { font-style: italic; color: var(--line-strong); }
.stack-card .h2 { color: var(--c-card-title, var(--navy)); font-size: calc(clamp(1.65rem, 1.1rem + 1.6vw, 2.5rem) * var(--s-item-title, 1)); }
.stack-card .lead { color: var(--c-card-text, var(--muted)); font-size: calc(clamp(1.0625rem, 1rem + .35vw, 1.25rem) * var(--s-item-text, 1)); }
.stack-card .check-list li { font-size: calc(1.0625rem * var(--s-item-text, 1)); }
.stack-card .check-list { margin-top: 8px; max-width: 360px; }
.stack-media { border-radius: var(--radius); display: grid; place-items: center; min-height: 300px; }
.slot-art { width: 78%; height: auto; overflow: visible; position: relative; z-index: 1; }

/* ---------- Por qué ---------- */
.why {
  display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  background: var(--c-card-bg, var(--blue)); color: var(--c-text, color-mix(in srgb, var(--white) 82%, transparent));
  border-radius: var(--radius-lg); overflow: hidden;
}
.why-media { min-height: 100%; }
.why-body { padding: clamp(32px, 5vw, 72px); display: grid; gap: clamp(28px, 4vw, 44px); align-content: center; }
.why .h2 { color: var(--c-title, var(--white)); }
.why .h3 { color: var(--c-card-title, var(--white)); }
.why .lead { color: var(--c-text, color-mix(in srgb, var(--white) 82%, transparent)); margin-top: 14px; }
.stats { display: flex; gap: clamp(28px, 4vw, 64px); }
.stat-num { font-family: var(--f-display); font-weight: var(--f-display-weight); font-style: var(--f-display-style); font-size: calc(clamp(3rem, 2rem + 4vw, 5.25rem) * var(--s-number, 1)); line-height: 1; color: var(--c-number, var(--coral)); }
.stat-num span { color: var(--c-title, var(--white)); }
.stat-label { margin-top: 8px; font-size: calc(1.0625rem * var(--s-item-text, 1)); }
.reason p { font-size: calc(1.0625rem * var(--s-item-text, 1)); }
.reasons {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px clamp(20px, 3vw, 40px);
  padding-top: clamp(24px, 3vw, 36px); border-top: 1px solid rgba(255, 255, 255, .22);
}
.reason { display: grid; grid-template-columns: 44px 1fr; gap: 16px; align-items: start; }
.reason-icon { width: 44px; height: 44px; color: var(--c-accent, var(--coral)); transition: transform .6s var(--ease-out); }
.reason:hover .reason-icon { transform: translateY(-4px) rotate(-6deg); }
.reason .h3 { margin-bottom: 4px; }

/* ---------- CTA intermedia ---------- */
.cta-band { background: var(--c-bg, transparent); padding-top: clamp(56px, 7vw, 96px); }
.cta-band-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap;
  background: var(--c-card-bg, var(--white)); border-radius: var(--radius-lg);
  padding: clamp(28px, 5vw, 64px);
}
.cta-title { font-size: calc(clamp(1.6rem, .8rem + 2.6vw, 3rem) * var(--s-title, 1)); max-width: 16ch; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- Preguntas frecuentes ---------- */
.faq { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.faq-intro { position: sticky; top: calc(var(--header-top) + var(--header-h) + 48px); display: grid; gap: 14px; }
.faq-list { border-top: 1px solid var(--line-strong); }
.faq-item { border-bottom: 1px solid var(--line-strong); }
.faq-item summary {
  list-style: none; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 26px 0;
  font-weight: 700; font-size: calc(clamp(1.125rem, 1rem + .4vw, 1.35rem) * var(--s-item-title, 1)); color: var(--c-card-title, var(--navy));
  transition: color .3s var(--ease);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--c-accent, var(--coral)); }
.faq-plus {
  position: relative; flex: none; width: 44px; height: 44px; border-radius: 12px;
  background: var(--white); border: 1px solid var(--line);
  transition: background-color .4s var(--ease), transform .5s var(--ease), border-color .4s var(--ease);
}
.faq-plus::before, .faq-plus::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 16px; height: 2px; margin: -1px 0 0 -8px;
  background: var(--navy); border-radius: 2px; transition: background-color .4s var(--ease);
}
.faq-plus::after { transform: rotate(90deg); }
.faq-item summary:hover .faq-plus { border-color: var(--c-accent, var(--coral)); }
.faq-item[open] .faq-plus { background: var(--c-accent, var(--coral)); border-color: var(--c-accent, var(--coral)); transform: rotate(45deg); }
.faq-item[open] .faq-plus::before, .faq-item[open] .faq-plus::after { background: var(--white); }
.faq-body { overflow: hidden; }
.faq-body p { color: var(--c-card-text, inherit); padding: 0 64px 26px 0; max-width: 60ch; font-size: calc(1.0625rem * var(--s-item-text, 1)); }

/* ---------- Contacto ---------- */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(36px, 6vw, 96px); align-items: start; }
.contact-title { font-size: calc(clamp(1.75rem, 1rem + 2.6vw, 3.25rem) * var(--s-title, 1)); margin-bottom: 18px; text-wrap: balance; }
.channels { margin-top: clamp(28px, 4vw, 44px); border-top: 1px solid var(--line-strong); }
.channel {
  display: flex; align-items: center; gap: 16px;
  padding: 14px 0; color: var(--c-list, var(--navy)); font-size: calc(1.0625rem * var(--s-item-text, 1));
  border-bottom: 1px solid var(--line-strong);
  transition: color .3s var(--ease), padding .45s var(--ease-out);
}
.channel-text { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.channel-icon {
  display: grid; place-items: center; flex: none;
  width: 48px; height: 48px; border-radius: 14px; background: var(--c-icon-bg, var(--white)); color: var(--c-icon-fg, var(--blue));
  transition: background-color .3s var(--ease), color .3s var(--ease);
}
.channel-icon svg { width: 24px; height: 24px; }
.channel-arrow { width: 20px; height: 20px; flex: none; opacity: 0; transform: translate(-10px, 10px); transition: opacity .35s var(--ease), transform .45s var(--ease-out); }
a.channel:hover { color: var(--c-accent, var(--coral)); padding-left: 8px; }
a.channel:hover .channel-icon { background: var(--c-accent, var(--coral)); color: var(--white); }
a.channel:hover .channel-arrow { opacity: 1; transform: none; }

.contact-form {
  position: relative;
  background: var(--c-card-bg, var(--white)); border-radius: var(--radius-lg);
  padding: clamp(34px, 4vw, 48px);
  box-shadow: var(--shadow);
  display: grid; gap: 18px;
}
.contact-form::before {
  content: ""; position: absolute; inset: 10px; border-radius: calc(var(--radius-lg) - 10px);
  background-image: var(--dash-blue-26); pointer-events: none;
}
.contact-form .form-title { color: var(--c-card-title, var(--navy)); }
.form-title { font-size: calc(clamp(1.5rem, 1.2rem + 1vw, 2rem) * var(--s-item-title, 1)); margin-bottom: 4px; }
.field { display: grid; gap: 8px; position: relative; }
.field label { font-weight: 700; color: var(--c-card-text, var(--navy)); font-size: .98rem; }
.field input, .field select, .field textarea {
  width: 100%;
  border: 1.5px solid var(--line-strong); border-radius: var(--radius-sm);
  background: var(--paper);
  padding: 14px 16px; font-size: 1rem; color: var(--navy);
  transition: border-color .25s ease, box-shadow .25s ease, background-color .25s ease;
}
.field textarea { resize: vertical; min-height: 120px; }
.field select {
  appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1 1l6 6 6-6' fill='none' stroke='%232C5697' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 16px center; padding-right: 44px;
}
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--blue); }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--blue); background-color: var(--white); box-shadow: 0 0 0 4px color-mix(in srgb, var(--blue) 15%, transparent);
}
.field [aria-invalid="true"] { border-color: var(--coral); box-shadow: 0 0 0 4px color-mix(in srgb, var(--coral) 15%, transparent); }
::placeholder { color: #8a97ad; }
.form-error { color: #C93A28; font-weight: 700; }

/* ---------- Footer ---------- */
.site-footer { background: var(--c-bg, var(--navy)); color: var(--c-text, color-mix(in srgb, var(--white) 75%, transparent)); padding-top: clamp(72px, 9vw, 130px); margin-top: 0; }
.footer-big { font-family: var(--f-footer); font-weight: var(--f-footer-weight); font-style: var(--f-footer-style); color: var(--c-title, var(--white)); font-size: calc(clamp(2rem, 1rem + 4.6vw, 5.5rem) * var(--s-title, 1)); margin-bottom: clamp(48px, 6vw, 88px); }
.footer-grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 40px; padding-bottom: 48px; }
.footer-logo { height: 44px; width: auto; aspect-ratio: 244.72 / 56.78; color: var(--c-logo, var(--white)); }
.footer-nav, .footer-contact { font-size: calc(1.0625rem * var(--s-text, 1)); display: grid; gap: 12px; align-content: start; justify-items: start; }
.site-footer a { transition: color .3s var(--ease); }
.site-footer a:hover { color: var(--c-accent, var(--coral)); }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .14); padding-block: 22px 28px; font-size: .9375rem; }

/* ---------- WhatsApp flotante ---------- */
.wa-float {
  position: fixed; right: clamp(16px, 2.5vw, 28px); bottom: clamp(16px, 2.5vw, 28px); z-index: 90;
  width: 52px; height: 52px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--c-wa-bg, var(--coral)); color: var(--white);
  box-shadow: 0 16px 30px -12px color-mix(in srgb, var(--c-wa-bg, var(--coral)) 80%, transparent);
  transition: transform .4s var(--ease-out), background-color .3s var(--ease), opacity .3s;
}
.wa-float svg { width: 26px; height: 26px; }
.wa-float:hover { transform: scale(1.08) rotate(-8deg); background: var(--navy); }
.wa-float::before { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--c-wa-bg, var(--coral)); opacity: 0; }
body.nav-open .wa-float { opacity: 0; pointer-events: none; }
@media (prefers-reduced-motion: no-preference) {
  .wa-float::before { animation: wa-pulse 2.6s ease-out infinite; }
}
@keyframes wa-pulse { 0% { transform: scale(1); opacity: .7; } 100% { transform: scale(1.6); opacity: 0; } }

/* ---------- Estados iniciales de animación (solo con JS + movimiento permitido) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js [data-reveal], .js [data-hero], .js [data-split], .js .hero-scene, .js .client-logo { opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .why { grid-template-columns: 1fr; }
  .why-media { min-height: 0; aspect-ratio: 16 / 10; }
}
@media (max-width: 900px) {
  .section-head.split { grid-template-columns: 1fr; }
  .section-head.split .lead { justify-self: start; }
  .service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .materials { grid-template-columns: 1fr; }
  .process, .faq, .contact-grid { grid-template-columns: minmax(0, 1fr); }
  .process-sticky, .faq-intro { position: static; }
  /* En celular también se apilan: cada tarjeta se queda fija arriba y la siguiente la cubre */
  .stack { gap: 20px; }
  .stack-card {
    top: calc(var(--header-top) + var(--header-h) + 12px + var(--i) * 10px);
    grid-template-columns: 1fr; min-height: 0; gap: 4px;
  }
  .stack-media { order: -1; min-height: 0; aspect-ratio: 16 / 10; }
  .stack-copy { gap: 10px; padding: 14px 8px 8px; }
  .stack-card .check-list li { padding-block: 8px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
  :root { --header-h: 60px; --header-top: 10px; }
  .brand-logo { height: 28px; }
  .service-grid, .reasons { grid-template-columns: 1fr; }
  .materials-lists { grid-template-columns: 1fr; }
  .stats { gap: 32px; }
  .btn-lg { width: 100%; padding-left: 18px; letter-spacing: .05em; font-size: .75rem; }
  .cta-actions { width: 100%; flex-direction: column; }
  .cta-band-inner { padding: 28px 18px; }
  .footer-grid { grid-template-columns: 1fr; }
  .faq-body p { padding-right: 0; }
  .showcase-media { height: 72vh; min-height: 420px; }
  .wa-float { width: 50px; height: 50px; }
}

/* ---------- Fuente de títulos (rol "heading", configurable desde el panel) ---------- */
.h2, .h3, .statement, .faq-item summary, .field label, .form-error {
  font-family: var(--f-heading); font-weight: var(--f-heading-weight);
}

/* ---------- Texto enriquecido (editor HTML del panel) ---------- */
strong { font-weight: 700; }
em { font-style: italic; font-synthesis: style; }
u { text-decoration-thickness: .07em; text-underline-offset: .14em; }
.accent-blue { color: var(--blue); }
.why .accent-blue, .site-footer .accent-blue, .showcase .accent-blue, .hero .accent-blue { color: var(--sky); }
/* Enlaces dentro de textos: sin subrayado, cambian a coral al pasar el cursor */
main p > a, main p > * > a { color: inherit; text-decoration: none; transition: color .3s var(--ease); }
main p > a:hover, main p > * > a:hover { color: var(--coral); }

/* ---------- Página de mantenimiento ---------- */
.maint-body { background: var(--c-bg, var(--blue)); }
.maint {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: 100vh; min-height: 100svh;
  display: grid; place-items: center;
  padding: clamp(48px, 8vw, 96px) var(--gutter);
  background: var(--c-bg, var(--blue));
  color: var(--white); text-align: center;
}
.maint-card {
  position: relative; z-index: 1;
  width: min(100%, 760px);
  display: grid; justify-items: center; gap: clamp(18px, 2.4vw, 26px);
  padding: clamp(36px, 6vw, 72px) clamp(20px, 5vw, 64px);
  border: 1px solid color-mix(in srgb, var(--white) 35%, transparent);
}
.maint-card .mark { background: var(--white); }
.maint-logo { width: clamp(150px, 22vw, 200px); height: auto; aspect-ratio: 244.72 / 56.78; color: var(--c-title, var(--white)); }
.maint-title {
  font-family: var(--f-hero); font-weight: var(--f-hero-weight); font-style: var(--f-hero-style);
  font-size: calc(clamp(2.1rem, 1rem + 3.6vw, 4rem) * var(--s-title, 1));
  line-height: 1.04; letter-spacing: -.03em; text-wrap: balance;
  color: var(--c-title, var(--white));
}
.maint-title .accent { color: var(--c-accent, var(--coral)); }
.maint-text {
  max-width: 44ch;
  font-size: calc(clamp(1.0625rem, 1rem + .4vw, 1.3rem) * var(--s-text, 1)); line-height: 1.5;
  color: var(--c-text, color-mix(in srgb, var(--white) 88%, transparent));
}
.maint-text .accent-blue, .maint-title .accent-blue { color: var(--sky); }
.maint-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 14px 24px; margin-top: 6px; }
.maint .btn-primary { --bp-hover-bg: var(--c-btn-hover-bg, var(--white)); --bp-hover-fg: var(--c-btn-hover-text, var(--navy)); }
.maint-mail { display: inline-flex; align-items: center; gap: 10px; color: var(--c-text, var(--white)); font-size: 1rem; transition: color .3s var(--ease); }
.maint-mail svg { width: 20px; height: 20px; }
.maint-mail:hover { color: var(--c-accent, var(--coral)); }
.maint-note {
  font-family: var(--f-button); font-weight: var(--f-button-weight); text-transform: uppercase; letter-spacing: .12em;
  font-size: .72rem; color: color-mix(in srgb, var(--c-text, var(--white)) 70%, transparent);
}
@media (max-width: 600px) {
  .maint-actions { width: 100%; flex-direction: column; }
}

/* Aviso solo para el administrador con sesión abierta */
.admin-bar {
  position: fixed; left: 50%; bottom: 16px; z-index: 250; transform: translateX(-50%);
  width: max-content; max-width: calc(100% - 32px);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px 14px;
  padding: 10px 16px; border-radius: 14px;
  background: var(--navy); color: var(--white); box-shadow: 0 18px 40px -16px rgba(0, 0, 0, .5);
  font-size: .875rem; line-height: 1.3; text-align: center;
}
.admin-bar strong { color: var(--coral); }
.admin-bar a { text-decoration: underline; text-underline-offset: 3px; }
.admin-bar a:hover { color: var(--sky); }
