:root {
  --primary: #0284c7;
  --primary-hover: #0369a1;
  --primary-light: #e0f2fe;
  --secondary: #0f172a;
  --surface: #ffffff;
  --bg: #f1f5f9;
  --text-main: #0f172a;
  --text-muted: #64748b;
  --border: #e2e8f0;
  --success: #10b981;
  --warning: #f59e0b;
  --font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --radius-lg: 16px;
  --radius-md: 12px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 14px rgba(0,0,0,0.06);
  --shadow-lg: 0 10px 25px rgba(0,0,0,0.08);
}

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

body {
  font-family: var(--font-family);
  background-color: var(--bg);
  color: var(--text-main);
  height: 100vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* Navbar */
.navbar {
  height: 64px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  flex-shrink: 0;
  box-shadow: var(--shadow-sm);
  z-index: 10;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-logo-img {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  object-fit: contain;
  background: white;
  border: 1px solid var(--border);
  box-shadow: 0 2px 6px rgba(0,0,0,0.06);
}

.brand-icon {
  background: linear-gradient(135deg, #0284c7, #38bdf8);
  color: white;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

.brand-text h1 {
  font-size: 17px;
  font-weight: 800;
  color: var(--secondary);
  line-height: 1.2;
}

.brand-text span {
  font-size: 12px;
  color: var(--text-muted);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.badge-status {
  display: flex;
  align-items: center;
  gap: 6px;
  background: #f0fdf4;
  color: #166534;
  font-size: 12px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid #bbf7d0;
}

.status-dot {
  width: 8px;
  height: 8px;
  background-color: #22c55e;
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(34, 197, 94, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

.btn-icon {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--secondary);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s;
}

.btn-icon:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
}

/* Main Workspace Grid */
.workspace {
  flex: 1;
  display: grid;
  grid-template-columns: 480px 1fr;
  overflow: hidden;
  min-height: 0;
}

@media (max-width: 1024px) and (min-width: 769px) {
  .workspace {
    grid-template-columns: 380px 1fr;
  }
}

/* Mobile Tabs & Toast (Hidden by default on Desktop) */
.mobile-tabs-bar {
  display: none;
}

.mobile-quote-toast {
  display: none;
}

/* Chat Panel */
.chat-panel {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border-right: 1px solid var(--border);
  height: 100%;
  overflow: hidden;
  min-height: 0;
}

.chat-header {
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  background: #f8fafc;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.advisor-profile {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
}

.advisor-avatar {
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  max-width: 44px;
  max-height: 44px;
  border-radius: 50%;
  flex-shrink: 0;
  aspect-ratio: 1 / 1;
  background: linear-gradient(135deg, #0284c7, #0369a1);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 18px;
  border: 2px solid white;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.advisor-info {
  flex: 1;
  min-width: 0;
}

.advisor-info h3 {
  font-size: 15px;
  font-weight: 800;
  color: var(--secondary);
  line-height: 1.3;
  margin-bottom: 2px;
  white-space: normal;
  word-break: break-word;
}

.advisor-info p {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.3;
  white-space: normal;
  word-break: break-word;
}

.advisor-selector-wrapper {
  display: flex;
  align-items: center;
  gap: 8px;
  background: white;
  padding: 6px 12px;
  border-radius: 10px;
  border: 1px solid var(--border);
  box-shadow: 0 1px 3px rgba(0,0,0,0.03);
  width: 100%;
  box-sizing: border-box;
}

.advisor-select-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.5px;
  white-space: nowrap;
  flex-shrink: 0;
}

.advisor-select {
  border: none;
  outline: none;
  background: transparent;
  font-size: 13px;
  font-weight: 700;
  color: var(--primary);
  cursor: pointer;
  padding: 2px 4px;
  flex: 1;
  min-width: 0;
  width: 100%;
}

.advisor-select:focus {
  outline: none;
}

.chat-messages {
  flex: 1;
  padding: 20px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.msg {
  display: flex;
  gap: 10px;
  max-width: 88%;
}

.msg.user {
  align-self: flex-end;
  flex-direction: row-reverse;
}

.msg.model {
  align-self: flex-start;
}

.msg-bubble {
  padding: 12px 16px;
  border-radius: 14px;
  font-size: 14px;
  line-height: 1.5;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.msg.user .msg-bubble {
  background: var(--primary);
  color: white;
  border-bottom-right-radius: 4px;
}

.msg.model .msg-bubble {
  background: #f8fafc;
  color: var(--text-main);
  border: 1px solid var(--border);
  border-bottom-left-radius: 4px;
}

.msg-bubble p {
  margin-bottom: 6px;
}
.msg-bubble p:last-child {
  margin-bottom: 0;
}
.msg-bubble ul {
  padding-left: 20px;
  margin: 6px 0;
}
.msg-bubble li {
  margin-bottom: 4px;
}

.tool-indicator {
  font-size: 11px;
  color: var(--primary);
  background: var(--primary-light);
  padding: 4px 10px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-bottom: 8px;
  font-weight: 600;
}

/* Suggestions Chips */
.quick-chips {
  padding: 8px 16px;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  border-top: 1px solid var(--border);
  background: #ffffff;
  scrollbar-width: none;
}

.quick-chips::-webkit-scrollbar {
  display: none;
}

.chip {
  white-space: nowrap;
  font-size: 12px;
  font-weight: 600;
  color: #475569;
  background: #f1f5f9;
  padding: 6px 12px;
  border-radius: 999px;
  cursor: pointer;
  border: 1px solid #e2e8f0;
  transition: all 0.2s;
}

.chip:hover {
  background: var(--primary-light);
  color: var(--primary-hover);
  border-color: #bae6fd;
}

/* Chat Input Bar */
.chat-input-bar {
  padding: 14px 16px;
  border-top: 1px solid var(--border);
  background: var(--surface);
}

.input-form {
  display: flex;
  gap: 8px;
}

.chat-input {
  flex: 1;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: 12px;
  font-size: 14px;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s;
}

.chat-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.15);
}

.send-btn {
  background: var(--primary);
  color: white;
  border: none;
  border-radius: 12px;
  padding: 0 20px;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: background 0.2s;
}

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

/* Quote Panel (Right Side) */
.quote-panel {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--bg);
  overflow-y: auto;
  padding: 24px;
}

.quote-view-container {
  max-width: 880px;
  width: 100%;
  margin: 0 auto;
}

/* Empty State */
.empty-quote-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  text-align: center;
  padding: 40px;
  background: var(--surface);
  border-radius: var(--radius-lg);
  border: 2px dashed var(--border);
}

.empty-icon {
  font-size: 56px;
  margin-bottom: 16px;
  color: var(--primary);
}

.empty-quote-state h2 {
  font-size: 20px;
  font-weight: 800;
  color: var(--secondary);
  margin-bottom: 8px;
}

.empty-quote-state p {
  color: var(--text-muted);
  font-size: 14px;
  max-width: 420px;
  line-height: 1.5;
  margin-bottom: 24px;
}

.destinations-preview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  width: 100%;
  margin-top: 20px;
}

.dest-card {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  text-align: left;
}

.dest-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.dest-card img {
  width: 100%;
  height: 120px;
  object-fit: cover;
}

.dest-card-content {
  padding: 12px;
}

.dest-card-content h4 {
  font-size: 14px;
  font-weight: 700;
  color: var(--secondary);
}

.dest-card-content p {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 4px;
}

/* Active Quote Presentation */
.active-quote-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
  overflow: hidden;
}

.quote-hero-header {
  height: 220px;
  position: relative;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: flex-end;
  padding: 24px;
}

.quote-hero-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(15, 23, 42, 0.9) 0%, rgba(15, 23, 42, 0.2) 60%, transparent 100%);
}

.quote-hero-info {
  position: relative;
  z-index: 2;
  color: white;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}

.quote-hero-info h2 {
  font-size: 26px;
  font-weight: 800;
}

.quote-hero-info p {
  font-size: 14px;
  color: #e2e8f0;
}

.quote-folio-badge {
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 6px 14px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.quote-body {
  padding: 24px;
}

.trip-meta-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  background: #f8fafc;
  padding: 14px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  margin-bottom: 20px;
}

@media (max-width: 640px) {
  .trip-meta-bar { grid-template-columns: repeat(2, 1fr); }
}

.meta-item .label {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
}

.meta-item .val {
  font-size: 14px;
  font-weight: 700;
  color: var(--secondary);
  margin-top: 2px;
}

.quote-section-title {
  font-size: 15px;
  font-weight: 800;
  color: var(--secondary);
  margin: 20px 0 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.card-flight, .card-hotel, .card-tour {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px;
  margin-bottom: 12px;
}

.flight-flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.hotel-grid {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 16px;
}

.hotel-grid img {
  width: 100%;
  height: 90px;
  object-fit: cover;
  border-radius: 8px;
}

/* Pricing and Voucher Box */
.quote-finance-banner {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  color: white;
  border-radius: var(--radius-md);
  padding: 22px;
  margin-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.finance-total-wrap .lbl {
  font-size: 12px;
  text-transform: uppercase;
  color: #94a3b8;
  letter-spacing: 0.5px;
}

.finance-total-wrap .tot {
  font-size: 32px;
  font-weight: 800;
  color: #38bdf8;
  line-height: 1.1;
}

.finance-total-wrap .per-person {
  font-size: 13px;
  color: #cbd5e1;
  margin-top: 3px;
}

.finance-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.btn-voucher {
  background: var(--primary);
  color: white;
  border: none;
  padding: 12px 20px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  transition: all 0.2s;
}

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

.btn-whatsapp {
  background: #10b981;
  color: white;
  border: none;
  padding: 12px 20px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  transition: all 0.2s;
}

.btn-whatsapp:hover {
  background: #059669;
}

/* Modal API Key */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 100;
}

.modal-overlay.open {
  display: flex;
}

.modal-box {
  background: white;
  border-radius: var(--radius-lg);
  padding: 28px;
  width: 90%;
  max-width: 480px;
  box-shadow: var(--shadow-lg);
}

.modal-box h3 {
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 8px;
}

.modal-box p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 16px;
}

.modal-input {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 14px;
  outline: none;
  margin-bottom: 16px;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

/* ============================================================
   EXPERIENCIA APP MÓVIL RESPONSIVE (<= 768px)
   ============================================================ */
@media (max-width: 768px) {
  body {
    height: 100vh;
    height: 100dvh;
    overflow: hidden;
  }

  /* Navbar Compacto */
  .navbar {
    height: 56px;
    padding: 0 12px;
  }

  .brand {
    gap: 8px;
  }

  .brand-logo-img {
    width: 36px;
    height: 36px;
    border-radius: 8px;
  }

  .brand-text h1 {
    font-size: 15px;
    letter-spacing: -0.3px;
  }

  .brand-tagline,
  .brand-text span {
    display: none !important; /* Oculta subtítulo largo en móvil */
  }

  .nav-actions {
    gap: 6px;
  }

  .badge-status {
    padding: 4px 8px;
    font-size: 11px;
    gap: 4px;
  }

  #agentStatusText {
    display: none; /* En móvil se simplifica la insignia */
  }

  .badge-status::after {
    content: "En línea";
    font-size: 11px;
    font-weight: 700;
  }

  .btn-icon {
    padding: 6px 10px;
    font-size: 12px;
    border-radius: 8px;
  }

  /* Barra de Pestañas Segmentada Móvil */
  .mobile-tabs-bar {
    display: flex;
    background: #ffffff;
    border-bottom: 1px solid var(--border);
    padding: 6px 12px;
    gap: 8px;
    flex-shrink: 0;
    box-shadow: 0 1px 3px rgba(0,0,0,0.03);
    z-index: 20;
  }

  .mobile-tab-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 12px;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: #f8fafc;
    color: var(--text-muted);
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    outline: none;
    font-family: inherit;
  }

  .mobile-tab-btn.active {
    background: var(--primary);
    color: #ffffff;
    border-color: var(--primary);
    box-shadow: 0 2px 8px rgba(2, 132, 199, 0.25);
  }

  .mobile-tab-badge {
    background: #ef4444;
    color: white;
    font-size: 10px;
    font-weight: 800;
    padding: 2px 6px;
    border-radius: 999px;
    display: none;
    letter-spacing: 0.3px;
    animation: pulseBadge 1.8s infinite;
  }

  .mobile-tab-badge.visible {
    display: inline-block;
  }

  @keyframes pulseBadge {
    0% { transform: scale(0.95); opacity: 0.9; }
    50% { transform: scale(1.1); opacity: 1; }
    100% { transform: scale(0.95); opacity: 0.9; }
  }

  /* Toast Flotante cuando la Cotización está lista */
  .mobile-quote-toast {
    position: fixed;
    top: 108px;
    left: 12px;
    right: 12px;
    background: #0f172a;
    color: white;
    padding: 10px 14px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 8px 24px rgba(0,0,0,0.25);
    z-index: 50;
    animation: slideDownToast 0.3s ease-out;
  }

  @keyframes slideDownToast {
    from { transform: translateY(-15px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
  }

  .toast-content {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12.5px;
    font-weight: 600;
    min-width: 0;
  }

  .toast-text {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .toast-action-btn {
    background: var(--primary);
    color: white;
    border: none;
    padding: 6px 14px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    flex-shrink: 0;
  }

  /* Espacio de Trabajo en Móvil */
  .workspace {
    display: flex;
    flex-direction: column;
    height: calc(100dvh - 56px - 47px);
    overflow: hidden;
  }

  /* Panel del Chat en Móvil */
  .chat-panel {
    flex: 1;
    height: 100%;
    min-height: 0;
    border-right: none;
    display: flex;
    flex-direction: column;
    overflow: hidden;
  }

  .chat-panel.mobile-hidden {
    display: none !important;
  }

  /* Encabezado del Chat Compacto y Ordenado */
  .chat-header {
    padding: 10px 12px;
    background: #f8fafc;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex-shrink: 0;
  }

  .advisor-profile {
    gap: 10px;
    min-width: 0;
    width: 100%;
  }

  .advisor-avatar {
    width: 38px;
    height: 38px;
    min-width: 38px;
    min-height: 38px;
    max-width: 38px;
    max-height: 38px;
    font-size: 15px;
    flex-shrink: 0;
    aspect-ratio: 1 / 1;
    border-radius: 50%;
  }

  .advisor-info {
    min-width: 0;
    flex: 1;
  }

  .advisor-info h3 {
    font-size: 13.5px;
    white-space: normal;
    word-break: break-word;
    line-height: 1.25;
  }

  .advisor-info p {
    font-size: 11px;
    white-space: normal;
    word-break: break-word;
    line-height: 1.25;
  }

  .advisor-selector-wrapper {
    padding: 5px 10px;
    gap: 6px;
    width: 100%;
    box-sizing: border-box;
    border-radius: 8px;
  }

  .advisor-select-label {
    display: inline-block;
    font-size: 10.5px;
    font-weight: 700;
    white-space: nowrap;
    flex-shrink: 0;
  }

  .advisor-select {
    font-size: 12px;
    max-width: 100%;
    width: 100%;
    padding: 0;
  }

  /* Mensajes del Chat con Scroll Táctil */
  .chat-messages {
    flex: 1;
    padding: 12px;
    gap: 12px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .msg {
    max-width: 92%;
  }

  .msg-bubble {
    padding: 10px 14px;
    font-size: 13.5px;
    border-radius: 12px;
  }

  /* Chips con Scroll Táctil Suave */
  .quick-chips {
    padding: 8px 12px;
    gap: 6px;
    flex-shrink: 0;
    -webkit-overflow-scrolling: touch;
  }

  .chip {
    padding: 6px 10px;
    font-size: 11.5px;
  }

  /* Barra de Entrada de Mensaje Fija al Fondo */
  .chat-input-bar {
    padding: 8px 12px;
    background: #ffffff;
    flex-shrink: 0;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.04);
  }

  .chat-input {
    font-size: 16px; /* Evita auto-zoom molesto en navegadores móviles */
    padding: 10px 14px;
    border-radius: 10px;
  }

  .send-btn {
    padding: 0 16px;
    border-radius: 10px;
    font-size: 13px;
  }

  /* Panel de Cotización en Móvil */
  .quote-panel {
    flex: 1;
    height: 100%;
    min-height: 0;
    padding: 12px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .quote-panel.mobile-hidden {
    display: none !important;
  }

  .empty-quote-state {
    padding: 24px 16px;
  }

  .empty-icon {
    font-size: 40px;
    margin-bottom: 10px;
  }

  .empty-quote-state h2 {
    font-size: 17px;
  }

  .destinations-preview-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  /* Tarjeta de Cotización Activa en Móvil */
  .quote-hero-header {
    height: 160px;
    padding: 14px;
  }

  .quote-hero-info h2 {
    font-size: 20px;
  }

  .quote-hero-info p {
    font-size: 12px;
  }

  .quote-folio-badge {
    padding: 4px 8px;
    font-size: 11px;
  }

  .quote-body {
    padding: 14px;
  }

  .trip-meta-bar {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    padding: 10px;
  }

  .meta-item .val {
    font-size: 12.5px;
  }

  .card-flight, .card-hotel, .card-tour {
    padding: 12px;
  }

  .flight-flex {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  .hotel-grid {
    grid-template-columns: 80px 1fr;
    gap: 10px;
  }

  .hotel-grid img {
    height: 75px;
  }

  .quote-finance-banner {
    padding: 16px;
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
  }

  .finance-total-wrap .tot {
    font-size: 26px;
  }

  .finance-actions {
    flex-direction: column;
    width: 100%;
    gap: 8px;
  }

  .btn-voucher, .btn-whatsapp {
    width: 100%;
    justify-content: center;
    padding: 12px;
    font-size: 13.5px;
  }
}

/* Pantallas Extra Pequeñas (<= 380px) */
@media (max-width: 380px) {
  .navbar {
    padding: 0 8px;
  }
  .brand-text h1 {
    font-size: 14px;
  }
  #navWhatsAppBtn span {
    display: none;
  }
  .send-btn span {
    display: none;
  }
}

/* ==========================================================================
   EXPEDIENTE CONSULAR DS-160 (ASISTENTE VALERIA)
   ========================================================================== */
.active-dossier-card {
  background: white;
  border-radius: var(--radius-lg);
  box-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.08);
  border: 1px solid var(--border);
  overflow: hidden;
  margin-bottom: 24px;
  animation: fadeIn 0.3s ease-in-out;
}

.dossier-hero-header {
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
  color: white;
  padding: 24px;
  border-bottom: 1px solid #334155;
}

.dossier-hero-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  flex-wrap: wrap;
}

.dossier-flag-title {
  display: flex;
  align-items: center;
  gap: 14px;
}

.dossier-icon {
  font-size: 32px;
  background: rgba(255, 255, 255, 0.1);
  padding: 8px;
  border-radius: 12px;
}

.dossier-flag-title h2 {
  font-size: 20px;
  font-weight: 800;
  margin: 0;
  color: white;
  letter-spacing: -0.3px;
}

.dossier-flag-title p {
  font-size: 13px;
  color: #94a3b8;
  margin: 3px 0 0;
}

.dossier-folio-badge {
  background: rgba(59, 130, 246, 0.2);
  border: 1px solid rgba(96, 165, 250, 0.4);
  color: #93c5fd;
  font-size: 11px;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Barra de Progreso Dinámica */
.dossier-progress-box {
  margin-top: 18px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 12px 16px;
}

.dossier-progress-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  margin-bottom: 8px;
  color: #cbd5e1;
}

.dossier-progress-info strong {
  color: #38bdf8;
  font-weight: 800;
  font-size: 14px;
}

.dossier-progress-track {
  width: 100%;
  height: 10px;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 6px;
  overflow: hidden;
}

.dossier-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, #38bdf8 0%, #10b981 100%);
  border-radius: 6px;
  transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Toolbar de Acciones */
.dossier-toolbar {
  display: flex;
  gap: 10px;
  margin-top: 16px;
  flex-wrap: wrap;
}

.dossier-tool-btn {
  border: none;
  border-radius: 8px;
  padding: 8px 14px;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.dossier-tool-btn.primary {
  background: #0284c7;
  color: white;
}
.dossier-tool-btn.primary:hover {
  background: #0369a1;
  transform: translateY(-1px);
}

.dossier-tool-btn.secondary {
  background: #334155;
  color: #f1f5f9;
}
.dossier-tool-btn.secondary:hover {
  background: #475569;
}

.dossier-tool-btn.danger {
  background: rgba(239, 68, 68, 0.15);
  color: #fca5a5;
  border: 1px solid rgba(239, 68, 68, 0.3);
}
.dossier-tool-btn.danger:hover {
  background: rgba(239, 68, 68, 0.25);
}

/* Módulos en Cuadrícula */
.dossier-modules-grid {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  background: #f8fafc;
}

.dossier-section-card {
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 16px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  transition: border-color 0.2s ease;
}

.dossier-section-card:hover {
  border-color: #cbd5e1;
}

.dossier-card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid #f1f5f9;
}

.title-with-icon {
  display: flex;
  align-items: center;
  gap: 8px;
}

.title-with-icon .sec-emoji {
  font-size: 16px;
}

.title-with-icon h4 {
  font-size: 14px;
  font-weight: 700;
  color: #1e293b;
  margin: 0;
}

/* Badges de estado */
.dossier-badge {
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 12px;
  letter-spacing: 0.3px;
}

.badge-pending {
  background: #f1f5f9;
  color: #64748b;
  border: 1px solid #e2e8f0;
}

.badge-progress {
  background: #fef3c7;
  color: #b45309;
  border: 1px solid #fde68a;
}

.badge-complete {
  background: #d1fae5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}

/* Filas de campos */
.dossier-fields-list {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.dossier-field-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  font-size: 13px;
  line-height: 1.4;
  gap: 12px;
}

.df-label {
  color: #64748b;
  font-weight: 600;
  min-width: 125px;
  flex-shrink: 0;
}

.df-val {
  color: #0f172a;
  font-weight: 700;
  text-align: right;
  word-break: break-word;
}

.df-val.empty-field {
  color: #94a3b8;
  font-weight: 500;
  font-style: italic;
}

/* Nota de Descargo Consular */
.dossier-disclaimer {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 0 20px 20px;
  padding: 12px 16px;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: 10px;
  font-size: 12px;
  color: #1e40af;
  line-height: 1.5;
}

.disclaimer-icon {
  font-size: 16px;
  flex-shrink: 0;
  margin-top: 1px;
}

