/* ============================================================
   TURISERVICE SAS — Sistema de diseño
   Motivos de marca: línea amarilla de carretera, avión, azul marino
   ============================================================ */

/* ---------- Fuentes autohospedadas (Sora + Manrope) ----------
   Woff2 VARIABLES: un archivo por familia/subset cubre los pesos 400-800.
   Mismos archivos que usa el CRM (assets/lib/fonts). Sin Google Fonts:
   se elimina la cadena @import → css2 → woff2 y la dependencia externa. */
@font-face {
  font-family: 'Sora'; font-style: normal; font-weight: 400 800; font-display: swap;
  src: url(fonts/sora-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Sora'; font-style: normal; font-weight: 400 800; font-display: swap;
  src: url(fonts/sora-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Manrope'; font-style: normal; font-weight: 400 800; font-display: swap;
  src: url(fonts/manrope-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Manrope'; font-style: normal; font-weight: 400 800; font-display: swap;
  src: url(fonts/manrope-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  /* Marca — derivados del logo */
  --navy-950: #07142E;
  --navy-900: #0B1A38;
  --navy-800: #0F2350;
  --navy-700: #16306B;
  --blue-600: #1E47A0;
  --blue-500: #2E5BB8;
  --blue-300: #7FA0DC;

  --yellow: #FFD11A;
  --yellow-600: #E6B400;
  --yellow-soft: #FFE89A;

  --asphalt: #5A6472;
  --ink: #0D1626;
  --slate: #56617A;
  --slate-light: #8A93A8;

  --paper: #FFFFFF;
  --mist: #F5F7FB;
  --mist-2: #EDF1F8;
  --line: #E2E7F1;
  --line-strong: #CDD5E4;

  /* Tipografía */
  --font-display: 'Sora', system-ui, sans-serif;
  --font-body: 'Manrope', system-ui, sans-serif;

  /* Espaciado / radios */
  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;
  --radius-xl: 30px;

  --shadow-sm: 0 1px 2px rgba(11,26,56,.06), 0 1px 3px rgba(11,26,56,.05);
  --shadow: 0 6px 24px -8px rgba(11,26,56,.18);
  --shadow-lg: 0 24px 60px -20px rgba(11,26,56,.35);

  --container: 1200px;
  --ease: cubic-bezier(.2,.7,.2,1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
ul { list-style: none; padding: 0; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 700; line-height: 1.08; letter-spacing: -0.02em; }

/* ---------- Layout helpers ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 24px; }
.section { padding-block: clamp(64px, 9vw, 120px); position: relative; }
.section--tight { padding-block: clamp(48px, 6vw, 80px); }
.center { text-align: center; }
.muted { color: var(--slate); }

.eyebrow {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: .82rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--blue-600);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: "";
  width: 26px; height: 3px; border-radius: 2px;
  background: repeating-linear-gradient(90deg, var(--yellow) 0 8px, transparent 8px 13px);
}
.eyebrow--light { color: var(--yellow); }

h2.section-title { font-size: clamp(1.9rem, 4vw, 3rem); margin-top: 16px; }
.section-lead { font-size: clamp(1.05rem, 1.6vw, 1.22rem); color: var(--slate); max-width: 62ch; margin-top: 18px; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--font-display);
  font-weight: 600; font-size: .98rem; letter-spacing: -0.01em;
  padding: 14px 26px; border-radius: 999px;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .2s, color .2s;
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; }
.btn--primary { background: var(--yellow); color: var(--navy-900); box-shadow: 0 8px 22px -8px rgba(255,209,26,.7); }
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 14px 30px -10px rgba(255,209,26,.85); }
.btn--navy { background: var(--navy-800); color: #fff; }
.btn--navy:hover { transform: translateY(-2px); background: var(--navy-700); box-shadow: var(--shadow); }
.btn--ghost { background: rgba(255,255,255,.08); color: #fff; border: 1px solid rgba(255,255,255,.28); backdrop-filter: blur(6px); }
.btn--ghost:hover { background: rgba(255,255,255,.16); transform: translateY(-2px); }
.btn--outline { border: 1.5px solid var(--line-strong); color: var(--navy-800); background: #fff; }
.btn--outline:hover { border-color: var(--navy-700); transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.btn--wa { background: #25D366; color: #fff; }
.btn--wa:hover { transform: translateY(-2px); box-shadow: 0 12px 26px -10px rgba(37,211,102,.7); }
.btn--lg { padding: 17px 32px; font-size: 1.05rem; }
.btn--block { width: 100%; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 200;
  background: rgba(7,20,46,.86);
  backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid rgba(127,160,220,.16);
  transition: background .3s;
}
.nav {
  display: flex; align-items: center; gap: 28px;
  height: 76px;
}
.brand { display: flex; align-items: center; gap: 13px; margin-right: auto; }
.brand__mark {
  width: 46px; height: 46px; border-radius: 11px; overflow: hidden;
  background: #fff; box-shadow: 0 4px 14px -4px rgba(0,0,0,.4);
  flex: none;
}
.brand__mark img { width: 100%; height: 100%; object-fit: cover; }
.brand__text { display: flex; flex-direction: column; line-height: 1.05; }
.brand__name { font-family: var(--font-display); font-weight: 800; color: #fff; font-size: 1.18rem; letter-spacing: .02em; }
.brand__tag { font-size: .68rem; color: var(--yellow); font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }

.nav__links { display: flex; align-items: center; gap: 4px; }
.nav__links a {
  color: #D6DEEE; font-weight: 600; font-size: .95rem; padding: 9px 14px; border-radius: 999px;
  transition: color .2s, background .2s; position: relative; white-space: nowrap;
}
.nav__links a:hover { color: #fff; background: rgba(127,160,220,.14); }
.nav__links a.is-active { color: var(--navy-950); background: var(--yellow); }

.nav__actions { display: flex; align-items: center; gap: 12px; }
.lang-toggle {
  display: inline-flex; border: 1px solid rgba(127,160,220,.32); border-radius: 999px; overflow: hidden;
}
/* En el sitio principal son enlaces a la otra versión (/en/); en /legal/ siguen siendo botones */
.lang-toggle button, .lang-toggle a, .lang-toggle span {
  padding: 6px 11px; font-size: .8rem; font-weight: 700; color: #9FB0CE;
  display: inline-block; line-height: 1.35; text-decoration: none; cursor: pointer;
}
.lang-toggle span { cursor: default; }
.lang-toggle button.is-active, .lang-toggle a.is-active, .lang-toggle span.is-active {
  background: var(--yellow); color: var(--navy-950);
}
.lang-toggle a:hover { color: #fff; }
/* Dentro del menú móvil, el enlace del conmutador NO debe heredar el estilo de
   los enlaces del menú (fuente grande, borde inferior): quedaría descuadrado
   frente al <span> del idioma activo. */
.mobile-menu .lang-toggle a, .mobile-menu .lang-toggle span, .mobile-menu .lang-toggle button {
  font-family: inherit; font-size: .8rem; font-weight: 700; padding: 6px 11px;
  border-bottom: 0; color: #9FB0CE;
}
.mobile-menu .lang-toggle a.is-active, .mobile-menu .lang-toggle span.is-active,
.mobile-menu .lang-toggle button.is-active { color: var(--navy-950); }

.nav__toggle { display: none; width: 44px; height: 44px; border-radius: 11px; background: rgba(127,160,220,.14); color: #fff; align-items: center; justify-content: center; }
.nav__toggle svg { width: 24px; height: 24px; }

/* Mobile drawer */
.mobile-menu {
  position: fixed; inset: 76px 0 0 0; z-index: 190;
  background: var(--navy-950);
  transform: translateX(100%); transition: transform .35s var(--ease);
  padding: 28px 24px; overflow-y: auto;
  display: flex; flex-direction: column; gap: 6px;
}
.mobile-menu.is-open { transform: translateX(0); }
.mobile-menu a { color: #E4EBF7; font-family: var(--font-display); font-weight: 600; font-size: 1.25rem; padding: 14px 6px; border-bottom: 1px solid rgba(127,160,220,.14); }
.mobile-menu a.is-active { color: var(--yellow); }
.mobile-menu .btn { margin-top: 18px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-950); color: #C5CFE2; padding-top: 72px; }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 56px; }
.footer-brand .brand__name { font-size: 1.3rem; }
.footer-about { margin-top: 18px; max-width: 36ch; color: #94A2C0; font-size: .95rem; }
.footer-social { display: flex; gap: 12px; margin-top: 22px; }
.footer-social a { width: 42px; height: 42px; border-radius: 11px; background: rgba(127,160,220,.12); display: grid; place-items: center; transition: background .2s, transform .2s; }
.footer-social a:hover { background: var(--yellow); color: var(--navy-950); transform: translateY(-2px); }
.footer-social svg { width: 20px; height: 20px; }
.footer-col h4 { color: #fff; font-size: .82rem; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 18px; font-family: var(--font-body); font-weight: 700; }
.footer-col li { margin-bottom: 11px; font-size: .93rem; line-height: 1.5; }
.footer-col a { color: #A9B6D2; font-size: .93rem; transition: color .2s; }
.footer-col a:hover { color: var(--yellow); }
.footer-legal {
  border-top: 1px solid rgba(127,160,220,.16);
  padding: 26px 0; display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between;
  font-size: .86rem; color: #7C8AAB;
}
.footer-legal .badges { display: flex; gap: 18px; flex-wrap: wrap; align-items: center; }

/* ---------- Tarjetas / utilidades ---------- */
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--line-strong); }

.icon-chip { width: 56px; height: 56px; border-radius: 15px; display: grid; place-items: center; background: linear-gradient(135deg, var(--navy-800), var(--blue-500)); color: var(--yellow); flex: none; }
.icon-chip svg { width: 27px; height: 27px; }

/* Placeholder de imagen (estilo profesional con rayas) */
.ph {
  position: relative; overflow: hidden; background: var(--mist-2);
  background-image: repeating-linear-gradient(135deg, rgba(15,35,80,.05) 0 2px, transparent 2px 11px);
  display: grid; place-items: center; color: var(--slate);
  border: 1px dashed var(--line-strong);
}
.ph__label { font-family: 'Courier New', monospace; font-size: .82rem; letter-spacing: .02em; color: var(--slate); background: rgba(255,255,255,.78); padding: 6px 12px; border-radius: 6px; display: inline-flex; gap: 7px; align-items: center; text-align: center; }
.ph__label svg { width: 16px; height: 16px; opacity: .6; }

/* Línea de carretera decorativa */
.road-line { height: 4px; width: 100%; background: repeating-linear-gradient(90deg, var(--yellow) 0 26px, transparent 26px 44px); border-radius: 2px; }

/* Estrellas */
.stars { display: inline-flex; gap: 2px; color: var(--yellow); }
.stars svg { width: 18px; height: 18px; }
/* Se encienden una a una cuando la reseña entra en pantalla (site.js pone .is-in) */
.stars[data-animar] svg { opacity: 0; transform: scale(.4); }
.stars[data-animar].is-in svg { animation: ts-estrella .5s var(--ease) forwards; }
.stars[data-animar].is-in svg:nth-child(1) { animation-delay: .00s; }
.stars[data-animar].is-in svg:nth-child(2) { animation-delay: .09s; }
.stars[data-animar].is-in svg:nth-child(3) { animation-delay: .18s; }
.stars[data-animar].is-in svg:nth-child(4) { animation-delay: .27s; }
.stars[data-animar].is-in svg:nth-child(5) { animation-delay: .36s; }
@keyframes ts-estrella {
  0%   { opacity: 0; transform: scale(.4) rotate(-18deg); }
  70%  { opacity: 1; transform: scale(1.18) rotate(4deg); }
  100% { opacity: 1; transform: scale(1) rotate(0); }
}

/* Cifras que cuentan (site.js): ancho estable para que no bailen */
[data-contador] { font-variant-numeric: tabular-nums; }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .08s; }
.reveal[data-delay="2"] { transition-delay: .16s; }
.reveal[data-delay="3"] { transition-delay: .24s; }
.reveal[data-delay="4"] { transition-delay: .32s; }

/* i18n */
[data-en] { }
html[lang="en"] [data-es-only] { display: none !important; }
html[lang="es"] [data-en-only] { display: none !important; }

/* WhatsApp flotante */
.wa-float {
  position: fixed; right: 22px; bottom: 22px; z-index: 150;
  width: 60px; height: 60px; border-radius: 50%; background: #25D366; color: #fff;
  display: grid; place-items: center; box-shadow: 0 12px 30px -8px rgba(37,211,102,.6);
  transition: transform .25s var(--ease);
}
.wa-float:hover { transform: scale(1.08); }
.wa-float svg { width: 32px; height: 32px; }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .footer-top { grid-template-columns: 1fr 1fr; gap: 36px; }
}
@media (max-width: 1024px) {
  .nav__links, .nav__actions .lang-toggle, .nav__actions .btn { display: none; }
  .nav__toggle { display: inline-flex; }
  .nav__actions { gap: 8px; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .footer-top { grid-template-columns: 1fr; gap: 30px; }
  .footer-legal { flex-direction: column; align-items: flex-start; }
  .container { padding-inline: 18px; }
}
/* ---------- Transiciones entre páginas (View Transitions API) ----------
   Nativo del navegador: no carga ninguna librería. Donde no está soportado
   (Firefox hoy) la navegación se comporta exactamente como antes. */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: ts-vt-salir .18s var(--ease) both; }
::view-transition-new(root) { animation: ts-vt-entrar .28s var(--ease) both; }
@keyframes ts-vt-salir  { to   { opacity: 0; } }
@keyframes ts-vt-entrar { from { opacity: 0; transform: translateY(8px); } }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
  /* Nada de movimiento continuo ni de entrada para quien lo pide.
     Lo del hero y la banda de ciudades se anula en components.css, que carga
     después de este archivo y si no ganaría por orden. */
  .stars[data-animar] svg { opacity: 1; transform: none; animation: none; }
  ::view-transition-old(root), ::view-transition-new(root) { animation: none !important; }
}
