/* ==========================================================================
   AQL Logistics — Sistema de diseño 2026
   Editorial industrial: tinta naval, hueso cálido, azul de marca.
   ========================================================================== */

:root {
  --ink: #061733;
  --ink-2: #0a2149;
  --ink-3: #0f2c5c;
  --navy: #09347a;
  --blue: #007dc3;
  --blue-soft: #4fb0e8;
  --bone: #f3f1ec;
  --paper: #fbfaf7;
  --white: #ffffff;
  --text: #0c1a30;
  --muted: #566176;
  --line: rgba(6, 23, 51, 0.1);
  --line-strong: rgba(6, 23, 51, 0.18);
  --on-dark: #eef2f8;
  --on-dark-muted: rgba(226, 233, 245, 0.66);
  --line-dark: rgba(255, 255, 255, 0.1);
  --wa: #25d366;
  --wa-deep: #128c4b;
  --danger: #c2412d;

  --font-sans: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-serif: "Instrument Serif", ui-serif, Georgia, serif;
  --font-mono: "Geist Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --r-xl: 2rem;
  --r-lg: 1.5rem;
  --r-md: 1rem;
  --ease: cubic-bezier(0.32, 0.72, 0, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --gutter: clamp(1rem, 4vw, 2.5rem);
  --section: clamp(5rem, 11vw, 9.5rem);
  --header-h: 76px;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-l: env(safe-area-inset-left, 0px);
  --safe-r: env(safe-area-inset-right, 0px);
  --shadow-soft: 0 30px 60px -30px rgba(6, 23, 51, 0.25), 0 12px 24px -16px rgba(6, 23, 51, 0.12);
}

/* ----- Reset ----- */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 24px);
  interpolate-size: allow-keywords;
}
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
  min-width: 320px;
}
@supports not (overflow: clip) { body { overflow-x: hidden; } }
img, svg, video, iframe { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
h1, h2, h3, h4, p, ul, ol, figure, blockquote, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
address { font-style: normal; }
::selection { background: var(--blue); color: #fff; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 6px; }
[hidden] { display: none !important; }

.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip {
  position: fixed; top: 12px; left: 12px; z-index: 200; padding: 0.75rem 1.1rem;
  background: var(--ink); color: #fff; border-radius: 999px; transform: translateY(-160%);
  transition: transform 0.4s var(--ease);
}
.skip:focus { transform: none; }

/* Grano fijo — nunca en contenedores que hacen scroll */
body::after {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 90; opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ----- Layout ----- */
.container { width: 100%; max-width: 1360px; margin-inline: auto; padding-inline: var(--gutter); }
.container-narrow { max-width: 1040px; }
.section { padding-block: var(--section); position: relative; }
.section-tight { padding-block: clamp(3.5rem, 7vw, 6rem); }
.bg-bone { background: var(--bone); }
.bg-paper { background: var(--paper); }
.bg-ink { background: var(--ink); color: var(--on-dark); }
.bg-ink .muted, .bg-ink p.lead { color: var(--on-dark-muted); }

/* ----- Tipografía ----- */
.display, h1, h2, h3 { font-weight: 600; letter-spacing: -0.035em; line-height: 1.02; text-wrap: balance; }
h1 em, h2 em, h3 em, .display em {
  font-family: var(--font-serif); font-style: italic; font-weight: 400; letter-spacing: -0.01em;
}
.h-hero { font-size: clamp(2.45rem, 6.4vw, 5.6rem); }
.h-xl { font-size: clamp(2.1rem, 5vw, 4.25rem); }
.h-lg { font-size: clamp(1.85rem, 3.8vw, 3.1rem); }
.h-md { font-size: clamp(1.4rem, 2.4vw, 1.95rem); letter-spacing: -0.025em; line-height: 1.12; }
.h-sm { font-size: 1.15rem; letter-spacing: -0.015em; line-height: 1.25; }
.lead { font-size: clamp(1.05rem, 1.4vw, 1.22rem); line-height: 1.6; color: var(--muted); max-width: 62ch; }
.muted { color: var(--muted); }
.mono { font-family: var(--font-mono); }
.prose p + p { margin-top: 1rem; }
.prose p { max-width: 68ch; color: var(--muted); }
.prose strong { color: var(--text); font-weight: 600; }
.bg-ink .prose strong { color: #fff; }
.accent { color: var(--blue); }
.bg-ink .accent { color: var(--blue-soft); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 0.55rem; padding: 0.42rem 0.85rem 0.42rem 0.7rem;
  border-radius: 999px; font-family: var(--font-mono); font-size: 0.68rem; font-weight: 500;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--navy);
  background: rgba(9, 52, 122, 0.06); box-shadow: inset 0 0 0 1px rgba(9, 52, 122, 0.12);
}
.eyebrow::before { content: ""; width: 6px; height: 6px; border-radius: 2px; transform: rotate(45deg); background: var(--blue); }
.bg-ink .eyebrow, .on-dark .eyebrow { color: #cfe3f6; background: rgba(255, 255, 255, 0.06); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14); }

.section-head { display: grid; gap: 1.25rem; margin-bottom: clamp(2.5rem, 6vw, 4.5rem); }
.section-head.split { grid-template-columns: 1fr; align-items: end; }
@media (min-width: 900px) {
  .section-head.split { grid-template-columns: 1.15fr 0.85fr; gap: 3rem; }
}

/* ----- Iconos ----- */
.ico { width: 1.25em; height: 1.25em; flex: none; stroke: currentColor; fill: none; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.ico-fill { fill: currentColor; stroke: none; }

/* ----- Botones (botón dentro de botón) ----- */
.btn {
  --btn-bg: var(--ink); --btn-fg: #fff; --btn-ico-bg: rgba(255, 255, 255, 0.14);
  position: relative; display: inline-flex; align-items: center; gap: 0.85rem; min-height: 52px;
  padding: 0.4rem 0.45rem 0.4rem 1.4rem; border-radius: 999px; background: var(--btn-bg); color: var(--btn-fg);
  font-weight: 500; font-size: 0.98rem; letter-spacing: -0.01em; white-space: nowrap;
  transition: transform 0.5s var(--ease), background-color 0.5s var(--ease), box-shadow 0.5s var(--ease), color 0.5s var(--ease);
  -webkit-tap-highlight-color: transparent;
}
.btn .btn-ico {
  display: grid; place-items: center; width: 2.4rem; height: 2.4rem; border-radius: 999px; background: var(--btn-ico-bg);
  transition: transform 0.5s var(--ease), background-color 0.5s var(--ease);
}
.btn .btn-ico .ico { width: 1.05rem; height: 1.05rem; }
.btn:active { transform: scale(0.98); }
@media (hover: hover) {
  .btn:hover .btn-ico { transform: translate(3px, -1px) scale(1.06); }
  .btn-primary:hover { --btn-bg: #0a2a63; box-shadow: 0 18px 40px -18px rgba(0, 125, 195, 0.7); }
  .btn-light:hover { --btn-bg: #fff; }
  .btn-ghost:hover { --btn-bg: rgba(255, 255, 255, 0.16); }
  .btn-outline:hover { --btn-bg: var(--ink); --btn-fg: #fff; --btn-ico-bg: rgba(255,255,255,.14); }
  .btn-wa:hover { --btn-bg: #1fbd5a; }
}
.btn-primary { --btn-bg: var(--navy); }
.btn-light { --btn-bg: rgba(255, 255, 255, 0.94); --btn-fg: var(--ink); --btn-ico-bg: var(--ink); }
.btn-light .btn-ico { color: #fff; }
.btn-ghost { --btn-bg: rgba(255, 255, 255, 0.08); --btn-fg: #fff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22); }
.btn-outline { --btn-bg: transparent; --btn-fg: var(--ink); --btn-ico-bg: rgba(6, 23, 51, 0.07); box-shadow: inset 0 0 0 1px var(--line-strong); }
.btn-wa { --btn-bg: var(--wa); --btn-fg: #06331a; --btn-ico-bg: rgba(6, 51, 26, 0.12); }
.btn-sm { min-height: 44px; font-size: 0.9rem; padding-left: 1.1rem; gap: 0.6rem; }
.btn-sm .btn-ico { width: 2rem; height: 2rem; }
.btn-block { width: 100%; justify-content: space-between; }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.75rem; }

.link-arrow { display: inline-flex; align-items: center; gap: 0.5rem; font-weight: 500; color: var(--navy); }
.link-arrow .ico { transition: transform 0.5s var(--ease); }
@media (hover: hover) { .link-arrow:hover .ico { transform: translate(3px, -2px); } }
.bg-ink .link-arrow { color: #cfe3f6; }

/* ----- Doble bisel ----- */
.bezel {
  padding: 0.45rem; border-radius: var(--r-xl); background: rgba(6, 23, 51, 0.04);
  box-shadow: inset 0 0 0 1px rgba(6, 23, 51, 0.06);
}
.bezel > .core {
  border-radius: calc(var(--r-xl) - 0.45rem); background: var(--white); overflow: hidden; height: 100%;
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.6), 0 1px 2px rgba(6, 23, 51, 0.04);
}
.bg-ink .bezel, .on-dark .bezel { background: rgba(255, 255, 255, 0.04); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08); }
.bg-ink .bezel > .core, .on-dark .bezel > .core { background: var(--ink-2); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08); }
.media-core { position: relative; }
.media-core img { width: 100%; height: 100%; object-fit: cover; }

/* ----- Header (isla flotante) ----- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 60; padding: 12px max(12px, var(--safe-r)) 0 max(12px, var(--safe-l));
  pointer-events: none;
}
.nav-shell {
  pointer-events: auto; margin-inline: auto; max-width: 1240px; height: 64px; display: flex; align-items: center;
  justify-content: space-between; gap: 1rem; padding: 0 0.5rem 0 1.15rem; border-radius: 999px;
  color: #fff; background: rgba(6, 23, 51, 0.28);
  -webkit-backdrop-filter: blur(18px) saturate(140%); backdrop-filter: blur(18px) saturate(140%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14), inset 0 1px 0 rgba(255, 255, 255, 0.12);
  transition: background-color 0.6s var(--ease), color 0.6s var(--ease), box-shadow 0.6s var(--ease), transform 0.6s var(--ease);
}
.site-header.is-scrolled .nav-shell {
  color: var(--ink); background: rgba(251, 250, 247, 0.82);
  box-shadow: inset 0 0 0 1px rgba(6, 23, 51, 0.08), 0 20px 40px -24px rgba(6, 23, 51, 0.35);
}
.brand { display: inline-flex; align-items: center; gap: 0.7rem; min-height: 44px; }
.brand-iso { width: 40px; height: auto; --logo-a: #fff; --logo-b: var(--blue-soft); --logo-c: #2a8fd0; transition: none; }
.site-header.is-scrolled .brand-iso, .logo-dark .brand-iso { --logo-a: var(--navy); --logo-b: var(--blue); --logo-c: #0a5f9f; }
.brand-word { display: inline-flex; align-items: baseline; gap: 0.32rem; font-size: 1.32rem; line-height: 1; letter-spacing: -0.035em; }
.brand-word b { font-weight: 800; letter-spacing: -0.02em; }
.brand-word span { font-weight: 300; }

.nav-links { display: none; align-items: center; gap: 0.15rem; }
.nav-links a {
  position: relative; padding: 0.6rem 0.95rem; border-radius: 999px; font-size: 0.93rem; font-weight: 450; opacity: 0.86;
  transition: opacity 0.4s var(--ease), background-color 0.4s var(--ease);
}
.nav-links a:hover { opacity: 1; background: rgba(255, 255, 255, 0.1); }
.site-header.is-scrolled .nav-links a:hover { background: rgba(6, 23, 51, 0.06); }
.nav-links a[aria-current="page"] { opacity: 1; }
.nav-links a[aria-current="page"]::after {
  content: ""; position: absolute; left: 50%; bottom: 0.28rem; width: 4px; height: 4px; border-radius: 1px;
  background: var(--blue-soft); transform: translateX(-50%) rotate(45deg);
}
.site-header.is-scrolled .nav-links a[aria-current="page"]::after { background: var(--blue); }
.nav-cta { display: none; }
.site-header .btn-primary { --btn-bg: var(--blue); }
.site-header.is-scrolled .btn-primary { --btn-bg: var(--navy); }

.menu-toggle {
  position: relative; width: 48px; height: 48px; border-radius: 999px; display: grid; place-items: center;
  background: rgba(255, 255, 255, 0.12); -webkit-tap-highlight-color: transparent;
}
.site-header.is-scrolled .menu-toggle { background: rgba(6, 23, 51, 0.07); }
.menu-toggle span {
  position: absolute; left: 15px; right: 15px; height: 1.5px; border-radius: 2px; background: currentColor;
  transition: transform 0.6s var(--ease), top 0.6s var(--ease);
}
.menu-toggle span:nth-child(1) { top: 20px; }
.menu-toggle span:nth-child(2) { top: 27px; }
.menu-open .menu-toggle span:nth-child(1) { top: 23.5px; transform: rotate(45deg); }
.menu-open .menu-toggle span:nth-child(2) { top: 23.5px; transform: rotate(-45deg); }
.menu-open .site-header .nav-shell { color: #fff; background: rgba(255, 255, 255, 0.06); box-shadow: inset 0 0 0 1px rgba(255,255,255,.12); }
.menu-open .site-header .brand-iso { --logo-a: #fff; --logo-b: var(--blue-soft); --logo-c: #2a8fd0; }
.menu-open .site-header .menu-toggle { background: rgba(255, 255, 255, 0.12); }

@media (min-width: 1024px) {
  .nav-links, .nav-cta { display: flex; }
  .menu-toggle { display: none; }
}

/* ----- Menú móvil ----- */
.mobile-menu {
  position: fixed; inset: 0; z-index: 55; display: flex; flex-direction: column; justify-content: space-between;
  padding: calc(96px + env(safe-area-inset-top, 0px)) var(--gutter) calc(28px + var(--safe-b));
  background: rgba(6, 23, 51, 0.94); color: #fff; overflow-y: auto; overscroll-behavior: contain;
  -webkit-backdrop-filter: blur(28px); backdrop-filter: blur(28px);
  opacity: 0; visibility: hidden; transition: opacity 0.6s var(--ease), visibility 0s linear 0.6s;
}
.menu-open .mobile-menu { opacity: 1; visibility: visible; transition: opacity 0.6s var(--ease), visibility 0s; }
.mobile-menu nav ul { display: grid; gap: 0.2rem; }
.mobile-menu nav a {
  display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; padding: 0.55rem 0;
  font-size: clamp(2rem, 9vw, 3rem); font-weight: 500; letter-spacing: -0.04em; line-height: 1.1;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.mobile-menu nav a small { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.1em; color: var(--on-dark-muted); }
.mobile-menu nav a[aria-current="page"] { color: var(--blue-soft); }
.mobile-menu .stagger > * { opacity: 0; transform: translateY(2.5rem); transition: opacity 0.7s var(--ease), transform 0.9s var(--ease); }
.menu-open .mobile-menu .stagger > * { opacity: 1; transform: none; }
.menu-open .mobile-menu .stagger > *:nth-child(1) { transition-delay: 0.08s; }
.menu-open .mobile-menu .stagger > *:nth-child(2) { transition-delay: 0.13s; }
.menu-open .mobile-menu .stagger > *:nth-child(3) { transition-delay: 0.18s; }
.menu-open .mobile-menu .stagger > *:nth-child(4) { transition-delay: 0.23s; }
.menu-open .mobile-menu .stagger > *:nth-child(5) { transition-delay: 0.28s; }
.menu-open .mobile-menu .stagger > *:nth-child(6) { transition-delay: 0.33s; }
.mobile-menu-foot { display: grid; gap: 1.1rem; margin-top: 2rem; }
.mobile-menu-foot p { color: var(--on-dark-muted); font-size: 0.92rem; }
.menu-open, .menu-open body { overflow: hidden; }

/* ----- Hero ----- */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: flex-end; color: #fff;
  background: var(--ink); isolation: isolate; overflow: hidden;
}
@supports (min-height: 100dvh) { .hero { min-height: 100dvh; } }
.hero-media { position: absolute; inset: 0; z-index: -2; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 62% 50%; transform: scale(1.06); animation: heroZoom 14s var(--ease-out) forwards; }
@keyframes heroZoom { to { transform: scale(1); } }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(6, 23, 51, 0.55) 0%, rgba(6, 23, 51, 0.12) 28%, rgba(6, 23, 51, 0.35) 62%, rgba(6, 23, 51, 0.96) 100%),
    linear-gradient(90deg, rgba(6, 23, 51, 0.85) 0%, rgba(6, 23, 51, 0.35) 55%, rgba(6, 23, 51, 0) 85%);
}
.hero-inner { width: 100%; padding-top: calc(var(--header-h) + 64px); padding-bottom: clamp(2.5rem, 6vw, 4.5rem); }
.hero-grid { display: grid; gap: 2.5rem; align-items: end; }
.hero h1 { max-width: 15ch; }
.h1-kicker {
  display: block; margin-bottom: 1.25rem; font-family: var(--font-mono); font-size: clamp(0.7rem, 1.2vw, 0.78rem);
  font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; line-height: 1.5; color: #cfe3f6;
}
.h1-kicker::before {
  content: ""; display: inline-block; width: 7px; height: 7px; margin-right: 0.7rem; border-radius: 2px; vertical-align: 0.1em;
  transform: rotate(45deg); background: var(--blue-soft);
}
.hero .lead { color: rgba(236, 242, 250, 0.8); margin-top: 1.5rem; }
.hero .btn-row { margin-top: 2.25rem; }
.hero-card {
  justify-self: start; width: min(100%, 360px); padding: 0.4rem; border-radius: 1.6rem;
  background: rgba(255, 255, 255, 0.08); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
}
.hero-card-core { display: grid; grid-template-columns: 88px 1fr; gap: 0.9rem; align-items: center; padding: 0.4rem; border-radius: 1.25rem; background: rgba(6, 23, 51, 0.45); box-shadow: inset 0 1px 0 rgba(255,255,255,.08); }
.hero-card-core img { width: 88px; height: 72px; object-fit: cover; border-radius: 0.95rem; }
.hero-card-core p { font-size: 0.86rem; line-height: 1.4; color: rgba(236, 242, 250, 0.78); }
.hero-card-core strong { display: block; color: #fff; font-weight: 600; font-size: 0.95rem; margin-bottom: 0.15rem; }
.live { display: inline-flex; align-items: center; gap: 0.45rem; font-family: var(--font-mono); font-size: 0.64rem; letter-spacing: 0.14em; text-transform: uppercase; color: #9ff0bf; margin-bottom: 0.3rem; }
.live i { position: relative; width: 7px; height: 7px; border-radius: 50%; background: #34d27b; }
.live i::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 1px solid #34d27b; animation: ping 2.2s var(--ease-out) infinite; }
@keyframes ping { 0% { transform: scale(0.6); opacity: 1; } 100% { transform: scale(2.2); opacity: 0; } }
.hero-foot {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1rem; margin-top: clamp(2.5rem, 6vw, 4rem);
  padding-top: 1.25rem; border-top: 1px solid rgba(255, 255, 255, 0.14);
  font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(236, 242, 250, 0.6);
}
.hero-foot ul { display: flex; flex-wrap: wrap; gap: 0.4rem 1.4rem; }
.hero-foot li { display: inline-flex; align-items: center; gap: 0.5rem; }
.hero-foot .ico { width: 1rem; height: 1rem; color: var(--blue-soft); }
.scroll-cue { display: none; align-items: center; gap: 0.6rem; }
.scroll-cue span { width: 1px; height: 30px; background: linear-gradient(rgba(255,255,255,.7), transparent); animation: cue 2.4s var(--ease) infinite; transform-origin: top; }
@keyframes cue { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }
@media (min-width: 900px) {
  .hero-grid { grid-template-columns: 1fr auto; }
  .hero-card { justify-self: end; }
  .scroll-cue { display: inline-flex; }
}

/* Encabezado de página interior */
.page-hero {
  position: relative; color: #fff; background: var(--ink); isolation: isolate; overflow: hidden;
  padding-top: calc(var(--header-h) + clamp(4rem, 10vw, 7.5rem)); padding-bottom: clamp(3.5rem, 8vw, 6rem);
}
.page-hero .hero-media img { object-position: center; animation-duration: 10s; }
.page-hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(6, 23, 51, 0.7), rgba(6, 23, 51, 0.5) 45%, rgba(6, 23, 51, 0.97)),
              linear-gradient(90deg, rgba(6, 23, 51, 0.82), rgba(6, 23, 51, 0.1));
}
.page-hero h1 { font-size: clamp(2.3rem, 5.6vw, 4.6rem); max-width: 18ch; }
.page-hero .lead { color: rgba(236, 242, 250, 0.8); margin-top: 1.4rem; }
.page-hero.compact h1 { font-size: clamp(2.1rem, 4.6vw, 3.6rem); }
.breadcrumb { margin-bottom: 2rem; }
.breadcrumb ol { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(236, 242, 250, 0.6); }
.breadcrumb li + li::before { content: "/"; margin-right: 0.5rem; opacity: 0.5; }
.breadcrumb a:hover { color: #fff; }
.breadcrumb [aria-current] { color: #fff; }

/* ----- Marquesina ----- */
.marquee { overflow: hidden; background: var(--ink); color: #fff; border-top: 1px solid var(--line-dark); padding-block: 1.35rem; }
.marquee-track { display: flex; width: max-content; animation: marquee 48s linear infinite; }
.marquee-group { display: flex; align-items: center; flex: none; }
.marquee-item { display: inline-flex; align-items: center; gap: 1.6rem; padding-right: 1.6rem; font-size: clamp(1.1rem, 2.2vw, 1.6rem); font-weight: 500; letter-spacing: -0.02em; white-space: nowrap; }
.marquee-item:nth-child(even) { font-family: var(--font-serif); font-style: italic; font-weight: 400; color: #cfe3f6; }
.marquee-item::after { content: ""; width: 7px; height: 7px; border-radius: 2px; transform: rotate(45deg); background: var(--blue); }
@keyframes marquee { to { transform: translateX(-50%); } }
@media (hover: hover) { .marquee:hover .marquee-track { animation-play-state: paused; } }

/* ----- Alcance / mapa ----- */
.reach-grid { display: grid; gap: clamp(2.5rem, 6vw, 5rem); align-items: center; }
@media (min-width: 1000px) { .reach-grid { grid-template-columns: 0.9fr 1.1fr; } }
.map-stage { padding: clamp(1rem, 3vw, 2.25rem); }
.map-inner { position: relative; aspect-ratio: 1000 / 613; }
.map-inner img { width: 100%; height: 100%; object-fit: contain; opacity: 0.92; }
.map-inner svg.routes { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.routes path { fill: none; stroke: var(--blue); stroke-width: 1.6; stroke-dasharray: 4 5; vector-effect: non-scaling-stroke; }
.routes .route-draw { stroke-dasharray: 600; stroke-dashoffset: 600; stroke-width: 1.8; transition: stroke-dashoffset 2.6s var(--ease-out); }
.is-visible .routes .route-draw { stroke-dashoffset: 0; }
.pin { position: absolute; width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%; background: var(--blue); box-shadow: 0 0 0 4px rgba(0, 125, 195, 0.18); }
.pin::after { content: ""; position: absolute; inset: -6px; border-radius: 50%; border: 1.5px solid var(--blue); animation: ping 2.8s var(--ease-out) infinite; }
.pin.home { width: 16px; height: 16px; margin: -8px 0 0 -8px; background: var(--navy); }
.pin-label {
  position: absolute; transform: translate(-50%, calc(-100% - 14px)); white-space: nowrap; padding: 0.3rem 0.6rem; border-radius: 999px;
  background: var(--ink); color: #fff; font-family: var(--font-mono); font-size: 0.62rem; letter-spacing: 0.1em; text-transform: uppercase;
}
.stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: clamp(2.5rem, 5vw, 3.5rem); border-top: 1px solid var(--line); }
.stat { padding: 1.5rem 1rem 0.25rem 0; }
.stat + .stat { padding-left: 1rem; }
.stat:nth-child(odd) { border-right: 1px solid var(--line); }
.stat:nth-child(3) { padding-left: 0; }
.stat:nth-child(n+3) { border-top: 1px solid var(--line); }
.stat-num { font-size: clamp(2.2rem, 4.5vw, 3.4rem); font-weight: 600; letter-spacing: -0.05em; line-height: 1; color: var(--navy); }
.stat-num small { font-size: 0.5em; letter-spacing: -0.02em; }
.stat p { margin-top: 0.6rem; font-size: 0.9rem; color: var(--muted); line-height: 1.45; }
@media (min-width: 700px) {
  .stats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .stat, .stat + .stat { padding: 1.75rem 1.25rem 0.25rem; border-top: 0 !important; }
  .stat:first-child { padding-left: 0; }
  .stat:not(:last-child) { border-right: 1px solid var(--line); }
}

/* ----- Servicios: pila adhesiva ----- */
.stack { display: grid; gap: 1.25rem; }
.stack-card { position: relative; }
.stack-card .core { display: grid; background: var(--white); }
.stack-media { position: relative; min-height: 260px; overflow: hidden; }
.stack-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease-out); }
@media (hover: hover) { .stack-card:hover .stack-media img { transform: scale(1.04); } }
.stack-media .tag {
  position: absolute; left: 1rem; top: 1rem; display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.5rem 0.8rem; border-radius: 999px;
  background: rgba(6, 23, 51, 0.6); color: #fff; font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.12em; text-transform: uppercase;
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.stack-body { padding: clamp(1.5rem, 4vw, 3rem); display: flex; flex-direction: column; gap: 1.25rem; }
.stack-num { font-family: var(--font-mono); font-size: 0.78rem; color: var(--blue); letter-spacing: 0.1em; }
.check-list { display: grid; gap: 0.7rem; }
.check-list li { display: grid; grid-template-columns: 1.4rem 1fr; gap: 0.6rem; font-size: 0.97rem; line-height: 1.45; }
.check-list li .ico { color: var(--blue); margin-top: 0.12rem; width: 1.15rem; height: 1.15rem; }
.check-list strong { font-weight: 600; }
.bg-ink .check-list li .ico { color: var(--blue-soft); }
@media (min-width: 640px) { .check-list.cols-2 { grid-template-columns: 1fr 1fr; column-gap: 1.5rem; } }
@media (min-width: 900px) {
  .stack { gap: 2rem; }
  .stack-card { position: sticky; top: calc(var(--header-h) + 28px); }
  .stack-card:nth-child(2) { top: calc(var(--header-h) + 46px); }
  .stack-card:nth-child(3) { top: calc(var(--header-h) + 64px); }
  .stack-card .core { grid-template-columns: 1fr 1fr; min-height: 560px; }
  .stack-card:nth-child(even) .stack-media { order: 2; }
}

/* ----- Bento flota ----- */
.bento { display: grid; gap: 1rem; grid-template-columns: 1fr; }
.bento .tile { min-height: 220px; }
.tile-media { position: relative; overflow: hidden; height: 100%; min-height: inherit; }
.tile-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease-out); }
@media (hover: hover) { .tile:hover .tile-media img { transform: scale(1.04); } }
.tile-caption {
  position: absolute; left: 0.75rem; right: 0.75rem; bottom: 0.75rem; padding: 0.8rem 1rem; border-radius: 1rem;
  background: rgba(6, 23, 51, 0.62); color: #fff; font-size: 0.88rem; line-height: 1.4;
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); box-shadow: inset 0 0 0 1px rgba(255,255,255,.1);
}
.tile-caption b { display: block; font-weight: 600; }
.tile-text { padding: 1.6rem; display: flex; flex-direction: column; justify-content: space-between; gap: 1.5rem; height: 100%; }
.tile-text .ico-badge { width: 3rem; height: 3rem; }
.tile-text p { color: var(--on-dark-muted); font-size: 0.95rem; }
.tile-text h3 { font-size: 1.2rem; letter-spacing: -0.02em; line-height: 1.2; margin-bottom: 0.4rem; }
.ico-badge {
  display: grid; place-items: center; width: 2.9rem; height: 2.9rem; border-radius: 0.9rem; color: var(--blue);
  background: rgba(0, 125, 195, 0.08); box-shadow: inset 0 0 0 1px rgba(0, 125, 195, 0.18);
}
.ico-badge .ico { width: 1.35rem; height: 1.35rem; }
.bg-ink .ico-badge, .on-dark .ico-badge { color: var(--blue-soft); background: rgba(79, 176, 232, 0.08); box-shadow: inset 0 0 0 1px rgba(79, 176, 232, 0.2); }
@media (min-width: 700px) {
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bento .tile-lg { grid-column: span 2; min-height: 380px; }
}
@media (min-width: 1100px) {
  .bento { grid-template-columns: repeat(12, minmax(0, 1fr)); grid-auto-rows: minmax(250px, auto); }
  .bento .tile { grid-column: span 3; }
  .bento .tile-lg { grid-column: span 6; grid-row: span 2; }
  .bento .tile-tall { grid-column: span 3; grid-row: span 2; }
  .bento .tile-wide { grid-column: span 6; }
}

/* ----- Por qué (lista con imagen) ----- */
.why-grid { display: grid; gap: clamp(2rem, 5vw, 4rem); }
.why-visual { display: none; }
.why-list { border-top: 1px solid var(--line); }
.why-item { display: grid; grid-template-columns: 3rem 1fr; gap: 1rem; padding: 1.6rem 0; border-bottom: 1px solid var(--line); transition: opacity 0.5s var(--ease); }
.why-item .n { font-family: var(--font-mono); font-size: 0.8rem; color: var(--blue); padding-top: 0.35rem; }
.why-item h3 { font-size: clamp(1.35rem, 2.4vw, 1.9rem); letter-spacing: -0.03em; line-height: 1.1; }
.why-item p { margin-top: 0.6rem; color: var(--muted); max-width: 52ch; }
@media (min-width: 1000px) {
  .why-grid { grid-template-columns: 0.95fr 1.05fr; align-items: start; }
  .why-visual { display: block; position: sticky; top: calc(var(--header-h) + 40px); }
  .why-visual .core { aspect-ratio: 4 / 5; position: relative; }
  .why-visual img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.04); transition: opacity 0.8s var(--ease), transform 1.4s var(--ease-out); }
  .why-visual img.is-active { opacity: 1; transform: none; }
  .why-list:hover .why-item { opacity: 0.45; }
  .why-list:hover .why-item:hover, .why-list .why-item:focus-within { opacity: 1; }
}

/* ----- Proceso ----- */
.process { display: grid; gap: 1rem; counter-reset: step; }
.step { position: relative; padding: 1.75rem; border-radius: var(--r-lg); background: rgba(255, 255, 255, 0.04); box-shadow: inset 0 0 0 1px var(--line-dark); }
.step .stack-num { color: var(--blue-soft); }
.step h3 { font-size: 1.3rem; letter-spacing: -0.025em; margin: 1.4rem 0 0.6rem; line-height: 1.15; }
.step p { color: var(--on-dark-muted); font-size: 0.95rem; }
.step .ico-badge { margin-top: 1.4rem; }
.process-line { display: none; }
@media (min-width: 700px) { .process { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) {
  .process { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.25rem; position: relative; }
  .process-line { display: block; position: absolute; left: 1.75rem; right: 1.75rem; top: 2.6rem; height: 1px; background: var(--line-dark); overflow: hidden; z-index: 0; }
  .process-line::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--blue-soft), var(--blue)); transform: scaleX(0); transform-origin: left; transition: transform 2.4s var(--ease-out) 0.3s; }
  .is-visible .process-line::after { transform: scaleX(1); }
  .step { background: var(--ink-2); z-index: 1; }
}

/* ----- Filosofía ----- */
.philo { position: relative; color: #fff; isolation: isolate; overflow: hidden; background: var(--ink); }
.philo-bg { position: absolute; inset: 0; z-index: -2; display: grid; grid-template-columns: 1fr 1fr; }
.philo-bg img { width: 100%; height: 100%; object-fit: cover; }
.philo::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(6,23,51,.92), rgba(6,23,51,.86) 50%, rgba(6,23,51,.96)); }
.philo-grid { display: grid; gap: 1.25rem; }
.philo-card { padding: clamp(1.6rem, 3.5vw, 2.5rem); border-radius: var(--r-xl); background: rgba(255, 255, 255, 0.05); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1), inset 0 1px 0 rgba(255,255,255,.08); }
.philo-card h3 { display: flex; align-items: center; gap: 0.8rem; font-size: 1rem; font-family: var(--font-mono); font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: #cfe3f6; }
.philo-card blockquote, .philo-card .quote { margin-top: 1.5rem; font-family: var(--font-serif); font-size: clamp(1.6rem, 3.2vw, 2.5rem); line-height: 1.15; letter-spacing: -0.01em; }
.philo-card p.body { margin-top: 1.25rem; font-size: 1.12rem; line-height: 1.55; color: rgba(236, 242, 250, 0.85); }
.values { display: flex; flex-wrap: wrap; gap: 0.55rem; margin-top: 1.5rem; }
.values li { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.6rem 1rem; border-radius: 999px; background: rgba(255, 255, 255, 0.07); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14); font-size: 0.95rem; }
.values li .ico { width: 1rem; height: 1rem; color: var(--blue-soft); }
@media (min-width: 1000px) {
  .philo-grid { grid-template-columns: 1.3fr 1fr; grid-template-rows: auto auto; }
  .philo-grid .philo-card:first-child { grid-row: span 2; display: flex; flex-direction: column; justify-content: space-between; }
}

/* ----- Galería ----- */
.masonry { columns: 1; column-gap: 1rem; }
.masonry > * { break-inside: avoid; margin-bottom: 1rem; }
@media (min-width: 560px) { .masonry { columns: 2; } }
@media (min-width: 1000px) { .masonry { columns: 3; column-gap: 1.25rem; } .masonry > * { margin-bottom: 1.25rem; } }
.g-item { position: relative; display: block; width: 100%; padding: 0.35rem; border-radius: 1.4rem; background: rgba(6, 23, 51, 0.04); box-shadow: inset 0 0 0 1px rgba(6, 23, 51, 0.06); text-align: left; -webkit-tap-highlight-color: transparent; }
.g-item .g-core { position: relative; overflow: hidden; border-radius: calc(1.4rem - 0.35rem); }
.g-item img { width: 100%; height: auto; transition: transform 1.2s var(--ease-out), filter 0.8s var(--ease); }
.g-item figcaption, .g-item .g-cap {
  position: absolute; left: 0.6rem; right: 0.6rem; bottom: 0.6rem; display: flex; justify-content: space-between; align-items: center; gap: 0.75rem;
  padding: 0.7rem 0.9rem; border-radius: 0.9rem; background: rgba(6, 23, 51, 0.66); color: #fff; font-size: 0.85rem; line-height: 1.35;
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); transform: translateY(0.4rem); opacity: 0.001;
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}
.g-cap small { display: block; font-family: var(--font-mono); font-size: 0.6rem; letter-spacing: 0.12em; text-transform: uppercase; color: #cfe3f6; margin-bottom: 0.1rem; }
.g-cap .ico { width: 1rem; height: 1rem; flex: none; }
@media (hover: hover) {
  .g-item:hover img { transform: scale(1.045); }
  .g-item:hover .g-cap, .g-item:focus-visible .g-cap { opacity: 1; transform: none; }
}
@media (hover: none) { .g-item .g-cap { opacity: 1; transform: none; } }
.g-item.is-hidden { display: none; }

.filters { display: flex; gap: 0.5rem; overflow-x: auto; padding: 0.25rem 0.1rem 0.75rem; margin-bottom: 1.5rem; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.filters::-webkit-scrollbar { display: none; }
.filter {
  flex: none; display: inline-flex; align-items: center; gap: 0.5rem; min-height: 44px; padding: 0 1.1rem; border-radius: 999px;
  background: rgba(6, 23, 51, 0.05); box-shadow: inset 0 0 0 1px rgba(6, 23, 51, 0.08); font-size: 0.92rem; font-weight: 500;
  transition: background-color 0.5s var(--ease), color 0.5s var(--ease);
}
.filter .count { font-family: var(--font-mono); font-size: 0.7rem; opacity: 0.6; }
.filter[aria-pressed="true"] { background: var(--ink); color: #fff; box-shadow: none; }

.lightbox {
  position: fixed; inset: 0; z-index: 120; display: grid; grid-template-rows: auto 1fr auto; background: rgba(4, 14, 32, 0.96);
  color: #fff; opacity: 0; visibility: hidden; transition: opacity 0.5s var(--ease), visibility 0s linear 0.5s;
  padding: calc(env(safe-area-inset-top, 0px) + 12px) max(12px, var(--safe-r)) calc(12px + var(--safe-b)) max(12px, var(--safe-l));
}
.lightbox.is-open { opacity: 1; visibility: visible; transition: opacity 0.5s var(--ease), visibility 0s; }
.lb-top { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 0.25rem 0.25rem 0.75rem; font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.1em; color: rgba(236,242,250,.7); }
.lb-stage { position: relative; display: grid; place-items: center; min-height: 0; touch-action: pan-y; }
.lb-stage img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; border-radius: 1rem; transition: opacity 0.4s var(--ease), transform 0.6s var(--ease); }
.lb-stage img.is-loading { opacity: 0; transform: scale(0.98); }
.lb-bottom { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding-top: 0.9rem; }
.lb-cap { font-size: 0.95rem; color: rgba(236, 242, 250, 0.85); max-width: 60ch; }
.lb-btn { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 999px; background: rgba(255, 255, 255, 0.1); box-shadow: inset 0 0 0 1px rgba(255,255,255,.14); flex: none; }
.lb-btn:hover { background: rgba(255, 255, 255, 0.18); }
.lb-nav { display: flex; gap: 0.5rem; }

/* ----- FAQ / acordeones ----- */
.faq-grid { display: grid; gap: clamp(2rem, 5vw, 4rem); }
@media (min-width: 1000px) { .faq-grid { grid-template-columns: 0.8fr 1.2fr; } .faq-grid .section-head { position: sticky; top: calc(var(--header-h) + 40px); align-self: start; } }
.accordion { border-top: 1px solid var(--line); }
.bg-ink .accordion { border-color: var(--line-dark); }
.acc { border-bottom: 1px solid var(--line); }
.bg-ink .acc { border-color: var(--line-dark); }
.acc summary {
  display: flex; justify-content: space-between; align-items: center; gap: 1.25rem; padding: 1.4rem 0; cursor: pointer; list-style: none;
  font-size: clamp(1.05rem, 1.6vw, 1.22rem); font-weight: 500; letter-spacing: -0.015em; line-height: 1.35; -webkit-tap-highlight-color: transparent;
}
.acc summary::-webkit-details-marker { display: none; }
.acc summary .plus { position: relative; flex: none; width: 2.2rem; height: 2.2rem; border-radius: 999px; background: rgba(6, 23, 51, 0.05); box-shadow: inset 0 0 0 1px var(--line); transition: background-color 0.5s var(--ease), transform 0.6s var(--ease); }
.acc summary .plus::before, .acc summary .plus::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 1.5px; margin: -0.75px 0 0 -6px; background: currentColor; border-radius: 2px; transition: transform 0.6s var(--ease); }
.acc summary .plus::after { transform: rotate(90deg); }
.acc[open] summary .plus { background: var(--ink); color: #fff; transform: rotate(180deg); }
.acc[open] summary .plus::after { transform: rotate(0deg); }
.bg-ink .acc summary .plus { background: rgba(255,255,255,.06); box-shadow: inset 0 0 0 1px var(--line-dark); }
.bg-ink .acc[open] summary .plus { background: var(--blue); }
.acc-body { padding: 0 3.4rem 1.6rem 0; color: var(--muted); }
.acc-body p + p, .acc-body p + ul, .acc-body ul + p { margin-top: 0.8rem; }
.acc-body ul { display: grid; gap: 0.5rem; }
.acc-body ul li { position: relative; padding-left: 1.2rem; }
.acc-body ul li::before { content: ""; position: absolute; left: 0; top: 0.62em; width: 5px; height: 5px; border-radius: 1px; transform: rotate(45deg); background: var(--blue); }
.bg-ink .acc-body { color: var(--on-dark-muted); }
.acc::details-content { block-size: 0; overflow: clip; transition: block-size 0.55s var(--ease), content-visibility 0.55s allow-discrete; }
.acc[open]::details-content { block-size: auto; }
@media (max-width: 600px) { .acc-body { padding-right: 0; } }

/* ----- Contacto / formulario ----- */
.contact-grid { display: grid; gap: 1.25rem; }
@media (min-width: 1000px) { .contact-grid { grid-template-columns: 1.15fr 0.85fr; align-items: stretch; } }
.form-core { padding: clamp(1.4rem, 4vw, 2.75rem); }
.form-grid { display: grid; gap: 1.1rem; }
@media (min-width: 640px) { .form-grid { grid-template-columns: 1fr 1fr; } .form-grid .full { grid-column: 1 / -1; } }
.field { display: grid; gap: 0.45rem; }
.field label { font-size: 0.86rem; font-weight: 500; color: var(--text); }
.field label .opt { color: var(--muted); font-weight: 400; }
.input {
  width: 100%; min-height: 52px; padding: 0.8rem 1rem; border-radius: 0.95rem; border: 0; outline: 0;
  background: var(--bone); box-shadow: inset 0 0 0 1px rgba(6, 23, 51, 0.08);
  font-size: 16px; /* evita el zoom automático en iOS */ line-height: 1.4; color: var(--text);
  transition: box-shadow 0.4s var(--ease), background-color 0.4s var(--ease);
  -webkit-appearance: none; appearance: none;
}
textarea.input { min-height: 132px; resize: vertical; }
select.input {
  padding-right: 2.75rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23061733' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 1rem center; background-size: 18px;
}
.input::placeholder { color: #8a93a4; }
.input:focus { background-color: #fff; box-shadow: inset 0 0 0 1.5px var(--blue), 0 0 0 4px rgba(0, 125, 195, 0.12); }
.field.has-error .input { box-shadow: inset 0 0 0 1.5px var(--danger); background-color: #fff8f6; }
.field-error { display: none; font-size: 0.82rem; color: var(--danger); }
.field.has-error .field-error { display: block; }
.field-help { font-size: 0.8rem; color: var(--muted); }
.check { display: grid; grid-template-columns: 1.4rem 1fr; gap: 0.7rem; align-items: start; font-size: 0.86rem; color: var(--muted); line-height: 1.5; cursor: pointer; }
.check input { width: 1.25rem; height: 1.25rem; margin: 0.1rem 0 0; accent-color: var(--navy); }
.check a { color: var(--navy); text-decoration: underline; text-underline-offset: 2px; }
.check.has-error { color: var(--danger); }
.privacy-note { margin-top: 1rem; padding: 1rem 1.1rem; border-radius: 1rem; background: rgba(6, 23, 51, 0.035); font-size: 0.78rem; line-height: 1.55; color: var(--muted); }
.privacy-note a { color: var(--navy); text-decoration: underline; text-underline-offset: 2px; }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; margin-top: 1.5rem; }
.form-actions small { color: var(--muted); font-size: 0.8rem; display: inline-flex; align-items: center; gap: 0.4rem; }
.form-success { display: none; padding: 1.1rem 1.2rem; margin-top: 1rem; border-radius: 1rem; background: rgba(37, 211, 102, 0.1); box-shadow: inset 0 0 0 1px rgba(18, 140, 75, 0.25); color: #0d5c33; font-size: 0.92rem; }
.form-success.is-visible { display: block; }
.form-success a { font-weight: 600; text-decoration: underline; }
.seg { display: flex; flex-wrap: wrap; gap: 0.45rem; }
.seg label { position: relative; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg span { display: inline-flex; align-items: center; gap: 0.45rem; min-height: 42px; padding: 0 0.95rem; border-radius: 999px; background: var(--bone); box-shadow: inset 0 0 0 1px rgba(6, 23, 51, 0.08); font-size: 0.88rem; cursor: pointer; transition: background-color 0.4s var(--ease), color 0.4s var(--ease); }
.seg span .ico { width: 1rem; height: 1rem; }
.seg input:checked + span { background: var(--ink); color: #fff; box-shadow: none; }
.seg input:focus-visible + span { outline: 2px solid var(--blue); outline-offset: 2px; }

.info-core { position: relative; display: flex; flex-direction: column; min-height: 100%; color: #fff; background: var(--ink-2) !important; }
.info-photo { position: relative; aspect-ratio: 16 / 10; overflow: hidden; }
.info-photo img { width: 100%; height: 100%; object-fit: cover; }
.info-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,33,73,0) 40%, var(--ink-2)); }
.info-body { padding: 0 clamp(1.4rem, 3vw, 2.25rem) clamp(1.4rem, 3vw, 2.25rem); display: grid; gap: 1.25rem; margin-top: -2rem; position: relative; }
.info-list { display: grid; gap: 0.4rem; }
.info-list a, .info-list div { display: grid; grid-template-columns: 2.6rem 1fr; gap: 0.9rem; align-items: center; padding: 0.7rem 0; border-bottom: 1px solid var(--line-dark); }
.info-list .ico-badge { width: 2.6rem; height: 2.6rem; border-radius: 0.8rem; }
.info-list small { display: block; font-family: var(--font-mono); font-size: 0.64rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--on-dark-muted); }
.info-list span { font-size: 0.97rem; line-height: 1.4; overflow-wrap: anywhere; }

/* ----- Tarjetas de contacto ----- */
.channels { display: grid; gap: 1rem; }
@media (min-width: 700px) { .channels { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .channels { grid-template-columns: 1.4fr 1fr 1fr; } }
.channel .core { padding: 1.6rem; display: flex; flex-direction: column; gap: 2.5rem; justify-content: space-between; height: 100%; transition: transform 0.6s var(--ease); }
.channel h2, .channel h3 { font-size: 1.05rem; font-weight: 600; letter-spacing: -0.015em; }
.channel p { color: var(--muted); font-size: 0.93rem; margin-top: 0.35rem; overflow-wrap: anywhere; }
.channel .big { font-size: clamp(1.35rem, 2.4vw, 1.75rem); font-weight: 600; letter-spacing: -0.03em; color: var(--text); margin-top: 0.4rem; }
.channel-wa .core { background: var(--ink); color: #fff; }
.channel-wa .core p { color: var(--on-dark-muted); }
.channel-wa .core .big { color: #fff; }
.channel-wa .ico-badge { color: var(--wa); background: rgba(37, 211, 102, 0.1); box-shadow: inset 0 0 0 1px rgba(37, 211, 102, 0.3); }

/* Mapa con consentimiento */
.map-wrap { position: relative; aspect-ratio: 16 / 9; min-height: 340px; background: var(--ink-2); }
.map-wrap iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; filter: grayscale(0.35) contrast(1.05); }
.map-facade { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; padding: 1.5rem; color: #fff; isolation: isolate; overflow: hidden; }
.map-facade img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; opacity: 0.55; }
.map-facade::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(circle at 50% 45%, rgba(6,23,51,.35), rgba(6,23,51,.88) 70%); }
.map-facade p { color: var(--on-dark-muted); max-width: 42ch; margin: 0.75rem auto 1.4rem; font-size: 0.93rem; }
.map-pin-big { position: relative; width: 22px; height: 22px; margin: 0 auto 1.25rem; border-radius: 50%; background: var(--blue); box-shadow: 0 0 0 6px rgba(0, 125, 195, 0.25); }
.map-pin-big::after { content: ""; position: absolute; inset: -10px; border-radius: 50%; border: 1.5px solid var(--blue-soft); animation: ping 2.6s var(--ease-out) infinite; }
.map-actions { display: flex; flex-wrap: wrap; gap: 0.6rem; justify-content: center; }
@media (max-width: 600px) { .map-wrap { aspect-ratio: auto; min-height: 420px; } }

/* ----- CTA banda ----- */
.cta-band { position: relative; overflow: hidden; isolation: isolate; border-radius: clamp(1.5rem, 3vw, 2.5rem); color: #fff; padding: clamp(2.5rem, 7vw, 5.5rem) clamp(1.5rem, 5vw, 4.5rem); background: var(--ink); }
.cta-band > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.cta-band::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(6,23,51,.95), rgba(6,23,51,.72) 55%, rgba(6,23,51,.35)); }
.cta-band h2 { max-width: 16ch; }
.cta-band p { color: rgba(236, 242, 250, 0.8); max-width: 50ch; margin-top: 1.1rem; }
.cta-band .btn-row { margin-top: 2rem; }

/* ----- Bloques editoriales ----- */
.split { display: grid; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
@media (min-width: 1000px) { .split { grid-template-columns: 1fr 1fr; } .split.reverse > :first-child { order: 2; } .split.wide-text { grid-template-columns: 1.1fr 0.9fr; } }
.cascade { position: relative; display: grid; gap: 1rem; }
.cascade .bezel .core { aspect-ratio: 4 / 3; position: relative; }
.cascade img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
@media (min-width: 1000px) {
  .cascade { display: block; min-height: 560px; }
  .cascade > .bezel { position: absolute; }
  .cascade > .bezel:nth-child(1) { inset: 0 18% 22% 0; }
  .cascade > .bezel:nth-child(1) .core { aspect-ratio: auto; height: 100%; }
  .cascade > .bezel:nth-child(2) { width: 44%; right: 0; top: 8%; transform: rotate(2deg); box-shadow: var(--shadow-soft); background: rgba(255,255,255,.7); }
  .cascade > .bezel:nth-child(2) .core { aspect-ratio: 3 / 4; }
  .cascade > .bezel:nth-child(3) { width: 52%; left: 12%; bottom: 0; transform: rotate(-1.5deg); box-shadow: var(--shadow-soft); background: rgba(255,255,255,.7); }
}

.feature-list { display: grid; gap: 1rem; }
@media (min-width: 640px) { .feature-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .feature-list.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.feature { display: grid; gap: 1rem; padding: 1.5rem; border-radius: var(--r-lg); background: var(--white); box-shadow: inset 0 0 0 1px var(--line); align-content: start; }
.feature h3 { font-size: 1.12rem; letter-spacing: -0.02em; line-height: 1.25; }
.feature p { color: var(--muted); font-size: 0.94rem; }
.bg-bone .feature { background: var(--paper); }
.bg-ink .feature { background: rgba(255,255,255,.04); box-shadow: inset 0 0 0 1px var(--line-dark); }
.bg-ink .feature p { color: var(--on-dark-muted); }

/* Unidades (grid compacto) */
.units { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.75rem; }
@media (min-width: 700px) { .units { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .units { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.unit { display: grid; gap: 0.9rem; padding: 1.2rem; border-radius: 1.25rem; background: var(--white); box-shadow: inset 0 0 0 1px var(--line); align-content: start; transition: transform 0.6s var(--ease), box-shadow 0.6s var(--ease); }
.unit h3 { font-size: 0.98rem; letter-spacing: -0.01em; line-height: 1.25; }
.unit p { font-size: 0.82rem; color: var(--muted); line-height: 1.45; }
@media (hover: hover) { .unit:hover { transform: translateY(-3px); box-shadow: inset 0 0 0 1px rgba(0,125,195,.3), var(--shadow-soft); } }

/* Tablas comparativas */
.table-wrap { overflow-x: auto; border-radius: var(--r-lg); box-shadow: inset 0 0 0 1px var(--line); background: var(--white); -webkit-overflow-scrolling: touch; }
table.compare { width: 100%; border-collapse: collapse; min-width: 560px; font-size: 0.93rem; }
.compare caption { text-align: left; padding: 1.1rem 1.25rem 0; font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.compare th, .compare td { text-align: left; padding: 1rem 1.25rem; border-bottom: 1px solid var(--line); vertical-align: top; line-height: 1.45; }
.compare thead th { font-size: 0.78rem; font-weight: 600; color: var(--navy); letter-spacing: 0.02em; }
.compare tbody th { font-weight: 600; white-space: nowrap; }
.compare tbody tr:last-child th, .compare tbody tr:last-child td { border-bottom: 0; }
.compare td { color: var(--muted); }

/* Navegación por anclas (servicios) */
.subnav { position: sticky; top: calc(var(--header-h) + 8px); z-index: 20; margin-top: -1.6rem; }
.subnav-inner { display: flex; gap: 0.35rem; overflow-x: auto; padding: 0.35rem; border-radius: 999px; background: rgba(251, 250, 247, 0.9); box-shadow: inset 0 0 0 1px var(--line), 0 16px 32px -20px rgba(6,23,51,.35); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); scrollbar-width: none; width: max-content; max-width: 100%; margin-inline: auto; }
.subnav-inner::-webkit-scrollbar { display: none; }
.subnav a { flex: none; display: inline-flex; align-items: center; gap: 0.45rem; min-height: 42px; padding: 0 1rem; border-radius: 999px; font-size: 0.9rem; font-weight: 500; color: var(--muted); transition: background-color 0.4s var(--ease), color 0.4s var(--ease); }
.subnav a .ico { width: 1rem; height: 1rem; }
.subnav a.is-active { background: var(--ink); color: #fff; }

.svc-block { display: grid; gap: clamp(2rem, 4vw, 3.5rem); }
.svc-top { display: grid; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
@media (min-width: 1000px) { .svc-top { grid-template-columns: 1fr 1fr; } }
.svc-media .core { aspect-ratio: 5 / 4; position: relative; }
.svc-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.answer { padding: 1.25rem 1.4rem; border-left: 3px solid var(--blue); background: rgba(0, 125, 195, 0.05); border-radius: 0 1rem 1rem 0; color: var(--text); font-size: 1.02rem; line-height: 1.6; }
.answer strong { font-weight: 600; }

/* Ubicación estratégica */
.geo-card { display: grid; gap: 0.25rem; padding: 1.25rem 0; border-bottom: 1px solid var(--line-dark); }
.geo-card dt { font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--blue-soft); }
.geo-card dd { color: var(--on-dark); font-size: 1.02rem; }

/* ----- Páginas legales ----- */
.legal-layout { display: grid; gap: 2rem; }
@media (min-width: 1000px) { .legal-layout { grid-template-columns: 290px minmax(0, 1fr); gap: 4.5rem; } }
.toc { position: relative; }
.toc details { border-radius: var(--r-lg); background: var(--white); box-shadow: inset 0 0 0 1px var(--line); }
.toc summary { list-style: none; display: flex; justify-content: space-between; align-items: center; padding: 1rem 1.2rem; cursor: pointer; font-weight: 600; min-height: 52px; }
.toc summary::-webkit-details-marker { display: none; }
.toc summary .ico { transition: transform 0.5s var(--ease); }
.toc details[open] summary .ico { transform: rotate(180deg); }
.toc ol { padding: 0 0.6rem 0.8rem; display: grid; gap: 0.15rem; counter-reset: toc; }
.toc ol a { display: grid; grid-template-columns: 1.8rem 1fr; gap: 0.3rem; padding: 0.55rem 0.6rem; border-radius: 0.7rem; font-size: 0.9rem; line-height: 1.35; color: var(--muted); transition: background-color 0.4s var(--ease), color 0.4s var(--ease); }
.toc ol a::before { counter-increment: toc; content: counter(toc, decimal-leading-zero); font-family: var(--font-mono); font-size: 0.7rem; padding-top: 0.15rem; color: var(--blue); }
.toc ol a:hover { background: rgba(6, 23, 51, 0.04); color: var(--text); }
.toc ol a.is-active { background: var(--ink); color: #fff; }
.toc ol a.is-active::before { color: var(--blue-soft); }
@media (min-width: 1000px) { .toc-inner { position: sticky; top: calc(var(--header-h) + 36px); } .toc summary { pointer-events: none; } .toc summary .ico { display: none; } }
.legal-meta { display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; margin-bottom: 2.5rem; font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.legal-meta span { display: inline-flex; align-items: center; gap: 0.4rem; }
.legal-meta .ico { width: 1rem; height: 1rem; color: var(--blue); }
.legal-section { padding-bottom: 3rem; margin-bottom: 3rem; border-bottom: 1px solid var(--line); }
.legal-section:last-child { border-bottom: 0; margin-bottom: 0; }
.legal-section h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); margin-bottom: 1.25rem; scroll-margin-top: calc(var(--header-h) + 90px); }
.legal-section h3 { font-size: 1.15rem; letter-spacing: -0.015em; margin: 2rem 0 0.75rem; line-height: 1.3; }
.legal-section > p, .legal-section .prose p { color: var(--muted); max-width: 72ch; }
.legal-section > p + p { margin-top: 1rem; }
.legal-section ul.dots { display: grid; gap: 0.55rem; margin-top: 1rem; max-width: 72ch; color: var(--muted); }
.legal-section ul.dots li { position: relative; padding-left: 1.3rem; }
.legal-section ul.dots li::before { content: ""; position: absolute; left: 0; top: 0.62em; width: 5px; height: 5px; border-radius: 1px; transform: rotate(45deg); background: var(--blue); }
.legal-section .accordion { margin-top: 1.25rem; }
.legal-section .acc summary { font-size: 1.02rem; padding: 1.1rem 0; }
.callout { display: grid; grid-template-columns: 2.6rem 1fr; gap: 1rem; padding: 1.25rem; border-radius: var(--r-lg); background: var(--bone); margin-top: 1.5rem; }
.callout p { color: var(--muted); font-size: 0.93rem; }
.callout strong { color: var(--text); }
.read-progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 70; transform-origin: left; transform: scaleX(0); background: linear-gradient(90deg, var(--blue), var(--blue-soft)); }
@supports (animation-timeline: scroll()) {
  .read-progress { animation: progress linear both; animation-timeline: scroll(root); }
  @keyframes progress { to { transform: scaleX(1); } }
}

/* ----- Footer ----- */
.site-footer { position: relative; background: var(--ink); color: var(--on-dark); padding-top: clamp(4rem, 9vw, 7rem); overflow: hidden; }
.footer-grid { display: grid; gap: 2.5rem; padding-bottom: 3rem; border-bottom: 1px solid var(--line-dark); }
@media (min-width: 700px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1100px) { .footer-grid { grid-template-columns: 1.5fr 0.8fr 0.9fr 1.2fr; gap: 3rem; } }
.footer-brand p { color: var(--on-dark-muted); margin-top: 1.25rem; max-width: 38ch; font-size: 0.95rem; }
.footer-col h2 { font-family: var(--font-mono); font-size: 0.7rem; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; color: rgba(207, 227, 246, 0.7); margin-bottom: 1.1rem; }
.footer-col ul { display: grid; gap: 0.1rem; }
.footer-col a, .footer-col button { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.4rem 0; min-height: 36px; color: var(--on-dark); opacity: 0.85; font-size: 0.95rem; text-align: left; transition: opacity 0.4s var(--ease), color 0.4s var(--ease); }
.footer-col a:hover, .footer-col button:hover { opacity: 1; color: #fff; }
.footer-col address { display: grid; gap: 0.75rem; font-size: 0.95rem; color: var(--on-dark); }
.footer-col address .ico { color: var(--blue-soft); }
.footer-col address a { align-items: flex-start; overflow-wrap: anywhere; }
.footer-col address a .ico { margin-top: 0.2rem; }
.socials { display: flex; gap: 0.5rem; margin-top: 1.5rem; }
.socials a { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 999px; background: rgba(255, 255, 255, 0.06); box-shadow: inset 0 0 0 1px var(--line-dark); transition: background-color 0.4s var(--ease); }
.socials a:hover { background: var(--blue); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.75rem 2rem; padding-block: 1.6rem calc(1.6rem + var(--safe-b)); font-size: 0.82rem; color: var(--on-dark-muted); }
.footer-bottom a { text-decoration: underline; text-underline-offset: 2px; }
.footer-mark { font-size: clamp(4.2rem, 17vw, 15rem); font-weight: 700; letter-spacing: -0.06em; line-height: 0.8; color: transparent; -webkit-text-stroke: 1px rgba(207, 227, 246, 0.14); white-space: nowrap; margin-top: 2.5rem; user-select: none; text-align: center; }
.footer-mark em { font-family: var(--font-serif); font-weight: 400; letter-spacing: -0.03em; }
.site-footer .brand-iso { --logo-a: #fff; --logo-b: var(--blue-soft); --logo-c: #2a8fd0; }

/* ----- WhatsApp flotante (abajo a la izquierda) ----- */
.wa-float {
  position: fixed; z-index: 80; left: max(16px, calc(var(--safe-l) + 12px)); bottom: max(16px, calc(var(--safe-b) + 12px));
  display: flex; flex-direction: column; align-items: flex-start; gap: 0.75rem; pointer-events: none;
}
.wa-float > * { pointer-events: auto; }
.wa-launch {
  position: relative; display: inline-flex; align-items: center; gap: 0; height: 60px; padding: 0 0 0 0; border-radius: 999px;
  background: var(--wa); color: #fff; box-shadow: 0 18px 36px -14px rgba(18, 140, 75, 0.65), inset 0 1px 0 rgba(255,255,255,.35);
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease); -webkit-tap-highlight-color: transparent;
}
.wa-launch:active { transform: scale(0.96); }
.wa-launch .wa-ico { display: grid; place-items: center; width: 60px; height: 60px; flex: none; }
.wa-launch .wa-ico svg { width: 30px; height: 30px; }
.wa-launch .wa-label { max-width: 0; overflow: hidden; white-space: nowrap; font-weight: 600; font-size: 0.95rem; color: #06331a; transition: max-width 0.7s var(--ease), padding 0.7s var(--ease); }
.wa-float.is-peek .wa-launch .wa-label { max-width: 220px; padding-right: 1.3rem; }
.wa-launch::before { content: ""; position: absolute; left: 0; top: 0; width: 60px; height: 60px; border-radius: 50%; border: 2px solid var(--wa); animation: ping 2.6s var(--ease-out) infinite; pointer-events: none; }
.wa-panel {
  width: min(360px, calc(100vw - 32px - var(--safe-l) - var(--safe-r))); border-radius: 1.6rem; padding: 0.4rem; background: rgba(6, 23, 51, 0.06);
  box-shadow: inset 0 0 0 1px rgba(6, 23, 51, 0.08), 0 40px 80px -30px rgba(6, 23, 51, 0.5);
  opacity: 0; transform: translateY(14px) scale(0.97); transform-origin: bottom left; visibility: hidden;
  transition: opacity 0.5s var(--ease), transform 0.6s var(--ease), visibility 0s linear 0.6s;
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
}
.wa-float.is-open .wa-panel { opacity: 1; transform: none; visibility: visible; transition: opacity 0.5s var(--ease), transform 0.6s var(--ease), visibility 0s; }
.wa-panel-core { border-radius: 1.25rem; overflow: hidden; background: #fff; }
.wa-head { display: flex; align-items: center; gap: 0.8rem; padding: 1rem 1rem 1rem 1.1rem; background: var(--ink); color: #fff; }
.wa-avatar { position: relative; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 999px; background: #fff; flex: none; }
.wa-avatar svg { width: 28px; }
.wa-avatar::after { content: ""; position: absolute; right: 0; bottom: 1px; width: 11px; height: 11px; border-radius: 50%; background: #34d27b; box-shadow: 0 0 0 2px var(--ink); }
.wa-head strong { display: block; font-size: 0.98rem; font-weight: 600; letter-spacing: -0.01em; }
.wa-head small { font-size: 0.78rem; color: var(--on-dark-muted); }
.wa-close { margin-left: auto; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 999px; background: rgba(255, 255, 255, 0.1); }
.wa-body { padding: 1rem; display: grid; gap: 0.5rem; background: #f4f1ea; }
.wa-bubble { justify-self: start; max-width: 92%; padding: 0.75rem 0.9rem; border-radius: 0.2rem 1rem 1rem 1rem; background: #fff; font-size: 0.9rem; line-height: 1.45; box-shadow: 0 1px 1px rgba(0,0,0,.06); }
.wa-opts { display: grid; gap: 0.4rem; margin-top: 0.4rem; }
.wa-opt { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; min-height: 48px; padding: 0.6rem 0.9rem; border-radius: 0.9rem; background: #fff; font-size: 0.9rem; font-weight: 500; box-shadow: inset 0 0 0 1px rgba(6,23,51,.06); transition: background-color 0.4s var(--ease), transform 0.4s var(--ease); }
.wa-opt span { display: inline-flex; align-items: center; gap: 0.6rem; }
.wa-opt .ico { width: 1.05rem; height: 1.05rem; color: var(--wa-deep); }
.wa-opt:hover { background: #eafaf0; }
.wa-opt:active { transform: scale(0.98); }
.wa-compose { display: flex; gap: 0.5rem; padding: 0.75rem; background: #fff; border-top: 1px solid var(--line); }
.wa-compose input { flex: 1; min-width: 0; min-height: 46px; padding: 0 1rem; border: 0; border-radius: 999px; background: var(--bone); font-size: 16px; outline: 0; }
.wa-compose input:focus { box-shadow: inset 0 0 0 1.5px var(--wa-deep); }
.wa-compose button { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 999px; background: var(--wa); color: #06331a; flex: none; }
.cookie-open .wa-float { opacity: 0; pointer-events: none; }
@media (min-width: 760px) { .cookie-open .wa-float { opacity: 1; } .cookie-open .wa-float > * { pointer-events: auto; } }

/* ----- Banner de cookies ----- */
.cookie-banner {
  position: fixed; z-index: 100; left: max(12px, var(--safe-l)); right: max(12px, var(--safe-r)); bottom: max(12px, calc(var(--safe-b) + 8px));
  padding: 0.4rem; border-radius: 1.6rem; background: rgba(6, 23, 51, 0.08); box-shadow: inset 0 0 0 1px rgba(6, 23, 51, 0.08), 0 40px 80px -30px rgba(6,23,51,.55);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  opacity: 0; transform: translateY(20px); visibility: hidden; transition: opacity 0.6s var(--ease), transform 0.7s var(--ease), visibility 0s linear 0.7s;
}
.cookie-banner.is-visible { opacity: 1; transform: none; visibility: visible; transition: opacity 0.6s var(--ease), transform 0.7s var(--ease), visibility 0s; }
.cookie-core { border-radius: 1.25rem; background: var(--ink); color: #fff; padding: 1.25rem; display: grid; gap: 1rem; }
.cookie-core h2 { display: flex; align-items: center; gap: 0.6rem; font-size: 1.02rem; font-weight: 600; letter-spacing: -0.01em; line-height: 1.3; }
.cookie-core h2 .ico { color: var(--blue-soft); }
.cookie-core p { font-size: 0.86rem; line-height: 1.55; color: var(--on-dark-muted); }
.cookie-core p a { color: #fff; text-decoration: underline; text-underline-offset: 2px; }
.cookie-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem; }
.cookie-actions .c-btn { min-height: 46px; padding: 0 1rem; border-radius: 999px; font-size: 0.88rem; font-weight: 500; background: rgba(255,255,255,.08); box-shadow: inset 0 0 0 1px rgba(255,255,255,.16); color: #fff; transition: background-color 0.4s var(--ease); }
.cookie-actions .c-btn:hover { background: rgba(255,255,255,.16); }
.cookie-actions .c-btn.primary { grid-column: 1 / -1; background: #fff; color: var(--ink); box-shadow: none; }
@media (min-width: 760px) {
  .cookie-banner { left: auto; right: max(24px, var(--safe-r)); bottom: 24px; width: 440px; }
  .cookie-actions { grid-template-columns: auto auto 1fr; }
  .cookie-actions .c-btn.primary { grid-column: auto; }
}

.modal {
  position: fixed; inset: 0; z-index: 110; display: grid; place-items: end center; padding: 12px max(12px, var(--safe-r)) max(12px, calc(var(--safe-b) + 8px)) max(12px, var(--safe-l));
  background: rgba(4, 14, 32, 0.6); opacity: 0; visibility: hidden; transition: opacity 0.5s var(--ease), visibility 0s linear 0.5s;
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.modal.is-open { opacity: 1; visibility: visible; transition: opacity 0.5s var(--ease), visibility 0s; }
@media (min-width: 760px) { .modal { place-items: center; } }
.modal-card { width: min(560px, 100%); max-height: calc(100dvh - 24px); overflow: auto; border-radius: 1.6rem; background: var(--paper); padding: clamp(1.25rem, 4vw, 2rem); transform: translateY(24px); transition: transform 0.6s var(--ease); overscroll-behavior: contain; }
.modal.is-open .modal-card { transform: none; }
.modal-card h2 { font-size: 1.4rem; letter-spacing: -0.025em; }
.modal-card > p { color: var(--muted); font-size: 0.92rem; margin-top: 0.6rem; }
.pref { display: grid; grid-template-columns: 1fr auto; gap: 1rem; align-items: center; padding: 1.1rem 0; border-bottom: 1px solid var(--line); }
.pref strong { display: block; font-weight: 600; font-size: 0.97rem; }
.pref small { display: block; color: var(--muted); font-size: 0.82rem; line-height: 1.45; margin-top: 0.2rem; }
.switch { position: relative; width: 52px; height: 32px; flex: none; }
.switch input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; z-index: 1; }
.switch span { position: absolute; inset: 0; border-radius: 999px; background: rgba(6, 23, 51, 0.16); transition: background-color 0.4s var(--ease); }
.switch span::after { content: ""; position: absolute; top: 3px; left: 3px; width: 26px; height: 26px; border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgba(6,23,51,.25); transition: transform 0.5s var(--ease); }
.switch input:checked + span { background: var(--navy); }
.switch input:checked + span::after { transform: translateX(20px); }
.switch input:disabled + span { opacity: 0.55; }
.switch input:focus-visible + span { outline: 2px solid var(--blue); outline-offset: 2px; }
.modal-actions { display: flex; flex-wrap: wrap; gap: 0.6rem; justify-content: flex-end; margin-top: 1.5rem; }

/* ----- Animaciones de entrada ----- */
.js .reveal { opacity: 0; transform: translateY(2.2rem); filter: blur(6px); transition: opacity 1s var(--ease), transform 1.1s var(--ease), filter 1s var(--ease); transition-delay: var(--d, 0s); }
.js .reveal.is-visible { opacity: 1; transform: none; filter: none; }
.js .reveal-img .core, .js .reveal-img.core { clip-path: inset(8% 8% 8% 8% round 1.5rem); transition: clip-path 1.4s var(--ease); }
.js .reveal-img.is-visible .core, .js .reveal-img.is-visible.core { clip-path: inset(0 0 0 0 round 1.55rem); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; filter: none; }
  .marquee-track { animation: none; }
}

/* ----- Utilidades ----- */
.mt-1 { margin-top: 0.75rem; } .mt-2 { margin-top: 1.5rem; } .mt-3 { margin-top: 2.25rem; } .mt-4 { margin-top: 3.5rem; }
.center { text-align: center; }
.gap-lg { gap: clamp(2rem, 5vw, 4rem); }
.chip-row { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.chip { display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.45rem 0.85rem; border-radius: 999px; background: rgba(6, 23, 51, 0.05); box-shadow: inset 0 0 0 1px var(--line); font-size: 0.85rem; font-weight: 500; }
.bg-ink .chip, .on-dark .chip { background: rgba(255,255,255,.06); box-shadow: inset 0 0 0 1px var(--line-dark); }
.updated { display: inline-flex; align-items: center; gap: 0.45rem; font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.updated .ico { width: 0.95rem; height: 0.95rem; color: var(--blue); }
.not-found { min-height: 100svh; display: grid; place-items: center; text-align: center; }
.legal-section a:not(.btn):not(.link-arrow), .acc-body a:not(.btn) { color: var(--navy); text-decoration: underline; text-underline-offset: 2px; }
@media (min-width: 1000px) { .sticky-lg { position: sticky; top: calc(var(--header-h) + 90px); } }
/* Grids de una columna en móvil: evita que contenido ancho (tablas, chips) expanda la pista */
:where(.legal-layout, .split, .svc-top, .svc-block, .reach-grid, .why-grid, .faq-grid, .contact-grid, .hero-grid, .section-head, .footer-grid, .philo-grid, .process, .feature-list, .channels, .bento, .stack, .stack-card .core, .form-grid) { grid-template-columns: minmax(0, 1fr); }
.legal-layout > *, .split > *, .svc-top > * { min-width: 0; }
.eyebrow { justify-self: start; width: fit-content; max-width: 100%; }
.center .eyebrow { justify-self: center; }
.philo .eyebrow { color: #cfe3f6; background: rgba(255, 255, 255, 0.06); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14); }
.philo::before { background: linear-gradient(180deg, rgba(6,23,51,.9) 0%, rgba(6,23,51,.66) 45%, rgba(6,23,51,.93) 100%); }
.philo-card { -webkit-backdrop-filter: none; background: rgba(6, 23, 51, 0.55); }
.cta-band .eyebrow, .page-hero .eyebrow, .hero .eyebrow, .channel-wa .eyebrow { color: #cfe3f6; background: rgba(255, 255, 255, 0.08); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16); }
.info-photo { flex: 1 1 auto; min-height: 240px; aspect-ratio: auto; }
.info-photo img { position: absolute; inset: 0; }
@media (max-width: 999px) { .info-photo { flex: none; aspect-ratio: 16 / 10; min-height: 0; } }
.g-item .g-core { display: block; }
.g-cap > span { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
/* Tablas apiladas en móvil */
@media (max-width: 699px) {
  .table-wrap { overflow: visible; background: transparent; box-shadow: none; }
  table.compare { min-width: 0; }
  .compare caption { padding: 0 0 0.75rem; }
  .compare thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .compare tbody, .compare tr, .compare th, .compare td { display: block; width: 100%; }
  .compare tbody { display: grid; gap: 0.75rem; }
  .compare tr { padding: 0.4rem 1.1rem; border-radius: 1.1rem; background: var(--white); box-shadow: inset 0 0 0 1px var(--line); }
  .compare tbody th, .compare td { padding: 0.7rem 0; border-bottom: 1px solid var(--line); white-space: normal; }
  .compare tbody th { font-size: 1.02rem; color: var(--navy); }
  .compare tbody tr > :last-child { border-bottom: 0; }
  .compare td::before { content: attr(data-label); display: block; margin-bottom: 0.2rem; font-family: var(--font-mono); font-size: 0.64rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--blue); }
  .compare tbody tr:last-child th { border-bottom: 1px solid var(--line); }
}
.mobile-menu { background: rgba(6, 23, 51, 0.975); }
.menu-open .wa-float { opacity: 0; pointer-events: none; }
.menu-open .wa-float > * { pointer-events: none; }
.wa-float { transition: opacity 0.4s var(--ease); }
.lightbox { background: rgba(4, 14, 32, 0.985); }
