/* ═══════════════════════════════════════════════════
   DELSY ENCOMIENDAS — Tarifario Interactivo
   Paleta: azul marino centroamericano + rojo bandera
   Fuente: Plus Jakarta Sans + Instrument Serif
   ═══════════════════════════════════════════════════ */

/* ── DESIGN TOKENS ── */
:root {
  /* Tipografía */
  --font-body: 'Plus Jakarta Sans', 'Segoe UI', sans-serif;
  --font-display: 'Instrument Serif', Georgia, serif;

  /* Type scale */
  --text-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.875rem);
  --text-sm: clamp(0.875rem, 0.82rem + 0.25vw, 1rem);
  --text-base: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  --text-lg: clamp(1.125rem, 1rem + 0.6vw, 1.5rem);
  --text-xl: clamp(1.5rem, 1.2rem + 1.2vw, 2.25rem);
  --text-2xl: clamp(2rem, 1.2rem + 2.5vw, 3.5rem);
  --text-hero: clamp(2.5rem, 1rem + 5vw, 4.5rem);

  /* Espaciado */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;

  /* Paleta — Azul marino centroamericano + rojo bandera */
  --color-bg: #f8f9fc;
  --color-surface: #ffffff;
  --color-surface-2: #f1f4f9;
  --color-surface-offset: #e8ecf4;
  --color-border: #d1d9e6;
  --color-divider: #e2e8f0;

  --color-text: #1a2540;
  --color-text-muted: #5a6a8a;
  --color-text-faint: #9aaac4;
  --color-text-inverse: #ffffff;

  /* Azul marino — color primario */
  --color-primary: #1a3a6b;
  --color-primary-hover: #142e56;
  --color-primary-active: #0e2140;
  --color-primary-light: #dce6f5;

  /* Rojo bandera — acento */
  --color-accent: #c0392b;
  --color-accent-hover: #a93226;
  --color-accent-light: #fde8e6;

  /* WhatsApp verde */
  --color-whatsapp: #25D366;
  --color-whatsapp-hover: #1da856;
  --color-whatsapp-dark: #128C7E;

  /* Semánticos */
  --color-success: #2e7d32;
  --color-gold: #f59e0b;
  --color-gold-light: #fef3c7;
  --color-sky: #0369a1;
  --color-sky-light: #dbeafe;

  /* Radios */
  --radius-sm: 0.375rem;
  --radius-md: 0.625rem;
  --radius-lg: 0.875rem;
  --radius-xl: 1.25rem;
  --radius-full: 9999px;

  /* Sombras */
  --shadow-xs: 0 1px 2px rgba(26, 37, 64, 0.06);
  --shadow-sm: 0 2px 6px rgba(26, 37, 64, 0.08);
  --shadow-md: 0 4px 16px rgba(26, 37, 64, 0.1);
  --shadow-lg: 0 12px 36px rgba(26, 37, 64, 0.14);

  /* Transiciones */
  --transition: 180ms cubic-bezier(0.16, 1, 0.3, 1);

  /* Layout */
  --content-default: 1120px;
  --content-wide: 1280px;
  --content-narrow: 680px;
}

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

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
  min-height: 100dvh;
}

img, svg { display: block; max-width: 100%; }
ul[role='list'], ol[role='list'] { list-style: none; }
input, button, textarea, select { font: inherit; color: inherit; }
h1, h2, h3, h4, h5 { line-height: 1.15; text-wrap: balance; }
p, li { text-wrap: pretty; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; }
table { border-collapse: collapse; width: 100%; }

:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

::selection {
  background: var(--color-primary-light);
  color: var(--color-primary);
}

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0;
  margin: -1px; overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border-width: 0;
}

a, button, [role='button'], input, textarea, select {
  transition: color var(--transition), background var(--transition),
    border-color var(--transition), box-shadow var(--transition), transform var(--transition);
}

/* ── CONTAINER ── */
.container {
  max-width: var(--content-default);
  margin-inline: auto;
  padding-inline: clamp(var(--space-4), 5vw, var(--space-10));
}

/* ── BUTTONS ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-weight: 600;
  border-radius: var(--radius-full);
  text-decoration: none;
  white-space: nowrap;
  border: 2px solid transparent;
}

.btn-sm { padding: 0.45rem 1.1rem; font-size: var(--text-sm); }
.btn-lg { padding: 0.875rem 2rem; font-size: var(--text-sm); }

.btn-primary {
  background: var(--color-primary);
  color: var(--color-text-inverse);
  border-color: var(--color-primary);
}
.btn-primary:hover { background: var(--color-primary-hover); border-color: var(--color-primary-hover); transform: translateY(-1px); box-shadow: var(--shadow-md); }

.btn-outline {
  background: transparent;
  color: var(--color-text-inverse);
  border-color: rgba(255,255,255,0.4);
}
.btn-outline:hover { background: rgba(255,255,255,0.15); border-color: rgba(255,255,255,0.7); }

.btn-whatsapp {
  background: var(--color-whatsapp);
  color: #fff;
  border-color: var(--color-whatsapp);
}
.btn-whatsapp:hover { background: var(--color-whatsapp-hover); border-color: var(--color-whatsapp-hover); transform: translateY(-1px); box-shadow: 0 4px 16px rgba(37, 211, 102, 0.35); }

/* ══════════════════════════════════════
   HEADER
══════════════════════════════════════ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(248, 249, 252, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
  box-shadow: var(--shadow-xs);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: var(--space-6);
  height: 68px;
}

.logo {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  flex-shrink: 0;
  text-decoration: none;
}

.logo-text {
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--color-text);
  letter-spacing: -0.01em;
}
.logo-text strong { font-weight: 800; color: var(--color-primary); }

.main-nav { flex: 1; }
.main-nav ul {
  display: flex;
  gap: var(--space-1);
  list-style: none;
  justify-content: center;
}
.main-nav a {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text-muted);
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-md);
}
.main-nav a:hover { color: var(--color-primary); background: var(--color-primary-light); }

.header-cta { flex-shrink: 0; }

/* ══════════════════════════════════════
   HERO
══════════════════════════════════════ */
.hero-section {
  position: relative;
  padding: clamp(var(--space-12), 8vw, var(--space-24)) 0 0;
  overflow: hidden;
  background: linear-gradient(135deg, var(--color-primary) 0%, #0e2140 60%, #1a3a6b 100%);
  color: white;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 80% 20%, rgba(192, 57, 43, 0.25) 0%, transparent 60%),
    radial-gradient(ellipse 60% 80% at 10% 80%, rgba(255,255,255,0.04) 0%, transparent 60%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--space-6);
  padding-bottom: var(--space-16);
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.2);
  color: rgba(255,255,255,0.9);
  padding: 0.375rem 1rem;
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.02em;
}

.badge-dot {
  width: 8px;
  height: 8px;
  background: var(--color-whatsapp);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(0.85); }
}

.hero-title {
  font-family: var(--font-display);
  font-size: var(--text-hero);
  font-weight: 400;
  color: white;
  line-height: 1.1;
  max-width: 14ch;
}
.hero-title em {
  font-style: italic;
  color: #ffcc80;
}

.hero-subtitle {
  font-size: var(--text-lg);
  color: rgba(255,255,255,0.8);
  line-height: 1.6;
  max-width: 54ch;
}

.break-desktop { display: none; }
@media (min-width: 768px) { .break-desktop { display: block; } }

.hero-actions {
  display: flex;
  gap: var(--space-3);
  flex-wrap: wrap;
  justify-content: center;
}

.hero-phones {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-top: var(--space-2);
}

.phone-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  color: rgba(255,255,255,0.75);
  font-size: var(--text-sm);
  font-weight: 500;
}
.phone-link:hover { color: white; }
.phone-divider { color: rgba(255,255,255,0.3); }

.hero-flags {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: center;
  gap: 0;
  background: rgba(0,0,0,0.2);
  border-top: 1px solid rgba(255,255,255,0.1);
  overflow: hidden;
}

.flag-item {
  flex: 1;
  text-align: center;
  padding: var(--space-3) var(--space-2);
  font-size: var(--text-sm);
  font-weight: 600;
  color: rgba(255,255,255,0.85);
  border-right: 1px solid rgba(255,255,255,0.1);
  transition: background var(--transition);
}
.flag-item:last-child { border-right: none; }
.flag-item:hover { background: rgba(255,255,255,0.08); color: white; }

/* ══════════════════════════════════════
   HIGHLIGHTS
══════════════════════════════════════ */
.highlights-section {
  padding: clamp(var(--space-10), 5vw, var(--space-16)) 0;
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-divider);
}

.highlights-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: var(--space-5);
}

.highlight-card {
  display: flex;
  gap: var(--space-4);
  align-items: flex-start;
  padding: var(--space-5);
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  transition: box-shadow var(--transition), transform var(--transition);
}
.highlight-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.highlight-card--featured {
  background: var(--color-primary-light);
  border-color: rgba(26, 58, 107, 0.2);
}

.highlight-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
}
.highlight-icon--red { background: var(--color-accent-light); color: var(--color-accent); }
.highlight-icon--blue { background: var(--color-sky-light); color: var(--color-sky); }
.highlight-icon--gold { background: var(--color-gold-light); color: var(--color-gold); }
.highlight-icon--green { background: #dcfce7; color: var(--color-success); }

.highlight-body h3 {
  font-size: var(--text-base);
  font-weight: 700;
  margin-bottom: var(--space-1);
}
.highlight-body p { font-size: var(--text-sm); color: var(--color-text-muted); line-height: 1.55; }

/* ══════════════════════════════════════
   SECTION HEADERS
══════════════════════════════════════ */
.section-header {
  text-align: center;
  margin-bottom: clamp(var(--space-8), 4vw, var(--space-12));
}

.section-label {
  display: inline-block;
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-primary);
  background: var(--color-primary-light);
  padding: 0.3rem 0.9rem;
  border-radius: var(--radius-full);
  margin-bottom: var(--space-3);
}

.section-header h2 {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 400;
  color: var(--color-text);
  margin-bottom: var(--space-3);
}

.section-header p {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  max-width: 56ch;
  margin-inline: auto;
  line-height: 1.65;
}

.section-header--light .section-label {
  color: var(--color-text-inverse);
  background: rgba(255,255,255,0.2);
}
.section-header--light h2 { color: var(--color-text-inverse); }
.section-header--light p { color: rgba(255,255,255,0.75); }

/* ══════════════════════════════════════
   RATES TABLE SECTION
══════════════════════════════════════ */
.rates-section {
  padding: clamp(var(--space-12), 6vw, var(--space-20)) 0;
  background: var(--color-bg);
}

/* Filtro */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-bottom: var(--space-4);
  justify-content: center;
}

.filter-btn {
  padding: 0.45rem 1.1rem;
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  font-weight: 600;
  border: 2px solid var(--color-border);
  color: var(--color-text-muted);
  background: var(--color-surface);
  transition: all var(--transition);
}
.filter-btn:hover { border-color: var(--color-primary); color: var(--color-primary); background: var(--color-primary-light); }
.filter-btn.active { background: var(--color-primary); color: white; border-color: var(--color-primary); }

/* Tabs */
.tabs-bar {
  display: flex;
  gap: var(--space-2);
  margin-bottom: var(--space-5);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-1);
  width: fit-content;
}

.tab-btn {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: 0.6rem 1.25rem;
  border-radius: calc(var(--radius-lg) - 2px);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text-muted);
  transition: all var(--transition);
}
.tab-btn:hover { color: var(--color-primary); background: var(--color-primary-light); }
.tab-btn.active { background: var(--color-primary); color: white; box-shadow: var(--shadow-sm); }

/* Panel */
.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* Tabla */
.table-wrapper {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border);
  margin-bottom: var(--space-3);
  /* Indicador visual de scroll horizontal en móvil */
  background:
    linear-gradient(to right, var(--color-surface) 30%, rgba(255,255,255,0)) center left,
    linear-gradient(to left,  var(--color-surface) 30%, rgba(255,255,255,0)) center right,
    radial-gradient(farthest-side at 0 50%, rgba(26,37,64,0.10), rgba(0,0,0,0)) center left,
    radial-gradient(farthest-side at 100% 50%, rgba(26,37,64,0.10), rgba(0,0,0,0)) center right;
  background-repeat: no-repeat;
  background-size: 40px 100%, 40px 100%, 14px 100%, 14px 100%;
  background-attachment: local, local, scroll, scroll;
}

.rates-table {
  min-width: 560px;
  width: 100%;
  background: var(--color-surface);
}

.rates-table thead tr {
  background: var(--color-primary);
  color: white;
}

.rates-table th {
  padding: var(--space-3) var(--space-4);
  font-size: var(--text-sm);
  font-weight: 700;
  text-align: left;
  letter-spacing: 0.03em;
  white-space: nowrap;
}

.rates-table tbody tr {
  border-bottom: 1px solid var(--color-divider);
  transition: background var(--transition);
}
.rates-table tbody tr:last-child { border-bottom: none; }
.rates-table tbody tr:hover { background: var(--color-primary-light); }
.rates-table tbody tr.hidden { display: none; }

.rates-table td {
  padding: var(--space-3) var(--space-4);
  font-size: var(--text-sm);
  color: var(--color-text);
  vertical-align: middle;
}

.flag-cell { margin-right: var(--space-1); }

.price-cell strong {
  font-size: 1.1rem;
  color: var(--color-primary);
  font-weight: 800;
}

.badge-best {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.65rem;
  background: var(--color-gold-light);
  color: #92400e;
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.02em;
  border: 1px solid #fcd34d;
  white-space: nowrap;
}

.table-note {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  margin-top: var(--space-2);
}

/* Calculadora */
.calc-card {
  margin-top: var(--space-8);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.calc-header {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-5) var(--space-6);
  border-bottom: 1px solid var(--color-divider);
  background: var(--color-surface-2);
}
.calc-header h3 { font-size: var(--text-base); font-weight: 700; }

.calc-body {
  padding: var(--space-6);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: var(--space-6);
  align-items: center;
}

.calc-fields {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-4);
}

.calc-result {
  min-width: 200px;
  padding: var(--space-5);
  background: var(--color-surface-2);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  min-height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.result-placeholder {
  text-align: center;
  color: var(--color-text-faint);
}
.result-placeholder svg { margin: 0 auto var(--space-2); }
.result-placeholder p { font-size: var(--text-xs); line-height: 1.5; }

.result-value {
  text-align: center;
}
.result-label {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
  margin-bottom: var(--space-1);
}
.result-amount {
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--color-primary);
  line-height: 1;
}
.result-currency {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  font-weight: 500;
}
.result-detail {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  margin-top: var(--space-2);
}

/* ══════════════════════════════════════
   FORM FIELDS (shared)
══════════════════════════════════════ */
.field-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.field-group label {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text);
}

.field-group input,
.field-group select,
.field-group textarea {
  padding: 0.65rem var(--space-4);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-bg);
  font-size: var(--text-sm);
  color: var(--color-text);
  appearance: none;
  -webkit-appearance: none;
}
.field-group input:focus,
.field-group select:focus,
.field-group textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px var(--color-primary-light);
}
.field-group select {
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%235a6a8a' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.9rem center;
  padding-right: 2.5rem;
}
.field-group textarea { resize: vertical; min-height: 90px; }
.field-group input.invalid,
.field-group select.invalid { border-color: var(--color-accent); }

/* ══════════════════════════════════════
   DESTINATIONS
══════════════════════════════════════ */
.destinations-section {
  padding: clamp(var(--space-12), 6vw, var(--space-20)) 0;
  background: linear-gradient(160deg, var(--color-primary) 0%, #0e2140 100%);
  color: white;
}

.destinations-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-4);
}

.dest-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-3);
  padding: var(--space-5);
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius-lg);
  transition: background var(--transition), transform var(--transition);
}
.dest-card:hover { background: rgba(255,255,255,0.12); transform: translateY(-2px); }

.dest-flag { font-size: 2.5rem; line-height: 1; }

.dest-info h3 {
  font-size: var(--text-base);
  font-weight: 700;
  color: white;
  margin-bottom: var(--space-2);
}

.dest-services {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  margin-bottom: var(--space-2);
}

.service-tag {
  display: inline-block;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.02em;
}
.service-tag--air { background: rgba(192, 57, 43, 0.25); color: #ffb3ad; border: 1px solid rgba(192, 57, 43, 0.4); }
.service-tag--sea { background: rgba(3, 105, 161, 0.35); color: #93c5fd; border: 1px solid rgba(3, 105, 161, 0.4); }

.dest-note { font-size: var(--text-xs); color: rgba(255,255,255,0.6); }

.dest-badge {
  position: absolute;
  top: var(--space-3);
  right: var(--space-3);
  background: var(--color-gold);
  color: #1a1a1a;
  font-size: 0.68rem;
  font-weight: 800;
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-full);
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

/* ══════════════════════════════════════
   HOW IT WORKS
══════════════════════════════════════ */
.how-section {
  padding: clamp(var(--space-12), 6vw, var(--space-20)) 0;
  background: var(--color-surface);
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: var(--space-5);
  position: relative;
}

.step-card {
  position: relative;
  padding: var(--space-6) var(--space-5);
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  transition: box-shadow var(--transition), transform var(--transition);
}
.step-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }

.step-number {
  font-size: 3.5rem;
  font-weight: 900;
  color: var(--color-primary-light);
  line-height: 1;
  margin-bottom: var(--space-3);
  font-family: var(--font-display);
}

.step-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-lg);
  background: var(--color-primary-light);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-4);
}

.step-card h3 {
  font-size: var(--text-base);
  font-weight: 700;
  margin-bottom: var(--space-2);
}
.step-card p { font-size: var(--text-sm); color: var(--color-text-muted); line-height: 1.6; }

/* ══════════════════════════════════════
   QUOTE FORM
══════════════════════════════════════ */
.quote-section {
  padding: clamp(var(--space-12), 6vw, var(--space-20)) 0;
  background: var(--color-bg);
}

.quote-wrapper {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: clamp(var(--space-8), 4vw, var(--space-16));
  align-items: flex-start;
}

.quote-info .section-label { margin-bottom: var(--space-4); }
.quote-info h2 {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 400;
  margin-bottom: var(--space-4);
  color: var(--color-text);
}
.quote-info > p {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  line-height: 1.65;
  margin-bottom: var(--space-6);
}

.contact-phones {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.contact-phone-link {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--color-primary);
}
.contact-phone-link:hover { color: var(--color-primary-hover); }

.quote-form {
  background: var(--color-surface);
  padding: clamp(var(--space-6), 3vw, var(--space-8));
  border-radius: var(--radius-xl);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
}

.form-note {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  text-align: center;
  line-height: 1.5;
}

/* ══════════════════════════════════════
   CONTACT SECTION
══════════════════════════════════════ */
.contact-section {
  padding: clamp(var(--space-12), 6vw, var(--space-20)) 0;
  background: var(--color-surface);
  border-top: 1px solid var(--color-divider);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(var(--space-8), 5vw, var(--space-16));
  align-items: flex-start;
}

.contact-info .section-label { margin-bottom: var(--space-4); }
.contact-info h2 {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 400;
  margin-bottom: var(--space-3);
}
.contact-info > p {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  margin-bottom: var(--space-8);
  max-width: 44ch;
  line-height: 1.65;
}

.contact-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}

.contact-list li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-4);
}

.contact-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  background: var(--color-primary-light);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-detail {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}
.contact-label {
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-text-muted);
}
.contact-detail a, .contact-detail span {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text);
}
.contact-detail a:hover { color: var(--color-primary); }

/* WhatsApp CTA Card */
.wa-cta-card {
  padding: var(--space-8);
  background: linear-gradient(135deg, #1fad55 0%, #128C7E 100%);
  border-radius: var(--radius-xl);
  color: white;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-4);
  box-shadow: var(--shadow-lg);
}

.wa-icon-large {
  width: 64px;
  height: 64px;
  background: rgba(255,255,255,0.15);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
}

.wa-cta-card h3 {
  font-size: var(--text-lg);
  font-weight: 700;
}
.wa-cta-card p {
  font-size: var(--text-sm);
  opacity: 0.85;
  line-height: 1.55;
}

.wa-cta-card .btn-whatsapp {
  background: white;
  color: var(--color-whatsapp-dark);
  border-color: white;
}
.wa-cta-card .btn-whatsapp:hover {
  background: rgba(255,255,255,0.9);
  box-shadow: 0 4px 16px rgba(0,0,0,0.2);
}

.wa-phones-inline {
  display: flex;
  gap: var(--space-2);
  align-items: center;
  font-size: var(--text-sm);
  opacity: 0.8;
}
.wa-phones-inline a { color: white; font-weight: 600; }
.wa-phones-inline span { opacity: 0.5; }
.wa-phones-inline a:hover { opacity: 1; }

/* ══════════════════════════════════════
   FOOTER
══════════════════════════════════════ */
.site-footer {
  background: var(--color-text);
  color: rgba(255,255,255,0.7);
  padding: var(--space-10) 0 0;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: clamp(var(--space-6), 4vw, var(--space-12));
  align-items: flex-start;
  padding-bottom: var(--space-8);
}

.footer-brand .logo-text { color: rgba(255,255,255,0.8); }
.footer-brand .logo-text strong { color: white; }
.footer-brand p {
  font-size: var(--text-sm);
  margin-top: var(--space-3);
  max-width: 36ch;
  line-height: 1.6;
  color: rgba(255,255,255,0.5);
}

.footer-nav ul {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}
.footer-nav a {
  font-size: var(--text-sm);
  font-weight: 500;
  color: rgba(255,255,255,0.6);
}
.footer-nav a:hover { color: white; }

.footer-contact {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  align-items: flex-start;
}
.footer-phone {
  font-size: var(--text-sm);
  font-weight: 600;
  color: rgba(255,255,255,0.7);
}
.footer-phone:hover { color: white; }
.footer-wa { margin-top: var(--space-1); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: var(--space-4) 0;
}
.footer-bottom p {
  font-size: var(--text-xs);
  color: rgba(255,255,255,0.35);
  text-align: center;
}

/* ══════════════════════════════════════
   WHATSAPP FLOTANTE
══════════════════════════════════════ */
.wa-float {
  position: fixed;
  bottom: var(--space-6);
  right: var(--space-6);
  z-index: 200;
  display: flex;
  align-items: center;
  gap: var(--space-2);
  background: var(--color-whatsapp);
  color: white;
  padding: 0.875rem 1.25rem;
  border-radius: var(--radius-full);
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.45);
  font-size: var(--text-sm);
  font-weight: 700;
  text-decoration: none;
  transition: transform var(--transition), box-shadow var(--transition);
}
.wa-float:hover { transform: translateY(-3px) scale(1.02); box-shadow: 0 8px 28px rgba(37, 211, 102, 0.55); }
.wa-float-label { white-space: nowrap; }

/* ══════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════ */
@media (max-width: 1024px) {
  .calc-body { grid-template-columns: 1fr; }
  .calc-result { min-width: auto; width: 100%; }
  .calc-fields { grid-template-columns: 1fr 1fr; gap: var(--space-3); }
  .quote-wrapper { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .main-nav { display: none; }
  .header-inner { justify-content: space-between; }

  .hero-flags { flex-wrap: wrap; overflow-x: visible; justify-content: center; }
  .hero-flags .flag-item { flex: 1 1 auto; min-width: 80px; padding: var(--space-2) var(--space-3); font-size: 0.75rem; border-right: none; border-bottom: 1px solid rgba(255,255,255,0.1); }

  /* Tabla responsive: solo Destino + Empaque + Precio en móvil */
  .rates-table th:nth-child(4),
  .rates-table td:nth-child(4) { display: none; }  /* Tránsito */
  .rates-table th:nth-child(5),
  .rates-table td:nth-child(5) { display: none; }  /* Nota */
  .rates-table th:nth-child(6),
  .rates-table td:nth-child(6) { display: none; }  /* Badge */
  .rates-table { min-width: 0; width: 100%; }
  .rates-table th,
  .rates-table td { padding: var(--space-2) var(--space-3); font-size: 0.8rem; }
  /* Columna destino: ancho fijo para no aplastar el resto */
  .rates-table th:nth-child(1),
  .rates-table td:nth-child(1) { width: 80px; min-width: 80px; max-width: 80px; word-break: break-word; }
  /* Columna empaque: permite salto de línea en dimensiones */
  .rates-table th:nth-child(2),
  .rates-table td:nth-child(2) { word-break: break-word; white-space: normal; }
  /* Columna precio: ancho fijo */
  .rates-table th:nth-child(3),
  .rates-table td:nth-child(3) { width: 72px; min-width: 72px; white-space: nowrap; }

  /* Tabs de modalidad: apiladas si no caben */
  .tabs-bar { width: 100%; flex-wrap: wrap; }
  .tab-btn { flex: 1; justify-content: center; font-size: 0.78rem; padding: 0.5rem 0.75rem; }

  .calc-fields { grid-template-columns: 1fr; }

  .form-row { grid-template-columns: 1fr; }

  .footer-inner { grid-template-columns: 1fr; gap: var(--space-8); }

  .destinations-grid { grid-template-columns: 1fr 1fr; }

  .steps-grid { grid-template-columns: 1fr 1fr; }

  .wa-float-label { display: none; }
  .wa-float { padding: 0.875rem; }
}

@media (max-width: 480px) {
  .filter-bar { gap: var(--space-1); flex-wrap: wrap; justify-content: center; overflow-x: visible; padding-bottom: 0; }
  .filter-btn { flex: 0 0 auto; padding: 0.4rem 0.85rem; font-size: 0.72rem; }

  .tabs-bar { width: 100%; }
  .tab-btn { font-size: 0.72rem; padding: 0.45rem 0.6rem; }

  .destinations-grid { grid-template-columns: 1fr; }
  .steps-grid { grid-template-columns: 1fr; }
  .highlights-grid { grid-template-columns: 1fr; }

  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { text-align: center; justify-content: center; }

  .calc-card .calc-body { padding: var(--space-4); }
}

/* ══════════════════════════════════════
   BOTÓN PRÓXIMA SALIDA (Hero)
══════════════════════════════════════ */
.btn-next-departure {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(4px);
}
.btn-next-departure:hover {
  background: rgba(255, 255, 255, 0.25);
  border-color: rgba(255, 255, 255, 0.85);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}
