@import url('https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:opsz,wght@12..96,600;12..96,700;12..96,800&family=DM+Sans:ital,opsz,wght@0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700&display=swap');

/* ── Variables ─────────────────────────────────────────────── */
:root {
  --primary: #0B2545;
  --primary-light: #122F58;
  --primary-dark: #071a38;
  --accent: #F59E0B;
  --accent-dark: #D97706;
  --blue: #1258E8;
  --blue-lt: #3B75F0;
  --white: #ffffff;
  --light: #f8fafc;
  --gray-100: #f1f5f9;
  --gray-200: #e2e8f0;
  --gray-400: #94a3b8;
  --gray-500: #64748b;
  --gray-600: #475569;
  --gray-800: #1e293b;
  --success: #22c55e;
  --danger: #ef4444;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.1);
  --shadow: 0 4px 16px rgba(0,0,0,0.08);
  --shadow-lg: 0 10px 40px rgba(0,0,0,0.14);
  --radius: 12px;
  --radius-sm: 8px;
  --ease: 0.3s ease;
}

/* ── Reset ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'DM Sans', 'Segoe UI', system-ui, -apple-system, sans-serif;
  color: var(--gray-800);
  background: var(--white);
  line-height: 1.6;
}
h1, h2, h3, h4 {
  font-family: 'Bricolage Grotesque', 'Segoe UI', system-ui, sans-serif;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

/* ── Navbar ────────────────────────────────────────────────── */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  /* Sin backdrop-filter al inicio — evita destello sobre el hero animado */
  background: rgba(12, 28, 52, 0.75);
  border-bottom: 1px solid rgba(255,255,255,0.07);
  height: 68px;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 2px 20px rgba(0,0,0,0.18);
  transition: background var(--ease), box-shadow var(--ease);
}
/* Al hacer scroll (fuera del hero) activamos el glass del navbar */
.navbar.scrolled {
  background: rgba(12, 28, 52, 0.85);
  backdrop-filter: blur(24px) saturate(200%);
  -webkit-backdrop-filter: blur(24px) saturate(200%);
  border-bottom-color: rgba(255,255,255,0.12);
  box-shadow: 0 4px 24px rgba(0,0,0,0.22);
}
.navbar-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.navbar-wordmark {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.5px;
  line-height: 1;
}
.navbar-wordmark em {
  font-style: normal;
  color: var(--accent);
}
.navbar-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}
.navbar-links a {
  color: rgba(255,255,255,0.85);
  font-size: 0.925rem;
  font-weight: 500;
  transition: color var(--ease);
  position: relative;
  padding-bottom: 4px;
}
.navbar-links a::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--ease);
}
.navbar-links a:hover { color: var(--white); }
.navbar-links a:hover::after { transform: scaleX(1); }

/* ── Navbar auth ────────────────────────────────────────────── */
.nav-login-btn {
  display: flex;
  align-items: center;
  gap: 7px;
  background: rgba(255,255,255,.08);
  color: rgba(255,255,255,.9);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 8px;
  padding: 6px 13px 6px 10px;
  font-size: .82rem;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  letter-spacing: .01em;
  transition: background .18s, border-color .18s;
}
.nav-login-btn:hover {
  background: rgba(255,255,255,.15);
  border-color: rgba(255,255,255,.32);
}

/* El auth mobile solo aparece dentro del hamburger */
.nav-li-auth { display: none; }

.nav-user-menu {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  padding: 4px 10px 4px 6px;
  border-radius: 20px;
  border: 1.5px solid rgba(255,255,255,.2);
  transition: border-color .15s;
}
.nav-user-menu:hover { border-color: rgba(255,255,255,.5); }
.nav-user-avatar {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--accent);
  color: #1e3a5f;
  font-weight: 700;
  font-size: .85rem;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.nav-user-name {
  color: rgba(255,255,255,.9);
  font-size: .85rem;
  font-weight: 600;
  max-width: 100px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.nav-user-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: white;
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0,0,0,.15);
  min-width: 170px;
  overflow: hidden;
  z-index: 200;
}
.nav-user-dropdown.open { display: block; }
.nav-user-dropdown a,
.nav-user-dropdown button {
  display: block; width: 100%;
  padding: 10px 16px;
  font-size: .875rem;
  color: var(--gray-700);
  text-decoration: none;
  background: none; border: none;
  cursor: pointer; text-align: left;
  transition: background .12s;
}
.nav-user-dropdown a:hover,
.nav-user-dropdown button:hover { background: var(--gray-100); }
.nav-user-dropdown button { color: #dc2626; }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}
.hamburger span {
  display: block;
  width: 24px; height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform var(--ease), opacity var(--ease);
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Hero ──────────────────────────────────────────────────── */
.hero {
  position: relative;
  height: 100vh;
  min-height: 640px;
  overflow: hidden;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 84px; /* navbar 68px + 16px de respiro */
}
.hero-carousel {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: translateY(-28px);
  background-size: cover;
  background-position: center;
}
/* Slide visible — sin transición hasta que el JS habilite .hero-ready */
.hero-slide.active {
  opacity: 1;
  transform: translateY(0);
  z-index: 1;
}
/* Solo animar cuando la página ya cargó (evita el destello inicial) */
.hero-ready .hero-slide.active {
  transition: opacity 1.1s ease, transform 1.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.hero-ready .hero-slide.exiting {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s ease, transform 1.1s ease;
  z-index: 0;
}

/* Placeholders — reemplazá con background-image: url('/assets/img/...') */
.hero-slide:nth-child(1) {
  background: linear-gradient(145deg, #0f2744 0%, #1e3a5f 40%, #2d5282 70%, #1a4a7a 100%);
}
.hero-slide:nth-child(2) {
  background: linear-gradient(145deg, #1a2d4a 0%, #1e3a5f 50%, #2a4a6e 100%);
}
.hero-slide:nth-child(3) {
  background: linear-gradient(145deg, #0a1e35 0%, #1e3a5f 60%, #243b55 100%);
}

/* ── Hero orbs — ESTÁTICOS, sin animación (elimina destello definitivamente) ── */
.hero-orbs {
  position: absolute; inset: 0;
  z-index: 1; overflow: hidden; pointer-events: none;
}
.orb { position: absolute; border-radius: 50%; }
.o1 {
  width: 620px; height: 620px;
  background: radial-gradient(circle, rgba(249,115,22,0.48) 0%, transparent 65%);
  top: -200px; right: -100px;
  filter: blur(60px);
}
.o2 {
  width: 540px; height: 540px;
  background: radial-gradient(circle, rgba(59,130,246,0.38) 0%, transparent 65%);
  bottom: -150px; left: -130px;
  filter: blur(70px);
}
.o3 {
  width: 360px; height: 360px;
  background: radial-gradient(circle, rgba(139,92,246,0.32) 0%, transparent 65%);
  top: 28%; right: 6%;
  filter: blur(55px);
}
.o4 {
  width: 240px; height: 240px;
  background: radial-gradient(circle, rgba(34,197,94,0.22) 0%, transparent 65%);
  bottom: 22%; left: 22%;
  filter: blur(50px);
}

.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(8,20,40,0.52) 0%, rgba(8,20,40,0.7) 100%);
  z-index: 2;
}
.hero-content {
  position: relative;
  z-index: 3;
  text-align: center;
  color: var(--white);
  padding: 0 1.5rem;
  width: 100%;
  max-width: clamp(540px, 88vw, 1060px);
}
/* Glass panel — sin backdrop-filter sobre contenido animado (evita destello) */
.hero-glass {
  background: rgba(8, 20, 42, 0.28);
  border-radius: 28px;
  border: 1px solid rgba(255,255,255,0.14);
  border-top-color: rgba(255,255,255,0.32);
  border-left-color: rgba(255,255,255,0.18);
  padding: clamp(2rem, 3.5vw, 3rem) clamp(2rem, 5.5vw, 5rem);
  box-shadow:
    0 8px 48px rgba(0,0,0,0.28),
    inset 0 1px 0 rgba(255,255,255,0.2),
    inset 0 -1px 0 rgba(0,0,0,0.08);
}
/* Stats en el hero */
.hero-stats {
  display: flex; align-items: center; justify-content: center;
  gap: clamp(1rem, 3vw, 2.5rem); margin-top: 2rem; padding-top: 1.75rem;
  border-top: 1px solid rgba(255,255,255,0.1);
}
.hero-stat { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.stat-num { font-size: clamp(1.1rem, 2vw, 1.5rem); font-weight: 800; color: var(--white); letter-spacing: -0.5px; }
.stat-lbl { font-size: clamp(0.62rem, 1vw, 0.72rem); color: rgba(255,255,255,0.5); text-transform: uppercase; letter-spacing: 1px; }
.hero-stat-div { width: 1px; height: 32px; background: rgba(255,255,255,0.14); }
/* Scroll hint — debajo del margen de la tarjeta */
.scroll-hint {
  position: absolute; bottom: 1rem; left: 50%;
  transform: translateX(-50%); z-index: 4;
  display: flex; flex-direction: column; align-items: center; gap: 7px;
  opacity: 0; animation: fadeIn-scroll 1s ease 2.2s forwards;
}
.scroll-hint span {
  font-size: 0.62rem; letter-spacing: 2.5px;
  text-transform: uppercase; color: rgba(255,255,255,0.42);
}
.scroll-mouse {
  width: 22px; height: 36px;
  border: 1.5px solid rgba(255,255,255,0.32); border-radius: 11px;
  display: flex; justify-content: center; padding-top: 5px;
  background: rgba(255,255,255,0.06);
}
.scroll-wheel {
  width: 3px; height: 7px;
  background: rgba(255,255,255,0.65); border-radius: 2px;
  animation: scroll-bounce 2s ease infinite;
}
@keyframes scroll-bounce {
  0%   { transform: translateY(0); opacity: 1; }
  80%  { transform: translateY(10px); opacity: 0; }
  81%  { transform: translateY(0); opacity: 0; }
  100% { opacity: 1; }
}
@keyframes fadeIn-scroll {
  from { opacity: 0; transform: translateX(-50%) translateY(8px); }
  to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(249,115,22,0.15);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(249,115,22,0.4);
  color: #fdba74;
  padding: 6px 20px;
  border-radius: 50px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  animation: fadeDown 0.8s ease;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.08);
}
.hero h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 1.25rem;
  letter-spacing: -0.5px;
  animation: fadeDown 0.8s ease 0.1s both;
}
.hero h1 em {
  font-style: normal;
  color: var(--accent);
}
.hero p {
  font-size: clamp(0.95rem, 1.6vw, 1.15rem);
  color: rgba(255,255,255,0.85);
  max-width: 700px;
  margin: 0 auto 2.5rem;
  animation: fadeDown 0.8s ease 0.2s both;
}
.hero-cta {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  animation: fadeDown 0.8s ease 0.3s both;
}
/* hero-dots eliminados — reemplazados por scroll-hint */

/* ── Buttons ───────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: var(--radius-sm);
  font-family: 'Bricolage Grotesque', 'Segoe UI', system-ui, sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.2px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--ease);
  text-decoration: none;
  white-space: nowrap;
}
.btn-primary {
  background: var(--blue);
  color: var(--white);
  box-shadow: 0 4px 18px rgba(18,88,232,0.35);
}
.btn-primary:hover {
  background: var(--blue-lt);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(18,88,232,0.45);
}
.btn-outline {
  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: var(--white);
  border-color: rgba(255,255,255,0.35);
}
.btn-outline:hover {
  background: rgba(255,255,255,0.18);
  border-color: rgba(255,255,255,0.7);
}
.btn-dark {
  background: var(--primary);
  color: var(--white);
}
.btn-dark:hover {
  background: var(--primary-light);
  transform: translateY(-2px);
}
.btn-sm {
  padding: 8px 18px;
  font-size: 0.85rem;
}

/* ── Sections ──────────────────────────────────────────────── */
section { padding: 84px 2rem; }
.container { max-width: 1200px; margin: 0 auto; }

/* ── Price value (brand amber) ──────────────────────────────── */
.price-value {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-weight: 800;
  color: var(--accent);
  font-size: 0.95rem;
}

/* ── Hero slogan ─────────────────────────────────────────────── */
.hero-slogan {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: clamp(1rem, 2.2vw, 1.35rem);
  font-weight: 700;
  color: rgba(255,255,255,0.7);
  letter-spacing: 0.2px;
  margin-bottom: 1.25rem;
  animation: fadeDown 0.8s ease 0.15s both;
}
.hero-slogan em {
  font-style: normal;
  color: var(--accent);
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--accent);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 0.85rem;
}
.section-label::before {
  content: '';
  display: block;
  width: 22px;
  height: 2px;
  background: var(--accent);
  flex-shrink: 0;
}
.section-title {
  font-family: 'Bricolage Grotesque', 'Segoe UI', system-ui, sans-serif;
  font-size: clamp(1.75rem, 3vw, 2.4rem);
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -0.5px;
  margin-bottom: 0.75rem;
}
.section-sub {
  color: var(--gray-500);
  font-size: 1.05rem;
  max-width: 520px;
}
.section-header {
  margin-bottom: 3rem;
  position: relative;
  z-index: 1;
}

/* ── Services ──────────────────────────────────────────────── */
.services {
  background: linear-gradient(145deg, #eef2ff 0%, #f0f9ff 45%, #faf5ff 100%);
  position: relative;
  overflow: hidden;
}
.services::before {
  content: '';
  position: absolute;
  width: 700px; height: 700px;
  background: radial-gradient(circle, rgba(99,102,241,0.12) 0%, transparent 65%);
  top: -250px; right: -150px;
  border-radius: 50%;
  pointer-events: none;
}
.services::after {
  content: '';
  position: absolute;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(249,115,22,0.09) 0%, transparent 65%);
  bottom: -150px; left: -100px;
  border-radius: 50%;
  pointer-events: none;
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  position: relative;
  z-index: 1;
}
.service-card {
  background: rgba(255,255,255,0.45);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(255,255,255,0.75);
  border-top-color: rgba(255,255,255,0.95);
  border-radius: var(--radius);
  padding: 2.5rem 2rem;
  text-align: center;
  box-shadow: 0 8px 32px rgba(99,102,241,0.07), inset 0 1px 0 rgba(255,255,255,0.95);
  transition: transform var(--ease), box-shadow var(--ease), background var(--ease);
  border-bottom: 3px solid transparent;
}
.service-card:hover {
  transform: translateY(-8px);
  background: rgba(255,255,255,0.9);
  box-shadow: 0 16px 48px rgba(30,58,95,0.14), inset 0 1px 0 rgba(255,255,255,1);
  border-bottom-color: var(--accent);
}
.service-icon {
  font-size: 2.8rem;
  margin-bottom: 1.25rem;
  display: block;
}
.service-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.6rem;
}
.service-card p {
  color: var(--gray-500);
  font-size: 0.925rem;
  line-height: 1.75;
}

/* ── How it works ──────────────────────────────────────────── */
.how-it-works {
  background: linear-gradient(160deg, #f8fafc 0%, #eff6ff 60%, #f5f3ff 100%);
  position: relative;
  overflow: hidden;
}
.how-it-works::before {
  content: '';
  position: absolute;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(30,58,95,0.06) 0%, transparent 65%);
  top: -100px; left: -150px;
  border-radius: 50%;
  pointer-events: none;
}
.steps {
  max-width: 820px;
  position: relative;
  z-index: 1;
}
.steps::before {
  content: '';
  position: absolute;
  left: 31px; top: 40px; bottom: 40px;
  width: 2px;
  background: linear-gradient(to bottom, var(--primary), var(--accent));
  opacity: 0.18;
}
.step {
  display: flex;
  gap: 1.75rem;
  margin-bottom: 2.5rem;
  align-items: flex-start;
  opacity: 0;
  transform: translateX(-16px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.step.visible { opacity: 1; transform: none; }
.step:nth-child(2) { transition-delay: 0.1s; }
.step:nth-child(3) { transition-delay: 0.2s; }
.step:nth-child(4) { transition-delay: 0.3s; }
.step-num {
  flex-shrink: 0;
  width: 64px; height: 64px;
  background: linear-gradient(135deg, rgba(30,58,95,0.9), rgba(45,82,130,0.85));
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  border: 1px solid rgba(255,255,255,0.18);
  box-shadow: 0 4px 20px rgba(30,58,95,0.3), 0 0 0 4px rgba(30,58,95,0.08), inset 0 1px 0 rgba(255,255,255,0.15);
  position: relative;
  z-index: 1;
}
.step-num .num-label {
  font-size: 0.6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  opacity: 0.75;
}
.step-num .num-value {
  font-size: 1.5rem;
  font-weight: 800;
  line-height: 1;
}
.step-body {
  padding-top: 8px;
}
.step-body h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.3rem;
}
.step-body p {
  color: var(--gray-500);
  font-size: 0.925rem;
}

/* ── Insurance ─────────────────────────────────────────────── */
.insurance {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 50%, var(--primary-light) 100%);
  color: var(--white);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.insurance::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 70% 50%, rgba(249,115,22,0.08) 0%, transparent 60%);
  pointer-events: none;
}
.insurance-inner { max-width: 700px; margin: 0 auto; position: relative; }
.insurance-icon { font-size: 3rem; margin-bottom: 1rem; }
.insurance h2 {
  font-size: clamp(1.65rem, 3vw, 2.25rem);
  font-weight: 800;
  margin-bottom: 1rem;
}
.insurance p {
  color: rgba(255,255,255,0.82);
  font-size: 1.05rem;
  line-height: 1.75;
  margin-bottom: 2rem;
}
.insurance-pills {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.insurance-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,0.06);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border: 1px solid rgba(255,255,255,0.18);
  border-top-color: rgba(255,255,255,0.35);
  padding: 9px 22px;
  border-radius: 50px;
  font-size: 0.875rem;
  font-weight: 600;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.15), 0 4px 16px rgba(0,0,0,0.15);
  transition: background var(--ease), transform var(--ease), box-shadow var(--ease);
}
.insurance-pill:hover {
  background: rgba(255,255,255,0.12);
  transform: translateY(-2px);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.2), 0 8px 24px rgba(0,0,0,0.2);
}

/* ── Contact ───────────────────────────────────────────────── */
.contact {
  background: linear-gradient(145deg, #f0fdf4 0%, #eff6ff 50%, #faf5ff 100%);
  position: relative;
  overflow: hidden;
}
.contact::before {
  content: '';
  position: absolute;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(59,130,246,0.08) 0%, transparent 65%);
  top: -100px; right: -80px;
  border-radius: 50%;
  pointer-events: none;
}
.contact-grid {
  max-width: 860px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  position: relative;
  z-index: 1;
}
.contact-card {
  background: rgba(255,255,255,0.45);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(255,255,255,0.75);
  border-top-color: rgba(255,255,255,0.95);
  border-radius: var(--radius);
  padding: 2rem 1.5rem;
  text-align: center;
  box-shadow: 0 8px 28px rgba(59,130,246,0.07), inset 0 1px 0 rgba(255,255,255,0.95);
  transition: transform var(--ease), box-shadow var(--ease), background var(--ease);
}
.contact-card:hover {
  transform: translateY(-5px);
  background: rgba(255,255,255,0.65);
  box-shadow: 0 16px 40px rgba(59,130,246,0.12), inset 0 1px 0 rgba(255,255,255,1);
}
.contact-icon { font-size: 2.2rem; margin-bottom: 1rem; }
.contact-card h3 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.4rem;
}
.contact-card p, .contact-card a {
  color: var(--gray-500);
  font-size: 0.9rem;
}
.contact-card a:hover { color: var(--accent); }

/* ── Trust section ──────────────────────────────────────────── */
.trust-section {
  background: linear-gradient(160deg, #f8fafc 0%, #eff6ff 60%, #f5f3ff 100%);
  padding: 84px 2rem;
}
.trust-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}
.trust-item {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2rem;
  border: 1px solid var(--gray-200);
  box-shadow: var(--shadow-sm);
  transition: transform var(--ease), box-shadow var(--ease);
}
.trust-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}
.trust-icon-wrap {
  font-size: 1.75rem;
  margin-bottom: 1rem;
  display: block;
  width: 48px; height: 48px;
  background: rgba(18,88,232,0.07);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
}
.trust-item h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.5rem;
}
.trust-item p {
  font-size: 0.9rem;
  color: var(--gray-500);
  line-height: 1.7;
}

/* ── Dual value section ─────────────────────────────────────── */
.dual-section {
  background: var(--white);
  padding: 84px 2rem;
}
.dual-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}
.dual-card {
  border-radius: 20px;
  padding: 2.75rem;
  position: relative;
  overflow: hidden;
}
.dual-sender {
  background: linear-gradient(145deg, var(--primary-dark) 0%, var(--primary) 100%);
  color: var(--white);
}
.dual-carrier {
  background: var(--gray-100);
  border: 2px solid var(--gray-200);
  color: var(--gray-800);
}
.dual-tag {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  margin-bottom: 1.25rem;
  display: block;
}
.dual-tag-amber { color: var(--accent) !important; }
.dual-carrier .dual-tag { color: var(--gray-400); }
.dual-card h3 {
  font-size: clamp(1.4rem, 2.5vw, 1.9rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 1.25rem;
  letter-spacing: -0.5px;
}
.dual-sender h3 { color: var(--white); }
.dual-carrier h3 { color: var(--primary); }
.dual-carrier h3 em { font-style: normal; color: var(--accent); }
.dual-card p {
  font-size: 0.95rem;
  line-height: 1.75;
  margin-bottom: 1.25rem;
}
.dual-sender p { color: rgba(255,255,255,0.75); }
.dual-carrier p { color: var(--gray-500); }
.dual-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.dual-list li {
  font-size: 0.9rem;
  font-weight: 600;
}
.dual-sender .dual-list li { color: rgba(255,255,255,0.85); }
.dual-carrier .dual-list li { color: var(--gray-600); }
.dual-grid-single { grid-template-columns: 1.1fr 0.9fr; }
.trust-highlight {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem;
  background: var(--white);
  border-radius: var(--radius-sm);
  border: 1px solid var(--gray-200);
}
.th-icon { font-size: 1.4rem; flex-shrink: 0; margin-top: 2px; }
.trust-highlight strong {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--primary);
  display: block;
  margin-bottom: 3px;
}
.trust-highlight p { font-size: 0.82rem; color: var(--gray-500); margin: 0; line-height: 1.5; }

/* ── Footer ────────────────────────────────────────────────── */
footer {
  background: var(--primary);
  color: rgba(255,255,255,0.55);
  text-align: center;
  padding: 2.75rem 2rem 2rem;
  font-size: 0.85rem;
}
.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 1.25rem;
}
.footer-logo {
  display: flex;
  align-items: center;
  gap: 8px;
}
.footer-wordmark {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.3px;
}
.footer-wordmark em { font-style: normal; color: var(--accent); }
.footer-tagline {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.35);
  letter-spacing: 0.5px;
}
.footer-links { margin-bottom: 0.6rem; }
.footer-links a { color: var(--accent); }
.footer-copy { color: rgba(255,255,255,0.3); }
footer a { color: var(--accent); }

/* ── WhatsApp float ────────────────────────────────────────── */
.wa-float {
  position: fixed;
  bottom: 2rem; right: 2rem;
  z-index: 999;
  width: 60px; height: 60px;
  background: #25d366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 18px rgba(37,211,102,0.45);
  transition: transform var(--ease), box-shadow var(--ease);
}
.wa-float:hover {
  transform: scale(1.1);
  box-shadow: 0 8px 28px rgba(37,211,102,0.55);
}
.wa-float svg { width: 30px; height: 30px; fill: white; }
.wa-pulse {
  position: absolute;
  inset: -5px;
  border-radius: 50%;
  background: rgba(37,211,102,0.35);
  animation: wa-pulse 2.2s ease-out infinite;
  pointer-events: none;
}
@keyframes wa-pulse {
  0% { transform: scale(1); opacity: 0.7; }
  70% { transform: scale(1.45); opacity: 0; }
  100% { transform: scale(1.45); opacity: 0; }
}

/* ── Page header (viajes / tracking) ─────────────────────── */
.page-header {
  background: linear-gradient(145deg, var(--primary-dark) 0%, var(--primary) 50%, var(--primary-light) 100%);
  padding: 110px 2rem 56px;
  text-align: center;
  color: var(--white);
  position: relative;
  overflow: hidden;
}
.page-header::before {
  content: '';
  position: absolute;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(249,115,22,0.2) 0%, transparent 65%);
  top: -150px; right: -80px;
  border-radius: 50%;
  pointer-events: none;
}
.page-header::after {
  content: '';
  position: absolute;
  width: 350px; height: 350px;
  background: radial-gradient(circle, rgba(99,102,241,0.15) 0%, transparent 65%);
  bottom: -100px; left: -60px;
  border-radius: 50%;
  pointer-events: none;
}
.page-header-inner {
  position: relative;
  z-index: 1;
  display: inline-block;
  background: rgba(255,255,255,0.05);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border: 1px solid rgba(255,255,255,0.12);
  border-top-color: rgba(255,255,255,0.28);
  border-radius: 20px;
  padding: 1.5rem 3rem;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.15), 0 8px 32px rgba(0,0,0,0.2);
}
.page-header h1 {
  font-size: clamp(1.75rem, 4vw, 2.6rem);
  font-weight: 800;
  margin-bottom: 0.4rem;
}
.page-header p {
  color: rgba(255,255,255,0.72);
  font-size: 1rem;
}

/* ── Table ─────────────────────────────────────────────────── */
.table-wrap {
  overflow-x: auto;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
}
thead th {
  background: var(--primary);
  color: var(--white);
  padding: 13px 16px;
  text-align: left;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
}
tbody td {
  padding: 13px 16px;
  font-size: 0.925rem;
  border-bottom: 1px solid var(--gray-100);
  vertical-align: middle;
}
tbody tr:last-child td { border-bottom: none; }
tbody tr:hover { background: var(--light); }

/* ── Badge ─────────────────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 11px;
  border-radius: 50px;
  font-size: 0.775rem;
  font-weight: 600;
  white-space: nowrap;
}
.badge-blue   { background: #dbeafe; color: #1d4ed8; }
.badge-green  { background: #dcfce7; color: #15803d; }
.badge-yellow { background: #fef9c3; color: #a16207; }
.badge-red    { background: #fee2e2; color: #dc2626; }
.badge-orange { background: #ffedd5; color: #c2410c; }
.badge-gray   { background: var(--gray-100); color: var(--gray-600); }

/* ── Progress bar ──────────────────────────────────────────── */
.progress-wrap { margin-top: 6px; }
.progress-track {
  width: 100%;
  height: 7px;
  background: var(--gray-200);
  border-radius: 4px;
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  border-radius: 4px;
  transition: width 0.5s ease;
}
.progress-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--gray-400);
  margin-top: 3px;
}

/* ── Modal ─────────────────────────────────────────────────── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10,20,35,0.6);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--ease);
}
.modal-overlay.open {
  opacity: 1;
  pointer-events: all;
}
.modal {
  background: rgba(255,255,255,0.82);
  backdrop-filter: blur(28px) saturate(180%);
  -webkit-backdrop-filter: blur(28px) saturate(180%);
  border: 1px solid rgba(255,255,255,0.7);
  border-top-color: rgba(255,255,255,0.95);
  border-radius: var(--radius);
  width: 100%;
  max-width: 520px;
  max-height: 92vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0,0,0,0.2), inset 0 1px 0 rgba(255,255,255,0.9);
  transform: translateY(16px) scale(0.98);
  transition: transform var(--ease);
}
.modal-overlay.open .modal {
  transform: none;
}
.modal-header {
  background: var(--primary);
  color: var(--white);
  padding: 1.4rem 1.75rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.modal-header h3 { font-size: 1.05rem; font-weight: 700; }
.modal-close {
  background: none;
  border: none;
  color: rgba(255,255,255,0.65);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  transition: color var(--ease);
  padding: 0;
}
.modal-close:hover { color: var(--white); }
.modal-body { padding: 1.75rem; }
.modal-footer {
  padding: 1rem 1.75rem;
  border-top: 1px solid var(--gray-200);
  display: flex;
  gap: 0.75rem;
  justify-content: flex-end;
}

/* ── Form ──────────────────────────────────────────────────── */
.form-group { margin-bottom: 1.1rem; }
.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gray-800);
  margin-bottom: 5px;
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 10px 13px;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-sm);
  font-size: 0.925rem;
  color: var(--gray-800);
  background: var(--white);
  font-family: inherit;
  transition: border-color var(--ease), box-shadow var(--ease);
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(30,58,95,0.1);
}
.form-group textarea { resize: vertical; min-height: 80px; }
.form-hint {
  font-size: 0.78rem;
  color: var(--gray-400);
  margin-top: 3px;
}
.form-error {
  font-size: 0.78rem;
  color: var(--danger);
  margin-top: 3px;
  display: none;
}
.form-error.show { display: block; }

/* ── Alert ─────────────────────────────────────────────────── */
.alert {
  padding: 11px 15px;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  margin-bottom: 1rem;
  display: none;
}
.alert.show { display: block; }
.alert-success { background: #dcfce7; color: #15803d; border-left: 4px solid #22c55e; }
.alert-error   { background: #fee2e2; color: #dc2626; border-left: 4px solid #ef4444; }
.alert-info    { background: #eff6ff; color: #1d4ed8; border-left: 4px solid #3b82f6; }

/* ── Success screen ────────────────────────────────────────── */
.success-screen { text-align: center; padding: 2rem 1.5rem; }
.success-icon   { font-size: 3.5rem; margin-bottom: 1rem; }
.success-screen h2 {
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 0.4rem;
}
.success-screen p { color: var(--gray-500); margin-bottom: 1.5rem; }
.codigo-box {
  background: var(--light);
  border: 2px dashed var(--primary);
  border-radius: var(--radius-sm);
  padding: 1.2rem;
  margin-bottom: 1.5rem;
}
.codigo-box .c-label {
  font-size: 0.78rem;
  color: var(--gray-400);
  margin-bottom: 4px;
}
.codigo-val {
  font-family: 'Courier New', monospace;
  font-size: 1.9rem;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: 2px;
}
.success-actions { display: flex; flex-direction: column; gap: 0.75rem; }
.btn-copy {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  background: var(--primary);
  color: var(--white);
  transition: background var(--ease);
}
.btn-copy:hover { background: var(--primary-light); }
.btn-wa {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  background: #25d366;
  color: var(--white);
  transition: background var(--ease);
}
.btn-wa:hover { background: #1fba59; }

/* ── Tracking ──────────────────────────────────────────────── */
.tracking-search-wrap { max-width: 560px; margin: 0 auto 2.5rem; }
.tracking-form {
  display: flex;
  gap: 0.75rem;
}
.tracking-form input {
  flex: 1;
  padding: 13px 18px;
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-family: 'Courier New', monospace;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--gray-800);
  transition: border-color var(--ease), box-shadow var(--ease);
}
.tracking-form input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(30,58,95,0.1);
}
.tracking-form input::placeholder {
  text-transform: none;
  letter-spacing: 0;
  font-family: inherit;
  color: var(--gray-400);
}

.tracking-result { max-width: 680px; margin: 0 auto; }
.tracking-card {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  color: var(--white);
  border-radius: var(--radius);
  position: relative;
  overflow: hidden;
  padding: 1.75rem 2rem;
  margin-bottom: 1.75rem;
}
.tracking-card::before {
  content: '';
  position: absolute;
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(249,115,22,0.2) 0%, transparent 65%);
  top: -100px; right: -60px;
  border-radius: 50%;
  pointer-events: none;
}
/* Sección de calificación — fondo claro para legibilidad */
#calificarSection {
  background: #fff;
  color: var(--gray-800);
}
#calificarSection h3 { color: var(--primary) !important; }
#calificarSection p  { color: var(--gray-500) !important; }
#calificarSection::before { display: none; }
.tracking-route {
  font-size: 1.35rem;
  font-weight: 800;
  margin-bottom: 0.6rem;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.tracking-meta {
  display: flex;
  gap: 1.5rem;
  font-size: 0.875rem;
  color: rgba(255,255,255,0.78);
  flex-wrap: wrap;
}
.tracking-meta span { display: flex; align-items: center; gap: 5px; }

.tracking-route, .tracking-meta { position: relative; z-index: 1; }

.timeline {
  background: rgba(255,255,255,0.72);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(255,255,255,0.75);
  border-top-color: rgba(255,255,255,0.95);
  border-radius: var(--radius);
  box-shadow: 0 8px 32px rgba(30,58,95,0.07), inset 0 1px 0 rgba(255,255,255,0.9);
  padding: 1.75rem;
  box-shadow: var(--shadow);
}
.timeline-title {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--gray-400);
  margin-bottom: 1.5rem;
}
.tl-item {
  display: flex;
  gap: 1.1rem;
  position: relative;
  padding-bottom: 1.5rem;
}
.tl-item:last-child { padding-bottom: 0; }
.tl-item:not(:last-child)::before {
  content: '';
  position: absolute;
  left: 19px;
  top: 42px;
  bottom: 0;
  width: 2px;
  background: var(--gray-200);
}
.tl-icon {
  flex-shrink: 0;
  width: 40px; height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  background: var(--gray-100);
  border: 2px solid var(--gray-200);
  position: relative;
  z-index: 1;
  transition: all var(--ease);
}
.tl-item.done .tl-icon {
  background: #dcfce7;
  border-color: #22c55e;
}
.tl-item.current .tl-icon {
  background: var(--primary);
  border-color: var(--primary);
  box-shadow: 0 0 0 5px rgba(30,58,95,0.14);
}
.tl-item.pending .tl-icon { opacity: 0.4; }
.tl-body { flex: 1; padding-top: 6px; }
.tl-body h4 { font-size: 0.925rem; font-weight: 700; color: var(--gray-800); }
.tl-item.pending .tl-body h4 { color: var(--gray-400); font-weight: 500; }
.tl-item.current .tl-body h4 { color: var(--primary); }
.tl-body p {
  font-size: 0.82rem;
  color: var(--gray-400);
  margin-top: 2px;
}
.tl-time {
  font-size: 0.775rem;
  color: var(--gray-400);
  margin-top: 3px;
}

/* ── Loading / Empty ───────────────────────────────────────── */
.loading, .empty-state {
  text-align: center;
  padding: 3rem 1.5rem;
  color: var(--gray-400);
}
.spinner {
  width: 38px; height: 38px;
  border: 3px solid var(--gray-200);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.75s linear infinite;
  margin: 0 auto 1rem;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Fade-in scroll ────────────────────────────────────────── */
.fade-in {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-in.visible { opacity: 1; transform: none; }
.fade-in.d1 { transition-delay: 0.1s; }
.fade-in.d2 { transition-delay: 0.2s; }
.fade-in.d3 { transition-delay: 0.3s; }

/* ── Animations ────────────────────────────────────────────── */
@keyframes fadeDown {
  from { opacity: 0; transform: translateY(-12px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Pantallas bajas (notebooks ~768–900px alto) ────────────── */
@media (max-height: 820px) and (min-width: 769px) {
  .hero-glass {
    padding: 1.75rem clamp(2rem, 5vw, 4rem);
    border-radius: 22px;
  }
  .hero-badge { margin-bottom: 1rem; font-size: .72rem; }
  .hero h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); margin-bottom: 1rem; }
  .hero p { font-size: .95rem; margin-bottom: 1.5rem; }
  .hero-cta { gap: .75rem; }
  .hero-destinations { margin-top: .75rem; }
  .hero-stats { margin-top: 1.25rem; padding-top: 1.25rem; gap: 1.25rem; }
  .stat-num { font-size: 1.2rem; }
  .scroll-hint { bottom: .5rem; }
}

/* ── Wide screens ───────────────────────────────────────────── */
@media (min-width: 1280px) {
  .hero-glass { padding: 3.5rem 6rem 4rem; }
  .hero h1 { font-size: 3.75rem; }
  .stat-num { font-size: 1.55rem; }
}

/* ── Responsive ────────────────────────────────────────────── */
@media (max-width: 768px) {
  .navbar-links {
    position: fixed;
    top: 68px; left: 0; right: 0;
    background: rgba(8, 20, 40, 0.96);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 1.5rem 2rem;
    gap: 1.25rem;
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
    transition: transform var(--ease), opacity var(--ease);
    z-index: 999;
  }
  .navbar-links.open {
    transform: none;
    opacity: 1;
    pointer-events: all;
  }
  .hamburger { display: flex; }
  /* En mobile: ocultar auth del navbar — va dentro del hamburger */
  #navLoginBtn, #navUserMenu { display: none !important; }
  .nav-li-auth { display: block; }
  /* Separador de auth dentro del menú hamburger */
  .nav-li-auth {
    border-top: 1px solid rgba(255,255,255,.12);
    padding-top: .85rem !important;
    margin-top: .25rem;
  }
  .nav-li-auth a, .nav-li-auth button {
    display: block; width: 100%; text-align: left;
    font-size: .95rem; font-weight: 600; padding: .25rem 0;
    color: rgba(255,255,255,.85); background: none; border: none;
    cursor: pointer; font-family: inherit; text-decoration: none;
  }
  .nav-li-auth .mobile-login-btn {
    color: var(--accent) !important;
    font-weight: 700;
  }
  .nav-li-auth .mobile-logout-btn { color: rgba(255,100,100,.85) !important; font-size: .85rem; margin-top: .35rem; }
  section { padding: 60px 1.25rem; }
  .steps::before { display: none; }
  .step { gap: 1.25rem; }
  .step-num { width: 52px; height: 52px; }
  .hero-content { padding: 0 1rem; width: 100%; }
  /* Stats: evitar overflow en pantallas angostas */
  .hero-stats { gap: .6rem; flex-wrap: wrap; justify-content: center; }
  .hero-stat-div { display: none; }
  .stat-num { font-size: 1.1rem; }
  .stat-lbl { font-size: .6rem; letter-spacing: .5px; }
  /* Scroll hint: subir para que no tape los stats */
  .scroll-hint { bottom: 1.25rem; }
  .scroll-hint span { display: none; }
  .tracking-form { flex-direction: column; }

  /* ── Tabla de viajes → cards en mobile ── */
  .table-wrap { overflow: visible; }
  #viajesTable, #viajesTable tbody { display: block !important; }
  #viajesTable thead { display: none !important; }
  #viajesTable tr {
    display: block;
    background: #fff;
    border: 1px solid #dde3ec;
    border-radius: 12px;
    padding: 1rem 1.1rem;
    margin-bottom: .75rem;
  }
  #viajesTable td { display: block; border: none; padding: .15rem 0; }
  /* Origen y destino destacados */
  #viajesTable td:nth-child(1) { font-size: 1rem; font-weight: 700; color: var(--primary); }
  #viajesTable td:nth-child(2) { font-size: .88rem; }
  /* Fecha salida */
  #viajesTable td:nth-child(3) { font-size: .78rem; color: var(--gray-500); }
  /* Llegada estimada: ocultar en mobile */
  #viajesTable td:nth-child(4) { display: none; }
  /* Barra disponibilidad */
  #viajesTable td:nth-child(5) { margin: .4rem 0; }
  /* Precio + botón: en línea */
  #viajesTable td:nth-child(6),
  #viajesTable td:nth-child(7) { display: inline-block; vertical-align: middle; }
  #viajesTable td:nth-child(6) { margin-right: .75rem; }
  #viajesTable td:nth-child(6) .price-value { font-size: 1rem; }
  /* ── Modal mobile: sheet desde abajo, encaja perfecto ── */
  .modal-overlay {
    align-items: flex-end;
    padding: 0;
  }
  .modal {
    max-height: 88vh;
    height: 88vh;
    border-radius: 18px 18px 0 0;
    width: 100%;
    max-width: 100%;
    display: flex;
    flex-direction: column;
  }
  .modal-header {
    flex-shrink: 0;
    padding: 1rem 1.1rem;
  }
  .modal-header h3 { font-size: .95rem; }
  .modal-body {
    flex: 1;
    overflow-y: auto;
    padding: 1rem 1.1rem;
    -webkit-overflow-scrolling: touch;
  }
  .modal-body .form-group { margin-bottom: .7rem; }
  .modal-body label { font-size: .8rem; margin-bottom: 2px; }
  .modal-body input, .modal-body select, .modal-body textarea {
    font-size: .88rem;
    padding: 8px 10px;
  }
  .modal-body .form-hint { font-size: .7rem; }
  /* Grillas de 2 col → 1 col en mobile */
  .modal-body [style*="grid-template-columns:1fr 1fr"] {
    grid-template-columns: 1fr !important;
  }
  #groupTipoEntrega > div { grid-template-columns: 1fr 1fr; }
  /* Declaración jurada: texto más pequeño */
  .modal-body [style*="border:1.5px solid #f97316"] p { font-size: .75rem !important; }
  #submitBtn { padding: 12px; font-size: .9rem; width: 100%; }
  .insurance-pills { flex-direction: column; align-items: center; }
  .dual-grid { grid-template-columns: 1fr; }
  .dual-card { padding: 2rem 1.5rem; }
  .trust-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .hero h1 { font-size: 1.65rem; letter-spacing: -.5px; }
  .hero-glass { padding: 1.75rem 1.25rem; border-radius: 18px; }
  .hero p { font-size: .9rem; margin-bottom: 1.5rem; }
  .hero-badge { font-size: .65rem; padding: 5px 14px; }
  .hero-cta { flex-direction: column; align-items: stretch; gap: .75rem; }
  .hero-cta .btn { text-align: center; padding: 13px 20px; font-size: .9rem; }
  .hero-stats { gap: .5rem; padding-top: 1.25rem; }
  .hero-stat-div { display: none; }
  .stat-num { font-size: 1rem; }
  .stat-lbl { font-size: .58rem; }
  .hero-destinations { display: none; }
  .scroll-hint { display: none; }
  .services-grid { grid-template-columns: 1fr; }
  .trust-grid { grid-template-columns: 1fr; }
  .o1, .o2 { width: 260px; height: 260px; }
  .o3, .o4 { display: none; }
}

/* ══════════════════════════════════════════════════════════════
   SKELETON LOADING
   ══════════════════════════════════════════════════════════════ */
.skel {
  display: block; border-radius: 4px;
  background: linear-gradient(90deg, var(--gray-200) 25%, var(--gray-100) 50%, var(--gray-200) 75%);
  background-size: 400% 100%;
  animation: skel-shine 1.4s ease infinite;
}
@keyframes skel-shine {
  0%   { background-position: 100% 0; }
  100% { background-position: -100% 0; }
}
.skel-text  { height: 13px; width: 75%; }
.skel-short { height: 13px; width: 50%; }
.skel-btn   { height: 30px; width: 72px; border-radius: 6px; }
.skel-bar   { height: 7px; width: 90%; border-radius: 4px; }
.skel-td td { padding: 13px 16px; }

/* ── Urgencia countdown ── */
.urgencia {
  display: inline-block; padding: 2px 8px; border-radius: 50px;
  font-size: .72rem; font-weight: 700; white-space: nowrap;
  background: var(--gray-100); color: var(--gray-500);
}
.urgencia-hoy    { background: #fee2e2; color: #dc2626; animation: pulse-u .8s ease infinite; }
.urgencia-manana { background: #ffedd5; color: #c2410c; }
.urgencia-pronto { background: #fef9c3; color: #a16207; }
@keyframes pulse-u {
  0%,100% { opacity: 1; } 50% { opacity: .65; }
}

/* ══════════════════════════════════════════════════════════════
   PAGE TRANSITIONS
   ══════════════════════════════════════════════════════════════ */
#page-curtain {
  position: fixed; inset: 0; z-index: 99999;
  background: var(--primary-dark);
  opacity: 0; pointer-events: none;
  transition: opacity .28s ease;
}
#page-curtain.in  { opacity: 1;  pointer-events: all; }
.page-loaded body { animation: page-fadein .35s ease both; }
@keyframes page-fadein { from { opacity: 0; } to { opacity: 1; } }
