/* ══════════════════════════════════════════════════════════════════
   TAXIS GAVÀ · base.css — capa de reskin «Nocturno 4:15»
   Se carga DESPUÉS del CSS de cada página interior: redefine los
   tokens y los componentes compartidos sin tocar los layouts propios.
   (index.html no la necesita: css/index.css ya es la versión nueva.)
   ══════════════════════════════════════════════════════════════════ */
:root {
  --color-primary:              #17140E;
  --color-primary-dark:         #0E0C08;
  --color-primary-light:        #252017;
  --color-accent:               #E8B931;
  --color-accent-dark:          #C0961F;
  --color-accent-dark-rgb:      192, 150, 31;
  --color-accent-light:         #F5D76E;
  --color-bg:                   #F5F2E9;
  --color-bg-alt:               #ECE7D9;
  --color-surface:              #FFFDF6;
  --color-border:               #DDD6C3;
  --color-border-dark:          rgba(255, 244, 214, 0.09);
  --color-text-primary:         #201C12;
  --color-text-secondary:       #55503F;
  --color-text-muted:           #6B664A;--color-accent-text:#855A00;--color-accent-text-hover:#6A4800;
  --color-text-on-dark:         #F5F2E9;
  --color-text-on-dark-secondary: #B5AD95;
  --color-focus-ring:           rgba(232, 185, 49, 0.40);
  --font-display:               'Barlow Semi Condensed', 'Inter Tight', sans-serif;
  --font-body:                  'DM Sans', sans-serif;
  --font-mono:                  'IBM Plex Mono', 'Courier New', monospace;
  --text-display:               clamp(3.2rem, 6.5vw + 1rem, 5.75rem);
  --text-display-lh:            0.96;
  --text-display-ls:            0.005em;
  --text-display-fw:            700;
  --text-h1:                    clamp(2.6rem, 4.5vw + 0.75rem, 4.25rem);
  --text-h1-lh:                 1.00;
  --text-h1-ls:                 0.005em;
  --text-h1-fw:                 700;
  --text-h2:                    clamp(2.1rem, 3.4vw + 0.5rem, 3.4rem);
  --text-h2-lh:                 1.02;
  --text-h2-ls:                 0.005em;
  --text-h2-fw:                 700;
  --text-h3:                    clamp(1.35rem, 2vw + 0.25rem, 1.85rem);
  --text-h3-lh:                 1.12;
  --text-h3-ls:                 0.005em;
  --text-h4:                    clamp(1.05rem, 1.5vw + 0.25rem, 1.3rem);
  --text-h4-lh:                 1.22;
  --text-h4-ls:                 0.01em;
  --text-overline:              0.72rem;
  --text-overline-fw:           500;
  --text-overline-ls:           0.16em;
  --radius-md:                  10px;
  --radius-lg:                  16px;
  --shadow-sm:                  0 1px 3px rgba(32,24,6,.07), 0 1px 2px rgba(32,24,6,.05);
  --shadow-md:                  0 4px 14px rgba(32,24,6,.09), 0 2px 4px rgba(32,24,6,.05);
  --shadow-lg:                  0 16px 40px rgba(32,24,6,.14), 0 4px 10px rgba(32,24,6,.06);
  --shadow-card-hover:          0 20px 48px rgba(32,24,6,.16), 0 8px 14px rgba(32,24,6,.07);
  --shadow-accent-glow:         0 4px 24px rgba(232,185,49,.28), 0 2px 8px rgba(232,185,49,.16);
  --ease-spring:                cubic-bezier(0.34, 1.45, 0.44, 1);
}

/* Grano fotográfico global */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 600;
  pointer-events: none;
  opacity: .05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.82' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 240px 240px;
}

/* Números de taxímetro */
.num { font-family: var(--font-mono); font-weight: 600; letter-spacing: -.02em; font-variant-numeric: tabular-nums; text-transform: none; }

/* Corrección global: respetar el atributo hidden (los estados de formulario lo usan) */
[hidden] { display: none !important; }

/* Titulares tipo señalización */
h1, h2, .section__title { text-transform: uppercase; text-wrap: balance; }
::selection { background-color: rgba(232,185,49,.28); color: var(--color-text-primary); }

/* Overline → etiqueta de despacho en mono */
.overline { font-family: var(--font-mono); font-size: var(--text-overline); font-weight: var(--text-overline-fw); letter-spacing: var(--text-overline-ls); text-transform: uppercase; }
.overline::before { content: '◆ '; font-size: .55em; vertical-align: 2px; }
.overline--accent { color: var(--color-accent-dark); }
.section--dark .overline--accent, .section--dark-sub .overline--accent, .section--dark-deep .overline--accent, .section--hero .overline--accent, [class*="hero"] .overline--accent { color: var(--color-accent); }

/* ── Marca «//▸» · acompaña numeraciones (01, 02…) y listas de destinos ──
   Dos trazos inclinados + punta centrada, solo CSS. Siempre con aria-hidden="true".
   Definida igual en base.css e index.css (la home no carga base.css): mantener sincronizadas. */
.go-mark { position: relative; display: inline-block; flex-shrink: 0; width: 23px; height: 11px; color: var(--color-accent); transition: transform var(--duration-base) var(--ease-smooth), color var(--duration-base) var(--ease-smooth); }
.go-mark::before { content: ""; position: absolute; left: 1px; top: 0; width: 12px; height: 100%; transform: skewX(-24deg);
  background: linear-gradient(currentColor, currentColor) 0 0 / 4px 100% no-repeat, linear-gradient(currentColor, currentColor) 7px 0 / 4px 100% no-repeat; }
.go-mark::after { content: ""; position: absolute; left: 15px; top: 1.5px; width: 8px; height: 8px; background: currentColor; clip-path: polygon(0 0, 100% 50%, 0 100%); }
:is(.section--light, .section--light-alt) .go-mark { color: var(--color-accent-text); }
:is(.section--light, .section--light-alt) :is(.section--dark, .card--featured) .go-mark { color: var(--color-accent); }
a:hover > .go-mark, a:focus-visible > .go-mark { transform: translateX(3px); }
@media (prefers-reduced-motion: reduce) { .go-mark { transition: none; } a:hover > .go-mark, a:focus-visible > .go-mark { transform: none; } }

/* Botones — mayúsculas condensadas + dorado con volumen */
.btn { font-family: var(--font-display); font-size: 1.05rem; font-weight: 600; letter-spacing: .035em; text-transform: uppercase; border-radius: var(--radius-md); border-width: 1.5px; }
.btn--primary { background-image: linear-gradient(180deg, #F0C64B 0%, var(--color-accent) 55%, #DCA92A 100%); background-color: var(--color-accent); color: var(--color-primary-dark); border-color: rgba(120,89,10,.35); box-shadow: inset 0 1px 0 rgba(255,255,255,.4), 0 2px 6px rgba(32,24,6,.18); }
@media (hover: hover) and (pointer: fine) { .btn--primary:hover { background-image: linear-gradient(180deg, #F5D06A 0%, #EFC03B 55%, #E0AC28 100%); background-color: var(--color-accent); border-color: rgba(120,89,10,.35); transform: translateY(-2px); box-shadow: inset 0 1px 0 rgba(255,255,255,.4), var(--shadow-accent-glow); } }
.btn--primary:active { transform: translateY(0) scale(.98); }
.btn--sm { font-size: .9rem; }
@media (max-width: 640px) { .btn { font-size: .95rem; } }
@media (prefers-reduced-motion: reduce) { .btn:hover, .btn:active { transform: none; } }

/* Header — vidrio cálido + nav señalizada */
.header.scrolled { background-color: rgba(14,12,8,.92); backdrop-filter: blur(14px) saturate(1.1); -webkit-backdrop-filter: blur(14px) saturate(1.1); box-shadow: 0 1px 0 rgba(232,185,49,.14), 0 6px 28px rgba(0,0,0,.35); }
.header__nav-link { font-family: var(--font-display); font-size: .92rem; font-weight: 500; letter-spacing: .07em; text-transform: uppercase; color: var(--color-text-on-dark-secondary); text-decoration: none; position: relative; padding-bottom: 4px; transition: color var(--duration-base) var(--ease-smooth);  white-space: nowrap;}
.header__nav-link::after { content: ''; position: absolute; bottom: 0; left: 0; width: 100%; height: 2px; background: var(--color-accent); transform: scaleX(0); transform-origin: right; transition: transform var(--duration-base) var(--ease-smooth); }

/* Legibilidad del nav sobre hero con imagen — solo cuando el header es transparente (no scrolled).
   Al hacer scroll el header pasa a .scrolled con fondo opaco, y estas sombras dejan de aplicarse. */
.header:not(.scrolled) .header__nav-link { text-shadow: 0 1px 2px rgba(0,0,0,0.55), 0 0 12px rgba(0,0,0,0.30); }
.header:not(.scrolled) .header__logo-img { filter: drop-shadow(0 1px 3px rgba(0,0,0,0.5)); }
.header:not(.scrolled) .header__cta { box-shadow: 0 2px 8px rgba(0,0,0,0.35); }
.mobile-menu { border-top: 1px solid rgba(232,185,49,.12); }
.mobile-menu__link { font-family: var(--font-display); font-size: 1.25rem; letter-spacing: .04em; text-transform: uppercase; }

/* Etiquetas de formulario en mono (solo tipografía, no colores) */
.form__label { font-family: var(--font-mono); font-size: .72rem; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; }
.form-divider__text { font-family: var(--font-mono); letter-spacing: .1em; }

/* Acordeones numerados (páginas con FAQ) */
.accordion { counter-reset: faq; }
.accordion__item { counter-increment: faq; }
.accordion__trigger::before { content: counter(faq, decimal-leading-zero); font-family: var(--font-mono); font-size: .78rem; font-weight: 500; color: var(--color-text-muted); flex-shrink: 0; padding-top: .3em; align-self: flex-start; transition: color 300ms ease; }
.accordion__trigger[aria-expanded="true"]::before { color: var(--color-accent-dark); }

/* Teléfonos protagonistas → lectura de taxímetro */
.cta-phone__number { font-family: var(--font-mono); font-weight: 600; letter-spacing: -.03em; font-variant-numeric: tabular-nums; text-shadow: 0 0 34px rgba(232,185,49,.35); }
.cta-phone__label { font-family: var(--font-mono); font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; }
.footer__phone { font-family: var(--font-mono); font-weight: 600; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
@media (hover: hover) and (pointer: fine) { .footer__phone:hover { text-shadow: 0 0 24px rgba(232,185,49,.4); } }

/* Footer — banda de damero + etiquetas mono */
.footer { position: relative; }
.footer::before { content: ''; display: block; height: 14px; background-image: repeating-conic-gradient(var(--color-accent) 0% 25%, transparent 0% 50%); background-size: 14px 14px; opacity: .16; }
.footer__col-title { font-family: var(--font-mono); font-size: .72rem; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; }
.footer__payment-label { font-family: var(--font-mono); font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; }
@media (hover: hover) and (pointer: fine) { .footer__nav-link:hover { color: var(--color-accent); transform: translateX(4px); } }
.footer__nav-link { transition: color 300ms ease, transform 300ms ease; }

/* Badges de confianza — cálidos */
.badge--dark { background-color: rgba(255,244,214,.05); border-color: rgba(255,244,214,.12); }

/* Barra móvil — vidrio nocturno */
@media (max-width: 767px) {
  .mobile-bar { background: rgba(14,12,8,.94); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-top: 1px solid rgba(232,185,49,.18); }
  .mobile-bar__btn--primary { background: linear-gradient(180deg, #F0C64B 0%, var(--color-accent) 60%, #DCA92A 100%); color: var(--color-primary-dark); }
  .mobile-bar__btn strong { letter-spacing: .03em; text-transform: uppercase; }
  .mobile-bar__subtext { font-family: var(--font-mono); font-weight: 500; font-variant-numeric: tabular-nums; }
}

/* Tarjetas — radios y bordes coherentes */
.card { border-radius: var(--radius-lg); }
@media (hover: hover) and (pointer: fine) { .card--service:hover, .zone-card:hover { border-color: rgba(192,150,31,.45); } }

/* Botón secundario legible sobre las secciones oscuras de 404 y gracias */
.error-404 .btn--secondary, .thanks .btn--secondary {
  color: var(--color-text-on-dark);
  border-color: rgba(245,242,233,.30);
}
@media (hover: hover) and (pointer: fine) {
  .error-404 .btn--secondary:hover, .thanks .btn--secondary:hover { background-color: rgba(245,242,233,.07); border-color: var(--color-accent); color: var(--color-accent-light); }
}

/* ══════════════════════════════════════════════════════════════
   BREADCRUMB · migas de pan (fuente unica — antes duplicado x7)
   Registro deliberadamente distinto al overline dorado que va
   debajo: texto en minuscula, tono calido apagado; el dorado solo
   aparece en hover (= senal de enlace, no decoracion).
   ══════════════════════════════════════════════════════════════ */
.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  font-family: var(--font-body);
  font-size: 0.78rem;
  letter-spacing: 0.02em;
  line-height: 1;
  color: #C9C1A9;
  margin-bottom: 1.4rem;
  text-shadow: 0 1px 2px rgba(10, 8, 4, 0.55);
}
.breadcrumb a {
  position: relative;
  display: inline-flex;
  align-items: center;
  color: #9B927A;
  text-decoration: none;
  transition: color var(--duration-base) var(--ease-smooth);
}
.breadcrumb a::before {
  content: "";
  width: 0.95em;
  height: 0.95em;
  margin-right: 0.5em;
  background-color: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 11l9-7 9 7'/%3E%3Cpath d='M5 9.5V20h14V9.5'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 11l9-7 9 7'/%3E%3Cpath d='M5 9.5V20h14V9.5'/%3E%3C/svg%3E") center / contain no-repeat;
}
.breadcrumb a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -3px;
  height: 1px;
  background: var(--color-accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--duration-slow, 0.35s) var(--ease-smooth);
}
.breadcrumb__sep {
  display: inline-flex;
  align-items: center;
  margin: 0 0.6rem;
  font-size: 0;
  color: rgba(181, 173, 149, 0.4);
}
.breadcrumb__sep::before {
  content: "";
  display: inline-block;
  width: 5px;
  height: 5px;
  border-top: 1.3px solid currentColor;
  border-right: 1.3px solid currentColor;
  transform: rotate(45deg);
}
.breadcrumb [aria-current="page"] {
  color: #C9C1A9;
}
@media (hover: hover) and (pointer: fine) {
  .breadcrumb a:hover { color: var(--color-accent); }
  .breadcrumb a:hover::after { transform: scaleX(1); }
}
.breadcrumb a:focus-visible {
  color: var(--color-accent);
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
  border-radius: 2px;
}
.breadcrumb a:focus-visible::after { transform: scaleX(1); }
@media (prefers-reduced-motion: reduce) {
  .breadcrumb a, .breadcrumb a::after { transition: none; }
}

/* Resalte de color corporativo en titulares */
.hl { color: var(--color-accent); }

/* ── Contraste AA (WCAG): el dorado usado como TEXTO sobre fondo claro pasa a bronce ──
   El dorado de marca (--color-accent) se mantiene en fondos, botones, subrayados y en secciones oscuras. */
.overline--accent, .u-link-accent, .credential-item__value, .hero__cta-secondary--on-light, .cob__micro, .cob__micro a,
.use-case__link, .story__year, .service-split__cta, .legal-inline-btn, .avail__number, .avail__phone,
.accordion__content a, .coverage-note a, .zone-row__body a, .accordion__icon,
p a, .legal-content a, .location-nap__text a, .avail__micro a { color: var(--color-accent-text); }
.hero__cta-secondary--on-light { text-decoration-color: rgba(133, 90, 0, .35); }
.u-link-accent:hover, .cob__micro a:hover, .use-case__link:hover, .service-split__cta:hover, .avail__phone:hover,
.hero__cta-secondary--on-light:hover, .legal-inline-btn:hover, .legal-inline-btn:focus-visible,
.accordion__content a:hover, .coverage-note a:hover, .zone-row__body a:hover,
p a:hover, .legal-content a:hover, .location-nap__text a:hover, .avail__micro a:hover { color: var(--color-accent-text-hover); }
:is(.section--dark, .section--dark-sub, .section--dark-deep, .section--hero, [class*="hero"], .footer, .header)
  :is(.overline--accent, .u-link-accent, .credential-item__value, .cob__micro, .cob__micro a, .use-case__link,
      .story__year, .service-split__cta, .legal-inline-btn, .avail__number, .avail__phone,
      .accordion__content a, .coverage-note a, .zone-row__body a, .accordion__icon,
      p a, .legal-content a, .location-nap__text a, .avail__micro a) { color: var(--color-accent); }
:is(.section--dark, .section--dark-sub, .section--dark-deep, .section--hero, [class*="hero"], .footer, .header)
  :is(.u-link-accent, .cob__micro a, .use-case__link, .service-split__cta, .avail__phone, .legal-inline-btn, p a, .accordion__content a):hover { color: var(--color-accent-light); }

/* ── Móvil: cabecera y botones sin desbordamiento ──
   En móvil el botón de llamada de la cabecera es un círculo con el icono (el número completo
   está siempre visible en la barra fija inferior). Los botones largos pueden partir línea. */
@media (max-width: 430px) {
  .header__actions .btn { width: 44px; height: 44px; min-width: 44px; padding: 0; gap: 0; border-radius: 50%; flex-shrink: 0; }
  .header__actions .btn .num { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
}
@media (max-width: 480px) {
  .btn { white-space: normal; text-align: center; }
}
@media (max-width: 768px) {
  /* Las animaciones de entrada lateral pasan a vertical en móvil: así no ensanchan la página */
  html.js .reveal-left:not(.is-visible), html.js .reveal-right:not(.is-visible) { transform: translateY(16px); }
  /* Rejillas de 2 columnas que puedan encoger en pantallas estrechas */
  .credentials-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .credential-item__value { overflow-wrap: anywhere; }
}
/* Red de seguridad: nada puede crear scroll horizontal en la página (no afecta a la cabecera fija) */
html { overflow-x: clip; }

/* ── Barra fija móvil: rediseño (llamar + reservar) ─────────────────────── */
@media (max-width: 767px) {
  body { padding-bottom: calc(76px + env(safe-area-inset-bottom, 0px)); }
  .mobile-bar {
    gap: 10px; padding: 10px 12px calc(10px + env(safe-area-inset-bottom, 0px));
    background: rgba(14, 12, 8, .92); border-top: 1px solid rgba(232, 185, 49, .22);
    box-shadow: 0 -8px 24px rgba(0, 0, 0, .35);
  }
  .mobile-bar__btn {
    min-height: 56px; padding: 0 12px; gap: 10px; border-radius: 14px;
    justify-content: center; align-items: center;
    transition: transform .15s ease, box-shadow .2s ease;
  }
  .mobile-bar__btn:active { opacity: 1; transform: scale(.97); }
  .mobile-bar__text { align-items: center; text-align: center; }
  .mobile-bar__btn strong { font-size: clamp(.9rem, 3.9vw, 1.0625rem); letter-spacing: .04em; line-height: 1.1; }
  .mobile-bar__subtext { display: block; font-size: .8rem; letter-spacing: .02em; line-height: 1.1; margin-top: 2px; }

  /* Llamar: botón protagonista */
  .mobile-bar__btn--primary, .mobile-bar__btn--call {
    flex: 1.55; border: 0;
    background: linear-gradient(180deg, #F3CC55 0%, #E8B931 55%, #D9A528 100%);
    color: var(--color-primary-dark);
    box-shadow: 0 6px 18px rgba(232, 185, 49, .35), inset 0 1px 0 rgba(255, 255, 255, .45);
  }
  .mobile-bar__btn--primary strong, .mobile-bar__btn--call strong { white-space: nowrap; }
  .mobile-bar__btn--primary svg, .mobile-bar__btn--call svg {
    width: 34px; height: 34px; padding: 8px; flex-shrink: 0; border-radius: 50%;
    background: var(--color-primary-dark); color: var(--color-accent);
    animation: tg-call-ring 2.4s ease-out infinite;
  }
  .mobile-bar__btn--primary:active, .mobile-bar__btn--call:active { box-shadow: 0 3px 10px rgba(232, 185, 49, .3); }

  /* Reservar: acción secundaria elegante */
  .mobile-bar__btn--secondary {
    flex: 1; color: var(--color-text-on-dark);
    background: rgba(255, 255, 255, .04);
    border: 1px solid rgba(232, 185, 49, .35);
  }
  .mobile-bar__btn--secondary svg { width: 22px; height: 22px; flex-shrink: 0; color: var(--color-accent); }
}
@keyframes tg-call-ring {
  0%   { box-shadow: 0 0 0 0 rgba(14, 12, 8, .45); }
  70%  { box-shadow: 0 0 0 9px rgba(14, 12, 8, 0); }
  100% { box-shadow: 0 0 0 0 rgba(14, 12, 8, 0); }
}
@media (prefers-reduced-motion: reduce) {
  .mobile-bar__btn--primary svg, .mobile-bar__btn--call svg { animation: none; }
}
@media (max-width: 360px) {
  .mobile-bar { gap: 8px; padding-left: 10px; padding-right: 10px; }
  .mobile-bar__btn { min-width: 0; padding: 0 8px; gap: 6px; }
  .mobile-bar__btn--secondary svg { width: 20px; height: 20px; }
}
