:root {
  --font-sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --color-bg: #f8fafc;
  --color-surface: #ffffff;
  --color-surface-hover: #f1f5f9;
  --color-border: #e2e8f0;
  --color-border-dark: #cbd5e1;
  --color-text-main: #0f172a;
  --color-text-muted: #334155;
  --color-text-subtle: #64748b;
  --color-primary: #0284c7;
  --color-primary-dark: #0369a1;
  --color-primary-light: #e0f2fe;
  --color-accent: #0f766e;
  --color-accent-light: #ccfbf1;
  --color-danger: #b91c1c;
  --color-danger-light: #fee2e2;
  --color-warning: #9a3412;
  --color-warning-light: #ffedd5;
  --color-success: #15803d;
  --color-success-light: #dcfce7;
  --shadow-sm: 0 1px 3px 0 rgb(0 0 0 / 0.08);
  --shadow-md: 0 4px 8px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.06);
  --shadow-lg: 0 12px 24px -4px rgb(0 0 0 / 0.12), 0 6px 10px -4px rgb(0 0 0 / 0.08);
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-xl: 20px;
  --max-width: 1140px;
}

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

html {
  max-width: 100%;
  overflow-x: hidden;
  box-sizing: border-box;
}

body {
  font-family: var(--font-sans);
  background-color: var(--color-bg);
  color: var(--color-text-main);
  line-height: 1.65;
  font-size: 17px;
  min-width: 320px;
  max-width: 100%;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

body.menu-open {
  overflow: hidden !important;
  touch-action: none !important;
}

a {
  color: var(--color-primary-dark);
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
  font-weight: 500;
}

a:hover {
  color: var(--color-primary);
}

.site-header {
  background-color: #0b192c;
  color: #ffffff;
  border-bottom: 3px solid var(--color-primary);
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: var(--shadow-sm);
}

.header-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0.85rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: #ffffff;
}

.brand-icon {
  width: 36px;
  height: 36px;
  fill: #38bdf8;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
}

.brand-name {
  font-size: 1.375rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.brand-suffix {
  color: #38bdf8;
}

.desktop-nav {
  display: flex;
  align-items: center;
}

.nav-links {
  display: flex;
  gap: 0.5rem;
  list-style: none;
  font-size: 0.95rem;
  align-items: center;
}

.nav-links a {
  color: #cbd5e1;
  text-decoration: none;
  font-weight: 600;
  white-space: nowrap;
  transition: all 0.15s ease;
  padding: 0.45rem 0.85rem;
  border-radius: var(--radius-sm);
}

.nav-links a:hover,
.nav-links a.active {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
  text-decoration: none;
}

.nav-links a.active {
  color: #38bdf8;
  font-weight: 700;
  background: rgba(56, 189, 248, 0.12);
}

/* Acciones de Cabecera (Desktop & Mobile) */
.header-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.header-sos-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background-color: #ef4444;
  color: #ffffff !important;
  font-size: 0.8125rem;
  font-weight: 800;
  padding: 0.45rem 0.85rem;
  border-radius: 9999px;
  text-decoration: none !important;
  letter-spacing: 0.03em;
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(239, 68, 68, 0.35);
  transition: background-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.header-sos-btn:hover {
  background-color: #dc2626;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.5);
  text-decoration: none !important;
}

.header-menu-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  height: 38px;
  padding: 0 0.85rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-md);
  color: #ffffff;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 700;
  white-space: nowrap;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.header-menu-btn:hover,
.header-menu-btn:focus-visible {
  background: rgba(255, 255, 255, 0.18);
  border-color: #38bdf8;
  outline: none;
}

/* ===================================================
   DRAWER MÓVIL Y DESKTOP (MENÚ LATERAL RESPONSIVO)
   =================================================== */
.drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(11, 25, 44, 0.65);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  display: block;
}

.drawer-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.mobile-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 380px;
  max-width: 88vw;
  background: #0b192c;
  color: #ffffff;
  z-index: 1000;
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: -8px 0 32px rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-left: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-drawer.open {
  transform: translateX(0);
}

.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.15rem 1.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  background: #07101e;
}

.drawer-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 800;
  font-size: 1.125rem;
  color: #ffffff;
}

.drawer-close-btn {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-sm);
  color: #94a3b8;
  cursor: pointer;
  padding: 0;
  transition: color 0.15s ease, background 0.15s ease;
}

.drawer-close-btn:hover,
.drawer-close-btn:focus-visible {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
  outline: none;
}

.drawer-body {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 1.25rem 1rem 3rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.drawer-sos-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  background-color: #ef4444;
  color: #ffffff !important;
  padding: 0.85rem 1rem;
  border-radius: var(--radius-md);
  font-weight: 800;
  font-size: 1rem;
  text-decoration: none !important;
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.35);
  text-align: center;
}

.drawer-sos-btn:hover {
  background-color: #dc2626;
}

/* Buscador en tiempo real dentro del Drawer */
.drawer-search-box {
  margin-top: -0.25rem;
  margin-bottom: 0.25rem;
}

.drawer-search-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  background: #07101e;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius-md);
  padding: 0 0.75rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.drawer-search-wrapper:focus-within {
  border-color: #38bdf8;
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.25);
}

.drawer-search-wrapper svg {
  color: #94a3b8;
  flex-shrink: 0;
}

.drawer-search-input {
  width: 100%;
  background: transparent;
  border: none;
  color: #ffffff;
  padding: 0.75rem 0.5rem;
  font-size: 0.875rem;
  font-family: inherit;
  outline: none;
}

.drawer-search-input::placeholder {
  color: #94a3b8;
}

.drawer-search-clear {
  background: transparent;
  border: none;
  color: #94a3b8;
  cursor: pointer;
  padding: 4px;
  display: none;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
}

.drawer-search-clear:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
}

.drawer-empty-msg {
  display: none;
  padding: 1.5rem 1rem;
  text-align: center;
  color: #94a3b8;
  font-size: 0.875rem;
  background: rgba(255, 255, 255, 0.03);
  border-radius: var(--radius-md);
  border: 1px dashed rgba(255, 255, 255, 0.15);
  margin-top: 0.5rem;
}

.drawer-empty-msg.visible {
  display: block;
}

.drawer-links li.is-hidden {
  display: none !important;
}

.drawer-group.is-hidden {
  display: none !important;
}

.drawer-group {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.drawer-group-title {
  font-size: 0.75rem;
  text-transform: uppercase;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #38bdf8;
  margin-bottom: 0.35rem;
  padding: 0 0.5rem;
}

.drawer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.drawer-links a {
  display: flex;
  align-items: center;
  padding: 0.65rem 0.75rem;
  border-radius: 6px;
  color: #e2e8f0;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  min-height: 44px;
  transition: background 0.15s ease, color 0.15s ease;
}

.drawer-links a:hover,
.drawer-links a.active {
  background: rgba(56, 189, 248, 0.12);
  color: #38bdf8;
  font-weight: 700;
}

/* REGLA RESPONSIVA PRINCIPAL PARA HEADER */
@media (max-width: 991px) {
  .desktop-nav {
    display: none !important;
  }
}

@media (max-width: 640px) {
  .menu-btn-label {
    display: none;
  }
  .header-menu-btn {
    width: 42px;
    height: 42px;
    min-width: 42px;
    padding: 0;
    justify-content: center;
  }
  .header-sos-btn {
    padding: 0.4rem 0.65rem;
    font-size: 0.75rem;
  }
}

@media (max-width: 480px) {
  .header-container {
    padding: 0.65rem 0.85rem;
    gap: 0.5rem;
  }
  .brand {
    gap: 0.45rem;
  }
  .brand-icon {
    width: 28px;
    height: 28px;
  }
  .brand-name {
    font-size: 1.125rem;
  }
  .header-actions {
    gap: 0.4rem;
  }
  .header-sos-btn {
    padding: 0.35rem 0.55rem;
    font-size: 0.75rem;
    gap: 0.25rem;
  }
  .header-menu-btn {
    width: 40px;
    height: 40px;
    min-width: 40px;
    min-height: 40px;
  }
}

@media (max-width: 350px) {
  .header-container {
    padding: 0.5rem 0.5rem;
    gap: 0.35rem;
  }
  .brand-name {
    font-size: 1rem;
  }
  .brand-icon {
    width: 24px;
    height: 24px;
  }
  .header-sos-btn {
    padding: 0.3rem 0.45rem;
    font-size: 0.6875rem;
  }
  .header-sos-btn svg {
    width: 12px;
    height: 12px;
  }
  .header-menu-btn {
    width: 36px;
    height: 36px;
    min-width: 36px;
  }
}

.main-content {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2rem 1.25rem 4rem;
}

@media (max-width: 640px) {
  .main-content {
    padding: 1.5rem 1rem 3.5rem;
  }
}

@media (max-width: 380px) {
  .main-content {
    padding: 1.25rem 0.65rem 3rem;
  }
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, #0b192c 0%, #172554 50%, #0f172a 100%);
  color: #ffffff;
  border-radius: var(--radius-xl);
  padding: 2.75rem 2rem;
  margin-bottom: 2.5rem;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.hero h1 {
  font-size: 2.25rem;
  line-height: 1.2;
  font-weight: 800;
  margin-bottom: 1rem;
  letter-spacing: -0.025em;
}

@media (max-width: 640px) {
  .hero {
    padding: 1.75rem 1.15rem;
    border-radius: var(--radius-lg);
    margin-bottom: 2rem;
  }
  .hero h1 {
    font-size: 1.6rem;
    line-height: 1.25;
  }
  .hero-lead {
    font-size: 1.0625rem;
    margin-bottom: 1.35rem;
  }
}

@media (max-width: 380px) {
  .hero {
    padding: 1.35rem 0.85rem;
  }
  .hero h1 {
    font-size: 1.35rem;
  }
  .hero-lead {
    font-size: 0.9375rem;
  }
}

.hero-lead {
  font-size: 1.1875rem;
  color: #cbd5e1;
  max-width: 820px;
  margin-bottom: 1.75rem;
  line-height: 1.6;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background-color: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #f8fafc;
  font-size: 0.875rem;
  padding: 0.4rem 0.85rem;
  border-radius: 9999px;
  font-weight: 600;
}

/* Cotizador Card */
.cotizador-card {
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: 2.25rem;
  margin-bottom: 3rem;
  box-shadow: var(--shadow-md);
}

@media (max-width: 640px) {
  .cotizador-card {
    padding: 1.35rem 1rem;
    border-radius: var(--radius-lg);
    margin-bottom: 2rem;
  }
}

@media (max-width: 380px) {
  .cotizador-card {
    padding: 1.1rem 0.75rem;
  }
  .cotizador-header h2 {
    font-size: 1.3rem;
  }
}

.cotizador-header {
  border-bottom: 1px solid var(--color-border);
  padding-bottom: 1.25rem;
  margin-bottom: 2rem;
}

.cotizador-header h2 {
  font-size: 1.625rem;
  font-weight: 800;
  color: var(--color-text-main);
  margin-bottom: 0.4rem;
  letter-spacing: -0.015em;
}

.cotizador-header p {
  color: var(--color-text-muted);
  font-size: 1.0625rem;
  line-height: 1.5;
}

.cotizador-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.25rem;
}

@media (min-width: 880px) {
  .cotizador-grid {
    grid-template-columns: 1.2fr 1fr;
    align-items: stretch;
  }
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--color-text-main);
}

.form-select,
.form-input {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1.5px solid var(--color-border-dark);
  border-radius: var(--radius-md);
  font-size: 1.0625rem;
  background-color: #ffffff;
  color: var(--color-text-main);
  transition: border-color 0.15s, box-shadow 0.15s;
  font-family: inherit;
  font-weight: 500;
}

.form-select:focus,
.form-input:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 4px rgba(2, 132, 199, 0.2);
}

/* Botones rápidos de días táctiles */
.quick-days-container {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.quick-day-btn {
  background-color: #f1f5f9;
  border: 1.5px solid #cbd5e1;
  color: #1e293b;
  padding: 0.45rem 0.85rem;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
  font-family: inherit;
}

.quick-day-btn:hover {
  background-color: #e2e8f0;
  border-color: #94a3b8;
  color: #0f172a;
}

.quick-day-btn.active {
  background-color: var(--color-primary-dark);
  border-color: var(--color-primary-dark);
  color: #ffffff;
  box-shadow: 0 2px 4px rgba(3, 105, 161, 0.3);
}

.form-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

@media (max-width: 540px) {
  .form-row-2 {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}

.checkbox-group {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 0.65rem;
}

.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.9375rem;
  color: var(--color-text-main);
  cursor: pointer;
  padding: 0.5rem;
  border-radius: var(--radius-sm);
  transition: background-color 0.15s;
}

.checkbox-label:hover {
  background-color: #f8fafc;
}

.checkbox-label input[type="checkbox"] {
  margin-top: 0.25rem;
  accent-color: var(--color-primary);
  width: 18px;
  height: 18px;
  cursor: pointer;
}

/* Cotizador Result Box */
.cotizador-results {
  background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
  border: 2px solid #cbd5e1;
  border-radius: var(--radius-xl);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow-sm);
}

@media (max-width: 640px) {
  .cotizador-results {
    padding: 1.25rem 1rem;
    border-radius: var(--radius-lg);
  }
}

@media (max-width: 380px) {
  .cotizador-results {
    padding: 1rem 0.7rem;
  }
}

.result-badge-dest {
  display: inline-block;
  font-size: 0.8125rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.35rem 0.75rem;
  border-radius: 9999px;
  background-color: var(--color-primary-light);
  color: var(--color-primary-dark);
  margin-bottom: 1rem;
  border: 1px solid #bae6fd;
}

.result-price-box {
  background-color: #ffffff;
  border: 2px solid var(--color-primary);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.25rem;
  margin-bottom: 1.25rem;
  text-align: center;
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.1);
}

@media (max-width: 380px) {
  .result-price-box {
    padding: 1.15rem 0.75rem;
  }
}

.result-main-price {
  font-size: clamp(1.85rem, 6.5vw, 2.75rem);
  font-weight: 900;
  color: #0369a1;
  line-height: 1.05;
  letter-spacing: -0.04em;
  word-break: break-word;
}

.result-main-sub {
  font-size: 0.9375rem;
  color: var(--color-text-muted);
  margin-top: 0.35rem;
  font-weight: 600;
}

.result-secondary-rates {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  gap: 0.5rem;
  border-top: 1px solid var(--color-border);
  padding-top: 0.85rem;
  margin-top: 0.85rem;
  font-size: 0.9375rem;
  color: var(--color-text-muted);
}

.result-secondary-rates span strong {
  color: var(--color-text-main);
  font-weight: 700;
  font-size: 1.0625rem;
}

.result-alert {
  background-color: var(--color-warning-light);
  border-left: 4px solid var(--color-warning);
  padding: 0.85rem 1rem;
  font-size: 0.9375rem;
  color: #7c2d12;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  margin-bottom: 1.25rem;
  font-weight: 500;
  line-height: 1.5;
}

.result-specs-list {
  list-style: none;
  font-size: 0.9375rem;
  margin-bottom: 1.5rem;
}

.result-specs-list li {
  padding: 0.5rem 0;
  border-bottom: 1px dashed var(--color-border);
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
}

.result-specs-list li span:first-child {
  color: var(--color-text-muted);
}

.result-specs-list li span:last-child {
  font-weight: 700;
  color: var(--color-text-main);
  text-align: right;
}

/* Sections & Grids */
.section-title {
  font-size: 1.875rem;
  font-weight: 800;
  margin-bottom: 0.6rem;
  color: var(--color-text-main);
  letter-spacing: -0.02em;
}

.section-desc {
  color: var(--color-text-muted);
  font-size: 1.0625rem;
  margin-bottom: 2rem;
  max-width: 820px;
  line-height: 1.6;
}

.cards-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-bottom: 3rem;
}

@media (min-width: 680px) {
  .cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 980px) {
  .cards-grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

.card {
  background-color: var(--color-surface);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 1.65rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: #94a3b8;
}

.card-header {
  margin-bottom: 1rem;
}

.card-title {
  font-size: 1.25rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
  line-height: 1.3;
}

.card-title a {
  color: var(--color-text-main);
  text-decoration: none;
}

.card-title a:hover {
  color: var(--color-primary);
  text-decoration: underline;
}

.badge {
  display: inline-block;
  font-size: 0.8125rem;
  font-weight: 700;
  padding: 0.25rem 0.65rem;
  border-radius: 6px;
  letter-spacing: 0.02em;
}

.badge-obligatorio {
  background-color: #fee2e2;
  color: #991b1b;
  border: 1px solid #fca5a5;
}

.badge-recomendado {
  background-color: #e0f2fe;
  color: #0369a1;
  border: 1px solid #7dd3fc;
}

.badge-opcional {
  background-color: #f1f5f9;
  color: #475569;
  border: 1px solid #cbd5e1;
}

.card-body {
  font-size: 0.9375rem;
  color: var(--color-text-muted);
  margin-bottom: 1.25rem;
  line-height: 1.6;
}

.card-footer {
  border-top: 1px solid var(--color-border);
  padding-top: 1rem;
  font-size: 0.9375rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
}

/* Comparison Table */
.table-container {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-bottom: 3rem;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-lg);
  background-color: var(--color-surface);
  box-shadow: var(--shadow-sm);
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.9375rem;
  min-width: 650px;
}

.comparison-table th,
.comparison-table td {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--color-border);
}

.comparison-table th {
  background-color: #f1f5f9;
  font-weight: 800;
  color: var(--color-text-main);
  font-size: 0.9375rem;
}

.comparison-table tbody tr:hover {
  background-color: #f8fafc;
}

/* FAQ Accordion */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin-bottom: 3rem;
}

.faq-item {
  background-color: var(--color-surface);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 1.15rem 1.35rem;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.faq-item[open] {
  border-color: var(--color-primary);
  box-shadow: var(--shadow-sm);
}

.faq-question {
  font-weight: 700;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1.0625rem;
  color: var(--color-text-main);
  user-select: none;
}

.faq-question::-webkit-details-marker {
  display: none;
}

.faq-question::after {
  content: "+";
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-primary-dark);
  margin-left: 0.75rem;
  line-height: 1;
}

.faq-item[open] .faq-question::after {
  content: "−";
}

.faq-answer {
  margin-top: 1rem;
  font-size: 0.9375rem;
  color: var(--color-text-muted);
  line-height: 1.65;
  border-top: 1px solid var(--color-border);
  padding-top: 1rem;
}

/* Breadcrumb */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
  color: var(--color-text-muted);
  margin-bottom: 1.25rem;
}

.breadcrumb a {
  color: var(--color-primary-dark);
  text-decoration: none;
}

.breadcrumb a:hover {
  text-decoration: underline;
}

.breadcrumb-separator {
  color: var(--color-border-dark);
}

/* AdSense Container */
.ad-slot {
  background-color: #f8fafc;
  border: 1px dashed var(--color-border-dark);
  border-radius: var(--radius-md);
  padding: 0.75rem;
  margin: 1.75rem 0;
  text-align: center;
  min-height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ad-label {
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #94a3b8;
}

/* Footer */
.site-footer {
  background-color: #0b192c;
  color: #94a3b8;
  border-top: 1px solid #1e293b;
  padding: 2.5rem 1rem 2rem;
  font-size: 0.875rem;
}

.footer-container {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}

@media (min-width: 768px) {
  .footer-container {
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
  }
}

.footer-col h3 {
  color: #ffffff;
  font-size: 1.0625rem;
  font-weight: 800;
  margin-bottom: 1rem;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.footer-links a {
  color: #cbd5e1;
  text-decoration: none;
  font-size: 0.9375rem;
}

.footer-links a:hover {
  color: #ffffff;
  text-decoration: underline;
}

.footer-disclaimer {
  max-width: var(--max-width);
  margin: 2.5rem auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid #1e293b;
  font-size: 0.8125rem;
  line-height: 1.6;
  color: #94a3b8;
  text-align: center;
}

/* Botones de Acción del Cotizador */
.cotizador-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

@media (min-width: 480px) {
  .cotizador-actions {
    grid-template-columns: 1fr 1fr;
  }
}

.btn-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  padding: 0.85rem 1.15rem;
  border-radius: var(--radius-md);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: all 0.15s ease;
  text-decoration: none;
  text-align: center;
  min-height: 48px;
  font-family: inherit;
}

.btn-copy {
  background-color: #ffffff;
  border-color: #cbd5e1;
  color: var(--color-text-main);
  box-shadow: var(--shadow-sm);
}

.btn-copy:hover {
  background-color: #f8fafc;
  border-color: #94a3b8;
  color: #0284c7;
}

.btn-whatsapp {
  background-color: #16a34a;
  color: #ffffff;
  box-shadow: 0 2px 6px rgba(22, 163, 74, 0.3);
}

.btn-whatsapp:hover {
  background-color: #15803d;
  color: #ffffff;
  box-shadow: 0 4px 10px rgba(22, 163, 74, 0.4);
}

.btn-print {
  background-color: var(--color-primary-dark);
  color: #ffffff;
  box-shadow: 0 2px 6px rgba(3, 105, 161, 0.3);
}

.btn-print:hover {
  background-color: #075985;
  color: #ffffff;
}

/* Toast Feedback */
.toast-notice {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  background-color: #0b192c;
  color: #ffffff;
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  font-size: 0.875rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  z-index: 100;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.25s, transform 0.25s;
  pointer-events: none;
}

.toast-notice.show {
  opacity: 1;
  transform: translateY(0);
}

/* Checklist Styles */
.checklist-container {
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: 1.5rem;
  margin-bottom: 2.5rem;
  box-shadow: var(--shadow-sm);
}

.checklist-progress-bar-bg {
  width: 100%;
  height: 10px;
  background-color: var(--color-border);
  border-radius: 9999px;
  overflow: hidden;
  margin: 0.75rem 0 1.25rem;
}

.checklist-progress-fill {
  height: 100%;
  background-color: var(--color-primary);
  width: 0%;
  transition: width 0.3s ease;
}

.checklist-group-title {
  font-size: 1.0625rem;
  font-weight: 700;
  margin: 1.25rem 0 0.5rem;
  color: var(--color-text-main);
  padding-bottom: 0.35rem;
  border-bottom: 1px solid var(--color-border);
}

.checklist-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin-bottom: 1rem;
}

.checklist-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.5rem;
  border-radius: var(--radius-md);
  transition: background-color 0.15s;
  cursor: pointer;
}

.checklist-item:hover {
  background-color: var(--color-surface-hover);
}

.checklist-item input[type="checkbox"] {
  margin-top: 0.25rem;
  width: 18px;
  height: 18px;
  accent-color: var(--color-primary);
  cursor: pointer;
}

.checklist-item.checked span.item-text {
  text-decoration: line-through;
  color: var(--color-text-muted);
}

.item-desc {
  display: block;
  font-size: 0.8125rem;
  color: var(--color-text-muted);
  margin-top: 0.15rem;
}

/* Recomendador Wizard */
.wizard-box {
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: 1.5rem;
  margin-bottom: 2.5rem;
}

.wizard-step {
  margin-bottom: 1.5rem;
}

.wizard-step h3 {
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: var(--color-text-main);
}

.wizard-options-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
}

@media (min-width: 600px) {
  .wizard-options-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.wizard-option-card {
  border: 2px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 1rem;
  cursor: pointer;
  background-color: #ffffff;
  transition: border-color 0.15s, background-color 0.15s;
}

.wizard-option-card:hover {
  border-color: var(--color-primary);
  background-color: var(--color-primary-light);
}

.wizard-option-card.selected {
  border-color: var(--color-primary);
  background-color: var(--color-primary-light);
}

.wizard-option-card strong {
  display: block;
  font-size: 0.9375rem;
  margin-bottom: 0.25rem;
}

.wizard-option-card span {
  font-size: 0.8125rem;
  color: var(--color-text-muted);
}

.wizard-result-card {
  background: linear-gradient(135deg, #0b192c 0%, #1e293b 100%);
  color: #ffffff;
  border-radius: var(--radius-xl);
  padding: 1.75rem;
  margin-top: 1.5rem;
}

.wizard-result-card h3 {
  font-size: 1.375rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
  color: #38bdf8;
}

.wizard-specs-list {
  list-style: none;
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-size: 0.875rem;
}

.wizard-specs-list li {
  display: flex;
  gap: 0.5rem;
  align-items: flex-start;
}

/* Simulador de Costos Médicos */
.simulator-box {
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: 1.5rem;
  margin-bottom: 2.5rem;
  box-shadow: var(--shadow-sm);
}

.simulator-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-top: 1.25rem;
}

@media (min-width: 800px) {
  .simulator-grid {
    grid-template-columns: 1.1fr 1fr;
  }
}

.simulator-result-box {
  background: linear-gradient(135deg, #0b192c 0%, #1e293b 100%);
  color: #ffffff;
  border-radius: var(--radius-xl);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.simulator-result-box .result-label {
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #94a3b8;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.simulator-price-sin {
  font-size: 2.25rem;
  font-weight: 800;
  color: #ef4444;
  line-height: 1.1;
  margin-bottom: 0.25rem;
}

.simulator-usd-sin {
  font-size: 1rem;
  color: #cbd5e1;
  font-weight: 600;
  margin-bottom: 1.25rem;
}

.simulator-price-con {
  font-size: 1.5rem;
  font-weight: 800;
  color: #10b981;
  line-height: 1.1;
  margin-bottom: 0.25rem;
}

/* SOS Emergencia */
.sos-box {
  background: linear-gradient(135deg, #1e1b4b 0%, #0f172a 100%);
  color: #ffffff;
  border-radius: var(--radius-xl);
  padding: 1.75rem;
  margin-bottom: 2.5rem;
  border: 1px solid #312e81;
}

.sos-card-result {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  margin-top: 1.25rem;
}

.sos-actions-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
  margin-top: 1rem;
}

@media (min-width: 600px) {
  .sos-actions-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.sos-call-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background-color: #ef4444;
  color: #ffffff;
  padding: 0.85rem 1.25rem;
  border-radius: var(--radius-md);
  text-decoration: none;
  font-weight: 700;
  font-size: 1rem;
  transition: background-color 0.15s;
}

.sos-call-btn:hover {
  background-color: #dc2626;
  color: #ffffff;
}

.sos-wa-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background-color: #16a34a;
  color: #ffffff;
  padding: 0.85rem 1.25rem;
  border-radius: var(--radius-md);
  text-decoration: none;
  font-weight: 700;
  font-size: 1rem;
  transition: background-color 0.15s;
}

.sos-wa-btn:hover {
  background-color: #15803d;
  color: #ffffff;
}

/* Glosario Médico y Frases */
.phrases-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-top: 1.25rem;
}

@media (min-width: 768px) {
  .phrases-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.phrase-card {
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.phrase-es {
  font-weight: 700;
  color: var(--color-text-main);
  font-size: 0.9375rem;
  margin-bottom: 0.5rem;
}

.phrase-en {
  font-size: 1.125rem;
  font-weight: 800;
  color: var(--color-primary-dark);
  margin-bottom: 0.25rem;
}

.phrase-pt {
  font-size: 0.9375rem;
  color: var(--color-text-muted);
  font-style: italic;
}

/* Generador de Reclamos */
.reclamo-paper {
  background-color: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: var(--radius-md);
  padding: 2rem;
  font-family: monospace;
  font-size: 0.875rem;
  line-height: 1.6;
  color: #0f172a;
  white-space: pre-wrap;
  word-break: break-word;
  overflow-wrap: break-word;
  margin-top: 1.5rem;
  box-shadow: var(--shadow-sm);
}

@media (max-width: 480px) {
  .reclamo-paper {
    padding: 1.25rem 0.85rem;
    font-size: 0.8125rem;
  }
}

/* Impresión / PDF */
@media print {
  body {
    background-color: #ffffff;
    color: #000000;
    font-size: 12pt;
  }

  .site-header,
  .site-footer,
  .ad-slot,
  .quick-day-btn,
  .cotizador-inputs,
  .cotizador-actions,
  .breadcrumb,
  .toast-notice {
    display: none !important;
  }

  .cotizador-card,
  .checklist-container,
  .simulator-box,
  .card {
    box-shadow: none !important;
    border: 1px solid #000000 !important;
    padding: 1rem !important;
  }

  .main-content {
    max-width: 100% !important;
    padding: 0 !important;
  }

  .cotizador-grid {
    grid-template-columns: 1fr !important;
  }

  .cotizador-results {
    background: #ffffff !important;
    border: 1px solid #000000 !important;
  }

  .result-price-box {
    border: 1px solid #000000 !important;
  }

  a {
    text-decoration: none !important;
    color: #000000 !important;
  }
}

/* Caja de Autoría y Transparencia Editorial EEAT */
.author-box {
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.5rem;
  margin-top: 2.5rem;
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  gap: 1.25rem;
  box-shadow: var(--shadow-sm);
}

@media (max-width: 540px) {
  .author-box {
    flex-direction: column;
    text-align: center;
    gap: 0.85rem;
    padding: 1.15rem 0.85rem;
  }
}

.author-avatar {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: #0284c7;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.author-info h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-text-main);
  margin-bottom: 0.2rem;
}

.author-info p {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  line-height: 1.4;
  margin-bottom: 0.35rem;
}

.author-links {
  font-size: 0.8125rem;
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

/* Fichas de Review de Compañías */
.review-score-badge {
  background: #0b192c;
  color: #38bdf8;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-md);
  font-weight: 800;
  font-size: 1.125rem;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.pros-cons-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin: 1.5rem 0;
}

@media (min-width: 640px) {
  .pros-cons-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.pro-box {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: var(--radius-md);
  padding: 1.25rem;
}

.con-box {
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: var(--radius-md);
  padding: 1.25rem;
}

.pro-box h4 {
  color: #166534;
  font-size: 0.9375rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.con-box h4 {
  color: #991b1b;
  font-size: 0.9375rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

/* ===================================================
   MÓDULO GEO: RESPUESTA RÁPIDA PARA IA Y VIAJEROS
   (Optimización para Google AI Overviews, Perplexity y ChatGPT)
   =================================================== */
.geo-quick-answer {
  background-color: #f8fafc;
  border: 1px solid #cbd5e1;
  border-left: 5px solid var(--color-primary);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  margin: 2rem 0;
  box-shadow: var(--shadow-sm);
}

.geo-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background-color: #0369a1;
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.3rem 0.65rem;
  border-radius: 4px;
  margin-bottom: 0.85rem;
}

.geo-summary {
  font-size: 1.125rem;
  line-height: 1.6;
  color: var(--color-text-main);
  font-weight: 600;
  margin-bottom: 1.25rem;
}

.geo-table-wrapper {
  overflow-x: auto;
  margin: 1rem 0;
}

.geo-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9375rem;
  background: #ffffff;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border);
}

.geo-table th, .geo-table td {
  padding: 0.65rem 0.85rem;
  text-align: left;
  border-bottom: 1px solid var(--color-border);
}

.geo-table th {
  background-color: #f1f5f9;
  color: #0f172a;
  font-weight: 700;
}

.geo-points {
  list-style: none;
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.geo-point-item {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.9375rem;
  color: var(--color-text-muted);
}

/* ===================================================
   TABLAS DE PRECIOS Y TARIFAS REFERENCIALES
   =================================================== */
.pricing-matrix-container {
  overflow-x: auto;
  margin: 2rem 0;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
}

.pricing-matrix {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.95rem;
  background: #ffffff;
}

.pricing-matrix th {
  background: #0f172a;
  color: #ffffff;
  padding: 1rem;
  font-weight: 700;
  white-space: nowrap;
}

.pricing-matrix td {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--color-border);
  color: var(--color-text-main);
}

.pricing-matrix tr:nth-child(even) {
  background-color: #f8fafc;
}

.pricing-matrix tr:hover {
  background-color: #f1f5f9;
}

.price-clp {
  font-weight: 800;
  color: #0369a1;
}

.price-usd {
  font-size: 0.85rem;
  color: var(--color-text-subtle);
  display: block;
}

/* ===================================================
   TARJETAS DE ESTRATEGIAS DE AHORRO Y CANCELACIÓN
   =================================================== */
.strategy-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  margin: 2rem 0;
}

@media (min-width: 768px) {
  .strategy-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.strategy-card {
  background: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.strategy-num {
  width: 32px;
  height: 32px;
  background-color: var(--color-primary-light);
  color: var(--color-primary-dark);
  font-weight: 800;
  font-size: 1rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.strategy-title {
  font-size: 1.125rem;
  font-weight: 800;
  color: #0f172a;
}

@media (max-width: 480px) {
  .geo-quick-answer {
    padding: 1.25rem 0.85rem;
    margin: 1.5rem 0;
  }
  .strategy-card {
    padding: 1.25rem 0.85rem;
  }
}

/* Custom Clean Scrollbars for Tables */
.table-container::-webkit-scrollbar,
.pricing-matrix-container::-webkit-scrollbar,
.geo-table-wrapper::-webkit-scrollbar {
  height: 6px;
}

.table-container::-webkit-scrollbar-track,
.pricing-matrix-container::-webkit-scrollbar-track,
.geo-table-wrapper::-webkit-scrollbar-track {
  background: #f1f5f9;
  border-radius: 9999px;
}

.table-container::-webkit-scrollbar-thumb,
.pricing-matrix-container::-webkit-scrollbar-thumb,
.geo-table-wrapper::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 9999px;
}

.table-container::-webkit-scrollbar-thumb:hover,
.pricing-matrix-container::-webkit-scrollbar-thumb:hover,
.geo-table-wrapper::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* ===================================================
   HERRAMIENTA: AUDITOR DE TARJETAS DE CRÉDITO CHILENAS
   =================================================== */
.auditor-wrapper {
  margin: 2rem 0 3rem;
}

.auditor-grid {
  display: grid;
  grid-template-columns: minmax(300px, 360px) 1fr;
  gap: 1.75rem;
  align-items: start;
}

.auditor-controls-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.auditor-controls-card h3 {
  font-size: 1.125rem;
  font-weight: 800;
  color: var(--color-text-main);
  border-bottom: 2px solid var(--color-primary-light);
  padding-bottom: 0.5rem;
  margin-bottom: 0.25rem;
}

.auditor-field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.auditor-field label {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--color-text-main);
}

.auditor-field select {
  width: 100%;
  padding: 0.75rem 0.85rem;
  font-size: 0.9375rem;
  font-family: inherit;
  background-color: #f8fafc;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-md);
  color: var(--color-text-main);
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.auditor-field select:focus {
  border-color: var(--color-primary);
  outline: none;
  box-shadow: 0 0 0 3px var(--color-primary-light);
  background-color: #ffffff;
}

.auditor-field .field-hint {
  font-size: 0.75rem;
  color: var(--color-text-subtle);
}

.auditor-result-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.auditor-result-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--color-border);
}

.auditor-card-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--color-text-main);
  margin-bottom: 0.2rem;
}

.auditor-bank-name {
  font-size: 0.875rem;
  color: var(--color-primary);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.9rem;
  border-radius: 9999px;
  font-size: 0.8125rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.status-badge.cumple {
  background: var(--color-success-light);
  color: var(--color-success);
  border: 1px solid #86efac;
}

.status-badge.riesgo {
  background: var(--color-warning-light);
  color: var(--color-warning);
  border: 1px solid #fdba74;
}

.status-badge.no-cumple {
  background: var(--color-danger-light);
  color: var(--color-danger);
  border: 1px solid #fca5a5;
}

.auditor-veredicto-banner {
  padding: 1.25rem;
  border-radius: var(--radius-md);
  border-left: 5px solid transparent;
}

.auditor-veredicto-banner.cumple {
  background: #f0fdf4;
  border-left-color: var(--color-success);
}

.auditor-veredicto-banner.riesgo {
  background: #fffbeb;
  border-left-color: #d97706;
}

.auditor-veredicto-banner.no-cumple {
  background: #fef2f2;
  border-left-color: var(--color-danger);
}

.auditor-veredicto-title {
  font-size: 1rem;
  font-weight: 800;
  margin-bottom: 0.35rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.auditor-veredicto-text {
  font-size: 0.9375rem;
  color: var(--color-text-muted);
  line-height: 1.5;
  margin: 0;
}

.audit-metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}

.audit-metric-card {
  background: #f8fafc;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.audit-metric-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  font-weight: 800;
  letter-spacing: 0.05em;
  color: var(--color-text-subtle);
}

.audit-metric-value {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--color-text-main);
}

.audit-metric-detail {
  font-size: 0.8125rem;
  color: var(--color-text-muted);
  line-height: 1.4;
  margin-top: 0.2rem;
}

.auditor-warning-box {
  background: #fff7ed;
  border: 1px solid #ffedd5;
  border-radius: var(--radius-md);
  padding: 1.15rem;
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
}

.auditor-warning-box svg {
  color: #c2410c;
  flex-shrink: 0;
  margin-top: 2px;
}

.auditor-warning-content h4 {
  font-size: 0.9375rem;
  font-weight: 800;
  color: #9a3412;
  margin-bottom: 0.25rem;
}

.auditor-warning-content p {
  font-size: 0.85rem;
  color: #7c2d12;
  margin: 0;
  line-height: 1.45;
}

.auditor-cert-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--color-border);
}

.auditor-cert-cta p {
  font-size: 0.85rem;
  color: var(--color-text-subtle);
  margin: 0;
}

.auditor-cert-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--color-primary);
  color: #ffffff !important;
  font-weight: 700;
  font-size: 0.875rem;
  padding: 0.65rem 1.15rem;
  border-radius: var(--radius-md);
  text-decoration: none !important;
  transition: background 0.15s ease;
}

.auditor-cert-btn:hover {
  background: var(--color-primary-dark);
}

@media (max-width: 900px) {
  .auditor-grid {
    grid-template-columns: 1fr;
  }
}

/* ===================================================
   HERRAMIENTA: CALCULADORA LEGAL DE VUELOS Y EQUIPAJE
   =================================================== */
.vuelos-calc-wrapper {
  margin: 2rem 0 3rem;
}

.vuelos-grid {
  display: grid;
  grid-template-columns: minmax(320px, 400px) 1fr;
  gap: 1.75rem;
  align-items: start;
}

.vuelos-form-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.vuelos-form-card h3 {
  font-size: 1.125rem;
  font-weight: 800;
  color: var(--color-text-main);
  border-bottom: 2px solid var(--color-primary-light);
  padding-bottom: 0.5rem;
  margin-bottom: 0.25rem;
}

.vuelos-field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.vuelos-field label {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--color-text-main);
}

.vuelos-field select,
.vuelos-field input {
  width: 100%;
  padding: 0.75rem 0.85rem;
  font-size: 0.9375rem;
  font-family: inherit;
  background-color: #f8fafc;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-md);
  color: var(--color-text-main);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.vuelos-field select:focus,
.vuelos-field input:focus {
  border-color: var(--color-primary);
  outline: none;
  box-shadow: 0 0 0 3px var(--color-primary-light);
  background-color: #ffffff;
}

.vuelos-result-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.vuelos-amount-box {
  background: linear-gradient(135deg, #0b192c 0%, #1e3a8a 100%);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  color: #ffffff;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.vuelos-amount-label {
  font-size: 0.8125rem;
  text-transform: uppercase;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #38bdf8;
}

.vuelos-amount-val {
  font-size: 2.25rem;
  font-weight: 800;
  line-height: 1.1;
  color: #ffffff;
}

.vuelos-amount-clp {
  font-size: 1.125rem;
  font-weight: 600;
  color: #cbd5e1;
}

.vuelos-normativa-pill {
  align-self: flex-start;
  margin-top: 0.5rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.25);
  padding: 0.35rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 700;
  color: #ffffff;
}

.vuelos-rights-box {
  background: #f8fafc;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 1.25rem;
}

.vuelos-rights-title {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--color-text-main);
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.vuelos-rights-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.vuelos-rights-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.875rem;
  color: var(--color-text-muted);
}

.vuelos-rights-list svg {
  color: var(--color-primary);
  flex-shrink: 0;
  margin-top: 2px;
}

.vuelos-letter-box {
  background: #f1f5f9;
  border: 1px solid var(--color-border-dark);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.vuelos-letter-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.vuelos-letter-title {
  font-size: 0.9375rem;
  font-weight: 800;
  color: var(--color-text-main);
}

.vuelos-letter-pre {
  background: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 1rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.8125rem;
  line-height: 1.5;
  color: #1e293b;
  white-space: pre-wrap;
  word-break: break-word;
  max-height: 280px;
  overflow-y: auto;
}

@media (max-width: 900px) {
  .vuelos-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .auditor-controls-card,
  .auditor-result-card,
  .vuelos-form-card,
  .vuelos-result-card {
    padding: 1.15rem 0.85rem;
  }
  .vuelos-amount-val {
    font-size: 1.75rem;
  }
  .auditor-card-title {
    font-size: 1.2rem;
  }
}

