@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,400;1,700&display=swap');

/* ==========================================
   PROTECCIÓN DE FUENTES Y REGLAS DE ÍCONOS
   ========================================== */

/* 1. Forzar tipografía oficial de Font Awesome con máxima prioridad */
.fa, .fas, .fa-solid {
  font-family: "Font Awesome 6 Free" !important;
  font-weight: 900 !important;
}

.far, .fa-regular {
  font-family: "Font Awesome 6 Free" !important;
  font-weight: 400 !important;
}

.fab, .fa-brands {
  font-family: "Font Awesome 6 Brands" !important;
  font-weight: 400 !important;
}

i[class*="fa-"],
[class*="fa-"] {
  display: inline-block;
  font-style: normal;
  font-variant: normal;
  text-rendering: auto;
  line-height: 1;
  -webkit-font-smoothing: antialiased;
}

/* Material Icons */
.material-icons,
.material-symbols-outlined,
.material-symbols-rounded,
.material-symbols-sharp {
  font-family: 'Material Icons', 'Material Symbols Outlined' !important;
}

/* ==========================================
   CONFIGURACIÓN GLOBAL Y VARIABLES DE TEMA
   ========================================== */
:root {
  /* Fuente principal */
  --font-main: 'Montserrat', sans-serif;
  
  /* MODO CLARO (Por defecto) */
  --bg-primary: #f8fafc;
  --bg-secondary: #ffffff;
  --bg-alt: #f1f5f9;
  --bg-card: #ffffff;
  
  /* Sistema de Color de Texto Unificado */
  --text-title-main: #0f172a;       /* Títulos principales (h1, h2) */
  --text-title-sub: #1e293b;        /* Títulos secundarios / Subtítulos (h3, h4, etc.) */
  --text-body: #475569;             /* Párrafos y texto general */
  --text-muted: #64748b;            /* Detalles, fechas y meta texto */
  --text-light: #94a3b8;            /* Deshabilitados y placeholders */
  
  --border-color: #e2e8f0;
  --border-subtle: #f1f5f9;
  
  --navbar-bg: #ffffff;
  
  /* Accentos especiales */
  --accent-red: #D82629;
  --accent-red-hover: #B52128;
  --accent-gold: #d97706;           /* Color especial dorado */
}

/* MODO OSCURO (Se activa agregando la clase .dark-mode al body) */
body.dark-mode {
  --bg-primary: #0f172a;
  --bg-secondary: #1e293b;
  --bg-alt: #0b132b;
  --bg-card: #1c2738;
  
  /* Sistema de Color de Texto Unificado (Oscuro) */
  --text-title-main: #f8fafc;       /* Títulos principales (h1, h2) */
  --text-title-sub: #e2e8f0;        /* Títulos secundarios / Subtítulos (h3, h4, etc.) */
  --text-body: #cbd5e1;             /* Párrafos y texto general */
  --text-muted: #94a3b8;            /* Detalles, fechas y meta texto */
  --text-light: #64748b;            /* Deshabilitados y placeholders */
  
  --border-color: rgba(255, 255, 255, 0.1);
  --border-subtle: rgba(255, 255, 255, 0.05);
  
  --navbar-bg: rgba(15, 23, 42, 0.95);
  
  /* Accentos especiales */
  --accent-red: #D82629;
  --accent-red-hover: #B52128;
  --accent-gold: #f59e0b;           /* Color especial dorado */
}

/* Reset Global */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* 1. TIPOGRAFÍA UNIFICADA: Montserrat a elementos de texto sin afectar íconos */
html,
body,
header, main, footer, section, article, div,
button, input, select, textarea,
p, h1, h2, h3, h4, h5, h6,
a,
li, ul, ol, td, th, blockquote, label {
  font-family: var(--font-main);
}

/* Aplicar Montserrat a span excluyendo los íconos */
span:not([class*="fa-"]):not([class*="material-"]):not(.fa):not(.fas):not(.far):not(.fal):not(.fab):not(.fad) {
  font-family: var(--font-main);
}

/* ESTILOS TIPOGRÁFICOS UNIFICADOS */
h1, h2 {
  color: var(--text-title-main);
}

h3, h4, h5, h6 {
  color: var(--text-title-sub);
}

p, span, li, label, a {
  color: var(--text-body);
}

body {
  background-color: var(--bg-primary);
  color: var(--text-body);
  transition: background-color 0.3s ease, color 0.3s ease;
  top: 0px !important;
  position: static !important;
}

/* ==========================================
   ESTILIZACIÓN DE SCROLLBAR
   ========================================== */
html::-webkit-scrollbar,
body::-webkit-scrollbar,
::-webkit-scrollbar {
  width: 6px !important;
  height: 6px !important;
}

html::-webkit-scrollbar-track,
body::-webkit-scrollbar-track,
::-webkit-scrollbar-track {
  background: transparent !important;
}

html::-webkit-scrollbar-thumb,
body::-webkit-scrollbar-thumb,
::-webkit-scrollbar-thumb {
  background-color: transparent !important;
  border-radius: 10px !important;
  transition: background-color 0.3s ease;
}

html:hover::-webkit-scrollbar-thumb,
body:hover::-webkit-scrollbar-thumb,
::-webkit-scrollbar-thumb:hover {
  background-color: var(--text-light) !important;
}

body.dark-mode::-webkit-scrollbar-thumb:hover,
body.dark-mode *::-webkit-scrollbar-thumb:hover {
  background-color: var(--text-muted) !important;
}

html::-webkit-scrollbar-button,
body::-webkit-scrollbar-button,
::-webkit-scrollbar-button {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
}

html {
  scrollbar-width: thin;
  scrollbar-color: transparent transparent;
  scroll-behavior: smooth;
}

html:hover {
  scrollbar-color: var(--text-light) transparent;
}

/* ==========================================
   DESPLAZAMIENTO SUAVE Y MARGENES
   ========================================== */
section {
  scroll-margin-top: 90px;
}

/* ==========================================
   ESTILOS DEL NAVBAR
   ========================================== */
#navbar-container {
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;  
}

.header {
  background-color: var(--navbar-bg);
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

.navbar {
  max-width: 1600px;
  width: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.8rem 1.5rem;
}

.logo {
  display: flex;
  align-items: center;
  margin-right: 1.5rem;
  flex-shrink: 0;
}

.logo img {
  height: 55px;
  width: auto;
  object-fit: contain;
}

.theme-label {
  display: none;
}

.footer-logo img {
  height: 40px;
  margin-bottom: 1.2rem;
}

.logo .logo-light,
.footer-logo .logo-light {
  display: block !important;
}

.logo .logo-dark,
.footer-logo .logo-dark {
  display: none !important;
}

body.dark-mode .logo .logo-light,
body.dark-mode .footer-logo .logo-light,
[data-theme="dark"] .logo .logo-light,
[data-theme="dark"] .footer-logo .logo-light {
  display: none !important;
}

body.dark-mode .logo .logo-dark,
body.dark-mode .footer-logo .logo-dark,
[data-theme="dark"] .logo .logo-dark,
[data-theme="dark"] .footer-logo .logo-dark {
  display: block !important;
}

/* ===================================================
   FILTROS Y PAGINACIÓN EN MODO OSCURO
   =================================================== */
body.dark-mode .filter-container,
body.dark-mode .category-filters,
body.dark-mode .filters-wrapper,
body.dark-mode .filter-group,
body.dark-mode .tabs-container {
  background-color: var(--bg-secondary) !important;
  border: 1px solid var(--border-color) !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4) !important;
}

body.dark-mode .filter-btn,
body.dark-mode .category-btn {
  background-color: transparent !important;
  color: var(--text-muted) !important;
  border: none !important;
}

body.dark-mode .filter-btn:hover:not(.active),
body.dark-mode .category-btn:hover:not(.active) {
  background-color: rgba(255, 255, 255, 0.08) !important;
  color: var(--text-title-main) !important;
}

body.dark-mode .filter-btn.active,
body.dark-mode .category-btn.active {
  background-color: var(--accent-red) !important;
  color: #ffffff !important;
  box-shadow: 0 2px 8px rgba(216, 38, 41, 0.4) !important;
}

body.dark-mode .pagination-btn {
  background-color: var(--bg-secondary) !important;
  color: var(--text-title-main) !important;
  border: 1px solid var(--border-color) !important;
}

body.dark-mode .pagination-btn:hover:not(:disabled) {
  background-color: rgba(255, 255, 255, 0.1) !important;
  color: #ffffff !important;
}

body.dark-mode .pagination-btn:disabled {
  background-color: var(--bg-primary) !important;
  color: var(--text-light) !important;
  border-color: var(--border-subtle) !important;
  cursor: not-allowed;
  opacity: 0.5;
}

body.dark-mode .pagination-info {
  color: var(--text-body) !important;
}

body.dark-mode .filter-tabs {
  display: flex;
  gap: 12px;
  background-color: var(--bg-secondary);
  padding: 6px;
  border-radius: 40px;
  border: 1px solid var(--border-color);
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 1.25rem;
  align-items: center;
}

.nav-link {
  text-decoration: none;
  color: var(--text-body);
  font-weight: 500;
  font-size: 0.9rem;
  padding: 0.5rem 0;
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  transition: color 0.2s ease;
  white-space: nowrap;
}

.nav-icon.gold { color: var(--accent-gold); }
.nav-icon.red { color: var(--accent-red); }

.nav-link:hover,
.nav-link.active {
  color: var(--accent-red);
}

.nav-link.active {
  font-weight: 600;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0%;
  height: 2px;
  background-color: var(--accent-red);
  border-radius: 2px;
  transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-shrink: 0;
  margin-left: 1rem;
}

.theme-toggle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border-color);
  background-color: var(--bg-card);
  color: var(--accent-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1rem;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.theme-toggle:hover {
  background-color: var(--bg-alt);
}

.btn-cta {
  background-color: var(--accent-red);
  color: #ffffff !important;
  text-decoration: none;
  padding: 0.65rem 1.4rem;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: 0 4px 12px rgba(216, 38, 41, 0.25);
  transition: background-color 0.2s ease, transform 0.1s ease;
  flex-shrink: 0;
  white-space: nowrap;
}

.btn-cta:hover {
  background-color: var(--accent-red-hover);
  transform: translateY(-1px);
}

.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 28px;
  height: 20px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 1001;
}

.menu-toggle .bar {
  width: 100%;
  height: 3px;
  background-color: var(--text-title-main);
  border-radius: 2px;
  transition: all 0.3s ease;
}

.menu-toggle.is-active .bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.menu-toggle.is-active .bar:nth-child(2) { opacity: 0; }
.menu-toggle.is-active .bar:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

/* ==========================================
   HERO / BANNER PRINCIPAL CON SLIDER
   ========================================== */
.hero-section {
  position: relative;
  width: 100%;
  min-height: calc(100vh - 80px);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  color: #ffffff;
}

.hero-slider {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.2s ease-in-out, transform 8s ease;
  transform: scale(1);
}

.slide.active {
  opacity: 1;
  transform: scale(1.05);
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, rgba(15, 23, 42, .1) 0%, rgba(15, 23, 42, 0.6) 100%);
  z-index: 1;
}

.hero-container {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 900px;
  padding: 3rem 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-badge {
  display: inline-block;
  padding: 0.4rem 1.2rem;
  border: 1px solid var(--accent-red-hover);
  background-color: rgba(216, 38, 41, 0.15);
  color: #ffffff !important;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 1px;
  margin-bottom: 2rem;
}

.hero-title {
  font-weight: 400;
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  line-height: 1.15;
  margin-bottom: 1.5rem;
  color: #ffffff !important;
}

.highlight-italic {
  font-style: italic;
  color: var(--accent-red) !important;
  font-weight: 600;
}

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.15rem);
  color: #dfe7f1 !important;
  max-width: 750px;
  line-height: 1.6;
  margin-bottom: 2.5rem;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}

.btn-hero {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.85rem 1.8rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: all 0.3s ease;
}

.btn-red {
  background-color: var(--accent-red);
  color: #ffffff !important;
  box-shadow: 0 4px 20px rgba(216, 38, 41, 0.4);
}

.btn-red:hover {
  background-color: var(--accent-red-hover);
  transform: translateY(-2px);
}

.btn-light {
  background-color: #f1f5f9;
  color: #0f172a !important;
}

.btn-light:hover {
  background-color: #ffffff;
  transform: translateY(-2px);
}

.hero-controls {
  position: absolute;
  bottom: 20px;
  right: 20px;
  z-index: 3;
  display: flex;
  gap: 0.5rem;
  background-color: rgba(15, 23, 42, 0.6);
  padding: 0.4rem 0.8rem;
  border-radius: 30px;
  backdrop-filter: blur(4px);
}

.hero-controls button {
  background: none;
  border: none;
  color: #ffffff;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  transition: background-color 0.2s ease;
}

.hero-controls button:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

/* ==========================================
   SECCIONES DE EXPEDICIONES
   ========================================== */
.expeditions-section {
  padding: 4rem 1.5rem;
  background-color: var(--bg-primary);
  transition: background-color 0.3s ease;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 2.5rem;
}

.sub-tag {
  color: var(--accent-red);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 1px;
}

.header-text h2 {
  font-weight: 700;
  font-size: 2.2rem;
  color: var(--text-title-main);
  margin: 0.3rem 0 0.5rem 0;
}

.header-text p {
  color: var(--text-muted);
  max-width: 600px;
  font-size: 0.95rem;
}

.carousel-controls {
  display: flex;
  gap: 0.8rem;
}

.btn-arrow {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--border-color);
  background-color: var(--bg-card);
  color: var(--text-body);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.btn-arrow:hover {
  background-color: var(--text-title-main);
  color: var(--bg-primary);
  border-color: var(--text-title-main);
}

.carousel-wrapper {
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: none;
}

.carousel-wrapper::-webkit-scrollbar {
  display: none;
}

.cards-track {
  display: flex;
  gap: 1.5rem;
}

/* Tarjeta de Viaje */
.travel-card {
  min-width: 350px;
  max-width: 370px;
  background-color: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

.card-image {
  position: relative;
  height: 220px;
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background-color: var(--accent-red);
  color: #ffffff !important;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
}

.card-content {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.location-tag {
  color: var(--accent-red);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  margin-bottom: 0.5rem;
}

.card-content h3 {
  font-weight: 600;
  font-size: 1.25rem;
  color: var(--text-title-sub);
  line-height: 1.3;
  margin-bottom: 0.8rem;
}

.card-content p {
  color: var(--text-body);
  font-size: 0.88rem;
  line-height: 1.5;
  margin-bottom: 1.5rem;
}

.card-footer {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1rem;
  border-top: 1px solid var(--border-subtle);
}

.price strong {
  font-size: 1.1rem;
  color: var(--text-title-main);
}

.price span {
  font-size: 0.8rem;
  color: var(--text-light);
}

.btn-consult {
  background-color: var(--accent-red);
  color: #ffffff !important;
  border: none;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.btn-consult:hover {
  background-color: var(--accent-red-hover);
}

/* ==========================================
   SECCIÓN: PROPUESTA DE VALOR
   ========================================== */
.value-proposition-section {
  padding: 5rem 1.5rem;
  background-color: var(--bg-alt);
  transition: background-color 0.3s ease;
}

.text-center {
  text-align: center;
}

.value-header {
  max-width: 700px;
  margin: 0 auto 3.5rem auto;
}

.value-header h2 {
  font-weight: 700;
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  color: var(--text-title-main);
  margin-bottom: 0.8rem;
}

.value-header p {
  color: var(--text-body);
  font-size: 1rem;
  line-height: 1.6;
}

.value-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.value-card {
  background-color: var(--bg-card);
  padding: 2.5rem 2rem;
  border-radius: 16px;
  text-align: left;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.3s ease;
}

.value-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.06);
}

.icon-box {
  width: 48px;
  height: 48px;
  background-color: rgba(216, 38, 41, 0.1);
  color: var(--accent-red);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
}

.value-card h3 {
  font-weight: 600;
  font-size: 1.25rem;
  color: var(--text-title-sub);
  margin-bottom: 0.8rem;
}

.value-card p {
  color: var(--text-body);
  font-size: 0.9rem;
  line-height: 1.6;
}

/* ==========================================
   ESTILOS DEL MODAL
   ========================================== */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  background-color: var(--bg-card);
  border-radius: 20px;
  width: 90%;
  max-width: 700px;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  position: relative;
  box-shadow: 0 20px 50px rgba(0,0,0,0.2);
  overflow: hidden;
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1.5rem;
  background: transparent;
  border: none;
  font-size: 1.8rem;
  color: var(--text-muted);
  cursor: pointer;
  z-index: 10;
}

.modal-header {
  padding: 2rem 2rem 1rem 2rem;
  border-bottom: 1px solid var(--border-color);
}

.modal-header h2 {
  font-weight: 700;
  font-size: 1.8rem;
  color: var(--text-title-main);
  margin-bottom: 0.2rem;
}

.modal-subtitle {
  font-size: 0.9rem;
  color: var(--accent-gold);
  font-weight: 600;
  text-transform: uppercase;
}

.modal-tabs {
  display: flex;
  background-color: var(--bg-secondary);
  border-bottom: 1px solid var(--border-color);
}

.tab-btn {
  flex: 1;
  padding: 0.9rem 0.5rem;
  background: transparent;
  border: none;
  border-bottom: 3px solid transparent;
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: all 0.2s ease;
}

.tab-btn.active {
  color: var(--accent-red);
  border-bottom-color: var(--accent-red);
  background-color: var(--bg-card);
}

.modal-body {
  padding: 1.5rem 2rem;
  overflow-y: auto;
  flex: 1;
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

.modal-footer {
  padding: 1.2rem 2rem;
  border-top: 1px solid var(--border-color);
  display: flex;
  justify-content: flex-end;
  background-color: var(--bg-card);
}

/* ==========================================
   BOTÓN EN FOOTER DE MODAL (PROMOS)
   ========================================== */
.modal-footer {
  padding: 1.2rem 2rem;
  border-top: 1px solid var(--border-color);
  display: flex;
  justify-content: center; /* Alineación centrada para la promo */
  background-color: var(--bg-card);
}

/* Estilo tipo píldora para el botón de promo */
.modal-footer a,
.modal-footer button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  width: 100%;
  max-width: 420px;
  background-color: var(--accent-red);
  color: #ffffff !important;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.85rem 1.8rem;
  border-radius: 50px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(229, 46, 53, 0.45);
  transition: all 0.25s ease;
  text-align: center;
}

.modal-footer a:hover,
.modal-footer button:hover {
  background-color: var(--accent-red-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(229, 46, 53, 0.6);
}

/* ==========================================
   CARRUSEL DE IMÁGENES DENTRO DEL MODAL
   ========================================== */
.modal-gallery {
  position: relative;
  width: 100%;
  height: 250px;
  background-color: #000000;
  overflow: hidden;
}

.modal-gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: opacity 0.3s ease;
}

.gallery-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.5);
  color: #ffffff;
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
  z-index: 5;
}

.gallery-btn:hover {
  background: rgba(0, 0, 0, 0.8);
}

.gallery-btn.prev { left: 15px; }
.gallery-btn.next { right: 15px; }

.gallery-counter {
  position: absolute;
  bottom: 12px;
  right: 15px;
  background: rgba(0, 0, 0, 0.6);
  color: #ffffff;
  font-size: 0.75rem;
  padding: 4px 10px;
  border-radius: 20px;
  font-weight: 600;
  letter-spacing: 0.5px;
}

/* ==========================================
   ESTILOS DEL FOOTER
   ========================================== */
footer,
.footer {
  background-color: var(--bg-alt) !important;
  color: var(--text-body);
  padding: 4rem 1.5rem 2rem 1.5rem;
  width: 100%;
  display: block;
  transition: background-color 0.3s ease;
}

.footer .container {
  max-width: 1200px;
  margin: 0 auto;
}

.footer-main {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1.2fr 1fr;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid var(--border-color);
}

.footer-logo img {
  height: 60px;
  margin-bottom: 1.2rem;
  display: block;
}

.footer-desc {
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--text-muted);
}

.footer-col h4 {
  color: var(--text-title-sub);
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 1.2rem;
}

.footer-links,
.footer-contact {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  padding: 0;
}

.footer-links a,
.footer-contact a {
  color: var(--text-body);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s ease;
}

.footer-links a:hover,
.footer-contact a:hover {
  color: var(--text-title-main);
}

.footer-contact li {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-size: 0.9rem;
}

.footer-contact i {
  color: var(--accent-red);
  font-size: 1rem;
}

.social-icons {
  display: flex;
  gap: 0.8rem;
}

.social-icons a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--bg-card);
  color: var(--text-title-main);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  text-decoration: none;
  border: 1px solid var(--border-color);
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.social-icons a:hover {
  transform: translateY(-3px);
  background-color: var(--accent-red);
  color: #ffffff !important;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 2rem;
  font-size: 0.85rem;
}

.legal-links {
  display: flex;
  gap: 2rem;
}

.legal-links a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s ease;
}

.legal-links a:hover {
  color: var(--text-title-main);
}

/* ==========================================
   BLOG ENTRADAS
   ========================================== */
#blogModal .modal-content {
  max-width: 850px;
  width: 92%;
  max-height: 88vh;
  border-radius: 24px !important;
  border: 1px solid var(--border-color);
  background-color: var(--bg-card);
  color: var(--text-body);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.4);
  padding: 0;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.blog-modal-body-wrapper {
  padding: 2rem;
  overflow-y: auto;
  max-height: 88vh;
}

.blog-modal-body-wrapper::-webkit-scrollbar {
  width: 8px;
}
.blog-modal-body-wrapper::-webkit-scrollbar-track {
  background: transparent;
}
.blog-modal-body-wrapper::-webkit-scrollbar-thumb {
  background: var(--border-color);
  border-radius: 10px;
}

.blog-gallery-container {
  position: relative;
  width: 100%;
  height: 380px;
  margin-bottom: 1.5rem;
  border-radius: 16px;
  overflow: hidden;
  background-color: #0f172a;
  display: flex;
  align-items: center;
  justify-content: center;
}

.blog-gallery-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.blog-gallery-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.65);
  color: #ffffff;
  border: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  transition: background 0.2s ease, transform 0.2s ease;
  z-index: 10;
}

.blog-gallery-btn:hover {
  background: var(--accent-red);
  transform: translateY(-50%) scale(1.08);
}

.blog-gallery-btn.prev { left: 14px; }
.blog-gallery-btn.next { right: 14px; }

.blog-gallery-counter {
  position: absolute;
  bottom: 14px;
  right: 14px;
  background: rgba(0, 0, 0, 0.75);
  color: #ffffff;
  padding: 0.35rem 0.8rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  z-index: 10;
}

#blogModalTitle {
  color: var(--text-title-main);
}

.blog-reader-content {
  color: var(--text-body);
}

.modal-social-links {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

.modal-social-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--bg-primary);
  color: var(--text-title-main);
  border: 1px solid var(--border-color);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  text-decoration: none;
}

.modal-social-btn:hover {
  background-color: var(--accent-red);
  color: #ffffff !important;
  border-color: var(--accent-red);
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(216, 38, 41, 0.3);
}

.article-actions {
  border-top: 1px solid var(--border-color) !important;
}

/* FORZADO DE MODO OSCURO PARA TARJETAS Y MODAL */
[data-theme="dark"] .blog-card,
[data-theme="dark"] .travel-card {
  background-color: var(--bg-card) !important;
  border-color: var(--border-color) !important;
}

[data-theme="dark"] .blog-card h2,
[data-theme="dark"] .travel-card h3 {
  color: var(--text-title-main) !important;
}

[data-theme="dark"] .blog-card p,
[data-theme="dark"] .travel-card p,
[data-theme="dark"] .blog-meta,
[data-theme="dark"] .blog-meta span {
  color: var(--text-body) !important;
}

[data-theme="dark"] #blogModal .modal-content {
  background-color: var(--bg-card) !important;
  color: var(--text-body) !important;
}

[data-theme="dark"] #blogModalTitle,
[data-theme="dark"] #blogModalBody h3,
[data-theme="dark"] #blogModalBody h4 {
  color: var(--text-title-main) !important;
}

[data-theme="dark"] #blogModalBody,
[data-theme="dark"] #blogModalBody p,
[data-theme="dark"] #blogModalAuthor,
[data-theme="dark"] #blogModalDate {
  color: var(--text-body) !important;
}

[data-theme="dark"] .blog-meta .tag,
[data-theme="dark"] #blogModalTags span {
  background-color: rgba(241, 245, 249, 0.15) !important;
  color: #ffffff !important;
}

.modal-tag {
  background-color: rgba(216, 38, 41, 0.1);
  color: var(--accent-red);
}

[data-theme="dark"] .modal-tag {
  background-color: rgba(255, 255, 255, 0.15) !important;
  color: #ffffff !important;
}

/* ==========================================
   ESTILOS DE PROMO (CARRUSEL HERO)
   ========================================== */

/* Color del título en modo claro */
#promoDynamicTitle,
.promo-title-text {
  color: #111827 !important; /* Fuerza color oscuro en modo claro */
  text-shadow: none;
}

/* Color del título en modo oscuro */
body.dark-mode #promoDynamicTitle,
body.dark #promoDynamicTitle,
[data-theme="dark"] #promoDynamicTitle {
  color: #ffffff !important; /* Fuerza color blanco en modo oscuro */
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.promos-modal-content.hero-promo-modal {
  max-width: 850px;
  padding: 1.5rem;
}

/* Contenedor principal del carrusel hero */
.promo-hero-carousel {
  position: relative;
  width: 100%;
  height: 380px;
  border-radius: 16px;
  overflow: hidden;
  margin: 1rem 0;
  background-color: #000000;
}

.promo-slides-container {
  width: 100%;
  height: 100%;
  position: relative;
}

.promo-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.8s ease-in-out;
  cursor: pointer;
}

.promo-slide.active {
  opacity: 1;
  z-index: 1;
}

.promo-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Reutilizando tus hero-controls del Index */
.promo-hero-carousel .hero-controls {
  position: absolute;
  bottom: 15px;
  right: 15px;
  z-index: 10;
  display: flex;
  gap: 0.5rem;
  background-color: rgba(15, 23, 42, 0.65);
  padding: 0.4rem 0.8rem;
  border-radius: 30px;
  backdrop-filter: blur(4px);
}

.promo-hero-carousel .hero-controls button {
  background: none;
  border: none;
  color: #ffffff;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  transition: background-color 0.2s ease;
}

.promo-hero-carousel .hero-controls button:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

/* Indicadores / Puntos centrados en la parte inferior */
.promo-hero-carousel .carousel-dots {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  gap: 8px;
}

.promo-hero-carousel .dot {
  width: 8px;
  height: 8px;
  background: rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s ease;
}

.promo-hero-carousel .dot.active {
  background: #ffffff;
  width: 22px;
  border-radius: 10px;
}

/* Responsivo para móviles */
@media (max-width: 600px) {
  .promo-hero-carousel {
    height: 240px;
  }
  .promo-hero-carousel .hero-controls {
    bottom: 10px;
    right: 50%;
    transform: translateX(50%);
  }
  .promo-hero-carousel .carousel-dots {
    display: none; /* Ocultamos los puntos en móvil para no saturar los controles */
  }
}

/* ==========================================
   BOTÓN SELECTOR DE IDIOMA
   ========================================== */
.lang-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: transparent;
  border: 1px solid var(--border-color);
  color: var(--text-body);
  padding: 0.4rem 0.75rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.lang-toggle i {
  font-size: 0.85rem;
  color: var(--text-muted);
  transition: color 0.2s ease;
}

.lang-toggle:hover {
  border-color: var(--accent-red);
  color: var(--accent-red);
  background-color: var(--bg-alt);
}

.lang-toggle:hover i {
  color: var(--accent-red);
}

.lang-label {
  display: none;
}

/* ==========================================
   OCULTAR COMPONENTES DE GOOGLE TRANSLATE
   ========================================== */
iframe.skiptranslate,
iframe.goog-te-banner-frame,
.goog-te-banner-frame,
.goog-te-balloon-frame,
#goog-gt-tt,
.goog-te-spinner-pos,
.VIpgJd-ZVi9od-ORHb-OEVmcd,
.VIpgJd-ZVi9od-a9145-haApdv {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  height: 0 !important;
  width: 0 !important;
  pointer-events: none !important;
}

body > .skiptranslate {
  display: none !important;
}

.goog-text-highlight {
  background-color: transparent !important;
  box-shadow: none !important;
}

/* ==========================================================================
   FILTRADO POR PESTAÑAS, GRID Y PAGINACIÓN
   ========================================================================== */
.expeditions-section .section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 35px;
}

.filter-tabs {
  display: flex;
  gap: 12px;
  background-color: var(--bg-alt);
  padding: 6px;
  border-radius: 40px;
  border: 1px solid var(--border-color);
}

.filter-btn {
  border: none;
  background: transparent;
  padding: 10px 22px;
  border-radius: 30px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-body);
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.filter-btn i {
  font-size: 0.9rem;
}

.filter-btn:hover {
  color: var(--text-title-main);
}

.filter-btn.active {
  background-color: var(--accent-red);
  color: #ffffff !important;
  box-shadow: 0 4px 12px rgba(216, 38, 41, 0.25);
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 30px;
  margin-bottom: 40px;
}

.travel-card.is-hidden {
  display: none !important;
}

.cards-grid .travel-card {
  width: 100%;
  margin: 0;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.cards-grid .travel-card .card-content {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.cards-grid .travel-card .card-footer {
  margin-top: auto;
}

.pagination-container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 18px;
  margin-top: 20px;
  padding: 10px 0;
}

.pagination-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--border-color);
  background-color: var(--bg-card);
  color: var(--text-title-main);
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.pagination-btn:hover:not(:disabled) {
  background-color: var(--accent-red);
  color: #ffffff !important;
  border-color: var(--accent-red);
  box-shadow: 0 4px 10px rgba(216, 38, 41, 0.2);
}

.pagination-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  box-shadow: none;
}

.pagination-info {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-muted);
  min-width: 100px;
  text-align: center;
}

/* ==========================================
   MEDIA QUERIES (RESPONSIVO)
   ========================================== */
@media (max-width: 1500px) {
  .navbar {
    padding: 0.8rem 1rem;
  }

  .logo {
    margin-right: 1rem;
  }

  .nav-menu {
    gap: 1rem;
  }

  .nav-actions {
    gap: 0.8rem;
    margin-left: 0.8rem;
  }

  .nav-link {
    font-size: 0.85rem;
    white-space: normal;
    text-align: center;
    max-width: 120px;
    line-height: 1.2;
  }

  .btn-cta {
    padding: 0.55rem 1rem;
    font-size: 0.8rem;
  }
}

@media (max-width: 1100px) {
  .logo {
    margin-right: 0;
  }

  .menu-toggle {
    display: flex;
  }

  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 320px;
    height: 100vh;
    background-color: var(--bg-card);
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    padding: 6rem 2rem 2rem 2rem;
    gap: 1.5rem;
    box-shadow: -5px 0 25px rgba(0, 0, 0, 0.15);
    transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  }

  .nav-menu.is-active {
    right: 0;
  }

  .nav-item {
    width: 100%;
  }

  .nav-theme-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 1.5rem;
    margin-top: 1rem;
    border-top: 1px solid var(--border-color);
  }

  .theme-label {
    display: block;
    color: var(--text-body);
    font-size: 0.95rem;
    font-weight: 500;
  }

  .btn-cta {
    font-size: 0.75rem;
    padding: 0.5rem 1rem;
  }

  .value-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .footer-main {
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
  }

  .desktop-lang {
    display: none !important;
  }

  .nav-lang-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 1rem;
    border-top: 1px solid var(--border-subtle);
    width: 100%;
  }

  .lang-label {
    display: block;
    color: var(--text-body);
    font-size: 0.95rem;
    font-weight: 500;
  }
}








@media (max-width: 768px) {
  /* HERO & BOTONES */
  .hero-buttons {
    flex-direction: column;
    width: 100%;
  }

  .btn-hero {
    width: 100%;
    justify-content: center;
  }

  .hero-controls {
    bottom: 12px;
    left: 50% !important;
    right: auto !important;
    transform: translateX(-50%) !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    gap: 12px;
    max-width: calc(100% - 24px);
    box-sizing: border-box;
    z-index: 10;
  }

  /* SECCIONES & GRIDS */
  .expeditions-section {
    padding: 2.5rem 1rem;
  }

  .expeditions-section .section-header {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .value-proposition-section {
    padding: 3rem 1rem;
  }

  .carousel-controls {
    align-self: flex-end;
  }

  .cards-grid {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 20px;
    width: 100%;
    padding: 0 10px;
  }

  .cards-grid .travel-card {
    width: 100%;
    max-width: 380px;
    margin: 0 auto;
  }

  /* TARJETAS GENERALES */
  .travel-card {
    flex: 0 0 85vw;
    max-width: 320px;
  }

  .card-image {
    height: 180px;
  }

  .card-content {
    padding: 1.2rem;
  }

  .card-footer {
    flex-direction: column;
    align-items: stretch;
    gap: 0.8rem;
  }

  .btn-consult {
    justify-content: center;
    padding: 0.6rem 1rem;
  }

  /* FILTROS DE LA PÁGINA */
  .filter-tabs {
    width: 100%;
    max-width: 360px;
    margin: 0 auto;
    justify-content: center;
  }

  .filter-btn {
    flex: 1;
    justify-content: center;
    padding: 10px 14px;
    font-size: 0.85rem;
  }

  /* ---------------------------------------------------- */
  /* MODAL: FLUJO CONTINUO COMO LA REFERENCIA              */
  /* ---------------------------------------------------- */

  /* 1. Contenedor principal con Scroll Unificado */
  .modal-content, 
  .modal-card,
  .travel-detail-modal {
    display: block !important;
    width: 92% !important;
    max-width: 440px !important;
    max-height: 88vh !important;
    overflow-y: auto !important; /* Permite scroll completo de todo el contenido */
    -webkit-overflow-scrolling: touch;
    padding: 20px 16px !important;
    box-sizing: border-box !important;
    border-radius: 20px !important;
    
    /* Ocultar barra lateral de scroll */
    scrollbar-width: none !important;
    -ms-overflow-style: none !important;
  }

  .modal-content::-webkit-scrollbar, 
  .modal-card::-webkit-scrollbar,
  .travel-detail-modal::-webkit-scrollbar {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
  }

  /* 2. Galería / Imagen superior */
  .modal-gallery,
  .modal-gallery-slider {
    width: 100% !important;
    height: 200px !important;
    border-radius: 12px !important;
    overflow: hidden !important;
    margin-bottom: 16px !important;
  }

  .modal-gallery img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
  }

  /* 3. Pestañas en Lista Vertical */
  .modal-tabs {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    gap: 6px !important;
    margin-bottom: 16px !important;
    border-bottom: none !important;
  }

  .modal-tabs .tab-btn {
  display: flex !important;
  width: 100% !important;
  align-items: center !important;
  justify-content: flex-start !important;
  padding: 10px 14px !important;
  font-size: 0.88rem !important;
  text-align: left !important;
  white-space: normal !important;
  
  /* Uso de variables dinámicas de tema */
  background-color: var(--bg-secondary) !important;
  border: 1px solid var(--border-color) !important;
  color: var(--text-muted) !important;
  border-radius: 8px !important;
  box-sizing: border-box !important;
  transition: all 0.2s ease !important;
}

/* Estado activo unificado para ambos temas */
.modal-tabs .tab-btn.active {
  background-color: var(--bg-card) !important;
  color: var(--accent-red) !important;
  border-color: var(--accent-red) !important;
  font-weight: 700 !important;
}

  /* 4. Cuerpo de texto y Contenido Extendido */
  .modal-body {
    width: 100% !important;
    height: auto !important;
    max-height: none !important;
    overflow: visible !important; /* Desbloquea la altura para mostrar todo el texto */
    margin-bottom: 20px !important;
  }

  .tab-content {
    height: auto !important;
  }

  /* 5. Botón de acción al final de todo el documento */
  .modal-footer,
  #btnSolicitarDetalle,
  .btn-primary-modal {
    display: flex !important;
    width: 100% !important;
    justify-content: center !important;
    margin-top: 24px !important;
    margin-bottom: 12px !important;
  }
}

/* CSS GENERAL FUERA DE MEDIA QUERIES */
.promo-hero-carousel {
  position: relative;
  overflow: hidden;
}









@media (max-width: 600px) {
  .modal-content {
    padding: 1.5rem 1.2rem 1.2rem 1.2rem;
  }

  .footer-main {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-bottom {
    flex-direction: column-reverse;
    gap: 1.2rem;
    text-align: center;
  }

  .legal-links {
    flex-direction: column;
    gap: 0.8rem;
  }
}