/* ═══════════════════════════════════════════════════════════════════════════
   PAX · página de la empresa
   Los colores salen del logo: azul marino #0A1F44 y rojo #E03547.
   ═══════════════════════════════════════════════════════════════════════════ */
:root {
  --azul: #0a1f44;
  --azul-2: #13305f;
  --azul-claro: #e8eef8;
  --rojo: #e03547;
  --rojo-oscuro: #c22a3b;
  --verde-wa: #1fa855;
  --texto: #0f172a;
  --texto-2: #475569;
  --tenue: #64748b;
  --borde: #e2e8f0;
  --fondo: #ffffff;
  --gris: #f6f8fb;
  --radio: 16px;
  --sombra: 0 18px 50px -18px rgba(10, 31, 68, 0.35);
  --fuente: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
}
body {
  margin: 0;
  font-family: var(--fuente);
  color: var(--texto);
  background: var(--fondo);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img {
  max-width: 100%;
  height: auto;
}
h1,
h2,
h3 {
  line-height: 1.15;
  margin: 0 0 12px;
}
p {
  margin: 0 0 12px;
}
a {
  color: inherit;
}
.contenedor {
  width: min(1140px, 100% - 32px);
  margin-inline: auto;
}
.contenedor--angosto {
  width: min(780px, 100% - 32px);
}
.oculto {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}
.saltar {
  position: absolute;
  left: -999px;
}
.saltar:focus {
  left: 12px;
  top: 12px;
  z-index: 100;
  background: #fff;
  padding: 8px 12px;
  border-radius: 8px;
}
.tenue {
  color: var(--tenue);
  font-size: 14px;
}

/* ─── Botones ─────────────────────────────────────────────────────────────── */
.boton {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  border: 2px solid transparent;
  font: 700 15px/1 var(--fuente);
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
  white-space: nowrap;
}
.boton:hover {
  transform: translateY(-1px);
}
.boton:focus-visible,
input:focus-visible,
textarea:focus-visible,
summary:focus-visible,
.enlace:focus-visible {
  outline: 3px solid #93c5fd;
  outline-offset: 2px;
}
.boton--rojo {
  background: var(--rojo);
  color: #fff;
  box-shadow: 0 10px 24px -10px rgba(224, 53, 71, 0.8);
}
.boton--rojo:hover {
  background: var(--rojo-oscuro);
}
.boton--claro {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.35);
}
.boton--borde {
  border-color: var(--azul);
  color: var(--azul);
  background: transparent;
  min-height: 40px;
  padding: 0 16px;
  font-size: 14px;
}
.boton--claro-borde {
  border-color: var(--borde);
  background: #fff;
  color: var(--texto-2);
}
.boton--whatsapp {
  background: var(--verde-wa);
  color: #fff;
}
.boton--ancho {
  width: 100%;
  white-space: normal;
  text-align: center;
  line-height: 1.25;
  padding-block: 10px;
}
.boton[disabled] {
  opacity: 0.6;
  cursor: default;
  transform: none;
}
.enlace {
  background: none;
  border: none;
  padding: 0;
  font: 600 14px var(--fuente);
  color: var(--rojo);
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

/* ─── Barra ───────────────────────────────────────────────────────────────── */
.barra {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: saturate(1.4) blur(8px);
  border-bottom: 1px solid var(--borde);
}
.barra__fila {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  gap: 16px;
}
.barra__marca img {
  display: block;
  width: 88px;
}
.barra__menu {
  display: flex;
  align-items: center;
  gap: 26px;
}
.barra__menu a:not(.boton) {
  text-decoration: none;
  font-weight: 600;
  font-size: 14.5px;
  color: var(--texto-2);
}
.barra__menu a:not(.boton):hover {
  color: var(--rojo);
}
.barra__abrir {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--borde);
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
}
.barra__abrir span {
  width: 20px;
  height: 2px;
  background: var(--azul);
  border-radius: 2px;
}

/* ─── Portada ─────────────────────────────────────────────────────────────── */
.portada {
  background:
    radial-gradient(1000px 500px at 85% -10%, rgba(224, 53, 71, 0.25), transparent 60%),
    linear-gradient(160deg, var(--azul) 0%, var(--azul-2) 100%);
  color: #fff;
  padding: 72px 0 88px;
}
.portada__fila {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 56px;
  align-items: center;
}
.portada h1 {
  font-size: clamp(32px, 5vw, 54px);
  font-weight: 800;
  letter-spacing: -0.02em;
}
.portada h1 span {
  color: #ff8a96;
}
.portada__sub {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.82);
  max-width: 520px;
}
.portada__botones {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 28px;
}
.etiqueta {
  display: inline-block;
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #ffb3bb;
  margin-bottom: 14px;
}
.etiqueta--oscura {
  color: var(--rojo);
}

/* ─── Tarjetas ────────────────────────────────────────────────────────────── */
.tarjeta {
  background: #fff;
  color: var(--texto);
  border-radius: var(--radio);
  padding: 28px;
  box-shadow: var(--sombra);
  border: 1px solid var(--borde);
}
.tarjeta h2,
.tarjeta h3 {
  color: var(--azul);
}

/* ─── Rastreo ─────────────────────────────────────────────────────────────── */
.rastreo h2 {
  font-size: 24px;
}
.rastreo__forma {
  display: flex;
  gap: 10px;
  margin-top: 14px;
}
.rastreo__forma input {
  flex: 1;
  min-width: 0;
  text-transform: uppercase;
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  letter-spacing: 0.03em;
}
.rastreo__resultado:empty {
  display: none;
}
.rastreo__resultado {
  margin-top: 20px;
}
.rastreo__cabeza {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 14px;
}
.rastreo__numero {
  font-family: ui-monospace, Menlo, monospace;
  font-size: 13px;
  color: var(--tenue);
  word-break: break-all;
}
.rastreo__estado {
  font-weight: 800;
  color: var(--azul);
  font-size: 18px;
}
.linea {
  list-style: none;
  margin: 0;
  padding: 0;
}
.linea li {
  position: relative;
  padding: 0 0 18px 34px;
}
.linea li::before {
  content: "";
  position: absolute;
  left: 9px;
  top: 22px;
  bottom: 0;
  width: 2px;
  background: var(--borde);
}
.linea li:last-child::before {
  display: none;
}
.linea li.hecha::before {
  background: var(--rojo);
}
.linea__punto {
  position: absolute;
  left: 0;
  top: 2px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid var(--borde);
  background: #fff;
  display: grid;
  place-items: center;
}
.linea li.hecha .linea__punto {
  border-color: var(--rojo);
  background: var(--rojo);
}
.linea li.hecha .linea__punto::after {
  content: "";
  width: 8px;
  height: 4px;
  border-left: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(-45deg) translate(1px, -1px);
}
.linea li.actual .linea__punto {
  box-shadow: 0 0 0 5px rgba(224, 53, 71, 0.18);
}
.linea__titulo {
  font-weight: 700;
  font-size: 15px;
}
.linea li:not(.hecha) .linea__titulo {
  color: var(--tenue);
  font-weight: 600;
}
.linea__fecha {
  font-size: 13px;
  color: var(--tenue);
}
.mensaje {
  padding: 14px 16px;
  border-radius: 12px;
  font-size: 14.5px;
  background: var(--gris);
  border: 1px solid var(--borde);
}
.mensaje--error {
  background: #fef2f2;
  border-color: #fecaca;
  color: #991b1b;
}

/* ─── Secciones ───────────────────────────────────────────────────────────── */
.seccion {
  padding: 88px 0;
}
.seccion--gris {
  background: var(--gris);
}
.seccion--azul {
  background: linear-gradient(160deg, var(--azul) 0%, var(--azul-2) 100%);
  color: #fff;
}
.titulo {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 800;
  color: var(--azul);
  letter-spacing: -0.02em;
  margin-bottom: 36px;
}
.titulo--claro {
  color: #fff;
  margin-bottom: 16px;
}

.pasos {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  counter-reset: paso;
}
.pasos li {
  background: var(--gris);
  border: 1px solid var(--borde);
  border-radius: var(--radio);
  padding: 26px 22px;
}
.pasos h3 {
  color: var(--azul);
  font-size: 19px;
}
.pasos p {
  color: var(--texto-2);
  font-size: 15px;
}
.pasos__num {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--rojo);
  color: #fff;
  font-weight: 800;
  margin-bottom: 14px;
}

/* ─── Cotizador ───────────────────────────────────────────────────────────── */
.cotizar {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}
.cotizar__texto p {
  color: rgba(255, 255, 255, 0.82);
  font-size: 17px;
}
.lista-check {
  list-style: none;
  padding: 0;
  margin: 22px 0 0;
}
.lista-check li {
  position: relative;
  padding-left: 30px;
  margin-bottom: 12px;
  color: rgba(255, 255, 255, 0.9);
}
.lista-check li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 7px;
  width: 12px;
  height: 6px;
  border-left: 2.5px solid #ff8a96;
  border-bottom: 2.5px solid #ff8a96;
  transform: rotate(-45deg);
}
.cotizador h3 {
  font-size: 22px;
  margin-bottom: 18px;
}
.campo {
  margin: 0 0 14px;
  border: 0;
  padding: 0;
  min-width: 0;
}
.campo label,
.campo legend {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--texto-2);
  margin-bottom: 6px;
  padding: 0;
}
input:not([type="radio"]),
textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border: 1.5px solid var(--borde);
  border-radius: 12px;
  font: 500 16px var(--fuente);
  color: var(--texto);
  background: #fff;
}
textarea {
  resize: vertical;
  min-height: 72px;
}
input:not([type="radio"]):focus,
textarea:focus {
  border-color: var(--azul);
  outline: none;
}
.campo__con-opcion {
  display: flex;
  gap: 8px;
}
.campo__con-opcion input {
  flex: 1;
  min-width: 0;
}
.opciones {
  display: inline-flex;
  background: var(--gris);
  border: 1.5px solid var(--borde);
  border-radius: 12px;
  padding: 4px;
  gap: 4px;
  flex-shrink: 0;
}
.opciones--anchas {
  display: flex;
}
.opciones--anchas label {
  flex: 1;
}
.opciones label {
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 52px;
  padding: 0 12px;
  min-height: 38px;
  border-radius: 9px;
  font-size: 14px;
  font-weight: 700;
  color: var(--texto-2);
  cursor: pointer;
}
.opciones input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.opciones label:has(input:checked) {
  background: var(--azul);
  color: #fff;
}
.opciones label:has(input:focus-visible) {
  outline: 3px solid #93c5fd;
}
.medidas__fila {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.medidas .opciones {
  margin-bottom: 14px;
}
.aviso {
  background: #fff7e6;
  border: 1px solid #fde4a8;
  color: #8a5a00;
  border-radius: 12px;
  padding: 10px 14px;
  font-size: 13.5px;
  font-weight: 600;
}
.error {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #991b1b;
  border-radius: 12px;
  padding: 10px 14px;
  font-size: 14px;
  font-weight: 600;
}
.cotizador__acciones {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  flex-wrap: wrap;
}
.cotizador__acciones .boton {
  flex: 1;
}
.trampa {
  position: absolute;
  left: -9999px;
  height: 0;
  overflow: hidden;
}
.precio {
  background: var(--azul-claro);
  border-radius: 14px;
  padding: 20px;
  margin-bottom: 14px;
  text-align: center;
}
.precio__monto {
  font-size: 38px;
  font-weight: 800;
  color: var(--azul);
  letter-spacing: -0.02em;
}
.precio__detalle {
  font-size: 14px;
  color: var(--texto-2);
}
#cot-paso-3 .enlace {
  display: block;
  margin: 14px auto 0;
}

/* ─── Servicios, preguntas, contacto ─────────────────────────────────────── */
.cifras {
  display: flex;
  justify-content: center;
  gap: clamp(16px, 8vw, 96px);
  margin: -8px 0 40px;
  text-align: center;
}
.cifras[hidden],
.cifra[hidden] {
  display: none;
}
.cifra {
  flex: 0 1 220px;
}
.cifra strong {
  display: block;
  font-size: clamp(36px, 6vw, 52px);
  font-weight: 800;
  color: var(--rojo);
  letter-spacing: -0.03em;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}
.cifra span {
  color: var(--texto-2);
  font-weight: 600;
}
.mapa {
  display: block;
  width: 100%;
  height: 320px;
  margin-top: 40px;
  border: 0;
  border-radius: var(--radio);
  box-shadow: var(--sombra);
}
.mapa[hidden] {
  display: none;
}
.tarjetas {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.tarjeta--servicio {
  box-shadow: none;
  border-top: 4px solid var(--rojo);
}
.tarjeta--servicio p {
  color: var(--texto-2);
}
.preguntas details {
  background: #fff;
  border: 1px solid var(--borde);
  border-radius: 14px;
  margin-bottom: 10px;
  padding: 0 20px;
}
.preguntas summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--azul);
  padding: 18px 28px 18px 0;
  position: relative;
  list-style: none;
}
.preguntas summary::-webkit-details-marker {
  display: none;
}
.preguntas summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 14px;
  font-size: 22px;
  color: var(--rojo);
}
.preguntas details[open] summary::after {
  content: "–";
}
.preguntas p {
  color: var(--texto-2);
  padding-bottom: 6px;
}
.contacto {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.contacto .titulo {
  margin-bottom: 16px;
}
.contacto p {
  color: var(--texto-2);
}
.contacto hr {
  border: 0;
  border-top: 1px solid var(--borde);
  margin: 16px 0;
}

/* ─── Pie, diálogo, flotante ─────────────────────────────────────────────── */
.pie {
  background: var(--azul);
  color: rgba(255, 255, 255, 0.75);
  padding: 36px 0 96px; /* abajo: que el botón de WhatsApp no tape el pie */
  font-size: 14px;
}
.pie__fila {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}
.pie__fila p {
  margin: 0;
}
.pie__chico {
  margin-left: auto !important;
}
.pie__logo {
  filter: brightness(0) invert(1);
  opacity: 0.9;
}
.dialogo {
  border: none;
  border-radius: var(--radio);
  padding: 26px;
  width: min(460px, 100% - 32px);
  box-shadow: var(--sombra);
}
.dialogo::backdrop {
  background: rgba(10, 31, 68, 0.55);
}
.dialogo h3 {
  color: var(--azul);
}
.direccion {
  font-family: ui-monospace, Menlo, monospace;
  background: var(--gris);
  border: 1px dashed #cbd5e1;
  border-radius: 12px;
  padding: 16px;
  margin: 14px 0;
  line-height: 1.7;
  font-size: 14.5px;
}
.flotante {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 60;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--verde-wa);
  color: #fff;
  display: grid;
  place-items: center;
  box-shadow: 0 12px 28px -8px rgba(0, 0, 0, 0.45);
}

/* ─── Teléfono ───────────────────────────────────────────────────────────── */
@media (max-width: 960px) {
  .portada__fila,
  .cotizar,
  .contacto {
    grid-template-columns: minmax(0, 1fr);
    gap: 36px;
  }
  .pasos {
    grid-template-columns: repeat(2, 1fr);
  }
  .tarjetas {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 820px) {
  .barra__abrir {
    display: inline-flex;
  }
  .barra__menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: #fff;
    border-bottom: 1px solid var(--borde);
    padding: 8px 16px 16px;
    display: none;
  }
  .barra__menu.abierto {
    display: flex;
  }
  .barra__menu a:not(.boton) {
    padding: 14px 4px;
    border-bottom: 1px solid var(--borde);
    font-size: 16px;
  }
  .barra__entrar {
    margin-top: 12px;
  }
}
@media (max-width: 560px) {
  .portada {
    padding: 44px 0 56px;
  }
  .seccion {
    padding: 60px 0;
  }
  .pasos {
    grid-template-columns: minmax(0, 1fr);
  }
  .tarjeta {
    padding: 22px 18px;
  }
  .rastreo__forma {
    flex-direction: column;
  }
  .portada__botones .boton {
    flex: 1;
  }
  .campo__con-opcion {
    flex-direction: column;
  }
  .campo__con-opcion .opciones {
    align-self: flex-start;
  }
  .pie__chico {
    margin-left: 0 !important;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .boton {
    transition: none;
  }
}

/* ─── Mi cuenta (cuenta.html) ─────────────────────────────────────────────── */
/* Lo que el script esconde se queda escondido aunque su clase diga display. */
.cuenta [hidden] {
  display: none !important;
}
.cuenta #correo {
  text-transform: none;
  font-family: inherit;
  letter-spacing: normal;
}
.barra__menu--fijo {
  display: flex;
  position: static;
  flex-direction: row;
  align-items: center;
  gap: 18px;
  background: none;
  padding: 0;
  box-shadow: none;
}
.cuenta__fondo {
  background: var(--gris);
  padding: 40px 0 64px;
  min-height: 60vh;
}
.cuenta__fondo .tarjeta {
  margin-bottom: 16px;
}
.cuenta__hola {
  font-size: clamp(26px, 4vw, 34px);
  color: var(--azul);
  margin-bottom: 18px;
}
.cuenta__nota {
  margin: 16px 0 0;
  font-size: 14px;
}
.cuenta__numero {
  display: inline-block;
  min-width: 26px;
  padding: 0 8px;
  border-radius: 999px;
  background: var(--azul-claro);
  color: var(--azul);
  font-size: 14px;
  text-align: center;
  vertical-align: middle;
}
.cuenta__listos {
  border-top: 4px solid var(--rojo);
}
.cuenta__total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px;
  padding: 14px 16px;
  border-radius: 12px;
  background: var(--azul);
  color: #fff;
  margin: 6px 0 6px;
}
.cuenta__total b {
  font-size: 26px;
  font-weight: 800;
}
.cuenta__total-nota {
  font-size: 14px;
  margin: 0 0 8px;
}
.cuenta__lista {
  list-style: none;
  margin: 10px 0 14px;
  padding: 0;
}
.cuenta__paquete {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--borde);
}
.cuenta__paquete:last-child {
  border-bottom: 0;
}
.cuenta__tracking {
  font-family: ui-monospace, Menlo, monospace;
  font-size: 14px;
  word-break: break-all;
}
.cuenta__desc {
  font-size: 13px;
}
.cuenta__etapa {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--azul);
  text-align: right;
  flex-shrink: 0;
  max-width: 50%;
}
.cuenta__grupo {
  border-top: 1px solid var(--borde);
}
.cuenta__grupo summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 12px 0;
  font-weight: 700;
  color: var(--azul);
  cursor: pointer;
  list-style: none;
}
.cuenta__grupo summary::-webkit-details-marker {
  display: none;
}
.cuenta__grupo summary span:first-child::before {
  content: "▸";
  display: inline-block;
  width: 18px;
  color: var(--rojo);
  transition: transform 0.15s;
}
.cuenta__grupo[open] summary span:first-child::before {
  transform: rotate(90deg);
}
.cuenta__grupo .cuenta__lista {
  margin-top: 0;
}
.cuenta__oficina {
  font-size: 14.5px;
  margin: 4px 0 14px;
}
@media (max-width: 560px) {
  .cuenta__fondo {
    padding: 24px 0 48px;
  }
  .cuenta__paquete {
    flex-direction: column;
    align-items: flex-start;
  }
  .cuenta__etapa {
    text-align: left;
    max-width: none;
  }
}
@media (max-width: 820px) {
  /* En Mi cuenta no hay menú desplegable: en el celular solo queda "Salir". */
  .barra__menu--fijo a:not(.boton) {
    display: none;
  }
  .barra__menu--fijo .barra__entrar {
    margin-top: 0;
  }
}
