/* =============================================================================
   SPECIAL CAR GROUP — Presentación corporativa interactiva
   -----------------------------------------------------------------------------
   Índice
     1.  Tokens de marca
     2.  Reset y bases
     3.  Deck y diapositivas
     4.  Superficies (paper / light / brand / deep)
     5.  Chrome persistente (logo, contador, puntos, flechas)
     6.  Componentes: botones
     7.  Componentes: espacios de imagen
     8.  Diapositiva 01 — Portada
     9.  Diapositiva 02 — Nosotros
     10. Diapositiva 03 — Grupo empresarial
     11. Diapositiva 04 — Menú de líneas
     12. Diapositivas de línea de negocio
     13. Diapositivas de detalle
     14. Aliados y contacto
     15. Responsive
     16. Preferencias del usuario e impresión

   Nota sobre los logos: los PNG de assets/img/ tienen fondo transparente y son
   monocromáticos en navy. Por eso NO se usa mix-blend-mode (degradaba los
   bordes antialiaseados) y en superficies oscuras se invierten a blanco con
   filter, que es seguro por ser de un solo tono.
   ========================================================================== */

/* ---------------------------------------------------------------------------
   1. Tokens de marca
   --------------------------------------------------------------------------- */
:root {
  /* Paleta */
  --navy: #123461;
  --navy-deep: #09294d;
  --navy-ink: #071e3a;
  --cobalt: #2f5190;
  --cobalt-bright: #5b8ad6;
  --sky: #d7e7f5;
  --sky-soft: #eef5fb;
  --ink: #141922;
  --ink-soft: #303744;
  --paper: #fff;
  --muted: #5a6270;
  --line: #d5dde7;

  /* Espaciado. El padding vertical reserva sitio para el chrome fijo. */
  --pad-x: clamp(24px, 5.4vw, 88px);
  --pad-top: clamp(76px, 9vh, 96px);
  --pad-bottom: clamp(68px, 8vh, 84px);

  /* Tipografía */
  --f-body: Arial, Helvetica, sans-serif;
  --f-display: Arial, Helvetica, sans-serif;

  /* Chrome: se reasignan cuando la diapositiva activa es oscura. */
  --chrome-fg: var(--navy);
  --chrome-accent: var(--cobalt);
  --chrome-surface: #fff;
  --chrome-on-surface: #fff;
  --chrome-btn-bg: var(--navy);
  --chrome-logo-filter: none;
}

/* Cuando la diapositiva activa es .deep, el chrome fijo se aclara para no
   desaparecer sobre el fondo navy. La clase la aplica js/script.js. */
body.on-dark {
  --chrome-fg: #fff;
  --chrome-accent: var(--cobalt-bright);
  --chrome-surface: rgba(255, 255, 255, .16);
  --chrome-btn-bg: rgba(255, 255, 255, .18);
  --chrome-logo-filter: brightness(0) invert(1);
}

/* ---------------------------------------------------------------------------
   2. Reset y bases
   --------------------------------------------------------------------------- */
* { box-sizing: border-box; }

html,
body { height: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--f-body);
  line-height: 1.45;
  overflow: hidden;
  -webkit-text-size-adjust: 100%;
}

a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }

h1, h2, h3, h4, p { margin: 0; }

h1, h2, h3, h4 {
  font-family: var(--f-display);
  font-weight: 700;
  line-height: 1.1;
  text-wrap: balance;
}

ul { margin: 0; padding: 0; list-style: none; }
img { display: block; max-width: 100%; }

:focus-visible {
  outline: 3px solid var(--cobalt);
  outline-offset: 3px;
}

.deep :focus-visible { outline-color: #fff; }

/* Enlace de salto para lectores de pantalla y teclado. */
.skip-link {
  position: fixed;
  z-index: 60;
  top: 8px;
  left: 8px;
  padding: 10px 16px;
  background: var(--navy);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  transform: translateY(-160%);
  transition: transform .18s;
}

.skip-link:focus-visible { transform: translateY(0); }

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* ---------------------------------------------------------------------------
   3. Deck y diapositivas
   --------------------------------------------------------------------------- */
.deck {
  width: 100%;
  height: 100dvh;
  overflow-y: auto;
  overscroll-behavior-y: contain;
  scroll-snap-type: y mandatory;
  scroll-behavior: smooth;
}

.slide {
  isolation: isolate;
  position: relative;
  width: 100%;
  min-height: 100dvh;
  padding: var(--pad-top) var(--pad-x) var(--pad-bottom);
  display: flex;
  align-items: center;
  overflow: hidden;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  background: var(--paper);
  color: var(--ink);
}

/* Marcas geométricas decorativas.
   Se colocan solo en las dos zonas libres de la pantalla. El chrome fijo ocupa
   arriba-izquierda (logo), abajo-izquierda (contador), centro-derecha (puntos)
   y abajo-derecha (flechas): antes el círculo caía justo debajo del logo, que
   es navy sobre navy y quedaba ilegible, y el punto negro asomaba tras las
   flechas. */
.slide::before,
.slide::after {
  content: "";
  position: absolute;
  z-index: -1;
  border-radius: 50%;
  pointer-events: none;
}

/* Círculo grande: esquina superior derecha. */
.slide::before {
  width: 126px;
  height: 126px;
  background: var(--cobalt);
  top: -70px;
  right: -45px;
}

/* Punto pequeño: borde izquierdo, a media altura. */
.slide::after {
  width: 42px;
  height: 42px;
  background: #252525;
  top: 50%;
  left: 28px;
  transform: translateY(-50%);
}

.slide-inner {
  width: 100%;
  max-width: 1210px;
  margin: auto;
  position: relative;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  color: var(--navy);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  flex: 0 0 auto;
  width: 26px;
  height: 5px;
  background: currentColor;
  clip-path: polygon(0 0, 84% 0, 100% 50%, 84% 100%, 0 100%);
}

.slide h2 {
  font-size: clamp(28px, 4vw, 49px);
  max-width: 800px;
}

.slide .lede {
  margin-top: 16px;
  max-width: 660px;
  color: var(--ink-soft);
  font-size: clamp(15px, 1.2vw, 17px);
}

/* ---------------------------------------------------------------------------
   4. Superficies
   Antes las tres variantes se anulaban entre sí y las 16 diapositivas
   quedaban blancas idénticas. Ahora cada una tiene fondo propio.
   --------------------------------------------------------------------------- */

/* 4.1 light — tinte sky suave */
.slide.light {
  background: linear-gradient(160deg, var(--sky-soft) 0%, #fff 62%);
}

/* 4.2 brand — azul de marca lavado */
.slide.brand {
  background: linear-gradient(150deg, #e6f0fa 0%, #f7fbff 58%, #dfecf8 100%);
}

/* En brand y deep el círculo se cambia por el triángulo de marca en el borde
   izquierdo; el punto pequeño se mueve entonces arriba-derecha para no
   solaparse con él. */
.slide.brand::before,
.slide.deep::before {
  width: 0;
  height: 0;
  border-radius: 0;
  background: none;
  border-top: 76px solid transparent;
  border-bottom: 76px solid transparent;
  border-left: 76px solid var(--cobalt);
  top: 50%;
  left: 0;
  right: auto;
  transform: translateY(-50%);
}

.slide.brand::after,
.slide.deep::after {
  width: 26px;
  height: 26px;
  top: 34px;
  right: 38px;
  left: auto;
  transform: none;
}

.slide.brand::after { background: var(--navy); }

/* 4.3 deep — navy oscuro, texto invertido */
.slide.deep {
  background:
    radial-gradient(1100px 620px at 82% 12%, rgba(91, 138, 214, .28), transparent 68%),
    linear-gradient(155deg, var(--navy-deep) 0%, var(--navy-ink) 100%);
  color: #eef4fb;
}

.slide.deep::before { border-left-color: rgba(91, 138, 214, .5); }

.slide.deep::after { background: var(--cobalt-bright); }

.slide.deep .eyebrow { color: #a8c8ec; }
.slide.deep .lede { color: #cddeef; }
.slide.deep h1 em { color: var(--cobalt-bright); }

/* Logos monocromáticos → blanco sobre navy. */
.slide.deep .cover-logo,
.slide.deep .line-logo { filter: brightness(0) invert(1); }

/* Chips de características: translúcidos en vez de sky opaco. */
.slide.deep .line-features li {
  background: rgba(255, 255, 255, .09);
  color: #e4eefa;
}

.slide.deep .line-features li::before {
  background: var(--cobalt-bright);
  color: var(--navy-ink);
}

.slide.deep .check-list li {
  background: rgba(255, 255, 255, .09);
  color: #e4eefa;
}

.slide.deep .check-list li::before { background: var(--cobalt-bright); color: var(--navy-ink); }

/* El bloque Special Tech era navy sobre navy: se vuelve un panel translúcido. */
.slide.deep .inline-brand {
  background: rgba(255, 255, 255, .1);
  border-left: 4px solid var(--cobalt-bright);
}

.slide.deep .inline-brand .ib-label { color: #a8c8ec; }
.slide.deep .inline-brand p { color: #d6e5f4; }

/* Botones sobre navy: el primario navy-sobre-navy era invisible. */
.slide.deep .btn-primary { background: #fff; color: var(--navy-deep); }
.slide.deep .btn-primary:hover { background: var(--sky); }
.slide.deep .btn-outline { border-color: rgba(255, 255, 255, .72); color: #fff; background: transparent; }
.slide.deep .btn-outline:hover { background: rgba(255, 255, 255, .14); }

.slide.deep .img-placeholder {
  background: rgba(255, 255, 255, .07);
  border-color: rgba(255, 255, 255, .3);
}

.slide.deep .ph-inner { color: #d8e6f5; }
.slide.deep .ph-inner small { color: #9db6d2; }
.slide.deep .brand-visual { background: rgba(255, 255, 255, .94); }

/* Las franjas superiores eran navy sobre navy y leían como un gris sucio. */
.slide.deep .line-visual > .img-placeholder,
.slide.deep .brand-visual,
.slide.deep .media-stack .img-placeholder { border-top-color: var(--cobalt-bright); }

.slide.deep .contact-meta { border-top-color: rgba(255, 255, 255, .35); color: #bed2e7; }
.slide.deep .stat-row div { background: rgba(255, 255, 255, .09); border-left-color: var(--cobalt-bright); }
.slide.deep .stat-row b { color: #fff; }
.slide.deep .stat-row span { color: #b9cee5; }

/* ---------------------------------------------------------------------------
   5. Chrome persistente
   --------------------------------------------------------------------------- */
.chrome-logo {
  position: fixed;
  z-index: 20;
  top: 20px;
  left: var(--pad-x);
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--chrome-fg);
  font-weight: 700;
  font-size: clamp(13px, 1.2vw, 16px);
  transition: color .3s;
}

/* Los PNG están recortados a su contenido, así que basta fijar la altura y
   dejar que el ancho siga la proporción real. */
.chrome-logo-image {
  width: auto;
  height: 26px;
  filter: var(--chrome-logo-filter);
  transition: filter .3s;
}

.chrome-counter {
  position: fixed;
  z-index: 20;
  bottom: 22px;
  left: var(--pad-x);
  font-size: 13px;
  font-weight: 700;
  color: var(--chrome-fg);
  transition: color .3s;
}

.chrome-counter b { color: var(--chrome-accent); }

.chrome-dots {
  position: fixed;
  z-index: 20;
  right: 22px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.chrome-dots button {
  /* position:relative es lo que faltaba: sin él el tooltip ::after se
     posicionaba contra .chrome-dots y los 16 se apilaban en el centro. */
  position: relative;
  width: 10px;
  height: 10px;
  padding: 0;
  border: 1px solid var(--chrome-fg);
  border-radius: 50%;
  background: transparent;
  transition: background .2s, transform .2s;
}

.chrome-dots button.is-active {
  background: var(--chrome-fg);
  transform: scale(1.35);
}

.chrome-dots button::after {
  content: attr(data-label);
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  padding: 6px 9px;
  max-width: 42vw;
  opacity: 0;
  pointer-events: none;
  white-space: nowrap;
  background: var(--navy);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  transition: opacity .18s;
}

.chrome-dots button:hover::after,
.chrome-dots button:focus-visible::after { opacity: 1; }

.chrome-arrows {
  position: fixed;
  z-index: 20;
  right: 22px;
  bottom: 18px;
  display: flex;
  gap: 8px;
}

.chrome-arrows button {
  width: 40px;
  height: 40px;
  border: 0;
  background: var(--chrome-btn-bg);
  color: var(--chrome-on-surface);
  display: grid;
  place-items: center;
  transition: background .2s, opacity .2s;
}

body.on-dark .chrome-arrows button { outline: 1px solid rgba(255, 255, 255, .4); }
.chrome-arrows button:hover { background: var(--cobalt); }
.chrome-arrows button:disabled { opacity: .3; cursor: not-allowed; }

/* ---------------------------------------------------------------------------
   6. Botones
   --------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 11px 21px;
  border: 0;
  font-size: 14px;
  font-weight: 700;
  text-align: center;
  transition: transform .18s, background .18s, color .18s;
}

.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--navy); color: #fff; }
.btn-primary:hover { background: var(--cobalt); }
.btn-outline { border: 2px solid var(--navy); color: var(--navy); background: transparent; }
.btn-outline:hover { background: var(--sky); }
.btn-sm { font-size: 13px; min-height: 40px; padding: 9px 18px; }

/* ---------------------------------------------------------------------------
   7. Espacios de imagen
   Rediseñados: se eliminó el tramado diagonal, que hacía ver el sitio "roto".
   Ahora leen como un bloque de marca intencional aunque se publiquen vacíos.
   --------------------------------------------------------------------------- */
.img-placeholder {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: linear-gradient(150deg, var(--sky-soft), var(--sky));
  border: 1px solid var(--line);
}

.img-placeholder > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ph-inner {
  position: relative;
  z-index: 1;
  padding: 18px;
  text-align: center;
  color: var(--navy);
}

.ph-inner .ph-icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  margin: 0 auto 10px;
  border-radius: 50%;
  background: rgba(18, 52, 97, .1);
  font-size: 16px;
}

.ph-inner b { display: block; font-size: 13px; }

.ph-inner small {
  display: block;
  margin-top: 5px;
  font-size: 10px;
  letter-spacing: .02em;
  color: var(--muted);
}

/* ---------------------------------------------------------------------------
   8. Diapositiva 01 — Portada
   --------------------------------------------------------------------------- */
.slide-cover .cover-grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: clamp(32px, 4vw, 60px);
  align-items: center;
}

.cover-logo {
  width: auto;
  height: clamp(54px, 6.4vw, 82px);
  max-width: 100%;
  margin-bottom: 16px;
}

.slide-cover h1 {
  font-size: clamp(34px, 5.3vw, 63px);
  max-width: 675px;
}

.slide-cover h1 em { font-style: normal; color: var(--cobalt); }

.slide-cover .hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 29px;
}

.cover-brand-mark {
  /* Cuadrado con altura acotada: antes crecía con el contenido y en móvil
     desbordaba la pantalla, dejando la portada de dos pantallas de alto.
     justify-self:center evita que el grid lo estire a todo el ancho. */
  height: min(44vh, 400px);
  aspect-ratio: 1 / 1;
  width: auto;
  max-width: 100%;
  justify-self: center;
  padding: clamp(20px, 2.6vw, 36px);
  background: linear-gradient(135deg, #f4f8fc, #dbe9f7);
  border: 14px solid var(--cobalt);
  border-radius: 46% 46% 0 46%;
  box-shadow: 20px 20px 0 rgba(91, 138, 214, .45);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 22px;
  text-align: center;
  color: var(--navy);
  font-weight: 700;
  font-size: clamp(11px, 1vw, 13px);
}

.cover-brand-mark img { width: 100%; max-width: 250px; }

/* ---------------------------------------------------------------------------
   9. Diapositiva 02 — Nosotros
   --------------------------------------------------------------------------- */
.about-grid {
  display: grid;
  grid-template-columns: 1.04fr .96fr;
  gap: clamp(32px, 4vw, 60px);
  align-items: center;
}

.about-copy { font-size: clamp(15px, 1.15vw, 16px); color: var(--ink-soft); }
.about-copy p + p { margin-top: 14px; }

.about-visual.img-placeholder {
  /* aspect-ratio en lugar de vh: no se aplasta en pantallas bajas. */
  aspect-ratio: 9 / 11;
  max-height: 500px;
  border: 0;
  border-radius: 0 48% 48% 0;
  background: var(--sky);
  box-shadow: inset 18px 0 var(--navy);
}

.stat-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 10px;
  margin-top: 28px;
}

.stat-row div {
  padding: 13px 12px;
  background: var(--sky);
  border-left: 5px solid var(--navy);
}

.stat-row b { display: block; font-size: clamp(20px, 2vw, 24px); color: var(--navy); }

.stat-row span {
  display: block;
  font-size: 10px;
  line-height: 1.25;
  text-transform: uppercase;
  font-weight: 700;
  color: #42516a;
}

/* ---------------------------------------------------------------------------
   10. Diapositiva 03 — Grupo empresarial
   auto-fit resuelve la tarjeta huérfana que dejaban 5 tarjetas en 2 columnas.
   --------------------------------------------------------------------------- */
.company-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(165px, 1fr));
  gap: 12px;
  margin-top: clamp(24px, 3vh, 36px);
}

.company-card {
  min-height: 176px;
  padding: 18px 15px;
  background: #fff;
  border: 1px solid var(--line);
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
}

.company-card::after {
  content: "";
  position: absolute;
  right: 0;
  top: 0;
  border-top: 21px solid var(--navy);
  border-left: 21px solid transparent;
}

.company-card img { width: 100%; height: 84px; object-fit: contain; }

.company-card p {
  font-size: 12px;
  text-align: center;
  color: var(--muted);
  margin-top: 10px;
}

/* ---------------------------------------------------------------------------
   11. Diapositiva 04 — Menú de líneas de negocio
   --------------------------------------------------------------------------- */
.menu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(232px, 1fr));
  gap: 14px;
  margin-top: clamp(24px, 3vh, 38px);
}

.menu-tile {
  min-height: 250px;
  padding: 22px 18px;
  text-align: left;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-top: 22px solid var(--navy);
  transition: transform .2s, background .2s, box-shadow .2s;
}

.menu-tile:hover {
  transform: translateY(-6px);
  background: var(--sky-soft);
  box-shadow: 0 14px 30px rgba(18, 52, 97, .14);
}

.menu-tile .tile-num {
  font-size: 11px;
  font-weight: 700;
  color: var(--cobalt);
  text-transform: uppercase;
}

.menu-tile .tile-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin: 22px 0 16px;
  background: var(--navy);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
}

.menu-tile h3 { font-size: clamp(17px, 1.5vw, 19px); color: var(--navy); }
.menu-tile p { font-size: 13px; margin-top: 9px; color: #485564; }

/* ---------------------------------------------------------------------------
   12. Diapositivas de línea de negocio
   --------------------------------------------------------------------------- */
.line-slide .line-grid {
  display: grid;
  grid-template-columns: 1.02fr .98fr;
  gap: clamp(32px, 3.8vw, 56px);
  align-items: center;
}

.line-logo {
  display: block;
  width: auto;
  height: clamp(46px, 4.4vw, 62px);
  max-width: 100%;
  margin: 3px 0 10px;
}

.line-features { display: grid; gap: 9px; margin-top: 22px; }

.line-features li {
  position: relative;
  padding: 10px 12px 10px 43px;
  background: var(--sky);
  font-size: 13px;
}

.line-features li::before {
  content: "✓";
  position: absolute;
  left: 11px;
  top: 12px;
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
}

.line-slide .btn { margin-top: 23px; }
.line-visual { display: grid; gap: 12px; }

.line-visual > .img-placeholder,
.brand-visual {
  /* aspect-ratio sustituye a min(34vh,310px). */
  aspect-ratio: 16 / 10;
  max-height: 320px;
  border: 0;
  border-top: 26px solid var(--navy);
}

.brand-visual {
  background: #edf4fb;
  display: grid;
  place-items: center;
  padding: 24px;
}

.brand-visual img { width: 100%; height: 100%; object-fit: contain; }

.line-visual .mini-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.line-visual .mini-row .img-placeholder { aspect-ratio: 16 / 9; }

.inline-brand {
  margin-top: 20px;
  padding: 14px 16px;
  background: var(--navy);
  color: #fff;
}

.inline-brand .ib-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #bcd5ef;
}

.inline-brand h4 { margin-top: 3px; font-size: 17px; }
.inline-brand p { margin-top: 5px; font-size: 12px; color: #e1ebf6; }

/* ---------------------------------------------------------------------------
   13. Diapositivas de detalle
   --------------------------------------------------------------------------- */
.detail-slide .slide-inner { max-width: 1160px; }
.detail-slide h2 { max-width: 900px; }

.detail-grid { display: grid; gap: 14px; margin-top: clamp(22px, 3vh, 32px); }

/* auto-fit: antes .three-cols se quedaba en 3 columnas a 900px y quedaban
   paneles de ~250px ilegibles. Ahora reflowean solos. */
.detail-grid.three-cols { grid-template-columns: repeat(auto-fit, minmax(244px, 1fr)); }
.detail-grid.four-cols { grid-template-columns: repeat(auto-fit, minmax(218px, 1fr)); }

.info-panel {
  padding: 18px;
  background: #fff;
  border: 1px solid var(--line);
  position: relative;
}

.info-panel > span {
  display: inline-grid;
  place-items: center;
  width: 27px;
  height: 27px;
  background: var(--navy);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
}

.info-panel h3 { margin-top: 18px; font-size: clamp(16px, 1.4vw, 18px); color: var(--navy); }
.info-panel p { margin-top: 9px; color: #4b5664; font-size: 13px; }

.brand .info-panel { background: rgba(255, 255, 255, .78); }

.deep .info-panel {
  background: rgba(255, 255, 255, .08);
  border-color: rgba(255, 255, 255, .22);
}

.deep .info-panel h3 { color: #fff; }
.deep .info-panel p { color: #cddeef; }
.deep .info-panel > span { background: var(--cobalt-bright); color: var(--navy-ink); }

.detail-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(30px, 3.5vw, 50px);
  align-items: start;
  margin-top: clamp(22px, 3vh, 30px);
}

.detail-split.compact { align-items: center; }

.minor-title { font-size: clamp(18px, 1.6vw, 20px); color: var(--navy); margin-bottom: 15px; }
.deep .minor-title { color: #fff; }

.check-list { display: grid; gap: 10px; }

.check-list li {
  padding: 11px 12px 11px 38px;
  position: relative;
  background: var(--sky);
  font-size: 14px;
}

.check-list li::before {
  content: "✓";
  position: absolute;
  left: 11px;
  top: 13px;
  font-weight: 700;
  color: #fff;
  background: var(--navy);
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 11px;
}

.process-list {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: process;
  display: grid;
  gap: 12px;
}

.process-list li {
  position: relative;
  padding: 11px 14px 11px 52px;
  background: #f0f5fa;
  counter-increment: process;
}

.brand .process-list li { background: rgba(255, 255, 255, .72); }

.process-list li::before {
  content: counter(process);
  position: absolute;
  left: 12px;
  top: 12px;
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  background: var(--cobalt);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
}

.process-list b { display: block; color: var(--navy); font-size: 14px; }
.process-list span { display: block; margin-top: 3px; font-size: 12px; color: #485564; }

.body-copy { font-size: clamp(14px, 1.2vw, 15px); color: #3e4c5d; }
.deep .body-copy { color: #cddeef; }

.media-callout {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 22px;
  padding: 11px 15px;
  background: var(--navy);
  color: #fff;
  font-size: 12px;
}

.media-callout strong {
  flex: 0 0 auto;
  text-transform: uppercase;
  font-size: 10px;
  letter-spacing: .08em;
  color: #c6dcf0;
}

.video-callout { background: var(--cobalt); }

.location-strip {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 18px;
  padding: 12px 16px;
  background: var(--navy);
  color: #fff;
  font-size: 13px;
}

.location-strip b {
  color: #c6dcf0;
  text-transform: uppercase;
  font-size: 10px;
  letter-spacing: .08em;
}

.media-stack { display: grid; gap: 13px; }

.media-stack .img-placeholder {
  aspect-ratio: 16 / 9;
  border: 0;
  border-top: 24px solid var(--navy);
}

/* ---------------------------------------------------------------------------
   14. Aliados y contacto
   --------------------------------------------------------------------------- */
.logo-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(132px, 1fr));
  gap: 10px;
  margin-top: clamp(24px, 3vh, 38px);
}

.logo-strip .img-placeholder { aspect-ratio: 16 / 9; background: #fff; }

.slide-contact { text-align: center; }

.slide-contact .slide-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.contact-logo {
  width: auto;
  height: clamp(48px, 5vw, 66px);
  max-width: 100%;
  margin-bottom: 10px;
  filter: brightness(0) invert(1);
}

.slide-contact h2 { max-width: 670px; }
.slide-contact .lede { margin: 15px auto 0; }

.contact-intent {
  margin-top: 18px;
  padding: 9px 16px;
  background: rgba(255, 255, 255, .14);
  border-left: 3px solid var(--cobalt-bright);
  font-size: 13px;
  font-weight: 700;
  color: #e4eefa;
}

.contact-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 26px;
}

.contact-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 18px;
  margin-top: clamp(24px, 4vh, 42px);
  padding-top: 18px;
  border-top: 3px solid var(--navy);
  font-size: 11px;
  color: #455265;
}

/* ---------------------------------------------------------------------------
   15. Responsive
   --------------------------------------------------------------------------- */

/* 15.1 Tablet horizontal */
@media (max-width: 1080px) {
  .line-visual > .img-placeholder,
  .brand-visual { max-height: 260px; }

  .about-visual.img-placeholder { max-height: 420px; }
}

/* 15.1b En tablet auto-fit dejaba los 4 paneles en 3+1. 2x2 queda equilibrado. */
@media (min-width: 561px) and (max-width: 860px) {
  .detail-grid.four-cols { grid-template-columns: repeat(2, 1fr); }
}

/* 15.2 Tablet vertical — las rejillas de dos columnas pasan a una */
@media (max-width: 900px) {
  .slide {
    /* El chrome fijo necesita más aire cuando el contenido se apila. */
    padding: 104px var(--pad-x) 92px;
  }

  .slide-cover .cover-grid,
  .about-grid,
  .line-slide .line-grid,
  .detail-split { grid-template-columns: 1fr; }

  .about-visual.img-placeholder {
    aspect-ratio: 16 / 10;
    max-height: 320px;
    border-radius: 0 32% 32% 0;
  }

  /* Sin order:-1. Antes el sello de marca iba primero y la primera pantalla
     del móvil era un óvalo gigante en lugar del titular y los CTA. */
  .cover-brand-mark { height: min(34vh, 300px); }
  .cover-brand-mark img { max-width: 190px; }

  .chrome-logo,
  .chrome-counter { left: 20px; }

  /* El punto decorativo del borde izquierdo estorbaba al apilarse todo. */
  .slide::after { display: none; }

  /* Los puntos se ocultan: en táctil no hay hover para leer sus etiquetas. */
  .chrome-dots { display: none; }

  /* Sin snap, las diapositivas superan la pantalla y el chrome fijo queda
     sobre el contenido. Un fondo propio evita que se vuelva ilegible. */
  .chrome-counter {
    padding: 5px 10px;
    border-radius: 999px;
    background: var(--chrome-surface);
    backdrop-filter: blur(6px);
  }

  body:not(.on-dark) .chrome-counter { box-shadow: 0 0 0 1px var(--line); }
}

/* 15.3 Móvil */
@media (max-width: 560px) {
  .slide { padding: 96px 20px 88px; }

  .slide::before { width: 80px; height: 80px; top: -46px; right: -30px; }
  .slide.brand::before,
  .slide.deep::before {
    border-top-width: 52px;
    border-bottom-width: 52px;
    border-left-width: 52px;
  }

  /* Dos botones por fila. La base va por debajo del 50% a propósito: con
     calc(50% - 5px) la suma daba exactamente el ancho disponible y el
     redondeo subpíxel provocaba un salto de línea, dejando un botón por fila. */
  .hero-actions { gap: 10px; }
  .hero-actions .btn { flex: 1 1 138px; padding: 11px 12px; font-size: 13px; }

  /* El triángulo de marca asomaba tras el contenido apilado. */
  .slide.brand::before,
  .slide.deep::before { display: none; }

  .cover-brand-mark { border-width: 10px; box-shadow: 12px 12px 0 rgba(91, 138, 214, .45); }
  .company-card { min-height: 150px; }
  .company-card img { height: 76px; }
  .menu-tile { min-height: 0; }
  .contact-meta { gap: 10px; }

  .media-callout,
  .location-strip { align-items: flex-start; flex-direction: column; gap: 4px; }

  .chrome-arrows { right: 12px; bottom: 12px; }
  .chrome-counter { bottom: 18px; font-size: 11px; }
  .chrome-logo-image { width: 36px; height: 28px; }
}

/* 15.4 Sin snap cuando el contenido puede exceder la pantalla.
   El snap obligatorio con diapositivas más altas que el viewport hacía que el
   scroll peleara con el gesto y se saltara contenido. */
@media (max-width: 900px), (max-height: 640px) {
  .deck { scroll-snap-type: none; }
  .slide { scroll-snap-stop: normal; }
}

/* 15.5 Móvil horizontal y pantallas bajas */
@media (max-height: 640px) and (orientation: landscape) {
  .slide {
    min-height: 0;
    padding: 84px var(--pad-x) 72px;
  }

  .cover-brand-mark { min-height: 220px; }
  .about-visual.img-placeholder { max-height: 260px; }
  .line-visual > .img-placeholder,
  .brand-visual { max-height: 200px; }
  .chrome-dots { display: none; }
}

/* ---------------------------------------------------------------------------
   16. Preferencias del usuario e impresión
   --------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *,
  .deck {
    scroll-behavior: auto !important;
    transition: none !important;
    animation: none !important;
  }

  .btn:hover,
  .menu-tile:hover { transform: none; }
}

@media (prefers-contrast: more) {
  .img-placeholder { border-color: var(--navy); }
  .company-card,
  .info-panel,
  .menu-tile { border-color: var(--navy); }
}

@media print {
  body { overflow: visible; }

  .deck {
    height: auto;
    overflow: visible;
    scroll-snap-type: none;
  }

  .slide {
    min-height: 0;
    padding: 24px;
    page-break-after: always;
    break-after: page;
    background: #fff !important;
    color: #000 !important;
  }

  .slide::before,
  .slide::after { display: none; }

  .chrome-logo,
  .chrome-counter,
  .chrome-dots,
  .chrome-arrows,
  .skip-link { display: none !important; }

  .slide.deep .cover-logo,
  .slide.deep .line-logo,
  .contact-logo { filter: none; }
}
