/* ==========================================================================
   Comprobador de validez de pasaporte, DNI y visados de viaje
   Estilos canónicos responsive y soporte de tema claro / oscuro universal
   ========================================================================== */

:root {
  --font-main: 'Inter', system-ui, -apple-system, sans-serif;
  --font-heading: 'Outfit', 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Colores tema claro */
  --bg-main: #f8fafc;
  --bg-card: #ffffff;
  --bg-card-subtle: #f1f5f9;
  --bg-input: #ffffff;
  --border-color: #e2e8f0;
  --border-focus: #3b82f6;
  --text-main: #0f172a;
  --text-muted: #64748b;

  --primary: #2563eb;
  --primary-hover: #1d4ed8;
  --primary-subtle: #eff6ff;

  /* Estados semáforo */
  --status-green: #10b981;
  --status-green-bg: #ecfdf5;
  --status-green-border: #a7f3d0;
  --status-green-text: #065f46;

  --status-amber: #f59e0b;
  --status-amber-bg: #fffbeb;
  --status-amber-border: #fde68a;
  --status-amber-text: #92400e;

  --status-red: #ef4444;
  --status-red-bg: #fef2f2;
  --status-red-border: #fecaca;
  --status-red-text: #991b1b;

  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-full: 9999px;
}

[data-theme="dark"] {
  --bg-main: #0b0f17;
  --bg-card: #131b2a;
  --bg-card-subtle: #1c273a;
  --bg-input: #172235;
  --border-color: #27354d;
  --border-focus: #60a5fa;
  --text-main: #f1f5f9;
  --text-muted: #94a3b8;

  --primary: #3b82f6;
  --primary-hover: #60a5fa;
  --primary-subtle: rgba(59, 130, 246, 0.15);

  --status-green: #34d399;
  --status-green-bg: rgba(16, 185, 129, 0.15);
  --status-green-border: rgba(16, 185, 129, 0.35);
  --status-green-text: #6ee7b7;

  --status-amber: #fbbf24;
  --status-amber-bg: rgba(245, 158, 11, 0.15);
  --status-amber-border: rgba(245, 158, 11, 0.35);
  --status-amber-text: #fcd34d;

  --status-red: #f87171;
  --status-red-bg: rgba(239, 68, 68, 0.15);
  --status-red-border: rgba(239, 68, 68, 0.35);
  --status-red-text: #fca5a5;
}

/* Reset y base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-main);
  background-color: var(--bg-main);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: clip;
  width: 100%;
  max-width: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}

body.modal-open {
  overflow: hidden;
}

h1, h2, h3, h4, h5, h6,
.brand-title,
.section-title,
.card-title {
  font-family: var(--font-heading);
  color: var(--text-main);
  line-height: 1.25;
}

.mono, code, .stat-val, .badge-mini {
  font-family: var(--font-mono);
}

/* Layout canónico */
.main-wrapper.tool-layout {
  max-width: 1200px;
  margin: 1.5rem auto 3rem;
  padding: 0 1rem;
  box-sizing: border-box;
  flex: 1 0 auto;
  width: 100%;
}

.tool-with-sidebar {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
  width: 100%;
}

.tool-main-content {
  flex: 1 1 0%;
  min-width: 0;
  width: 100%;
}

/* Hero / Introducción */
.hero-box {
  margin-bottom: 1.75rem;
}

.hero-title {
  font-size: 1.85rem;
  font-weight: 800;
  letter-spacing: -0.025em;
  margin-bottom: 0.5rem;
}

.hero-desc {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 75ch;
}

/* Tarjeta principal interactiva */
.card-main {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
  margin-bottom: 2rem;
}

/* Selector de país destacado */
.country-selector-section {
  margin-bottom: 1.5rem;
}

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

.country-input-wrap {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

.select-country-custom {
  flex: 1 1 0%;
  width: 0;
  min-width: 0;
  height: 48px;
  padding: 0 40px 0 1rem;
  background-color: var(--bg-input);
  color: var(--text-main);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  font-size: 1rem;
  font-weight: 600;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  cursor: pointer;
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.select-country-custom:focus {
  outline: none;
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

.select-country-custom option {
  background-color: var(--bg-card);
  color: var(--text-main);
}

.btn-secondary-search {
  height: 48px;
  padding: 0 1.25rem;
  background: var(--bg-card-subtle);
  color: var(--text-main);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s ease;
}

.btn-secondary-search:hover {
  background: var(--border-color);
}

/* Pills de países frecuentes */
.quick-pills-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.btn-quick-country {
  padding: 0.35rem 0.75rem;
  font-size: 0.825rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  background: var(--bg-card-subtle);
  color: var(--text-main);
  border: 1px solid var(--border-color);
  cursor: pointer;
  transition: all 0.15s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.btn-quick-country:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.btn-quick-country.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #ffffff;
}

/* Segmented control: DNI vs Pasaporte */
.document-switch-section {
  margin-bottom: 1.5rem;
}

.segmented-control {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--bg-card-subtle);
  padding: 4px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  gap: 4px;
}

.segmented-btn {
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.15s ease;
}

.segmented-btn svg {
  flex-shrink: 0;
}

.segmented-btn.active {
  background: var(--bg-card);
  color: var(--primary);
  box-shadow: var(--shadow-sm);
}

/* Grid de fechas */
.dates-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.input-date-custom {
  height: 44px;
  padding: 0 0.75rem;
  background-color: var(--bg-input);
  color: var(--text-main);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  font-family: var(--font-mono);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  width: 100%;
}

.input-date-custom:focus {
  outline: none;
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

.form-hint {
  font-size: 0.775rem;
  color: var(--text-muted);
  margin-top: 0.35rem;
}

/* Fila de presets rápidos de caducidad */
.presets-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  padding: 0.75rem 1rem;
  background: var(--bg-card-subtle);
  border-radius: var(--radius-md);
  font-size: 0.825rem;
}

.presets-label {
  font-weight: 600;
  color: var(--text-muted);
}

.btn-preset-mini {
  padding: 0.25rem 0.65rem;
  font-size: 0.8rem;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: var(--text-main);
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-preset-mini:hover {
  border-color: var(--primary);
  color: var(--primary);
}

/* Opción de 10 años */
.issue-date-toggle {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
  font-size: 0.875rem;
  cursor: pointer;
}

.issue-date-toggle input[type="checkbox"] {
  width: 18px;
  height: 18px;
  cursor: pointer;
  accent-color: var(--primary);
}

/* ==========================================================================
   Tarjeta de Resultados (Semáforo de viabilidad)
   ========================================================================== */
.card-result {
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  margin-bottom: 2rem;
  border: 2px solid transparent;
  transition: all 0.2s ease;
}

.card-result.status-green {
  background: var(--status-green-bg);
  border-color: var(--status-green-border);
}

.card-result.status-amber {
  background: var(--status-amber-bg);
  border-color: var(--status-amber-border);
}

.card-result.status-red {
  background: var(--status-red-bg);
  border-color: var(--status-red-border);
}

.result-header {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  margin-bottom: 1.5rem;
}

.result-icon-box {
  width: 54px;
  height: 54px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: var(--bg-card);
  box-shadow: var(--shadow-sm);
}

.status-green .result-icon-box { color: var(--status-green); }
.status-amber .result-icon-box { color: var(--status-amber); }
.status-red .result-icon-box { color: var(--status-red); }

.result-header-text {
  flex: 1 1 0%;
  min-width: 0;
}

.status-badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: none;
  margin-bottom: 0.4rem;
}

.badge-green { background: var(--status-green); color: #ffffff; }
.badge-amber { background: var(--status-amber); color: #ffffff; }
.badge-red { background: var(--status-red); color: #ffffff; }

.result-title {
  font-size: 1.45rem;
  font-weight: 800;
  margin-bottom: 0.25rem;
}

.status-green .result-title { color: var(--status-green-text); }
.status-amber .result-title { color: var(--status-amber-text); }
.status-red .result-title { color: var(--status-red-text); }

.result-subtitle {
  font-size: 0.975rem;
  color: var(--text-main);
  opacity: 0.9;
}

/* 4 KPIs de resultados */
.result-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.stat-card {
  background: var(--bg-card);
  padding: 1rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
}

.stat-label {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: none;
  margin-bottom: 0.35rem;
}

.stat-val {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.2;
}

.text-green { color: var(--status-green); }
.text-amber { color: var(--status-amber); }
.text-red { color: var(--status-red); }

/* ==========================================================================
   Barra temporal visual (Timeline)
   ========================================================================== */
.timeline-card {
  background: var(--bg-card);
  padding: 1.5rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  margin-bottom: 1.5rem;
}

.timeline-title {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.timeline-track-wrap {
  position: relative;
  height: 48px;
  margin-bottom: 2.5rem;
  padding: 0 10px;
}

.timeline-base-line {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 8px;
  background: var(--bg-card-subtle);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  transform: translateY(-50%);
}

.timeline-bar-fill {
  position: absolute;
  top: 50%;
  height: 8px;
  border-radius: var(--radius-full);
  transform: translateY(-50%);
  transition: all 0.3s ease;
}

.fill-green { background: var(--status-green); }
.fill-amber { background: var(--status-amber); }
.fill-red { background: var(--status-red); }

/* Marcadores */
.timeline-pin {
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  pointer-events: none;
  z-index: 2;
  transition: left 0.3s ease;
}

.pin-dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 3px solid var(--text-muted);
  box-shadow: var(--shadow-sm);
}

.pin-label {
  position: absolute;
  white-space: nowrap;
  font-size: 0.725rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
}

.pin-top .pin-label {
  bottom: 24px;
}

.pin-bottom .pin-label {
  top: 24px;
}

/* Colores de pins */
.pin-today .pin-dot { border-color: #64748b; }
.pin-dep .pin-dot { border-color: var(--primary); background: var(--primary); }
.pin-ret .pin-dot { border-color: var(--primary); }
.pin-thresh .pin-dot { border-color: #9333ea; }
.pin-thresh .pin-label { border-color: #9333ea; color: #9333ea; }
.pin-expiry .pin-dot { border-color: #f97316; }
.pin-expiry .pin-label { border-color: #f97316; color: #f97316; }

.timeline-dates-summary {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 0.825rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border-color);
  padding-top: 1rem;
}

.timeline-dates-summary strong {
  color: var(--text-main);
  font-family: var(--font-mono);
}

/* Secciones de avisos y recomendaciones dentro del resultado */
.result-details-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.result-box-list {
  background: var(--bg-card);
  padding: 1.25rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
}

.box-title {
  font-size: 0.925rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.box-list {
  padding-left: 1.25rem;
  font-size: 0.9rem;
  color: var(--text-main);
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

/* Botones de acción del informe */
.result-actions-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.btn-action-primary {
  height: 44px;
  padding: 0 1.25rem;
  background: var(--primary);
  color: #ffffff;
  border: none;
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: background 0.15s ease;
}

.btn-action-primary:hover {
  background: var(--primary-hover);
}

.btn-action-outline {
  height: 44px;
  padding: 0 1.25rem;
  background: var(--bg-card);
  color: var(--text-main);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.15s ease;
}

.btn-action-outline:hover {
  background: var(--bg-card-subtle);
  border-color: var(--primary);
  color: var(--primary);
}

/* ==========================================================================
   Ficha del Destino Seleccionado
   ========================================================================== */
.card-destination-details {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  margin-bottom: 2rem;
}

.destination-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

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

.dest-title-wrap h3 {
  font-size: 1.35rem;
  font-weight: 800;
}

.dest-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.dest-spec-item {
  background: var(--bg-card-subtle);
  padding: 0.85rem 1rem;
  border-radius: var(--radius-md);
}

.spec-label {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
}

.spec-val {
  font-size: 0.925rem;
  font-weight: 600;
  color: var(--text-main);
}

.dest-notes-box {
  background: var(--bg-card-subtle);
  padding: 1rem;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  line-height: 1.5;
  margin-bottom: 1.25rem;
  border-left: 4px solid var(--primary);
}

.dest-link-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--primary);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
}

.dest-link-btn:hover {
  text-decoration: underline;
}

/* ==========================================================================
   Guía técnica y educativa SEO (Acordeones y texto)
   ========================================================================== */
.seo-guide-section {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  margin-bottom: 2rem;
}

.seo-guide-section h2 {
  font-size: 1.45rem;
  margin-bottom: 1rem;
}

.seo-guide-section p {
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.faq-item {
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  background: var(--bg-card-subtle);
  overflow: hidden;
}

.faq-item summary {
  padding: 1rem 1.25rem;
  font-weight: 700;
  cursor: pointer;
  user-select: none;
  font-size: 0.975rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

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

.faq-item summary::after {
  content: '+';
  font-size: 1.25rem;
  font-family: var(--font-mono);
  color: var(--primary);
}

.faq-item[open] summary::after {
  content: '−';
}

.faq-content {
  padding: 0 1.25rem 1.25rem;
  color: var(--text-main);
  font-size: 0.925rem;
  line-height: 1.6;
}

/* ==========================================================================
   Modales accesibles
   ========================================================================== */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
  padding: 1rem;
}

.modal-overlay.is-active {
  opacity: 1;
  visibility: visible;
}

.modal-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 680px;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  transform: translateY(20px);
  transition: transform 0.2s ease;
}

.modal-overlay.is-active .modal-card {
  transform: translateY(0);
}

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

.modal-title {
  font-size: 1.2rem;
  font-weight: 700;
}

.modal-close {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-close:hover {
  color: var(--text-main);
  background: var(--bg-card-subtle);
}

.modal-body {
  padding: 1.5rem;
  overflow-y: auto;
  flex: 1 1 auto;
}

.modal-footer {
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.75rem;
}

/* Buscador en modal de países */
.country-search-bar {
  margin-bottom: 1rem;
}

.country-search-input {
  width: 100%;
  height: 44px;
  padding: 0 1rem;
  background: var(--bg-input);
  color: var(--text-main);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  font-size: 0.95rem;
}

.continent-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 1.25rem;
}

.continent-tab {
  padding: 0.35rem 0.75rem;
  font-size: 0.8rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  background: var(--bg-card-subtle);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  cursor: pointer;
}

.continent-tab.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #ffffff;
}

.country-grid-modal {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}

.country-grid-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem;
  border-radius: var(--radius-md);
  background: var(--bg-card-subtle);
  border: 1px solid var(--border-color);
  text-align: left;
  cursor: pointer;
  transition: all 0.15s ease;
}

.country-grid-item:hover, .country-grid-item.active {
  border-color: var(--primary);
  background: var(--primary-subtle);
}

.country-grid-flag {
  font-size: 1.75rem;
  line-height: 1;
}

.country-grid-name {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-main);
}

.badge-mini {
  display: inline-block;
  font-size: 0.7rem;
  padding: 2px 6px;
  border-radius: var(--radius-sm);
  margin-top: 2px;
}

.badge-mini-dni {
  background: #dbeafe;
  color: #1e40af;
}

.badge-mini-passport {
  background: #fef3c7;
  color: #92400e;
}

[data-theme="dark"] .badge-mini-dni {
  background: rgba(59, 130, 246, 0.2);
  color: #93c5fd;
}

[data-theme="dark"] .badge-mini-passport {
  background: rgba(245, 158, 11, 0.2);
  color: #fde68a;
}

/* Modal de informe de texto */
.report-pre-box {
  background: var(--bg-card-subtle);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  white-space: pre-wrap;
  word-break: break-word;
  line-height: 1.5;
  color: var(--text-main);
  max-height: 50vh;
  overflow-y: auto;
}

.copy-feedback {
  font-size: 0.85rem;
  color: var(--status-green);
  font-weight: 600;
  display: none;
}

/* Responsividad en tablet y móvil */
@media (max-width: 1024px) {
  .result-stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .hero-title {
    font-size: 1.5rem;
  }

  .card-main, .card-result, .card-destination-details, .seo-guide-section {
    padding: 1.25rem;
  }

  .country-input-wrap {
    flex-direction: column;
  }

  .select-country-custom, .btn-secondary-search {
    width: 100%;
  }

  .dates-grid {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .result-header {
    flex-direction: column;
    gap: 0.75rem;
  }

  .result-details-grid {
    grid-template-columns: 1fr;
  }

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

  .country-grid-modal {
    grid-template-columns: 1fr;
  }

  .timeline-track-wrap {
    margin-bottom: 3.5rem;
  }
}
