/* Variables, base y piezas compartidas por todas las páginas. */

:root {
  /* Estación */
  --muro: #eef1f4;
  --placa: #ffffff;
  --tinta: #0e1116;
  --tinta-suave: #424a58;
  --regla: #ccd3dd;
  --regla-fuerte: #767f90;
  --noche: #12151c;
  --noche-texto: #c4cad6;
  --amarillo: #ffc600;       /* boletería: acción principal */
  --error: #b3141b;
  --whatsapp: #25d366;

  /* Colores de línea: cada uno identifica un servicio. Todos admiten texto blanco. */
  --l1: #1550d8;  /* web */
  --l2: #c8211f;  /* tiendas */
  --l3: #00794a;  /* sistemas */
  --l4: #6f2dbd;  /* automatizaciones */
  --l5: #b04800;  /* mantenimiento */
  --l6: #006c87;  /* infraestructura */

  --fuente: "Overpass", "Segoe UI", system-ui, sans-serif;

  --ancho: 1240px;
  --margen: clamp(1.125rem, .4rem + 3vw, 2.5rem);
  --aire: clamp(4.5rem, 2.5rem + 7vw, 8.5rem);
  --radio: 6px;
  --salida: cubic-bezier(.16, 1, .3, 1);
  --cabecera: 76px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--cabecera) + 12px); -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--fuente);
  font-size: 1.0625rem;
  line-height: 1.55;
  color: var(--tinta);
  background: var(--muro);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { line-height: 1.04; font-weight: 900; letter-spacing: -.022em; text-wrap: balance; }
h2 { font-size: clamp(2.25rem, 1.3rem + 3.6vw, 4.25rem); }
h3 { font-size: clamp(1.35rem, 1.15rem + .7vw, 1.75rem); }
p { text-wrap: pretty; }
ul, ol { list-style: none; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
img { max-width: 100%; display: block; }
[hidden] { display: none !important; }

::selection { background: var(--amarillo); color: var(--tinta); }
:focus-visible { outline: 3px solid var(--l1); outline-offset: 3px; }
.recorrido :focus-visible, .pie :focus-visible, .parada :focus-visible { outline-color: var(--amarillo); }

.ancho { width: 100%; max-width: var(--ancho); margin-inline: auto; padding-inline: var(--margen); }
.sin-corte { white-space: nowrap; }
.enlace { color: var(--l1); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.enlace:hover { text-decoration-thickness: 2px; }

.skip-link {
  position: absolute; left: 1rem; top: -4rem; z-index: 100;
  padding: .7rem 1rem; background: var(--tinta); color: var(--placa); border-radius: var(--radio); font-weight: 700;
}
.skip-link:focus { top: 1rem; }

/* Botones */
.boton {
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  min-height: 46px; padding: .7rem 1.15rem;
  border: 2px solid transparent; border-radius: var(--radio);
  font-weight: 800; line-height: 1.15; text-align: center; cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s, transform .35s var(--salida);
}
.boton:active { transform: translateY(1px) scale(.99); }
.boton:disabled { opacity: .6; cursor: progress; }
.boton--grande { min-height: 56px; padding: .9rem 1.35rem; font-size: 1.0625rem; }
.boton--accion { background: var(--amarillo); color: var(--tinta); }
.boton--accion:hover { background: #ffd740; }
.boton--oscuro { background: var(--tinta); color: var(--placa); }
.boton--oscuro:hover { background: #2b313d; }
.boton--borde { border-color: currentColor; background: transparent; }
.boton--borde:hover { background: rgb(127 138 158 / .18); }
.flecha { width: 22px; height: 22px; flex: none; fill: none; stroke: currentColor; stroke-width: 2.8; stroke-linecap: square; transition: transform .35s var(--salida); }
.boton:hover .flecha { transform: translateX(4px); }
.icono-wa { width: 21px; height: 21px; flex: none; fill: currentColor; }

/* Cabecera */
.cabecera { position: sticky; top: 0; z-index: 40; background: var(--muro); border-bottom: 1px solid transparent; transition: border-color .2s, background-color .2s; }
.cabecera.con-scroll { background: var(--placa); border-bottom-color: var(--regla); }
.cabecera__fila { height: var(--cabecera); display: flex; align-items: center; gap: 1.5rem; }
.logo { display: inline-flex; align-items: center; gap: .65rem; min-height: 44px; }
.logo__marca { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 10px; background: var(--tinta); color: var(--placa); }
.logo__marca svg { width: 32px; height: 28px; }
.logo__texto { font-size: .9375rem; font-weight: 800; line-height: 1.08; }
.menu { display: flex; gap: .35rem; margin-left: auto; }
.menu a { padding: .65rem .8rem; border-radius: var(--radio); font-weight: 700; font-size: .9875rem; }
.menu a:hover { background: rgb(127 138 158 / .16); }
.cabecera__cta-corto { display: none; }
.contador { display: inline-grid; place-items: center; min-width: 1.6em; height: 1.6em; border-radius: 99px; background: var(--tinta); color: var(--placa); font-size: .8125rem; font-variant-numeric: tabular-nums; }
.menu-boton { display: none; width: 46px; height: 46px; border: 2px solid var(--tinta); border-radius: var(--radio); background: transparent; cursor: pointer; }
.menu-boton span { display: block; width: 20px; height: 2.5px; margin: 4px auto; background: var(--tinta); transition: transform .3s var(--salida), opacity .2s; }
.menu-boton[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.menu-boton[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-boton[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

@media (max-width: 960px) {
  .cabecera__fila { gap: .75rem; }
  .cabecera__cta { margin-left: auto; }
  .menu-boton { display: block; }
  .no-js .menu-boton { display: none; }
  .js .menu {
    position: absolute; inset: var(--cabecera) 0 auto 0;
    flex-direction: column; gap: 0; margin: 0; padding: .5rem var(--margen) 1.25rem;
    background: var(--placa); border-bottom: 3px solid var(--tinta);
    visibility: hidden; opacity: 0; transform: translateY(-8px);
    transition: opacity .2s, transform .3s var(--salida), visibility .2s;
  }
  .js .menu.abierto { visibility: visible; opacity: 1; transform: none; }
  .menu a { padding: .95rem .25rem; font-size: 1.125rem; border-bottom: 1px solid var(--regla); border-radius: 0; }
  .no-js .menu { display: none; }
}
@media (max-width: 520px) {
  .cabecera__cta-largo { display: none; }
  .cabecera__cta-corto { display: inline; }
  .cabecera__cta { padding-inline: .75rem; font-size: .9375rem; }
}
@media (max-width: 380px) { .logo__texto { display: none; } }

/* Pie y terminal */
.pie { background: var(--noche); color: var(--noche-texto); padding-top: clamp(3rem, 2rem + 3vw, 5rem); }
.pie a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 700; color: var(--placa); }
.pie a:hover { color: var(--amarillo); }
.pie__fila { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2rem; }
.pie__lema { max-width: 30ch; font-size: 1.25rem; font-weight: 600; color: var(--placa); }
.pie nav, .pie__contacto { display: flex; flex-direction: column; align-items: flex-start; }
.pie__contacto a { overflow-wrap: anywhere; gap: .35em; flex-wrap: wrap; }
.terminal { --marca: min(62vw, 720px); display: flex; align-items: center; margin-top: clamp(2.5rem, 1rem + 5vw, 5rem); padding-right: var(--margen); }
.terminal__vias { flex: 1; display: grid; gap: clamp(5px, 1.1vw, 14px); }
.terminal__vias i { height: clamp(5px, 1.1vw, 15px); background: var(--c); filter: brightness(1.35); }
/* El margen negativo (5,5 % del ancho) hace que las vías toquen el primer trazo del símbolo */
.terminal__marca { width: var(--marca); aspect-ratio: 128 / 110; flex: none; margin-left: calc(var(--marca) * -.055); color: var(--placa); }
.pie__legal { display: flex; flex-wrap: wrap; align-items: center; gap: .25rem 1.75rem; padding-block: 1.5rem; margin-top: 1.5rem; border-top: 1px solid #2b313d; font-size: .9375rem; }
.pie__legal small { font-size: inherit; margin-right: auto; }
@media (max-width: 760px) { .pie__fila { grid-template-columns: 1fr; gap: 1.25rem; } .pie__legal { padding-bottom: 6rem; } }

/* WhatsApp flotante */
.wa-float {
  position: fixed; right: 16px; bottom: 16px; z-index: 30;
  display: grid; place-items: center; width: 56px; height: 56px;
  border-radius: 50%; background: var(--whatsapp); color: var(--tinta);
  box-shadow: 0 8px 22px -8px rgb(14 17 22 / .55);
  transition: transform .35s var(--salida), opacity .2s, visibility .2s;
}
.wa-float .icono-wa { width: 30px; height: 30px; }
.wa-float:hover { transform: translateY(-3px); }
.wa-float.is-hidden { opacity: 0; visibility: hidden; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
