/* =========================
   BASE.CSS — HEADER, FOOTER & GRID SYSTEM
   ========================= */

/* Reset mínimo para evitar herencias raras */
* { margin: 0; padding: 0; box-sizing: border-box; }

/* ===== GRID SYSTEM BOOTSTRAP-LIKE ===== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

.row {
  display: flex;
  flex-wrap: wrap;
  margin: 0 -15px;
}

.col-12 { flex: 0 0 100%; max-width: 100%; }
.col-md-6 { flex: 0 0 50%; max-width: 50%; }
.col-lg-4 { flex: 0 0 33.333333%; max-width: 33.333333%; }

[class*="col-"] {
  padding: 0 15px;
}

.g-4 > * {
  margin-bottom: 1.5rem;
}

/* Responsive breakpoints */
@media (max-width: 767px) {
  .col-md-6 { flex: 0 0 100%; max-width: 100%; }
  .col-lg-4 { flex: 0 0 100%; max-width: 100%; }
}

@media (min-width: 768px) and (max-width: 991px) {
  .col-lg-4 { flex: 0 0 50%; max-width: 50%; }
}

@media (min-width: 992px) {
  .col-lg-4 { flex: 0 0 33.333333%; max-width: 33.333333%; }
}

/* ===== CARD STYLES ===== */
.card {
  background: white;
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card.h-100 {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.card.shadow-sm {
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.ratio {
  position: relative;
  width: 100%;
}

.ratio-16x9 {
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
}

.ratio > * {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ===== EXCURSIONES POPULARES ===== */
.excursiones-populares {
  padding: 60px 0;
  background: #f8f9fa;
}

.excursiones-populares h2 {
  text-align: center;
  color: #003366;
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.excursiones-populares hr {
  width: 80px;
  height: 3px;
  background: linear-gradient(45deg, #ff5733, #ff8c42);
  border: none;
  margin: 0 auto;
}

/* ===== UTILITY CLASSES ===== */
.mb-3 { margin-bottom: 1rem; }
.mb-4 { margin-bottom: 1.5rem; }
.text-center { text-align: center; }

/* ===== HEADER (estructura del include) ===== */
.nav-container{
  display:flex; align-items:center; justify-content:flex-start;
  background-color:#a8def3; padding:10px 20px; flex-wrap:wrap;
}
.nav-container img{ height:60px; margin-right:20px; }

.menu{ display:flex; gap:20px; list-style:none; }
.menu li a{ color:#000; text-decoration:none; font-weight:bold; }
.menu-cta{
  background-color:#ff5733; color:#fff; padding:10px 16px; border-radius:6px;
  font-weight:bold; transition: background-color .3s;
}
.menu-cta:hover{ background-color:#e14e2d; }

/* ===== FOOTER (estructura del include) ===== */
.site-footer{
  background:#FFF; color:#000; padding:40px 20px 20px; font-size:.95rem;
  border:2px solid #005E75; border-radius:2px; -webkit-font-smoothing: antialiased;
}
.footer-top{
  max-width:1200px; margin:auto; display:flex; flex-wrap:nowrap;
  justify-content:space-evenly; gap:25px;
}
.footer-bottom{
  max-width:1200px; margin:30px auto 0; text-align:center;
  padding-top:25px; border-top:1px solid #ddd;
}
.footer-col{ flex:1 1 220px; }
.footer-left{  text-align:left;  display:flex; flex-direction:column; gap:8px; }
.footer-menu{ text-align:left; display:flex; flex-direction:column; gap:8px; }
.footer-legal{ text-align:left; display:flex; flex-direction:column; gap:8px; }
.footer-center{ text-align:center; display:flex; flex-direction:column; gap:10px; align-items:center; }
.footer-right{  text-align:right; display:flex; flex-direction:column; gap:10px; align-items:flex-end; }

/* Navegación del footer */
.footer-nav{ display:flex; flex-direction:column; gap:6px; }
.footer-nav a{ color:#005E75; text-decoration:none; padding:2px 0; font-size:.9rem; }
.footer-nav a:hover{ text-decoration:underline; color:#003a4a; }
.footer-menu h4, .footer-legal h4{ color:#005E75; margin:0 0 8px; font-size:1rem; font-weight:600; }

.brand{ display:flex; align-items:center; gap:12px; }
.brand img{ height:70px; }
.brand h4{ margin:0; color:#005E75; }

.info-line{ margin:0; display:flex; align-items:center; gap:6px; }
/* ICONOS IZQUIERDA (info-line: ubicación, gmail, whatsapp) - Forzar pequeños */
.info-line img,
.footer-left img,
.footer-left .info-line img,
img[src*="/icons/ubicacion.png"],
img[src*="/icons/gmail.png"],
img[src*="/icons/whatsapp.png"],
img[src*="ubicacion.png"],
img[src*="gmail.png"],
img[src*="whatsapp.png"] { 
  width: 45px !important; 
  height: 45px !important; 
  max-width: 25px !important;
  max-height: 45px !important;
  min-width: 25px !important;
  min-height: 25px !important;
}

/* LOGO en footer-left */
.footer-left .brand img,
img[src*="/icons/logo.png"],
img[src*="logo.png"] {
  height: 70px !important;
  max-height: 70px !important;
  min-height: 70px !important;
  width: 90px !important;
}
.info-line a{ color:#005E75; text-decoration:none; }
.info-line a:hover{ text-decoration:underline; }

.mitur{ height:60px !important; }  /* Reducido de 100px */
.mitur-text, .copyright{ margin:0; font-size:.85rem; }
.social-icons{
  display:flex !important;
  gap:10px !important;
  justify-content:flex-end !important;
  flex-wrap: wrap !important;
  max-width: 170px !important;
  align-content: flex-start !important;
}  /* Desktop: 2 líneas x 4 iconos = 8 iconos total (4×30px + 3×10px = 150px) */
.social-icons img{ width:30px !important; height:30px !important; max-width:30px !important; max-height:24px !important; }  /* Forzado */
.payment-mark img{ height:50px !important; max-height:50px !important; border:0; }  /* Reducido de 80px */

/* ICONOS DERECHA (redes sociales) - 30px - 8 iconos total */
.site-footer .social-icons img,
footer .social-icons img,
.footer-right .social-icons img,
img[src*="/icons/telegram.png"],
img[src*="/icons/instagram.png"],
img[src*="/icons/x.png"],
img[src*="/icons/facebook.png"],
img[src*="/icons/pint.png"],
img[src*="/icons/linkedin.png"],
img[src*="/icons/youtube.png"],
img[src*="/icons/tripav.png"],
img[src*="telegram.png"],
img[src*="instagram.png"],
img[src*="x.png"],
img[src*="facebook.png"],
img[src*="pint.png"],
img[src*="linkedin.png"],
img[src*="youtube.png"],
img[src*="tripav.png"] {
  width: 30px !important;
  height: 30px !important;
  max-width: 30px !important;
  max-height: 30px !important;
  min-width: 30px !important;
  min-height: 30px !important;
}

/* ICONO MITUR (centro) - Aumentar 10% = 66px */
.site-footer .mitur,
footer .mitur,
.footer-center .mitur,
img[src*="/icons/mitur.png"],
img[src*="mitur.png"],
img[alt*="Ministerio de Turismo"] {
  height: 66px !important;  /* Era 60px, +10% = 66px */
  max-height: 66px !important;
  min-height: 66px !important;
  width: auto !important;
}

.site-footer .payment-mark img,
footer .payment-mark img,
.footer-right .payment-mark img {
  height: 50px !important;
  max-height: 50px !important;
  width: auto !important;
  max-width: 200px !important;
}

/* Específico para imagen PayPal externa que se resiste */
img[src*="paypalobjects.com"],
img[src*="paypal"],
a[href*="paypal"] img {
  height: 50px !important;
  max-height: 50px !important;
  width: auto !important;
  max-width: 200px !important;
}
.payment-mark a{ display:inline-block; }
.footer-right h4{ color:#005E75; margin:0 0 10px; }

/* ===== BRIDGES (si tu header/footer usan <header>/<footer> genéricos) ===== */
header, #header{ background-color:#a8def3; }
header .header-inner{ display:flex; align-items:center; gap:20px; padding:10px 20px; flex-wrap:wrap; }
header .header-inner img{ height:60px; margin-right:20px; }
header .menu{ display:flex; gap:20px; list-style:none; }
header .menu li a, header .menu a{ color:#000; text-decoration:none; font-weight:bold; }
header .menu-cta{ background-color:#ff5733; color:#fff; padding:10px 16px; border-radius:6px; font-weight:bold; }
header .menu-cta:hover{ background-color:#e14e2d; }

footer.site-footer, .site-footer{ background:#FFF; color:#000; padding:40px 20px 20px; font-size:.95rem; border:2px solid #005E75; border-radius:2px; }
footer.site-footer *,.site-footer *{ color:#005E75; opacity:1; }
footer.site-footer a,.site-footer a{ color:#005E75; text-decoration:none; }
footer.site-footer a:hover,.site-footer a:hover{ text-decoration:underline; }
/* ===== NAV: comportamiento móvil/desktop y ocultar "mini menú" ===== */

/* Botón móvil: Los estilos están en nav.css para evitar conflictos */

/* El menú normal visible en desktop */
.menu {
  display: flex;
}

/* En pantallas medianas y pequeñas, mostrar botón móvil y ocultar menú normal */
@media (max-width: 900px) {
  .menu { display: none !important; }
  .mobile-menu-button { display: block !important; }
  .header-nav { display: none !important; }
  .main-header .header-nav { display: none !important; }

  /* Asegurar que el contenedor del menú móvil sea visible */
  .header-menu-container {
    display: flex !important;
    align-items: center;
    width: auto;
  }
  
  /* Footer responsive - layout mejorado */
  .site-footer .footer-top,
  footer .footer-top,
  .footer-top {
    flex-direction: row !important;
    flex-wrap: wrap !important;
    gap: 20px !important;
    justify-content: space-between !important;
    display: flex !important;
  }

  /* Primera columna (izquierda) - ancho completo */
  .site-footer .footer-left,
  footer .footer-left,
  .footer-top .footer-left,
  .footer-left {
    flex: 1 1 100% !important;
    max-width: 100% !important;
    text-align: left !important;
    align-items: flex-start !important;
    order: 1 !important;
  }

  /* Menú y Legal lado a lado */
  .site-footer .footer-menu,
  footer .footer-menu,
  .footer-top .footer-menu,
  .footer-menu {
    flex: 1 1 45% !important;
    min-width: 45% !important;
    max-width: 48% !important;
    text-align: left !important;
    align-items: flex-start !important;
    order: 2 !important;
  }

  .site-footer .footer-legal,
  footer .footer-legal,
  .footer-top .footer-legal,
  .footer-legal {
    flex: 1 1 45% !important;
    min-width: 45% !important;
    max-width: 48% !important;
    text-align: left !important;
    align-items: flex-start !important;
    order: 3 !important;
  }

  /* Columna derecha - ancho completo */
  .site-footer .footer-right,
  footer .footer-right,
  .footer-top .footer-right,
  .footer-right {
    flex: 1 1 100% !important;
    max-width: 100% !important;
    text-align: center !important;
    align-items: center !important;
    order: 4 !important;
  }

  /* Arreglar icono de PayPal en móvil */
  .payment-mark {
    overflow: visible !important;
    text-align: center !important;
    width: 100%;
    display: flex;
    justify-content: center;
  }

  .payment-mark a {
    display: inline-block;
    max-width: 100%;
  }

  .payment-mark img {
    max-width: 90% !important;
    height: auto !important;
    width: auto !important;
  }

  /* Centrar redes sociales en móvil - 1 línea horizontal */
  .social-icons {
    justify-content: center !important;
    max-width: 100% !important;
    margin: 0 auto !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    gap: 8px !important;
  }
  
  /* MITUR abajo centrado */
  .footer-bottom {
    margin-top: 20px;
    padding-top: 15px;
  }
}

@media (max-width: 480px) {
  /* En pantallas muy pequeñas, 4 columnas arriba compactas */
  .footer-top {
    gap: 12px;
    padding: 0 10px;
    flex-wrap: nowrap !important;
    justify-content: space-evenly;
    overflow-x: auto;
  }
  .footer-col {
    flex: 1 1 0;
    min-width: 100px;
    max-width: none;
  }
  .footer-nav {
    font-size: 0.75rem;
  }
  .footer-nav a {
    padding: 1px 0;
  }
  .brand h4 {
    font-size: 0.8rem;
  }
  .info-line {
    font-size: 0.75rem;
  }
  .footer-right h4 {
    font-size: 0.8rem;
  }
  .social-icons {
    gap: 8px !important;
  }
  
  /* MITUR abajo más compacto */
  .footer-bottom {
    margin-top: 15px;
    padding-top: 10px;
  }
  .mitur-text, .copyright {
    font-size: 0.75rem;
  }
}

/* Header y menú móvil desplegable */
.main-header { 
  position: relative; 
}

.main-header .mobile-menu {
  position: absolute;
  top: 100%; 
  left: 0; 
  right: 0;
  background: #fff;
  border: 2px solid #ff5733;
  border-radius: 8px;
  box-shadow: 0 8px 20px rgba(0,0,0,.2);
  padding: 15px 20px;
  z-index: 9999;
  margin: 5px;
}

/* Respeta el atributo [hidden] del HTML y cualquier intento de mostrarlo por CSS antiguo */
.mobile-menu[hidden] { display: none !important; }

/* Control por clase CSS */
.mobile-menu.mobile-menu-hidden {
  display: none !important;
}

/* Cuando no está hidden por clase, lo mostramos */
.main-header .mobile-menu:not(.mobile-menu-hidden) {
  display: block;
}

/* Enlaces del menú móvil en columna */
.main-header .mobile-menu a {
  display: block;
  padding: 12px 4px;
  color: #000;
  text-decoration: none;
}
.main-header .mobile-menu a:hover { text-decoration: underline; }

/* Por si accidentalmente quedó .mobile-menu dentro de .nav-container */
.nav-container .mobile-menu { display: none !important; }

/* ===== HEADER INLINE STYLES MOVED FROM PHP ===== */
.main-header .header-container {
  background: #a8def3;
  padding: 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.main-header .header-logo {
  height: 60px;
}

.main-header .header-menu-container {
  display: flex;
  align-items: center;
  gap: 10px;
}

.main-header .header-nav {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
  align-items: center;
}

.main-header .header-nav a {
  color: #000;
  text-decoration: none;
  font-weight: bold;
  padding: 5px;
}

.main-header .header-nav a.nav-cta {
  background: #ff5733;
  color: white;
  padding: 8px 12px;
  border-radius: 4px;
}

.main-header .mobile-menu-button {
  display: none;
  background: #ff5733;
  color: white;
  border: none;
  padding: 15px 20px;
  font-size: 18px;
  cursor: pointer;
  border-radius: 5px;
}

/* Mostrar botón móvil solo en pantallas pequeñas */
@media (max-width: 900px) {
  .main-header .mobile-menu-button {
    display: inline-block;
  }
  .main-header .header-nav {
    display: none;
  }
}

.main-header .mobile-menu {
  display: none;
  background: white;
  border: 3px solid #ff5733;
  padding: 20px;
  margin: 10px;
}

.main-header .mobile-menu a {
  display: block;
  padding: 15px;
  background: #f0f0f0;
  margin: 5px 0;
  cursor: pointer;
  border-radius: 5px;
  text-decoration: none;
  color: inherit;
}/**
 * ESTILOS ESPECÍFICOS DEL BLOG
 * DomyFun Travel Blog Styles
 */

/* Blog Container */
.blog-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Blog Header */
.blog-header {
    text-align: center;
    margin-bottom: 40px;
    padding: 40px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 15px;
}

.blog-header h1 {
    font-size: 3rem;
    margin-bottom: 10px;
    font-weight: 700;
}

.blog-header p {
    font-size: 1.2rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

/* Search and Filters */
.blog-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    gap: 20px;
    flex-wrap: wrap;
}

.blog-search {
    display: flex;
    gap: 10px;
    flex: 1;
    max-width: 400px;
}

.blog-search input {
    flex: 1;
    padding: 12px 20px;
    border: 2px solid #e0e0e0;
    border-radius: 25px;
    font-size: 16px;
    transition: border-color 0.3s;
}

.blog-search input:focus {
    outline: none;
    border-color: #667eea;
}

.blog-search button {
    background: #667eea;
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.3s;
}

.blog-search button:hover {
    background: #5a6fd8;
}

.blog-filters {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 8px 20px;
    border: 2px solid #e0e0e0;
    background: white;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 500;
}

.filter-btn:hover,
.filter-btn.active {
    background: #667eea;
    color: white;
    border-color: #667eea;
}

/* Blog Grid */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

/* Blog Card */
.blog-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.blog-card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s;
}

.blog-card:hover .blog-card-image {
    transform: scale(1.05);
}

.blog-card-content {
    padding: 25px;
}

.blog-card-category {
    display: inline-block;
    background: #667eea;
    color: white;
    padding: 5px 15px;
    border-radius: 15px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 15px;
}

.blog-card-title {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: #333;
    line-height: 1.4;
}

.blog-card-excerpt {
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
}

.blog-card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    font-size: 0.9rem;
    color: #888;
}

.blog-card-date {
    font-weight: 500;
}

.blog-card-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
}

.blog-card-link:hover {
    color: #5a6fd8;
}

/* Article Page */
.article-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

.article-header {
    text-align: center;
    margin-bottom: 40px;
}

.article-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: #333;
    line-height: 1.3;
}

.article-meta {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 30px;
    font-size: 0.95rem;
    color: #666;
}

.article-image {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 15px;
    margin-bottom: 40px;
}

.article-content {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #444;
}

.article-content h2 {
    font-size: 1.8rem;
    margin: 40px 0 20px 0;
    color: #333;
}

.article-content h3 {
    font-size: 1.4rem;
    margin: 30px 0 15px 0;
    color: #333;
}

.article-content p {
    margin-bottom: 20px;
}

.article-content ul,
.article-content ol {
    margin-bottom: 20px;
    padding-left: 30px;
}

.article-content li {
    margin-bottom: 8px;
}

/* Pagination */
.blog-pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 40px;
}

.pagination-btn {
    padding: 12px 20px;
    border: 2px solid #e0e0e0;
    background: white;
    color: #333;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s;
    font-weight: 500;
}

.pagination-btn:hover,
.pagination-btn.active {
    background: #667eea;
    color: white;
    border-color: #667eea;
}

.pagination-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Language Switcher */
.language-switcher {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.lang-btn {
    padding: 8px 15px;
    border: 1px solid #ddd;
    background: white;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    color: #333;
}

.lang-btn:hover,
.lang-btn.active {
    background: #667eea;
    color: white;
    border-color: #667eea;
}

/* Responsive Design */
@media (max-width: 768px) {
    .blog-header h1 {
        font-size: 2rem;
    }

    .blog-header p {
        font-size: 1rem;
    }

    .blog-controls {
        flex-direction: column;
        align-items: stretch;
    }

    .blog-search {
        max-width: none;
    }

    .blog-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .article-title {
        font-size: 2rem;
    }

    .article-meta {
        flex-direction: column;
        gap: 10px;
    }

    .article-image {
        height: 250px;
    }

    .blog-pagination {
        flex-wrap: wrap;
    }
}

@media (max-width: 480px) {
    .blog-container {
        padding: 10px;
    }

    .blog-header {
        padding: 30px 15px;
    }

    .blog-header h1 {
        font-size: 1.8rem;
    }

    .blog-card-content {
        padding: 20px;
    }

    .blog-card-title {
        font-size: 1.2rem;
    }

    .article-container {
        padding: 10px;
    }

    .article-title {
        font-size: 1.8rem;
    }

    .article-content {
        font-size: 1rem;
    }
}

/* No Results Message */
.no-results {
    text-align: center;
    padding: 60px 20px;
    color: #666;
}

.no-results h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

/* Loading Animation */
.loading {
    text-align: center;
    padding: 40px;
}

.loading::after {
    content: '';
    display: inline-block;
    width: 30px;
    height: 30px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Back to Blog Button */
.back-to-blog {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
    margin-bottom: 30px;
    transition: color 0.3s;
}

.back-to-blog:hover {
    color: #5a6fd8;
}

/* Related Articles */
.related-articles {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 2px solid #f0f0f0;
}

.related-articles h3 {
    font-size: 1.5rem;
    margin-bottom: 30px;
    text-align: center;
    color: #333;
}

/* Print Styles */
@media print {
    .blog-header,
    .blog-controls,
    .blog-pagination,
    .language-switcher {
        display: none;
    }

    .blog-card,
    .article-container {
        box-shadow: none;
        border: 1px solid #ddd;
    }
}/* CSS CRÍTICO PARA ABOVE-THE-FOLD - LOAD FIRST */
/* Solo los estilos esenciales para la primera pantalla */

/* Reset básico */
*{box-sizing:border-box;margin:0;padding:0}
body{font-family:Roboto,Arial,sans-serif;line-height:1.6;color:#333;background-color:#f8f9fa}
.container{max-width:1200px;margin:0 auto;padding:0 15px}

/* Header crítico */
.main-header{background:#a8def3;position:sticky;top:0;z-index:1000;box-shadow:0 2px 5px rgba(0,0,0,.1)}
.header-inner{display:flex;align-items:center;justify-content:space-between;padding:10px 20px;flex-wrap:wrap}
.header-inner img{height:60px;margin-right:20px}
.menu{display:flex;gap:20px;list-style:none}
.menu a{color:#000;text-decoration:none;font-weight:bold}
.mobile-menu-button{display:none;background:#ff5733;color:white;border:none;cursor:pointer;padding:12px 16px;border-radius:4px}

/* Banner crítico - CONTENIDO COMPLETO VISIBLE */
.hero-video{position:relative;overflow:hidden;background:#000;width:100vw;left:50%;right:50%;margin-left:-50vw;margin-right:-50vw;height:100vh;min-height:40vh}
.hero-video .video-wrapper{position:absolute;inset:0;z-index:0}
.hero-video iframe{position:absolute;inset:0;width:100%;height:100%;border:0;pointer-events:none}
.hero-video .hero-content{position:relative;z-index:1;padding:3rem 1rem;color:#fff;text-shadow:0 1px 3px rgba(0,0,0,.6)}
.hero-content h1{font-size:clamp(28px,4vw,44px);font-weight:800;text-shadow:0 4px 18px rgba(0,0,0,.35)}

/* Botones críticos */
.btn{display:inline-block;padding:12px 24px;border-radius:6px;text-decoration:none;font-weight:bold;margin:0.5rem}
.btn-primary{background:#007bff;color:white}
.btn-outline{background:transparent;color:#007bff;border:2px solid #007bff}

/* Grid básico */
.row{display:flex;flex-wrap:wrap;margin:0 -15px}
.col-12{width:100%;padding:0 15px}
.col-md-6{width:50%;padding:0 15px}
.col-lg-4{width:33.333%;padding:0 15px}

/* Responsive crítico - CONTENIDO VISIBLE */
@media (max-width:900px){
.menu{display:none!important}
.mobile-menu-button{display:inline-block!important}
.hero-video iframe{width:100%!important;height:100%!important}
.col-md-6,.col-lg-4{width:100%}
}

@media (max-width:480px){
.hero-content{padding:2rem 1rem}
.hero-content h1{font-size:24px}
}/**
 * ESTILOS RESPONSIVE - DOMYFUN TRAVEL
 * Adaptación para todos los dispositivos en hosting
 */

/* ========================
   VARIABLES CSS
   ======================== */
:root {
    --primary-color: #667eea;
    --secondary-color: #764ba2;
    --accent-color: #f093fb;
    --text-dark: #333;
    --text-light: #666;
    --text-muted: #888;
    --bg-light: #f8f9fa;
    --bg-white: #ffffff;
    --border-color: #e0e0e0;
    --shadow-light: 0 2px 10px rgba(0,0,0,0.1);
    --shadow-medium: 0 4px 20px rgba(0,0,0,0.15);
    --shadow-heavy: 0 10px 30px rgba(0,0,0,0.2);
    --border-radius: 8px;
    --border-radius-lg: 15px;
    --transition: all 0.3s ease;
}

/* ========================
   RESET Y BASE
   ======================== */
* {
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-light);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ========================
   CONTENEDORES
   ======================== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.container-fluid {
    width: 100%;
    padding: 0 20px;
}

/* ========================
   GRID SYSTEM
   ======================== */
.row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px;
}

.col {
    flex: 1;
    padding: 0 15px;
}

.col-1 { flex: 0 0 8.333333%; max-width: 8.333333%; }
.col-2 { flex: 0 0 16.666667%; max-width: 16.666667%; }
.col-3 { flex: 0 0 25%; max-width: 25%; }
.col-4 { flex: 0 0 33.333333%; max-width: 33.333333%; }
.col-6 { flex: 0 0 50%; max-width: 50%; }
.col-8 { flex: 0 0 66.666667%; max-width: 66.666667%; }
.col-12 { flex: 0 0 100%; max-width: 100%; }

/* ========================
   NAVEGACIÓN RESPONSIVE
   ======================== */
.main-nav {
    background: var(--bg-white);
    box-shadow: var(--shadow-light);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

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

.brand-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--text-dark);
}

.nav-logo {
    height: 40px;
    margin-right: 10px;
}

.brand-text {
    font-weight: 700;
    font-size: 1.2rem;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.hamburger {
    width: 25px;
    height: 3px;
    background: var(--text-dark);
    margin: 3px 0;
    transition: var(--transition);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-list {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 1.5rem;
}

.nav-link {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.nav-link:hover,
.nav-link.active {
    background: var(--primary-color);
    color: white;
}

.nav-languages {
    display: flex;
    gap: 0.5rem;
}

.lang-link {
    padding: 0.3rem 0.8rem;
    text-decoration: none;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 0.9rem;
    transition: var(--transition);
}

.lang-link:hover,
.lang-link.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.whatsapp-btn {
    background: #25d366;
    color: white;
    padding: 0.5rem 1rem;
    text-decoration: none;
    border-radius: var(--border-radius);
    font-weight: 600;
    transition: var(--transition);
}

.whatsapp-btn:hover {
    background: #128c7e;
    transform: translateY(-2px);
}

/* ========================
   RESPONSIVE BREAKPOINTS
   ======================== */

/* Tablet */
@media (max-width: 1024px) {
    .container {
        padding: 0 15px;
    }

    .nav-container {
        padding: 1rem 1.5rem;
    }

    .col-lg-4 { flex: 0 0 50%; max-width: 50%; }
    .col-lg-6 { flex: 0 0 100%; max-width: 100%; }
}

/* Mobile */
@media (max-width: 768px) {
    html {
        font-size: 14px;
    }

    .container {
        padding: 0 10px;
    }

    /* Navegación móvil */
    .nav-toggle {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--bg-white);
        flex-direction: column;
        padding: 2rem;
        box-shadow: var(--shadow-medium);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: var(--transition);
    }

    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .nav-list {
        flex-direction: column;
        width: 100%;
        gap: 1rem;
    }

    .nav-link {
        display: block;
        text-align: center;
        padding: 1rem;
        border: 1px solid var(--border-color);
    }

    .nav-languages {
        justify-content: center;
        margin: 1rem 0;
    }

    .whatsapp-btn {
        display: block;
        text-align: center;
        margin-top: 1rem;
    }

    /* Hamburger Animation */
    .nav-toggle.active .hamburger:nth-child(1) {
        transform: rotate(45deg) translate(6px, 6px);
    }

    .nav-toggle.active .hamburger:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle.active .hamburger:nth-child(3) {
        transform: rotate(-45deg) translate(6px, -6px);
    }

    /* Grid responsive */
    .col-md-6,
    .col-lg-4,
    .col-lg-6 {
        flex: 0 0 100%;
        max-width: 100%;
        margin-bottom: 1rem;
    }

    .row {
        margin: 0 -10px;
    }

    .col {
        padding: 0 10px;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    html {
        font-size: 13px;
    }

    .container {
        padding: 0 5px;
    }

    .nav-container {
        padding: 0.8rem 1rem;
    }

    .nav-logo {
        height: 35px;
    }

    .brand-text {
        font-size: 1rem;
    }

    .nav-menu {
        padding: 1.5rem;
    }

    .row {
        margin: 0 -5px;
    }

    .col {
        padding: 0 5px;
    }
}

/* ========================
   UTILIDADES RESPONSIVE
   ======================== */

/* Display */
.d-none { display: none !important; }
.d-block { display: block !important; }
.d-flex { display: flex !important; }

@media (max-width: 768px) {
    .d-md-none { display: none !important; }
    .d-md-block { display: block !important; }
    .d-md-flex { display: flex !important; }
}

@media (min-width: 769px) {
    .d-lg-none { display: none !important; }
    .d-lg-block { display: block !important; }
    .d-lg-flex { display: flex !important; }
}

/* Text Alignment */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

@media (max-width: 768px) {
    .text-md-center { text-align: center; }
    .text-md-left { text-align: left; }
}

/* Spacing */
.mt-0 { margin-top: 0 !important; }
.mt-1 { margin-top: 0.25rem !important; }
.mt-2 { margin-top: 0.5rem !important; }
.mt-3 { margin-top: 1rem !important; }
.mt-4 { margin-top: 1.5rem !important; }
.mt-5 { margin-top: 3rem !important; }

.mb-0 { margin-bottom: 0 !important; }
.mb-1 { margin-bottom: 0.25rem !important; }
.mb-2 { margin-bottom: 0.5rem !important; }
.mb-3 { margin-bottom: 1rem !important; }
.mb-4 { margin-bottom: 1.5rem !important; }
.mb-5 { margin-bottom: 3rem !important; }

.p-0 { padding: 0 !important; }
.p-1 { padding: 0.25rem !important; }
.p-2 { padding: 0.5rem !important; }
.p-3 { padding: 1rem !important; }
.p-4 { padding: 1.5rem !important; }
.p-5 { padding: 3rem !important; }

/* ========================
   COMPONENTES RESPONSIVE
   ======================== */

/* Cards */
.card {
    background: var(--bg-white);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-light);
    overflow: hidden;
    transition: var(--transition);
}

.card:hover {
    box-shadow: var(--shadow-medium);
    transform: translateY(-2px);
}

.card-body {
    padding: 1.5rem;
}

@media (max-width: 768px) {
    .card-body {
        padding: 1rem;
    }
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
}

.btn-primary {
    background: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .btn {
        display: block;
        width: 100%;
        margin: 0.5rem 0;
    }
}

/* Forms */
.form-group {
    margin-bottom: 1rem;
}

.form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 1rem;
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* ========================
   PRINT STYLES
   ======================== */
@media print {
    .nav-toggle,
    .nav-menu,
    .whatsapp-btn {
        display: none !important;
    }

    body {
        font-size: 12pt;
        line-height: 1.4;
    }

    .card {
        box-shadow: none;
        border: 1px solid #ddd;
    }
}