/* =====================================================================
   ALCOSER — hoja de estilos principal
   Basada en el Manual de Marca Alcoser v2.0:
   - Colores: Watercolour Blue #074056 (Pantone 7708 C), Azul Turquesa
     #6CBCC4 (Pantone 7458 C), Maui Mist #EDF2F4 (Pantone 649 C) y sus
     degradados a -45°.
   - Tipografías: Neue Haas Grotesk Display Pro (títulos en 75 Bold y
     mayúsculas, decisión de Alcoser del 20/10/2026, y textos) es una fuente
     comercial sin licencia web entregada. Se usa su equivalente libre más
     cercano: Inter (licencia OFL). Ronix ya no se usa en la web.
     Si Alcoser tiene la licencia web, cambie --font-display y --font.
   Mobile-first. Contraste verificado por tests/contrast.test.js
   ===================================================================== */

@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400; font-display: swap; src: url('../fonts/inter-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 600; font-display: swap; src: url('../fonts/inter-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 700; font-display: swap; src: url('../fonts/inter-latin-700-normal.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 800; font-display: swap; src: url('../fonts/inter-latin-800-normal.woff2') format('woff2'); }

:root {
  /* Colores oficiales del manual */
  --brand-blue: #074056;     /* Watercolour Blue */
  --brand-cyan: #6CBCC4;     /* Azul Turquesa */
  --brand-gray: #EDF2F4;     /* Maui Mist */

  /* Base */
  --bg: #F6F9FA;
  --surface: #FFFFFF;
  --surface-2: #EDF2F4;
  --surface-3: #DCE8EC;
  --line: #D7E3E8;
  --ink: #0B2E3E;
  --muted: #4B6270;
  --white: #FFFFFF;

  /* Marca aplicada */
  --primary: #074056;
  --primary-hover: #0B5470;
  --teal: #6CBCC4;          /* decorativo */
  --teal-ink: #23707A;      /* turquesa legible sobre blanco */
  --link: #0A5A75;
  --cyan-soft: #E1F1F3;
  --mint-soft: #E1F1F3;
  --grad: linear-gradient(135deg, #074056 0%, #0B5A72 55%, #10697F 100%);
  --grad-soft: linear-gradient(135deg, #EDF2F4 0%, #E1F1F3 100%);

  /* Color por servicio: fondo suave / tinta */
  --pos-bg: #E2EFFF;      --pos-ink: #1D5DB8;
  --payments-bg: #EEE8FF; --payments-ink: #5B3DB5;
  --cameras-bg: #E0F5E9;  --cameras-ink: #146C3E;
  --cabling-bg: #DDF1F3;  --cabling-ink: #0E6470;
  --it-bg: #FFF1D9;       --it-ink: #8A4B05;

  --error: #B42318;
  --error-bg: #FDECEA;
  --success: #17663A;
  --success-bg: #E7F4EC;
  --focus: #0A5A75;

  /* Tipografía */
  --font-display: 'Neue Haas Grotesk Display Pro', 'Inter', ui-sans-serif, system-ui, sans-serif;
  --font: 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --text-sm: 0.9375rem;
  --text-base: 1.0625rem;
  --text-lg: 1.1875rem;
  --h1: clamp(1.85rem, 1.15rem + 2.6vw, 3.1rem);
  --h2: clamp(1.6rem, 1.15rem + 1.8vw, 2.5rem);
  --h3: 1.1875rem;

  /* Espacio y forma */
  --gutter: 1rem;
  --section: 4rem;
  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 18px;
  --radius-xl: 24px;
  --shadow-sm: 0 1px 2px rgba(7, 64, 86, 0.06), 0 2px 8px -2px rgba(7, 64, 86, 0.08);
  --shadow: 0 2px 4px rgba(7, 64, 86, 0.04), 0 14px 32px -12px rgba(7, 64, 86, 0.2);
  --shadow-lg: 0 30px 60px -24px rgba(7, 64, 86, 0.4);
  --header-h: 4.5rem;
}
@media (min-width: 768px) { :root { --gutter: 1.5rem; --section: 6rem; } }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%; text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 1rem);
  scroll-padding-bottom: 5.5rem; /* el foco nunca queda tapado por la barra móvil */
}
@media (min-width: 768px) { html { scroll-padding-bottom: 0; } }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--font); font-size: var(--text-base); line-height: 1.6;
  overflow-wrap: break-word; padding-bottom: 4.75rem;
  -webkit-font-smoothing: antialiased;
}
@media (min-width: 768px) { body { padding-bottom: 0; } }

h1, h2, h3, h4 { line-height: 1.12; margin: 0 0 0.75rem; color: var(--ink); font-weight: 800; }
h1 { font-family: var(--font-display); font-weight: 700; font-size: var(--h1); line-height: 1.08; letter-spacing: -0.005em; text-transform: uppercase; max-width: 20ch; }
h2 { font-size: var(--h2); letter-spacing: -0.025em; max-width: 24ch; }
h3 { font-size: var(--h3); font-weight: 700; letter-spacing: -0.01em; }
p { margin: 0 0 1rem; max-width: 62ch; }
ul, ol { padding: 0; margin: 0; }
img { max-width: 100%; height: auto; display: block; }
abbr[title] { text-decoration: none; }
a { color: var(--link); text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 6px; }
main:focus { outline: none; }

.icon { width: 1.25rem; height: 1.25rem; flex: none; }
.icon-sm { width: 1rem; height: 1rem; }
.icon-lg { width: 1.6rem; height: 1.6rem; }

.container { width: 100%; max-width: 76rem; margin-inline: auto; padding-inline: var(--gutter); }
.lead { font-size: var(--text-lg); color: var(--muted); max-width: 52ch; }
.small { font-size: var(--text-sm); color: var(--muted); }
.prose { max-width: 42rem; }
.center { text-align: center; margin-inline: auto; }

.skip-link { position: absolute; left: 1rem; top: -100px; z-index: 100; background: var(--ink); color: var(--white); padding: 0.75rem 1rem; border-radius: var(--radius-sm); }
.skip-link:focus { top: 0.5rem; }

.staging-banner { background: #FFF4D6; color: #5C4300; font-size: 0.875rem; text-align: center; padding: 0.4rem var(--gutter); }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  min-height: 3rem; padding: 0.75rem 1.4rem;
  border: 1.5px solid transparent; border-radius: 999px;
  font: inherit; font-weight: 700; font-size: 1rem; line-height: 1.2;
  text-decoration: none; text-align: center; cursor: pointer;
  transition: background-color .18s, border-color .18s, color .18s, transform .18s, box-shadow .18s;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-small { min-height: 2.5rem; padding: 0.45rem 1.05rem; font-size: 0.9375rem; white-space: nowrap; }
.btn-primary, .btn-accent { background: var(--primary); color: var(--white); box-shadow: 0 10px 22px -10px rgba(7, 64, 86, 0.7); }
.btn-primary:hover, .btn-accent:hover { background: var(--primary-hover); }
.btn-secondary { background: var(--surface); color: var(--ink); border-color: var(--line); box-shadow: var(--shadow-sm); }
.btn-secondary:hover { border-color: var(--primary); color: var(--primary); }
.btn-light { background: var(--white); color: var(--brand-blue); }
.btn-light:hover { background: #EAF6FB; }
.btn-ghost-light { background: transparent; color: var(--white); border-color: rgba(255, 255, 255, 0.7); }
.btn-ghost-light:hover { background: rgba(255, 255, 255, 0.12); }
/* compatibilidad con plantillas anteriores */
.btn-on-dark { background: var(--primary); color: var(--white); }
.btn-ghost-dark { background: var(--surface); color: var(--ink); border-color: var(--line); }
.btn[disabled] { background: var(--surface-3); color: var(--muted); box-shadow: none; cursor: not-allowed; transform: none; }

.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.75rem; }
.link-meta { font-weight: 400; }
.text-link { display: inline-flex; align-items: center; gap: 0.35rem; font-weight: 700; color: var(--primary); text-decoration: none; }
.text-link:hover { text-decoration: underline; }
.text-link .icon { transition: transform .18s; }
.text-link:hover .icon { transform: translateX(3px); }

/* ---------- Cabecera ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.86);
  -webkit-backdrop-filter: saturate(160%) blur(14px); backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid rgba(220, 231, 237, 0.8);
}
.header-inner { display: flex; align-items: center; gap: 1rem; min-height: var(--header-h); flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; gap: 0.6rem; text-decoration: none; color: var(--ink); margin-right: auto; padding-block: 0.5rem; white-space: nowrap; }
.brand-mark { width: 2.25rem; height: 2.25rem; border-radius: 10px; background: var(--grad); box-shadow: 0 6px 14px -6px rgba(11, 110, 153, .8); display: grid; place-items: center; }
.brand-mark span { width: 0.7rem; height: 0.7rem; border-radius: 50%; background: var(--white); box-shadow: 0 0 0 4px rgba(255,255,255,.3); }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name { font-weight: 800; font-size: 1.3rem; letter-spacing: -0.01em; }
.brand-sub { font-size: 0.72rem; color: var(--muted); margin-top: 0.22rem; font-weight: 600; }
@media (min-width: 1280px) and (max-width: 1439px) { .brand-sub { display: none; } }
.brand-logo { height: 2.3rem; width: auto; }
@media (min-width: 768px) { .brand-logo { height: 2.6rem; } }

.menu-toggle {
  display: none; align-items: center; gap: 0.4rem; min-height: 2.75rem; padding: 0.4rem 0.9rem;
  background: var(--surface); border: 1px solid var(--line); border-radius: 999px;
  font: inherit; font-weight: 700; color: var(--ink); cursor: pointer;
}
.menu-toggle .icon-close { display: none; }
.menu-toggle[aria-expanded='true'] .icon-open { display: none; }
.menu-toggle[aria-expanded='true'] .icon-close { display: block; }

.nav-panel { width: 100%; padding-bottom: 1rem; }
.primary-nav ul { list-style: none; display: flex; flex-direction: column; gap: 0.15rem; }
.primary-nav a { display: block; padding: 0.8rem 0.9rem; color: var(--ink); text-decoration: none; font-weight: 700; border-radius: var(--radius-sm); }
.primary-nav a:hover { background: var(--surface-2); }
.primary-nav a[aria-current] { background: var(--cyan-soft); color: var(--primary); }
.header-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem; padding-top: 0.75rem; }
.lang-switch ul { list-style: none; display: flex; padding: 3px; background: var(--surface-2); border-radius: 999px; }
.lang-switch a { display: block; padding: 0.4rem 0.8rem; min-height: 2.25rem; color: var(--muted); text-decoration: none; font-size: 0.875rem; font-weight: 700; border-radius: 999px; line-height: 1.6; }
.lang-switch a[aria-current] { background: var(--white); color: var(--ink); box-shadow: var(--shadow-sm); }
.js .menu-toggle { display: inline-flex; }
.js .nav-panel { display: none; }
.js .nav-panel.is-open { display: block; max-height: calc(100vh - var(--header-h)); max-height: calc(100dvh - var(--header-h)); overflow-y: auto; }

@media (min-width: 1280px) {
  .header-inner { flex-wrap: nowrap; gap: 0.75rem; }
  .js .menu-toggle, .menu-toggle { display: none; }
  .nav-panel, .js .nav-panel { display: flex; align-items: center; gap: 0.75rem; width: auto; padding: 0; }
  .primary-nav ul { flex-direction: row; gap: 0.1rem; }
  .primary-nav a { padding: 0.5rem 0.6rem; font-size: 0.9rem; border-radius: 999px; white-space: nowrap; }
  .header-actions { padding: 0; flex-wrap: nowrap; }
}

/* ---------- Secciones ---------- */
.section { padding-block: var(--section); position: relative; }
.section-tight { padding-block: calc(var(--section) * 0.65); }
.section-white { background: var(--surface); }
.section-muted { background: var(--surface-2); }
.section-head { margin-bottom: 2.25rem; display: grid; gap: 0.25rem; }
.section-head p { color: var(--muted); margin: 0; }
.section-head-row { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1rem; }
.kicker { display: inline-flex; align-items: center; gap: 0.5rem; font-size: 0.875rem; font-weight: 700; color: var(--teal-ink); margin-bottom: 0.5rem; }
.kicker::before { content: ''; width: 1.5rem; height: 3px; border-radius: 3px; background: var(--brand-cyan); }
.more-link { margin: 2rem 0 0; }

.two-col { display: grid; gap: 2.5rem; }
@media (min-width: 960px) { .two-col { grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; } .two-col-top { align-items: start; } }

/* Fondo tecnológico claro: puntos + halos de color */
.tech-bg { background:
  radial-gradient(60rem 30rem at 85% -10%, rgba(108, 188, 196, 0.32), transparent 60%),
  radial-gradient(40rem 26rem at -10% 110%, rgba(108, 188, 196, 0.2), transparent 60%),
  radial-gradient(circle at 1px 1px, rgba(7, 64, 86, 0.12) 1px, transparent 0) 0 0 / 26px 26px,
  linear-gradient(180deg, #F1F6F8 0%, var(--bg) 100%);
}

/* ---------- Imágenes (foto real o ilustración de referencia) ---------- */
.media { position: relative; margin: 0; border-radius: var(--radius-lg); overflow: hidden; background: var(--surface-2); }
.media img { width: 100%; height: 100%; object-fit: cover; }
.media-4x3 { aspect-ratio: 4 / 3; }
.media-16x10 { aspect-ratio: 16 / 10; }
.ref-tag {
  position: absolute; left: 0.6rem; right: 0.6rem; top: 0.6rem;
  background: rgba(255, 244, 214, 0.95); color: #5C4300; border: 1px dashed #D4A72C;
  border-radius: 10px; padding: 0.35rem 0.6rem; font-size: 0.75rem; line-height: 1.35; font-weight: 600;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  max-height: calc(2.7em + 0.75rem);
}
.ref-tag b { font-weight: 800; }

/* ---------- Portada ---------- */
.hero { padding-block: 2.5rem 3.5rem; overflow: hidden; }
.hero-inner { display: grid; gap: 2.5rem; align-items: center; }
.hero h1 { margin-bottom: 1.1rem; font-size: clamp(1.6rem, 1rem + 2.2vw, 2.55rem); max-width: 24ch; }
.hero .lead { font-size: clamp(1.05rem, 1rem + 0.4vw, 1.25rem); }
@media (min-width: 1000px) { .hero { padding-block: 4rem 5.5rem; } .hero-inner { grid-template-columns: 1.12fr 1fr; gap: 3rem; } }
.hero-visual { position: relative; }
.hero-visual .media { border-radius: var(--radius-xl); box-shadow: var(--shadow-lg); border: 6px solid rgba(255,255,255,.85); }
.float-chip {
  position: absolute; display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.5rem 0.85rem 0.5rem 0.55rem; border-radius: 999px;
  background: rgba(255, 255, 255, 0.92); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  box-shadow: var(--shadow); font-weight: 700; font-size: 0.875rem; color: var(--ink); white-space: nowrap;
}
.float-chip .chip-icon { width: 2rem; height: 2rem; border-radius: 50%; display: grid; place-items: center; }
.float-chip .icon { width: 1.05rem; height: 1.05rem; }
.float-1 { top: 42%; left: -0.75rem; }
.float-2 { top: 64%; right: -0.75rem; }
.float-3 { bottom: -1rem; left: 34%; }
@media (max-width: 520px) { .float-chip { font-size: 0.8rem; } .float-2 { right: 0.25rem; } .float-1 { left: 0.25rem; } }
@media (prefers-reduced-motion: no-preference) {
  .float-chip { animation: float 6s ease-in-out infinite; }
  .float-2 { animation-delay: -2s; } .float-3 { animation-delay: -4s; }
  @keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
}
.trust { list-style: none; display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1.75rem; }
.trust li { display: inline-flex; align-items: center; gap: 0.45rem; padding: 0.4rem 0.8rem; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-size: 0.875rem; font-weight: 700; color: var(--ink); }
.trust .icon { color: var(--teal-ink); width: 1rem; height: 1rem; }

/* ---------- Tono por servicio ---------- */
.tone-pos { --tone-bg: var(--pos-bg); --tone-ink: var(--pos-ink); }
.tone-payments { --tone-bg: var(--payments-bg); --tone-ink: var(--payments-ink); }
.tone-cameras { --tone-bg: var(--cameras-bg); --tone-ink: var(--cameras-ink); }
.tone-cabling { --tone-bg: var(--cabling-bg); --tone-ink: var(--cabling-ink); }
.tone-it { --tone-bg: var(--it-bg); --tone-ink: var(--it-ink); }
.tone-icon { display: grid; place-items: center; width: 3rem; height: 3rem; border-radius: 14px; background: var(--tone-bg, var(--cyan-soft)); color: var(--tone-ink, var(--primary)); flex: none; }
.chip-icon { background: var(--tone-bg, var(--cyan-soft)); color: var(--tone-ink, var(--primary)); }

/* ---------- Carrusel deslizable (móvil) / cuadrícula (escritorio) ---------- */
.scroller {
  list-style: none; display: grid; grid-auto-flow: column; grid-auto-columns: min(82%, 20rem);
  gap: 1rem; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
  padding: 0.25rem var(--gutter) 1.25rem; margin-inline: calc(var(--gutter) * -1);
  scrollbar-width: thin; scrollbar-color: var(--line) transparent;
}
.scroller > * { scroll-snap-align: start; }
@media (min-width: 900px) {
  .scroller { grid-auto-flow: row; grid-auto-columns: auto; grid-template-columns: repeat(3, 1fr); overflow: visible; margin-inline: 0; padding-inline: 0; }
  .scroller-5 { grid-template-columns: repeat(6, 1fr); }
  .scroller-5 > :nth-child(-n + 2) { grid-column: span 3; }
  .scroller-5 > :nth-child(n + 3) { grid-column: span 2; }
  .scroller-4 { grid-template-columns: repeat(4, 1fr); }
}

/* ---------- Tarjeta con imagen ---------- */
.card {
  position: relative; display: flex; flex-direction: column; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm);
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: #C9DCE6; }
.card .media { border-radius: 0; }
.card-body { padding: 1.15rem 1.25rem 1.35rem; display: flex; flex-direction: column; gap: 0.45rem; flex: 1; }
.card-body h3 { margin: 0; font-size: 1.2rem; }
.card-body p { margin: 0; color: var(--muted); font-size: var(--text-sm); }
.card-top { display: flex; align-items: center; gap: 0.75rem; }
.card .tone-icon { width: 2.6rem; height: 2.6rem; border-radius: 12px; }
.card-link { margin-top: auto; padding-top: 0.5rem; font-weight: 700; color: var(--primary); text-decoration: none; display: inline-flex; align-items: center; gap: 0.35rem; font-size: var(--text-sm); }
.card-link::after { content: ''; position: absolute; inset: 0; border-radius: var(--radius-lg); }
.card-link .icon { width: 1rem; height: 1rem; transition: transform .18s; }
.card:hover .card-link .icon { transform: translateX(3px); }
.card:focus-within { outline: 3px solid var(--focus); outline-offset: 3px; }
.card-link:focus-visible { outline: none; }
.card-badge { position: absolute; top: 0.75rem; left: 0.75rem; z-index: 1; padding: 0.3rem 0.7rem; border-radius: 999px; background: rgba(255, 255, 255, 0.94); font-size: 0.78rem; font-weight: 800; color: var(--ink); box-shadow: var(--shadow-sm); }
.card .ref-tag { left: auto; right: 0.6rem; max-width: 70%; -webkit-line-clamp: 1; max-height: calc(1.35em + 0.75rem); }
.card:has(.card-badge) .ref-tag { display: none; }

/* ---------- Elección de público ---------- */
.audience-split { display: grid; gap: 1.25rem; }
@media (min-width: 860px) { .audience-split { grid-template-columns: 1fr 1fr; gap: 1.5rem; } }
.audience { position: relative; display: grid; border-radius: var(--radius-xl); overflow: hidden; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm); transition: transform .22s, box-shadow .22s; }
.audience:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.audience .media { border-radius: 0; aspect-ratio: 16 / 9; }
.audience-body { padding: 1.4rem 1.5rem 1.6rem; display: grid; gap: 0.5rem; justify-items: start; }
.audience-body h3 { font-size: 1.45rem; margin: 0; }
.audience-body p { margin: 0; color: var(--muted); }
.audience-body .btn { margin-top: 0.6rem; }
.audience .unit-label { margin: 0; }
.audience:focus-within { outline: 3px solid var(--focus); outline-offset: 3px; }
.audience .btn:focus-visible { outline: none; }
.audience .btn::after { content: ''; position: absolute; inset: 0; }

.unit-label { display: inline-flex; font-size: 0.8125rem; font-weight: 800; color: var(--teal-ink); background: var(--mint-soft); padding: 0.2rem 0.65rem; border-radius: 999px; margin-bottom: 0.9rem; }

/* ---------- Proceso ---------- */
.steps { list-style: none; counter-reset: step; display: grid; gap: 1rem; }
@media (min-width: 720px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .steps { grid-template-columns: repeat(4, 1fr); gap: 1.25rem; } }
.step { counter-increment: step; position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.35rem; box-shadow: var(--shadow-sm); }
.step-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1rem; }
.step-top::after { content: counter(step); font-weight: 800; font-size: 2.25rem; line-height: 1; color: var(--surface-3); }
.step h3 { margin-bottom: 0.3rem; }
.step p { color: var(--muted); font-size: var(--text-sm); margin: 0; }

/* ---------- Bandas ---------- */
.band { border-radius: var(--radius-xl); padding: 2rem 1.5rem; display: grid; gap: 2rem; align-items: center; position: relative; overflow: hidden; }
@media (min-width: 900px) { .band { grid-template-columns: 1.1fr 1fr; padding: 3rem; gap: 3rem; } }
.band-soft { background: var(--grad-soft); border: 1px solid #D5ECEF; }
.band .media { box-shadow: var(--shadow); border: 5px solid rgba(255,255,255,.8); }
.band h2 { margin-bottom: 0.6rem; }
.band p { color: var(--muted); }
.band .actions { margin-top: 1.25rem; }
.band-links { display: flex; flex-wrap: wrap; gap: 0.75rem 1.25rem; margin-top: 1rem; }

.cta-band { padding-block: calc(var(--section) * 0.6) var(--section); }
.cta-card { background: var(--grad); color: var(--white); border-radius: var(--radius-xl); padding: 2.25rem 1.5rem; display: grid; gap: 1.25rem; align-items: center; position: relative; overflow: hidden; box-shadow: var(--shadow-lg); }
.cta-card::before { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at 1px 1px, rgba(255,255,255,.18) 1px, transparent 0) 0 0 / 22px 22px; mask-image: linear-gradient(90deg, transparent 30%, #000); -webkit-mask-image: linear-gradient(90deg, transparent 30%, #000); pointer-events: none; }
.cta-card > * { position: relative; }
.cta-card h2 { color: var(--white); margin: 0; }
.cta-card p { color: #E3EEF1; margin: 0.5rem 0 0; }
.cta-card .actions { margin-top: 0; }
@media (min-width: 900px) { .cta-card { grid-template-columns: 1.4fr auto; padding: 3rem 3.25rem; } }

/* ---------- Cobertura ---------- */
.state-list { list-style: none; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.state-list li { display: inline-flex; align-items: center; gap: 0.5rem; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 0.35rem 0.85rem 0.35rem 0.4rem; font-size: var(--text-sm); font-weight: 600; }
.state-list abbr { display: grid; place-items: center; width: 1.9rem; height: 1.9rem; border-radius: 50%; background: var(--surface-2); font-weight: 800; font-size: 0.75rem; color: var(--primary); }
.state-list .state-base abbr { background: var(--primary); color: var(--white); }

/* ---------- Páginas internas: encabezado ---------- */
.page-header { padding-block: 2rem 3rem; }
@media (min-width: 768px) { .page-header { padding-block: 2.5rem 4rem; } }
.page-header-grid { display: grid; gap: 2rem; align-items: center; }
@media (min-width: 1000px) { .page-header-grid { grid-template-columns: 1.05fr 1fr; gap: 3.5rem; } }
.page-header .media { border-radius: var(--radius-xl); box-shadow: var(--shadow-lg); border: 6px solid rgba(255,255,255,.85); }
.page-header-icon { margin-bottom: 1rem; }
.page-header .lead { margin-bottom: 0; }
.breadcrumb { margin-bottom: 1.5rem; font-size: 0.875rem; color: var(--muted); }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: 0.3rem; }
.breadcrumb li + li::before { content: '/'; margin-right: 0.35rem; color: #9BB4C2; }
.breadcrumb a { color: var(--muted); }

/* ---------- Bloques de contenido breve ---------- */
.tile-grid { list-style: none; display: grid; gap: 1rem; }
@media (min-width: 640px) { .tile-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .tile-grid-3 { grid-template-columns: repeat(3, 1fr); } .tile-grid-4 { grid-template-columns: repeat(4, 1fr); } }
.tile { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.25rem; box-shadow: var(--shadow-sm); display: grid; gap: 0.6rem; align-content: start; transition: transform .2s, box-shadow .2s; }
.tile:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.tile h3 { margin: 0; font-size: 1.08rem; }
.tile p { margin: 0; color: var(--muted); font-size: var(--text-sm); }
.tile .tone-icon { width: 2.6rem; height: 2.6rem; border-radius: 12px; }
.tile-links { list-style: none; display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 0.25rem; }
.tile-links a { display: inline-flex; padding: 0.25rem 0.7rem; border-radius: 999px; background: var(--surface-2); font-size: 0.8125rem; font-weight: 700; text-decoration: none; color: var(--primary); }
.tile-links a:hover { background: var(--cyan-soft); }

.check-tiles { list-style: none; display: grid; gap: 0.75rem; }
@media (min-width: 640px) { .check-tiles { grid-template-columns: repeat(2, 1fr); } }
.check-tiles li { display: flex; gap: 0.75rem; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 0.9rem 1rem; font-weight: 600; }
.check-tiles .check { display: grid; place-items: center; width: 2rem; height: 2rem; border-radius: 50%; background: var(--tone-bg, var(--mint-soft)); color: var(--tone-ink, var(--teal-ink)); flex: none; }

.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 0.4rem; }
.chips li { font-size: 0.78rem; font-weight: 700; padding: 0.2rem 0.6rem; border-radius: 999px; background: var(--surface-2); color: var(--ink); }
.chip-cloud { list-style: none; display: flex; flex-wrap: wrap; gap: 0.6rem; }
.chip-cloud li { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.55rem 1rem; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-weight: 600; font-size: var(--text-sm); box-shadow: var(--shadow-sm); }
.chip-cloud .icon { color: var(--teal-ink); width: 1rem; height: 1rem; }

.product-grid { list-style: none; display: grid; gap: 0.9rem; margin-bottom: 1rem; }
@media (min-width: 640px) { .product-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .product-grid { grid-template-columns: repeat(4, 1fr); } }
.product { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.15rem; box-shadow: var(--shadow-sm); }
.product h3 { font-size: 1.02rem; margin-bottom: 0.35rem; }
.product p { color: var(--muted); font-size: var(--text-sm); margin: 0; }
.name-list { list-style: none; display: flex; flex-wrap: wrap; gap: 0.6rem; margin-bottom: 1rem; }
.product-name-only { background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 0.6rem 1.15rem; font-weight: 800; box-shadow: var(--shadow-sm); }

.callout { display: flex; gap: 0.75rem; align-items: flex-start; padding: 1rem 1.15rem; background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--teal); border-radius: var(--radius); margin-top: 1.5rem; max-width: none; font-size: var(--text-sm); color: var(--muted); }
.callout .icon { color: var(--teal-ink); margin-top: 0.15rem; }

.support-strip { display: grid; gap: 1.25rem; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-xl); padding: 1.5rem; box-shadow: var(--shadow-sm); }
@media (min-width: 900px) { .support-strip { grid-template-columns: auto 1fr auto; padding: 1.75rem 2rem; gap: 1.75rem; } }
.support-strip h2 { font-size: 1.4rem; margin-bottom: 0.25rem; }
.support-strip p { margin: 0; color: var(--muted); font-size: var(--text-sm); }
.support-strip .actions { margin: 0; }
.support-strip .hours { margin-top: 0.6rem; }

/* FAQ plegable */
.faq { display: grid; gap: 0.75rem; max-width: 52rem; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.faq summary { cursor: pointer; list-style: none; padding: 1rem 1.15rem; font-weight: 700; display: flex; justify-content: space-between; align-items: center; gap: 1rem; border-radius: var(--radius); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; display: grid; place-items: center; flex: none; width: 1.8rem; height: 1.8rem; border-radius: 50%; background: var(--surface-2); color: var(--primary); font-weight: 800; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 1.15rem 1.1rem; margin: 0; color: var(--muted); }

/* Referencias */
.project-grid { display: grid; gap: 1rem; }
@media (min-width: 640px) { .project-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .project-grid { grid-template-columns: repeat(3, 1fr); gap: 1.25rem; } }
.project-card .card-body h2, .project-card .card-body h3 { font-size: 1.2rem; margin: 0; }
.project-location { display: flex; gap: 0.35rem; align-items: flex-start; font-size: 0.875rem; color: var(--muted); margin: 0; }
.project-location .icon { margin-top: 0.2rem; }
.project-card[hidden] { display: none; }
.filters { margin-bottom: 1.5rem; display: grid; gap: 0.6rem; }
.filters-label { font-weight: 700; margin: 0; font-size: var(--text-sm); color: var(--muted); }
.filter-buttons { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.filter { min-height: 2.6rem; padding: 0.45rem 1.1rem; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font: inherit; font-size: 0.9375rem; font-weight: 700; cursor: pointer; box-shadow: var(--shadow-sm); }
.filter[aria-pressed='true'] { background: var(--primary); border-color: var(--primary); color: var(--white); }
.filters-status { font-size: 0.875rem; color: var(--muted); margin: 0; }

.fact-cards { list-style: none; display: grid; gap: 1rem; }
@media (min-width: 720px) { .fact-cards { grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); } }
.fact-cards li { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.25rem; box-shadow: var(--shadow-sm); }
.fact-cards .fact-label { font-size: 0.8125rem; font-weight: 700; color: var(--muted); margin-bottom: 0.35rem; }
.fact-cards .fact-value { font-weight: 800; font-size: 1.05rem; margin: 0; }

.other-links { list-style: none; display: flex; flex-wrap: wrap; gap: 0.6rem; }
.other-links a { display: inline-flex; align-items: center; gap: 0.5rem; min-height: 2.75rem; padding: 0.4rem 1rem 0.4rem 0.45rem; border: 1px solid var(--line); background: var(--surface); border-radius: 999px; text-decoration: none; font-weight: 700; font-size: var(--text-sm); color: var(--ink); box-shadow: var(--shadow-sm); transition: border-color .18s, transform .18s; }
.other-links a:hover { border-color: var(--primary); transform: translateY(-2px); }
.other-links .tone-icon { width: 2rem; height: 2rem; border-radius: 50%; }
.other-links .tone-icon .icon { width: 1rem; height: 1rem; }
.other-links-large a { font-size: 1rem; padding-inline: 1.25rem; }

/* Nosotros */
.story { list-style: none; display: grid; gap: 1rem; }
@media (min-width: 900px) { .story { grid-template-columns: repeat(3, 1fr); } }
.story li { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.35rem; box-shadow: var(--shadow-sm); }
.story h3 { margin-bottom: 0.4rem; }
.story p { color: var(--muted); font-size: var(--text-sm); margin: 0; }
.quote-card { background: var(--grad-soft); border: 1px solid #D5ECEF; border-radius: var(--radius-xl); padding: 2rem 1.5rem; text-align: center; }
.quote-card p { font-size: clamp(1.2rem, 1rem + 0.8vw, 1.6rem); font-weight: 700; color: var(--ink); margin: 0 auto; max-width: 40ch; line-height: 1.4; }
.quote-card .tagline { font-size: 1rem; color: var(--teal-ink); margin-top: 1rem; font-weight: 800; }

/* Capability Statement */
.doc-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-xl); padding: 1.75rem; box-shadow: var(--shadow); display: grid; gap: 1rem; grid-template-columns: auto 1fr; align-items: start; }
.doc-icon { width: 3.5rem; height: 4.4rem; border-radius: 10px; background: var(--grad); color: var(--white); display: grid; place-items: center; font-weight: 800; font-size: 0.8rem; box-shadow: var(--shadow); }
.doc-card h2 { font-size: 1.4rem; margin-bottom: 0.35rem; }
.doc-card p { color: var(--muted); font-size: var(--text-sm); }
.doc-card .btn { justify-content: flex-start; text-align: left; }
.credential-list { list-style: none; display: grid; gap: 0.75rem; }
.credential-list li { display: flex; flex-direction: column; }
.credential-list span { color: var(--muted); font-size: var(--text-sm); }

/* ---------- Horarios y canales ---------- */
.hours { margin: 0 0 0.25rem; display: grid; gap: 0.45rem; }
.hours-row { display: grid; gap: 0.05rem; }
.hours dt { font-weight: 700; font-size: 0.875rem; color: var(--ink); }
.hours dd { margin: 0; font-size: 0.875rem; color: var(--muted); }
.hours-tz { font-size: 0.8125rem; color: var(--muted); margin-bottom: 1rem; }
.channels { list-style: none; display: grid; gap: 0.5rem; margin-bottom: 1.25rem; }
.channels a { display: inline-flex; align-items: center; gap: 0.65rem; min-height: 2.75rem; font-weight: 700; text-decoration: none; color: var(--ink); }
.channels a:hover span { text-decoration: underline; }
.channels .icon { color: var(--primary); }
.channels-large a { padding: 0.55rem 0.9rem 0.55rem 0.55rem; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; width: 100%; box-shadow: var(--shadow-sm); }
.channels-large .icon { width: 2.1rem; height: 2.1rem; padding: 0.5rem; border-radius: 50%; background: var(--cyan-soft); }

/* ---------- Contacto y formulario ---------- */
.contact-layout { display: grid; gap: 2rem; }
@media (min-width: 1000px) { .contact-layout { grid-template-columns: 1.6fr 1fr; gap: 2.5rem; align-items: start; } }
.form-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-xl); padding: 1.5rem; box-shadow: var(--shadow); }
@media (min-width: 768px) { .form-card { padding: 2.25rem; } }
.contact-aside { background: var(--grad-soft); border: 1px solid #D5ECEF; border-radius: var(--radius-xl); padding: 1.5rem; }
.contact-aside h2 { font-size: 1.35rem; }
.contact-aside h3 { font-size: 1rem; margin-top: 1.25rem; }
@media (min-width: 1000px) { .contact-aside { position: sticky; top: calc(var(--header-h) + 1.5rem); } }

.request-form { max-width: none; }
.field { margin: 0 0 1.15rem; border: 0; padding: 0; min-width: 0; }
.field label, .field legend { display: block; font-weight: 700; color: var(--ink); margin-bottom: 0.35rem; padding: 0; font-size: 0.9375rem; }
.req, .opt { font-weight: 500; color: var(--muted); font-size: 0.8125rem; }
.hint { font-size: 0.8125rem; color: var(--muted); margin: -0.15rem 0 0.4rem; }
.field input:not([type='checkbox']):not([type='radio']), .field select, .field textarea {
  display: block; width: 100%; min-height: 3rem; padding: 0.7rem 0.9rem;
  font: inherit; font-size: 1rem; color: var(--ink);
  background: #FBFDFE; border: 1.5px solid #6F8995; border-radius: 12px;
  transition: border-color .15s, box-shadow .15s, background-color .15s;
}
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--primary); }
.field textarea { min-height: 8rem; resize: vertical; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: none; border-color: var(--primary); background: var(--white); box-shadow: 0 0 0 4px rgba(11, 110, 153, 0.2); }
.field [aria-invalid='true'] { border-color: var(--error); box-shadow: 0 0 0 3px rgba(180, 35, 24, 0.12); }
.field-error { color: var(--error); font-size: 0.875rem; font-weight: 700; margin: 0.35rem 0 0; }
.field-inline { margin-top: -0.5rem; }
@media (min-width: 640px) {
  .field-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1rem; }
}
.field .choice, .choice { display: flex; gap: 0.65rem; align-items: flex-start; font-weight: 500; color: var(--ink); cursor: pointer; padding: 0.35rem 0; margin: 0; }
.choice input { width: 1.25rem; height: 1.25rem; margin: 0.15rem 0 0; accent-color: var(--primary); flex: none; }
.reason-options { display: grid; gap: 0.6rem; }
@media (min-width: 560px) { .reason-options { grid-template-columns: 1fr 1fr; } }
.field .choice-card { position: relative; border: 1.5px solid var(--line); border-radius: var(--radius); padding: 0.85rem 0.95rem; background: var(--white); min-height: 3.5rem; align-items: center; font-weight: 700; transition: border-color .15s, background-color .15s; }
.field .choice-card:hover { border-color: var(--primary); }
.choice-card:has(input:checked) { border-color: var(--primary); background: var(--cyan-soft); box-shadow: inset 0 0 0 1px var(--primary); }
.choice-card:has(input:focus-visible) { outline: 3px solid var(--focus); outline-offset: 2px; }
.choice-card input:focus-visible { outline: none; }
.choice-card .reason-icon { display: grid; place-items: center; width: 2.1rem; height: 2.1rem; border-radius: 10px; background: var(--surface-2); color: var(--primary); flex: none; }
.choice-card .reason-icon .icon { width: 1.1rem; height: 1.1rem; }
.checkbox-grid { display: grid; gap: 0.15rem 1rem; }
@media (min-width: 560px) { .checkbox-grid { grid-template-columns: 1fr 1fr; } }
.subgroup { border: 1.5px dashed var(--line); border-radius: var(--radius); padding: 1.15rem 1.15rem 0.25rem; margin: 0 0 1.15rem; min-width: 0; background: var(--bg); }
.subgroup > legend { font-weight: 800; color: var(--ink); padding: 0 0.4rem; }
.js [data-show-for][hidden] { display: none; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-privacy { font-size: 0.8125rem; color: var(--muted); }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; margin-top: 1.25rem; }
.form-status { margin: 0; font-size: var(--text-sm); color: var(--muted); }
.form-status.is-error { color: var(--error); font-weight: 700; }
.form-error-summary { background: var(--error-bg); color: var(--error); border-left: 4px solid var(--error); padding: 0.85rem 1rem; border-radius: var(--radius-sm); margin-bottom: 1.25rem; font-weight: 700; }
.form-error-summary ul { list-style: disc; padding-left: 1.25rem; margin-top: 0.4rem; font-weight: 500; }
.form-error-summary a { color: var(--error); }
.form-success { background: var(--success-bg); border-radius: var(--radius-lg); padding: 1.75rem; text-align: center; }
.form-success .icon { color: var(--success); margin: 0 auto 0.5rem; width: 2.5rem; height: 2.5rem; }
.form-success h3 { color: var(--success); }
.form-success p { margin-inline: auto; }
.notice-info { display: flex; gap: 0.75rem; align-items: flex-start; background: var(--cyan-soft); border: 1px solid #BFE3F1; padding: 1rem 1.15rem; border-radius: var(--radius); margin-bottom: 1.5rem; }
.notice-info .icon { color: var(--primary); margin-top: 0.15rem; }
.notice-info p { margin: 0; font-size: 0.875rem; }
.notice-title { font-weight: 800; color: var(--ink); margin-bottom: 0.2rem !important; font-size: 0.9375rem !important; }
.no-js .request-form[data-mode='mailto'] [data-submit] { display: none; }

/* Textos legales */
.legal h2 { font-size: 1.3rem; margin-top: 2rem; }
.legal-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-xl); padding: 1.5rem; box-shadow: var(--shadow-sm); }
@media (min-width: 768px) { .legal-card { padding: 2.5rem; } }

/* ---------- Pie (azul de marca) ---------- */
.site-footer { position: relative; overflow: hidden; background: var(--brand-blue); color: #C9DEE4; padding-top: 3.5rem; font-size: var(--text-sm); }
.site-footer::before { content: ''; position: absolute; right: -6rem; bottom: -4rem; width: 28rem; height: 29rem; background: url('../img/simbolo-a-cian.webp') no-repeat center / contain; opacity: 0.07; pointer-events: none; }
.site-footer > * { position: relative; }
.site-footer a { color: #FFFFFF; text-decoration: none; }
.site-footer a:hover { color: var(--brand-cyan); text-decoration: underline; }
.site-footer :focus-visible { outline-color: var(--brand-cyan); }
.footer-grid { display: grid; gap: 2.25rem; padding-bottom: 2.5rem; }
@media (min-width: 720px) { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .footer-grid { grid-template-columns: 1.3fr 1fr 1fr 1fr; } }
.footer-logo { width: 9rem; height: auto; margin-bottom: 1rem; }
.footer-name { font-weight: 800; font-size: 1.1rem; color: var(--white); margin-bottom: 0.35rem; }
.footer-tagline { color: var(--brand-cyan); font-weight: 600; }
.footer-location { display: flex; gap: 0.5rem; align-items: flex-start; }
.footer-location .icon { margin-top: 0.15rem; color: var(--brand-cyan); }
.footer-title { font-size: 0.95rem; color: var(--white); margin-bottom: 0.9rem; letter-spacing: 0.02em; }
.footer-subtitle { font-size: 0.9rem; color: var(--white); margin: 1.25rem 0 0.6rem; }
.footer-links { list-style: none; display: grid; gap: 0.1rem; }
.footer-links a { display: inline-block; padding-block: 0.35rem; color: #E3EEF1; }
.footer-social { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.footer-social a { padding: 0.35rem 0.85rem; border: 1px solid rgba(108, 188, 196, 0.5); border-radius: 999px; }
.site-footer .channels a { font-weight: 600; min-height: 2.5rem; color: #FFFFFF; }
.site-footer .channels .icon { color: var(--brand-cyan); }
.site-footer .hours dt { color: #FFFFFF; }
.site-footer .hours dd, .site-footer .hours-tz { color: #C9DEE4; }
.footer-legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem 2rem; border-top: 1px solid rgba(108, 188, 196, 0.25); padding-block: 1.25rem; }
.footer-legal p { margin: 0; }

/* ---------- Motivo de marca: la "A" de Alcoser como fondo ---------- */
.hero, .page-header { position: relative; overflow: hidden; }
.hero::after, .page-header::after {
  content: ''; position: absolute; z-index: 0; pointer-events: none;
  right: -8rem; top: -3rem; width: 34rem; height: 35rem;
  background: url('../img/simbolo-a-cian.webp') no-repeat center / contain; opacity: 0.13;
}
.page-header::after { width: 24rem; height: 25rem; top: -4rem; right: -6rem; opacity: 0.1; }
.hero > .container, .page-header > .container { position: relative; z-index: 1; }
@media (max-width: 767px) { .hero::after { width: 20rem; height: 21rem; right: -7rem; top: auto; bottom: 10rem; } .page-header::after { display: none; } }
.cta-card::after { content: ''; position: absolute; right: -3rem; top: -2.5rem; width: 16rem; height: 16.5rem; background: url('../img/simbolo-a-cian.webp') no-repeat center / contain; opacity: 0.16; pointer-events: none; }

/* ---------- Barra móvil ---------- */
.mobile-bar {
  position: fixed; inset: auto 0.6rem 0.6rem 0.6rem; z-index: 40;
  display: grid; grid-template-columns: 1fr 1.6fr; gap: 0.5rem;
  padding: 0.5rem; padding-bottom: calc(0.5rem + env(safe-area-inset-bottom) * 0.5);
  background: rgba(255, 255, 255, 0.92); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border: 1px solid var(--line); border-radius: 999px; box-shadow: var(--shadow);
}
.mobile-bar-btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.45rem; min-height: 2.9rem; border-radius: 999px; font-weight: 800; text-decoration: none; color: var(--ink); background: var(--surface-2); }
.mobile-bar-primary { background: var(--primary); color: var(--white); }
@media (min-width: 768px) { .mobile-bar { display: none; } }

/* ---------- Movimiento ---------- */
/* El contenido solo se oculta si main.js lo marca (si el script falla, todo se ve). */
@media (prefers-reduced-motion: no-preference) {
  .reveal-pending { opacity: 0; transform: translateY(22px); }
  .reveal-in { opacity: 1; transform: none; transition: opacity .6s ease, transform .6s cubic-bezier(.2, .7, .2, 1); transition-delay: var(--reveal-delay, 0s); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

@media print {
  .site-header, .mobile-bar, .staging-banner, .skip-link, .cta-band, .ref-tag { display: none !important; }
  body { padding: 0; background: #fff; }
}

.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
@media (min-width: 1040px) { .steps-5 { grid-template-columns: repeat(5, 1fr); } }
.tile-heading { font-size: 1.35rem; margin: 0; }
.doc-note { margin-top: 0.75rem; }
.spaced-top { margin-top: 2.5rem; }
.spaced-top-sm { margin-top: 1rem; }

/* ---------- Chat flotante ---------- */
.chat-launcher {
  position: fixed; right: 1rem; bottom: calc(5.4rem + env(safe-area-inset-bottom) * 0.5); z-index: 45;
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  width: 3.5rem; height: 3.5rem; padding: 0; border: 0; border-radius: 999px; cursor: pointer;
  background: var(--grad); color: var(--white); font: inherit; font-weight: 800; text-decoration: none;
  box-shadow: 0 14px 30px -10px rgba(7, 64, 86, 0.75);
  transition: transform .2s, box-shadow .2s, width .2s;
}
.chat-launcher:hover { transform: translateY(-2px); box-shadow: 0 18px 34px -10px rgba(11, 110, 153, 0.85); }
.chat-launcher .icon { width: 1.5rem; height: 1.5rem; }
.chat-launcher-label { display: none; }
.chat-launcher .chat-icon-close { display: none; }
.chat-launcher[aria-expanded='true'] .chat-icon-open { display: none; }
.chat-launcher[aria-expanded='true'] .chat-icon-close { display: block; }
.chat-launcher:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
@media (min-width: 768px) {
  .chat-launcher { right: 1.5rem; bottom: 1.5rem; width: auto; height: 3.4rem; padding: 0 1.3rem 0 1.05rem; }
  .chat-launcher-label { display: inline; }
  .chat-launcher[aria-expanded='true'] { width: 3.4rem; padding: 0; }
  .chat-launcher[aria-expanded='true'] .chat-launcher-label { display: none; }
}
@media (prefers-reduced-motion: no-preference) {
  .chat-launcher::after { content: ''; position: absolute; inset: 0; border-radius: inherit; box-shadow: 0 0 0 0 rgba(15, 163, 163, 0.55); animation: chat-pulse 2.4s ease-out 1.5s 2; }
  @keyframes chat-pulse { to { box-shadow: 0 0 0 16px rgba(15, 163, 163, 0); } }
}

.chat-panel {
  position: fixed; z-index: 60; inset: auto 0.6rem 0.6rem 0.6rem;
  height: min(78vh, 40rem); height: min(78dvh, 40rem);
  display: flex; flex-direction: column; overflow: hidden;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-xl);
  box-shadow: 0 30px 70px -20px rgba(14, 42, 59, 0.45);
}
.chat-panel[hidden] { display: none; }
@media (min-width: 768px) {
  .chat-panel { inset: auto 1.5rem 5.9rem auto; width: 24rem; height: min(36rem, calc(100vh - 8rem)); }
}
@media (prefers-reduced-motion: no-preference) {
  .chat-panel:not([hidden]) { animation: chat-in .22s cubic-bezier(.2, .7, .2, 1); transform-origin: bottom right; }
  @keyframes chat-in { from { opacity: 0; transform: translateY(12px) scale(.98); } }
}
.chat-head { display: flex; align-items: center; gap: 0.75rem; padding: 0.95rem 1rem; background: var(--grad); color: var(--white); }
.chat-head h2 { color: var(--white); font-size: 1.05rem; margin: 0; }
.chat-head p { margin: 0; font-size: 0.8125rem; color: #F0FAFC; }
.chat-head > div { flex: 1; min-width: 0; }
.chat-avatar { display: grid; place-items: center; width: 2.4rem; height: 2.4rem; border-radius: 50%; background: rgba(255,255,255,.18); flex: none; }
.chat-close { display: grid; place-items: center; width: 2.5rem; height: 2.5rem; border: 0; border-radius: 50%; background: rgba(255,255,255,.15); color: var(--white); cursor: pointer; flex: none; }
.chat-close:hover { background: rgba(255,255,255,.28); }
.chat-close:focus-visible { outline-color: var(--white); }
.chat-body { flex: 1; display: flex; flex-direction: column; min-height: 0; background: var(--bg); }
.chat-frame-wrap { flex: 1; position: relative; min-height: 0; }
.chat-frame-wrap iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: var(--white); }
.chat-loading { position: absolute; inset: 0; display: grid; place-items: center; margin: 0; color: var(--muted); font-size: var(--text-sm); }
.chat-foot { margin: 0; padding: 0.55rem 1rem; border-top: 1px solid var(--line); font-size: 0.8125rem; background: var(--surface); max-width: none; }
.chat-placeholder { padding: 1.25rem; overflow-y: auto; }
.chat-bubble { display: inline-block; background: var(--surface); border: 1px solid var(--line); border-radius: 18px 18px 18px 6px; padding: 0.75rem 1rem; font-weight: 700; box-shadow: var(--shadow-sm); }
.chat-actions { list-style: none; display: grid; gap: 0.5rem; margin-top: 0.75rem; }
.chat-actions a { display: flex; align-items: center; gap: 0.6rem; padding: 0.7rem 0.9rem; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; font-weight: 700; font-size: var(--text-sm); color: var(--ink); text-decoration: none; }
.chat-actions a:hover { border-color: var(--primary); color: var(--primary); }
.chat-actions .icon { color: var(--primary); }
@media print { .chat-launcher, .chat-panel { display: none !important; } }
/* Chat de un proveedor externo (SoyAI): se usa el botón de Alcoser y se oculta
   el botón propio del proveedor; su ventana de conversación sí se muestra. */
html body.has-chat-widget .bot-widget-bubble { display: none !important; }
.chat.is-vendor-open .chat-launcher .chat-icon-open { display: none; }
.chat.is-vendor-open .chat-launcher .chat-icon-close { display: block; }
.chat.is-vendor-open .chat-launcher-label { display: none; }
@media (min-width: 768px) { .chat.is-vendor-open .chat-launcher { width: 3.4rem; padding: 0; } }

/* ---------- Certificaciones, seguros, asociaciones y premios ---------- */
/* Portada: bloque resaltado bajo los distintivos */
.cert-highlight {
  display: inline-flex; align-items: center; gap: 0.85rem; margin-top: 0.85rem;
  padding: 0.55rem 1rem 0.55rem 0.6rem; border-radius: 999px;
  background: var(--surface); border: 2px solid var(--brand-cyan);
  box-shadow: 0 10px 24px -14px rgba(7, 64, 86, 0.55);
  color: var(--ink); text-decoration: none; max-width: 100%;
  transition: transform .2s, box-shadow .2s;
}
.cert-highlight:hover { transform: translateY(-1px); box-shadow: 0 14px 28px -14px rgba(7, 64, 86, 0.7); }
.cert-mini-logos { display: inline-flex; flex: none; }
.cert-mini { width: 3rem; height: 3rem; object-fit: contain; }
.cert-mini-logos { gap: 0.3rem; }
.cert-highlight-text { display: flex; flex-direction: column; gap: 0.15rem; min-width: 0; }
.cert-highlight-text strong { font-size: 0.9rem; color: var(--brand-blue); letter-spacing: .01em; }
.cert-codes { display: flex; flex-wrap: wrap; gap: 0.25rem 0.35rem; }
.cert-codes span { font-size: 0.75rem; font-weight: 800; color: var(--teal-ink); background: var(--mint-soft); padding: 0.1rem 0.45rem; border-radius: 6px; letter-spacing: .03em; }
.cert-arrow { color: var(--primary); flex: none; }

/* Constructoras: franja del encabezado */
.cred-bar { margin-top: 1.5rem; display: grid; gap: 1rem; padding: 1rem 1.1rem; border-radius: var(--radius-lg, 18px); background: rgba(255,255,255,.88); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.cred-bar-list { list-style: none; display: grid; gap: 0.5rem; margin: 0; padding: 0; }
.cred-bar-list li { display: flex; gap: 0.55rem; align-items: flex-start; font-size: 0.9rem; color: var(--ink); line-height: 1.4; }
.cred-bar-list .icon { flex: none; width: 1.15rem; height: 1.15rem; margin-top: 0.1rem; color: var(--teal-ink); }
.cred-bar-list strong { color: var(--brand-blue); }
.cred-bar-logos { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem 1rem; padding-bottom: 0.85rem; border-bottom: 1px solid var(--line); }
.cred-bar-logos img { height: 3.1rem; width: auto; }

/* Fila de logos (portada, Nosotros) */
.cred-strip { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; margin-top: 1.25rem; }
.cred-strip ul { list-style: none; display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1.1rem; margin: 0; padding: 0; }
.cred-strip li { display: grid; place-items: center; background: #fff; border-radius: 12px; padding: 0.35rem 0.5rem; border: 1px solid var(--line); }
.cred-strip img { height: 3.4rem; width: auto; }
.cred-strip-band { padding-top: 1.1rem; border-top: 1px solid rgba(7, 64, 86, .12); }

/* Sección completa */
.cred-subhead { display: flex; align-items: center; gap: 0.5rem; font-size: 1.1rem; margin: 0 0 1rem; color: var(--brand-blue); }
.cred-subhead .icon { width: 1.25rem; height: 1.25rem; color: var(--teal-ink); }
.cred-subhead.spaced-top { margin-top: 2rem; }
.cert-grid { list-style: none; display: grid; gap: 0.85rem; margin: 0 0 1.75rem; padding: 0; grid-template-columns: 1fr; }
@media (min-width: 640px) { .cert-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .cert-grid { grid-template-columns: repeat(3, 1fr); } }
.cert-card { display: flex; gap: 1rem; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-xl); padding: 1rem 1.1rem; box-shadow: var(--shadow-sm); }
.cert-card-logo { width: 4.5rem; height: 4.5rem; object-fit: contain; flex: none; }
.cert-seal { flex: none; display: grid; place-items: center; width: 4.5rem; height: 4.5rem; border-radius: 50%; background: var(--brand-blue); color: #fff; font-weight: 800; font-size: 0.95rem; letter-spacing: .04em; box-shadow: inset 0 0 0 4px var(--brand-blue), inset 0 0 0 6px var(--brand-cyan); }
.cert-seal-icon .icon { width: 1.8rem; height: 1.8rem; }
.cert-card h4 { margin: 0 0 0.3rem; font-size: 1.05rem; color: var(--brand-blue); line-height: 1.25; }
.cert-card h4 span { display: block; font-size: 0.85rem; font-weight: 700; color: var(--ink); letter-spacing: 0; }
.cert-issuers { margin: 0; font-size: 0.8125rem; color: var(--muted); line-height: 1.45; }
.cred-panels { display: grid; gap: 1rem; grid-template-columns: 1fr; }
@media (min-width: 860px) { .cred-panels { grid-template-columns: 1fr 1fr 1.15fr; } }
.cred-panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-xl); padding: 1.35rem; box-shadow: var(--shadow-sm); }
.cred-panel h3 { font-size: 1.1rem; margin: 0.6rem 0 0.4rem; }
.cred-panel p { color: var(--muted); font-size: var(--text-sm); margin: 0; }
.member-list { list-style: none; display: grid; gap: 0.75rem; margin: 0.75rem 0 0; padding: 0; }
.member-list li { display: flex; align-items: center; gap: 0.85rem; font-weight: 700; font-size: 0.9rem; }
.member-logo { width: 3.6rem; height: 3.6rem; object-fit: contain; flex: none; }
.cred-panel-awards { display: grid; grid-template-columns: auto 1fr; gap: 0 1rem; align-items: start; }
.cred-panel-awards .award-logo { grid-row: span 3; width: 6.5rem; height: auto; }
.cred-panel-awards h3 { margin-top: 0; }
.award-list { list-style: none; display: grid; gap: 0.4rem; margin: 0 0 0.6rem; padding: 0; }
.award-list li { display: flex; align-items: baseline; gap: 0.55rem; }
.award-year { font-weight: 800; color: #fff; background: var(--brand-blue); border-radius: 6px; padding: 0.05rem 0.45rem; font-size: 0.8rem; }
@media (max-width: 420px) { .cred-panel-awards { grid-template-columns: 1fr; } .cred-panel-awards .award-logo { grid-row: auto; margin-bottom: .5rem; } }

/* Documento (Capability Statement) a todo el ancho */
.doc-wrap { max-width: 46rem; }

/* Proyectos: otros clientes */
.client-list { list-style: none; display: grid; gap: 0.85rem; margin: 0; padding: 0; grid-template-columns: 1fr; }
@media (min-width: 760px) { .client-list { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .client-list { grid-template-columns: repeat(3, 1fr); } }
.client-item { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-xl); padding: 1.15rem 1.25rem; box-shadow: var(--shadow-sm); }
.client-head { display: flex; flex-direction: column-reverse; align-items: flex-start; gap: 0.45rem; margin-bottom: 0.35rem; }
.client-head h3 { font-size: 1.05rem; margin: 0; }
.client-item > p { color: var(--muted); font-size: var(--text-sm); margin: 0.35rem 0 0.6rem; }
.card-badge.static { position: static; box-shadow: none; background: var(--bg); border: 1px solid var(--line); }
@media (max-width: 639px) { .cred-bar-logos { gap: 0.5rem 0.7rem; } .cred-bar-logos img { height: 2.6rem; } .cred-strip img { height: 2.8rem; } }
