/* ============================================================
   CADENTA · Hoja de estilos de la página «Central de taxis»
   (centrales-taxi.html · ca/centrals-taxi.html · en/taxi-dispatch.html ·
    it/centrali-taxi.html)

   Misma paleta, tipografías, barra y tarjetas que index.html, sin el fondo
   3D (aquí el protagonista es el vídeo). Cada idioma es un HTML propio con
   los textos ya escritos; el selector de idioma enlaza a su equivalente.
   ============================================================ */

:root {
  --ink:        #010B14;   /* Tinta / fondo de página */
  --ink-2:      #011627;   /* Fondo principal */
  --deep:       #032B4D;   /* Azul profundo · superficies/tarjetas */
  --accent:     #2A7FD1;   /* Azul acento · CTA / enlaces */
  --white:      #FFFFFF;   /* Texto sobre oscuro */
  --slate:      #8CA3B8;   /* Gris pizarra · texto secundario */
  --hairline:   rgba(137,166,190,0.16);
  --soft:       #8FC1F0;   /* azul claro para etiquetas mono */

  --font-title: 'Space Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono:  'IBM Plex Mono', ui-monospace, monospace;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--ink);
  color: var(--white);
  font-family: var(--font-title);
  -webkit-font-smoothing: antialiased;
}
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* Resplandor estático de marca (como en las páginas legales) */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(120vw 70vh at 50% -18vh, rgba(42,127,209,0.20), transparent 62%),
    radial-gradient(80vw 50vh at 88% 8vh, rgba(3,43,77,0.55), transparent 60%);
}

/* ---- Barra de navegación (la de la home) ---- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 18px clamp(20px, 5vw, 56px);
  background: rgba(1, 11, 20, 0.72);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--hairline);
}
.nav .brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.nav .brand svg { width: 30px; height: auto; display: block; }
.nav .wordmark {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 18px;
  letter-spacing: 1px;
  color: var(--white);
}
.nav .links { display: flex; gap: 18px; align-items: center; }

.btn {
  font-family: var(--font-title);
  font-size: 14px; font-weight: 500;
  padding: 10px 20px; border-radius: 10px;
  border: 1px solid transparent; cursor: pointer;
  text-decoration: none; display: inline-block;
  transition: transform .15s, background .2s, border-color .2s;
}
.btn-primary { background: var(--accent); color: var(--white); }
.btn-primary:hover { transform: translateY(-1px); background: #3a8fe0; }
.btn:focus-visible { outline: 2px solid var(--white); outline-offset: 3px; }

/* Selector de idioma: la pastilla de la home. Aquí cada idioma es un enlace
   a la misma página en ese idioma (hay pocos enlaces en la barra, así que
   cabe entera también en móvil y no hace falta desplegable). */
.lang-switch {
  display: inline-flex; align-items: center; gap: 2px;
  padding: 3px; border: 1px solid var(--hairline); border-radius: 10px;
  flex: none;
}
.lang-switch a {
  font-family: var(--font-mono); font-size: 11px; font-weight: 500;
  letter-spacing: .5px; text-transform: uppercase; text-decoration: none;
  color: var(--slate); padding: 5px 8px; border-radius: 7px;
  transition: color .2s, background .2s;
}
.lang-switch a:hover { color: var(--white); }
.lang-switch a[aria-current="page"] { color: var(--white); background: var(--accent); }

@media (max-width: 880px) {
  .nav { padding: 12px 16px; gap: 10px; }
  .nav .brand { gap: 8px; }
  .nav .brand svg { width: 26px; }
  .nav .wordmark { font-size: 15px; letter-spacing: .5px; }
  .nav .links { gap: 10px; }
  .nav .links .btn { font-size: 12.5px; padding: 9px 12px; white-space: nowrap; }
}
@media (max-width: 420px) {
  .nav .wordmark { display: none; }
  .lang-switch a { padding: 5px 6px; }
}

/* ---- Maqueta ---- */
main { position: relative; z-index: 1; }
.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 clamp(16px, 6vw, 64px); }

section { padding: clamp(48px, 10vh, 120px) 0; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 14px;
  font-family: var(--font-mono); font-size: 12px; font-weight: 600;
  letter-spacing: 4px; text-transform: uppercase;
  color: var(--soft); margin: 0 0 22px;
}
.eyebrow::before { content: ""; width: 42px; height: 1px; background: var(--accent); opacity: .6; }

h1 {
  font-size: clamp(2.4rem, 6.4vw, 5rem);
  font-weight: 500; line-height: 1.02; letter-spacing: -0.03em;
  margin: 0 0 1.2rem; max-width: 18ch;
}
h2 {
  font-size: clamp(2rem, 5vw, 3.4rem);
  font-weight: 500; line-height: 1.08; letter-spacing: -0.02em; margin: 0 0 1.2rem;
}
p { font-size: clamp(1rem, 1.5vw, 1.2rem); line-height: 1.75; color: var(--slate); margin: 0; }
.lead { font-size: clamp(1.1rem, 1.7vw, 1.35rem); max-width: 46ch; }

/* ---- Cabecera con el vídeo ---- */
.hero { padding-top: clamp(104px, 16vh, 168px); padding-bottom: clamp(24px, 6vh, 72px); }
.hero .lead { margin-bottom: clamp(28px, 5vh, 48px); color: #C3D2E0; }

.video {
  position: relative; width: 100%;
  aspect-ratio: 16 / 9; border-radius: 18px; overflow: hidden;
  background: var(--ink-2);
  border: 1px solid rgba(42,127,209,0.5);
  box-shadow: 0 0 0 1px rgba(42,127,209,0.14), 0 30px 90px rgba(1,11,20,0.7), 0 0 60px rgba(42,127,209,0.22);
}
.video video { display: block; width: 100%; height: 100%; object-fit: cover; }

/* Botón discreto «Activar sonido», encima del vídeo (arriba a la derecha) */
.video__sound {
  position: absolute; top: clamp(10px, 2vw, 18px); right: clamp(10px, 2vw, 18px); z-index: 2;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 13px; border-radius: 999px; cursor: pointer;
  font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 1px; text-transform: uppercase;
  color: var(--white); background: rgba(1,11,20,0.72);
  border: 1px solid rgba(137,166,190,0.35);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  transition: border-color .2s, background .2s;
}
.video__sound:hover { border-color: var(--accent); background: rgba(1,11,20,0.86); }
.video__sound:focus-visible, .video__play:focus-visible { outline: 2px solid var(--white); outline-offset: 3px; }
.video__sound svg { width: 15px; height: 15px; flex: none; }
@media (max-width: 520px) {
  .video__sound { padding: 6px 10px; gap: 6px; font-size: 10px; letter-spacing: .6px; }
  .video__sound svg { width: 13px; height: 13px; }
}

/* Botón de play (solo con «reducir movimiento»: el vídeo no arranca solo) */
.video__play {
  position: absolute; inset: 0; margin: auto; z-index: 2;
  width: clamp(64px, 9vw, 92px); height: clamp(64px, 9vw, 92px); border-radius: 50%;
  display: flex; align-items: center; justify-content: center; cursor: pointer;
  background: rgba(42,127,209,0.92); color: var(--white); border: 0;
  box-shadow: 0 10px 40px rgba(1,11,20,0.6), 0 0 40px rgba(42,127,209,0.45);
}
.video__play svg { width: 34%; height: 34%; margin-left: 6%; }
.video__sound[hidden], .video__play[hidden] { display: none; }

/* ---- Pruébalo tú: el número, grande ---- */
.try .phone {
  display: inline-block; margin: .4rem 0 1.4rem;
  font-family: var(--font-mono); font-weight: 600;
  font-size: clamp(1.9rem, 6vw, 3.6rem); letter-spacing: -0.01em;
  color: var(--white); text-decoration: none; white-space: nowrap;
  border-bottom: 2px solid var(--accent);
  transition: color .2s;
}
.try .phone:hover { color: var(--soft); }
.try .phone:focus-visible { outline: 2px solid var(--white); outline-offset: 6px; border-radius: 4px; }

/* ---- Tarjetas (las de la home) ---- */
.grid { display: grid; gap: 22px; margin-top: 2.4rem; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 960px) { .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid-3 { grid-template-columns: 1fr; } }

.card {
  background: rgba(3, 43, 77, 0.38);
  border: 1px solid var(--hairline); border-radius: 18px;
  padding: clamp(24px, 3vw, 34px);
  transition: border-color .2s ease, background .2s ease;
}
.card:hover { border-color: rgba(42,127,209,0.5); background: rgba(3,43,77,0.5); }
.card h3 { font-size: 1.2rem; font-weight: 600; margin: 0 0 10px; color: var(--white); }
.card p { font-size: 1rem; line-height: 1.65; }
.card .num { font-family: var(--font-mono); font-size: 13px; color: var(--accent); margin-bottom: 16px; }

/* ---- Y dirás…: pregunta / respuesta ---- */
.faq { list-style: none; margin: 2.4rem 0 0; padding: 0; max-width: 46rem; }
.faq li { padding: 22px 0; border-top: 1px solid var(--hairline); }
.faq li:last-child { border-bottom: 1px solid var(--hairline); }
.faq h3 { font-size: clamp(1.1rem, 1.7vw, 1.35rem); font-weight: 600; margin: 0 0 8px; color: var(--white); }

/* ---- Cierre ---- */
.closing h2 { max-width: 22ch; }
.closing .btn { margin-top: 1.2rem; font-size: 15px; padding: 13px 24px; }

/* ---- Pie (el de la home) ---- */
footer {
  position: relative; z-index: 1;
  border-top: 1px solid var(--hairline);
  padding: 44px 0 56px; color: var(--slate); font-size: 13px;
}
footer .container { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px; align-items: center; }
footer .wordmark { font-family: var(--font-mono); color: var(--white); letter-spacing: 1px; }
.footer-legal { display: flex; flex-wrap: wrap; gap: 18px; align-items: center; }
.footer-legal a { color: var(--slate); font-size: 13px; text-decoration: none; transition: color .2s; }
.footer-legal a:hover { color: var(--white); }

/* La presentación: un botón al PDF, debajo del texto */
.deck .btn { margin-top: 1.4rem; font-size: 15px; padding: 13px 24px; }
