/* VARIABLES CSS */
:root {
    /* Colores primarios */
    --color-primary: #00288e;
    --color-secondary: #37b34a;
    --color-accent: #ffb800;

    /* Grises */
    --color-gray-50: #f9f9f9;
    --color-gray-100: #eeeeee;
    --color-gray-200: #eaeaea;
    --color-gray-700: #333333;
    --color-gray-900: #1a1a1a;

    /* Estados */
    --color-success: #37b34a;
    --color-error: #dc2626;
    --color-warning: #ffb800;
    --color-info: #00288e;

    /* Tipografía */
    --font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    --font-size-base: 16px;
    --font-size-sm: 14px;
    --font-size-lg: 18px;
    --font-size-xl: 24px;
    --font-size-2xl: 32px;
    --font-size-3xl: 48px;

    /* Espaciado */
    --spacing-xs: 4px;
    --spacing-sm: 8px;
    --spacing-md: 16px;
    --spacing-lg: 24px;
    --spacing-xl: 32px;
    --spacing-2xl: 48px;
    --spacing-3xl: 64px;

    /* Bordes */
    --border-radius: 8px;
    --border-radius-sm: 4px;
    --border-radius-lg: 12px;

    /* Sombras */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.15);

    /* Transiciones */
    --transition: all 0.3s ease;
}

/* RESET Y BASE */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-family);
    font-size: var(--font-size-base);
    line-height: 1.6;
    color: var(--color-gray-900);
    background-color: #fff;
}

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

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: var(--transition);
}

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

/* CONTENEDOR */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

/* =========================================
   HEADER - Diseño Original WordPress
   Fondo azul #00288e con layout de 3 columnas
   ========================================= */
header.header {
    background-color: #00288e !important;
    background: #00288e !important;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
    width: 100%;
}

header.header::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #2ea541 0%, #37b34a 38%, #49c15b 65%, #37b34a 100%);
    box-shadow: 0 2px 10px rgba(55, 179, 74, 0.35);
    pointer-events: none;
}

.header .container {
    background-color: transparent;
}

.header-content {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    padding: 16px 0;
    gap: 24px;
}

/* Menú Principal - Izquierda */
.header .nav {
    display: flex;
    align-items: center;
    gap: 16px;
    justify-self: start;
}

.header .nav a {
    color: #ffffff !important;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 4px;
    transition: all 0.3s ease;
    font-size: 15px;
    text-decoration: none;
}

.header .nav a:hover,
.header .nav a.active {
    background-color: rgba(255, 255, 255, 0.15);
    color: #37b34a !important;
    transform: translateY(-1px);
}

.header .nav .nav-item-has-submenu {
    position: relative;
}

.header .nav .nav-parent-link::after {
    content: '▾';
    margin-left: 6px;
    font-size: 11px;
}

.header .nav .nav-submenu {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    min-width: 220px;
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.18);
    padding: 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(6px);
    transition: all 0.2s ease;
    z-index: 1500;
}

.header .nav .nav-submenu a {
    color: var(--color-gray-900) !important;
    display: block;
    border-radius: 8px;
    padding: 10px 12px;
}

.header .nav .nav-submenu a:hover {
    background: #f0f5ff;
    color: var(--color-primary) !important;
    transform: none;
}

.header .nav .nav-item-has-submenu:hover .nav-submenu,
.header .nav .nav-item-has-submenu:focus-within .nav-submenu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Menú móvil y botón hamburguesa ocultos en desktop */
.header .nav.mobile-nav {
    display: none;
}

.header .mobile-menu-toggle {
    display: none;
}

/* Logo - Centro */
.header .logo {
    justify-self: center;
    text-align: center;
    display: block;
}

.header .logo h1 {
    font-size: 24px;
    color: #ffffff !important;
    margin: 0;
}

.header .logo img {
    height: 50px;
    width: auto;
    display: block;
}


/* Acciones - Derecha (Iconos de usuario/carrito) */
.header .nav-auth {
    display: flex;
    align-items: center;
    gap: 12px;
    justify-self: end;
}

.header .nav-auth .btn {
    padding: 8px 16px;
    font-size: 14px;
}

.header .nav-auth .icon-btn {
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff !important;
    border: none;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 20px;
    position: relative;
    text-decoration: none;
}

.header .nav-auth .icon-btn svg {
    display: block;
    width: 20px;
    height: 20px;
    fill: currentColor;
    transition: transform 0.2s ease;
}

.header .nav-auth .icon-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: scale(1.05);
}

.header .nav-auth .icon-btn:hover svg {
    transform: scale(1.1);
}

.header .nav-auth .icon-btn .badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: #ef4444;
    color: #fff;
    border-radius: 50%;
    padding: 0;
    font-size: 11px;
    font-weight: bold;
    min-width: 18px;
    height: 18px;
    text-align: center;
    line-height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Icono de carrito específico */
.header .nav-auth .cart-icon {
    position: relative;
}

/* Responsive Header */
@media (max-width: 768px) {
    .header-content {
        grid-template-columns: 44px minmax(0, 1fr) auto;
        /* Botón hamburguesa, logo flexible, bloque de iconos auto */
        gap: var(--spacing-sm);
        align-items: center;
        padding: 0 12px;
    }

    /* Menú hamburguesa en móvil */
    .header .nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--color-primary);
        flex-direction: column;
        padding: var(--spacing-lg);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
        z-index: 1000;
        transform: translateY(-10px);
        opacity: 0;
        transition: all 0.3s ease;
        pointer-events: none;
    }

    .header .nav.mobile-nav-open {
        display: flex;
        transform: translateY(0);
        opacity: 1;
        pointer-events: all;
    }

    .header .nav a {
        padding: var(--spacing-md);
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        text-align: center;
        font-size: 18px;
    }

    .header .nav a:last-child {
        border-bottom: none;
    }

    .header .mobile-menu-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 44px;
        height: 44px;
        background: none;
        border: none;
        color: #fff;
        font-size: 24px;
        cursor: pointer;
        border-radius: 8px;
        transition: background-color 0.3s ease;
        justify-self: start;
    }

    .header .mobile-menu-toggle:hover,
    .header .mobile-menu-toggle.mobile-menu-toggle-open {
        background: rgba(255, 255, 255, 0.15);
    }

    .header .logo {
        order: 0;
        justify-self: center;
        min-width: 0;
    }

    .header .logo img {
        height: 40px;
        max-width: clamp(110px, 35vw, 180px);
        width: 100%;
        object-fit: contain;
        /* Ligeramente más pequeño en móvil */
    }

    .header .nav-auth {
        order: 0;
        justify-self: end;
        gap: 6px;
        min-width: fit-content;
    }

    .header .nav-auth .icon-btn {
        width: 36px;
        height: 36px;
    }

    .header .nav-auth .icon-btn svg {
        width: 18px;
        height: 18px;
    }

    /* Ocultar elementos en móvil para ahorrar espacio */
    .header .nav-auth .btn-link,
    .header .nav-auth .btn-primary,
    .header .nav-auth span {
        display: none;
    }

    /* User Dropdown para móvil */
    .user-dropdown {
        position: relative;
        display: inline-block;
    }

    .user-dropdown-btn {
        display: flex;
        align-items: center;
        gap: 4px;
    }

    .user-dropdown-btn .dropdown-arrow {
        transition: transform 0.2s ease;
    }

    .user-dropdown-btn:hover .dropdown-arrow {
        transform: rotate(180deg);
    }

    .user-dropdown-menu {
        position: absolute;
        top: calc(100% + 8px);
        right: 0;
        background: #fff;
        border-radius: 8px;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
        min-width: 180px;
        opacity: 0;
        visibility: hidden;
        transform: translateY(-10px);
        transition: all 0.3s ease;
        z-index: 1000;
    }

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

    .user-dropdown-menu::before {
        content: '';
        position: absolute;
        top: -6px;
        right: 20px;
        width: 0;
        height: 0;
        border-left: 6px solid transparent;
        border-right: 6px solid transparent;
        border-bottom: 6px solid #fff;
    }

    .dropdown-item {
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 12px 16px;
        color: #333;
        text-decoration: none;
        border-bottom: 1px solid #eee;
        transition: background-color 0.2s ease;
        font-size: 14px;
    }

    .dropdown-item:last-child {
        border-bottom: none;
    }

    .dropdown-item:hover {
        background: #f8f9fa;
        color: var(--color-primary);
    }

    .dropdown-item svg {
        flex-shrink: 0;
    }
}

/* Blindaje para pantallas extra angostas (ej. 320px) */
@media (max-width: 390px) {
    .header-content {
        grid-template-columns: 40px minmax(0, 1fr) auto;
        gap: 4px;
        padding: 0 8px;
    }

    .header .mobile-menu-toggle {
        width: 40px;
        height: 40px;
        font-size: 22px;
    }

    .header .logo img {
        height: 34px;
        max-width: clamp(92px, 30vw, 140px);
    }

    .header .nav-auth {
        gap: 4px;
    }

    .header .nav-auth .icon-btn {
        width: 32px;
        height: 32px;
    }

    .header .nav-auth .icon-btn svg {
        width: 16px;
        height: 16px;
    }
}

/* HERO */
.hero {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
    color: #fff;
    padding: var(--spacing-3xl) 0;
    text-align: center;
}

.hero-title {
    font-size: var(--font-size-3xl);
    margin-bottom: var(--spacing-md);
    font-weight: 700;
}

.hero-subtitle {
    font-size: var(--font-size-lg);
    margin-bottom: var(--spacing-xl);
    opacity: 0.95;
}

.hero-cta {
    display: flex;
    gap: var(--spacing-md);
    justify-content: center;
    flex-wrap: wrap;
}

/* SECCIONES */
.section {
    padding: var(--spacing-3xl) 0;
}

.section.bg-light {
    background-color: var(--color-gray-50);
}

.section-title {
    font-size: var(--font-size-2xl);
    margin-bottom: var(--spacing-xl);
    text-align: center;
    color: var(--color-gray-900);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-xl);
}

/* GRIDS */
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-lg);
}

.tours-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: var(--spacing-lg);
}

/* CATEGORY BANNERS - ESTILO YOUTUBE LISTING */
.category-banners-container {
    width: 100%;
    max-width: none;
    margin: 0 0 2rem 0;
    padding: 15px;
    /* Padding base aumentado */
    background: #f8fafc;
    border-radius: 8px;
}

.banner {
    width: 100%;
    max-width: none;
    margin: 0;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.banner-slider,
.banner-single {
    position: relative;
    min-height: auto;
    background: white;
}

.banner-image-wrapper {
    position: relative;
    width: 100%;
    height: 250px;
    /* Altura reducida por defecto */
    overflow: hidden;
}

.banner-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.banner-below-content {
    padding: 16px;
    /* Reducido por defecto */
    background-color: #ffffff;
}

/* Tablet y Desktop - MÁS GRANDES */
@media (min-width: 768px) {
    .category-banners-container {
        padding: 20px;
    }

    .banner-single {
        display: flex;
        align-items: stretch;
        gap: var(--spacing-lg);
        min-height: 450px;
    }

    .banner-single .banner-image-wrapper {
        flex: 0 0 60%;
        /* 60% para la imagen */
        max-width: 60%;
        height: 450px;
    }

    .banner-image-wrapper {
        height: 400px;
        /* Más grande en desktop */
    }

    .banner-below-content {
        padding: var(--spacing-lg);
    }

    .banner-single .banner-below-content {
        flex: 0 0 40%;
        /* 40% para el contenido */
        max-width: 40%;
        display: flex;
        flex-direction: column;
        justify-content: center;
        padding: var(--spacing-xl);
    }
}

.banner-content-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0.7) 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: var(--spacing-xl);
    text-align: center;
    color: white;
}

.banner-title {
    font-size: var(--font-size-xl);
    margin-bottom: var(--spacing-md);
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.banner-text {
    font-size: var(--font-size-base);
    margin-bottom: var(--spacing-lg);
    max-width: 800px;
    line-height: 1.6;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.banner-btn {
    background-color: var(--color-accent);
    color: white;
    padding: var(--spacing-sm) var(--spacing-lg);
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
}

.banner-btn:hover {
    background-color: #e65100;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 87, 34, 0.4);
}

/* Banner tipo info (solo texto/alerta) */
.banner-info {
    background-color: #fff3cd;
    border: 2px solid #ffc107;
    padding: 12px;
    /* Reducido para móvil */
    max-height: 200px;
    /* Limitar altura de banners info */
    overflow: hidden;
    margin: 8px;
    /* Spacing para móvil */
}

.banner-info-box {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    /* Reducido para móvil */
    padding: 12px;
    /* Reducido para móvil */
    background-color: #e3f2fd;
    border-left: 4px solid var(--color-primary);
    border-radius: var(--border-radius);
}

.banner-info-icon {
    font-size: var(--font-size-xl);
    flex-shrink: 0;
}

.banner-info-content {
    flex: 1;
}

.banner-info-content strong {
    display: block;
    font-size: var(--font-size-lg);
    margin-bottom: var(--spacing-xs);
    color: var(--color-primary);
}

.banner-info-content p {
    margin: 0;
    color: var(--color-gray-700);
    line-height: 1.6;
}

/* Banner tipo video (listing dinámico por categoría estilo YouTube) */
.banner-video {
    background: #ffffff;
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 12px;
    /* Padding reducido para móvil */
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.banner-video-listing {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.banner-video-header {
    padding: 0;
    margin-bottom: 16px;
}

.banner-video-header .banner-title {
    font-size: 18px;
    /* Más pequeño para móvil */
    font-weight: 600;
    color: #1a1a1a;
    margin: 0 0 6px 0;
    text-shadow: none;
    line-height: 1.2;
}

.banner-video-header .banner-text {
    font-size: 14px;
    /* Más pequeño para móvil */
    color: #666;
    margin: 0;
    text-shadow: none;
    line-height: 1.3;
}

/* Layout: video grande a la izquierda + sidebar a la derecha (estilo YouTube) */
.banner-video-body {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 20px;
    align-items: start;
}

.banner-video-main-wrap {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.banner-video-main {
    position: relative;
    width: 100%;
    height: 400px;
    border-radius: 8px;
    overflow: hidden;
    background: #000;
}

.banner-video-main iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.banner-video-main video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
    object-fit: cover;
}

.banner-video-sidebar {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-height: 400px;
    overflow-y: auto;
}

/* RESPONSIVE - MOBILE FIRST */
@media (max-width: 768px) {
    .category-banners-container {
        padding: 12px;
        /* Más padding en móvil */
        margin: 0 0 1.5rem 0;
    }

    .banner-video {
        padding: 16px;
        margin: 0;
    }

    .banner-video-header {
        margin-bottom: 12px;
        padding: 0 4px;
        /* Padding adicional para que no toque los bordes */
    }

    .banner-video-body {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .banner-video-main {
        height: 220px;
        /* Altura más apropiada para móvil */
    }

    .banner-video-sidebar {
        max-height: 250px;
        order: 2;
    }

    .banner-video-main-wrap {
        order: 1;
    }

    .banner-video-header .banner-title {
        font-size: 16px;
        /* Aún más pequeño en móvil */
        margin: 0 0 4px 0;
    }

    .banner-video-header .banner-text {
        font-size: 13px;
        line-height: 1.4;
    }

    .banner-video-footer {
        padding: 12px 0 0 0;
    }

    .banner-video-title-bar {
        font-size: 15px;
        margin: 0 0 6px 0;
    }

    .banner-video-desc {
        font-size: 13px;
        line-height: 1.4;
    }
}

/* TABLET */
@media (min-width: 769px) and (max-width: 1024px) {
    .banner-video {
        padding: 18px;
    }

    .banner-video-header .banner-title {
        font-size: 20px;
    }

    .banner-video-header .banner-text {
        font-size: 15px;
    }

    .banner-video-body {
        grid-template-columns: 1fr 300px;
    }

    .banner-video-main {
        height: 350px;
    }
}

/* DESKTOP LARGE */
@media (min-width: 1200px) {
    .banner-video {
        padding: 24px;
    }

    .banner-video-header .banner-title {
        font-size: 24px;
    }

    .banner-video-header .banner-text {
        font-size: 16px;
    }

    .banner-video-body {
        grid-template-columns: 1fr 400px;
        gap: 30px;
    }

    .banner-video-main {
        height: 450px;
    }
}

/* Elementos del sidebar (videos relacionados) */
.banner-video-sidebar-item {
    display: flex;
    gap: 12px;
    padding: 8px;
    border-radius: 8px;
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    cursor: pointer;
    transition: all 0.2s ease;
}

.banner-video-sidebar-item:hover {
    background: #e5e7eb;
    border-color: #d1d5db;
}

.banner-video-sidebar-item img {
    width: 120px;
    height: 68px;
    object-fit: cover;
    border-radius: 4px;
    flex-shrink: 0;
}

.banner-video-thumb-media {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #0f172a 0%, #334155 100%);
    flex-shrink: 0;
}

.banner-video-sidebar-item .banner-video-thumb-media {
    width: 120px;
    height: 68px;
    border-radius: 4px;
}

.video-thumb-btn .banner-video-thumb-media {
    width: 100%;
    aspect-ratio: 16 / 9;
}

.banner-video-thumb-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.video-thumb-placeholder {
    width: 100%;
    height: 100%;
    display: block;
}

.video-thumb-play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 28px;
    height: 28px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.72);
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.35);
    pointer-events: none;
}

.video-thumb-play::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-35%, -50%);
    width: 0;
    height: 0;
    border-top: 6px solid transparent;
    border-bottom: 6px solid transparent;
    border-left: 9px solid #ffffff;
}

.banner-video-sidebar-item .video-info {
    flex: 1;
    min-width: 0;
}

.banner-video-sidebar-item .video-title {
    font-size: 14px;
    font-weight: 500;
    color: #1a1a1a;
    margin: 0 0 4px 0;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.banner-video-sidebar-item .video-desc {
    font-size: 12px;
    color: #666;
    margin: 0;
    line-height: 1.2;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Información del video principal */
.banner-video-footer {
    padding: 16px 0 0 0;
    border: none;
    background: none;
}

.banner-video-title-bar {
    font-size: 18px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0 0 8px 0;
    line-height: 1.3;
}

.banner-video-desc {
    font-size: 14px;
    color: #666;
    margin: 0;
    line-height: 1.4;
    max-height: 60px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

justify-content: space-between;
background: #1e3a5f;
border-radius: 0 0 var(--border-radius) var(--border-radius);
padding: 8px 12px;
gap: 8px;
min-height: 42px;
}

.banner-video-title-bar {
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    margin: 0;
    line-height: 1.4;
    flex: 1;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.banner-video-controls {
    display: flex;
    gap: 4px;
    flex-shrink: 0;
}

.video-nav-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.35);
    background: rgba(255, 255, 255, 0.18);
    color: #fff;
    border-radius: 6px;
    width: 30px;
    height: 30px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 700;
    transition: background 0.2s;
}

.video-nav-btn:hover {
    background: rgba(255, 255, 255, 0.35);
}

/* Sidebar: lista vertical, thumbnails apilados (imagen full + título abajo) */
.banner-video-sidebar {
    display: flex;
    flex-direction: column;
    gap: 6px;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 4px;
    border: 1px solid #e5e7eb;
    border-radius: var(--border-radius);
    background: #f8fafc;
    scrollbar-width: thin;
    scrollbar-color: #bfdbfe transparent;
    /* max-height se ajusta por JS al alto real del video */
    max-height: 400px;
}

.banner-video-sidebar::-webkit-scrollbar {
    width: 4px;
}

.banner-video-sidebar::-webkit-scrollbar-track {
    background: transparent;
}

.banner-video-sidebar::-webkit-scrollbar-thumb {
    background: #bfdbfe;
    border-radius: 4px;
}

/* Miniatura: imagen arriba, título abajo */
.video-thumb-btn {
    display: flex;
    flex-direction: column;
    border: 2px solid transparent;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    padding: 0;
    width: 100%;
    flex-shrink: 0;
    transition: border-color 0.2s, box-shadow 0.2s;
    text-align: left;
}

.video-thumb-btn:hover {
    border-color: #93c5fd;
    box-shadow: 0 2px 6px rgba(37, 99, 235, 0.12);
}

.video-thumb-btn.active {
    border-color: #2563eb;
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.18);
}

.video-thumb-btn img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    display: block;
}

.video-thumb-btn .banner-video-thumb-media {
    border-bottom: 1px solid #e5e7eb;
}

.video-thumb-title {
    padding: 6px 8px 7px;
    font-size: 11px;
    font-weight: 500;
    color: var(--color-gray-800);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    background: #fff;
}

/* RESPONSIVE MÓVIL - MÁS ESPECÍFICO Y AGRESIVO */
@media (max-width: 767px) {

    /* CONTENEDOR PRINCIPAL - FORZAR CAMBIOS */
    .category-banners-container {
        padding: 16px !important;
        margin: 0 0 1.5rem 0 !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    /* BANNERS GENERALES - FORZAR ESTRUCTURA */
    .banner {
        margin: 0 0 16px 0 !important;
        padding: 0 !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    /* BANNER SINGLE - RESETEAR FLEXBOX */
    .banner-single {
        display: block !important;
        flex-direction: column !important;
        align-items: stretch !important;
        min-height: auto !important;
    }

    /* BANNER DE IMAGEN - FORZAR ALTURA */
    .banner-image-wrapper {
        height: 180px !important;
        max-height: 180px !important;
        width: 100% !important;
        flex: none !important;
        max-width: 100% !important;
    }

    .banner-img {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
    }

    .banner-below-content {
        padding: 16px !important;
        flex: none !important;
        max-width: 100% !important;
    }

    /* TEXTOS DEL BANNER - FORZAR TAMAÑOS */
    .banner-title {
        font-size: 16px !important;
        line-height: 1.3 !important;
        margin-bottom: 8px !important;
    }

    .banner-text {
        font-size: 13px !important;
        line-height: 1.4 !important;
        margin-bottom: 12px !important;
    }

    /* OVERLAY DE CONTENIDO */
    .banner-content-overlay {
        padding: 16px !important;
    }

    .banner-content-overlay .banner-title {
        font-size: 18px !important;
    }

    .banner-content-overlay .banner-text {
        font-size: 14px !important;
    }

    /* BANNER INFO - COMPACTAR */
    .banner-info {
        padding: 12px !important;
        margin: 8px !important;
        max-height: 160px !important;
    }

    .banner-info-box {
        flex-direction: column !important;
        padding: 12px !important;
        gap: 8px !important;
    }

    .banner-info-icon {
        font-size: 18px !important;
    }

    .banner-info-content h3,
    .banner-info-content h4 {
        font-size: 15px !important;
        margin: 0 0 6px 0 !important;
        line-height: 1.3 !important;
    }

    .banner-info-content p {
        font-size: 12px !important;
        line-height: 1.4 !important;
        margin: 0 !important;
    }

    /* BANNER VIDEO - OPTIMIZAR LAYOUT */
    .banner-video {
        padding: 12px !important;
    }

    .banner-video-body {
        grid-template-columns: 1fr !important;
        gap: 16px !important;
    }

    .banner-video-main {
        height: 200px !important;
    }

    /* Miniaturas en tira horizontal en móvil */
    .banner-video-sidebar {
        max-height: none !important;
        flex-direction: row !important;
        overflow-x: auto !important;
        overflow-y: hidden !important;
        gap: 8px !important;
        padding: 8px !important;
    }

    .banner-video-sidebar-item {
        min-width: 120px !important;
        flex-shrink: 0 !important;
    }

    .video-thumb-btn {
        flex-direction: column;
        min-width: 130px;
        max-width: 130px;
        flex-shrink: 0;
    }

    .video-thumb-title {
        -webkit-line-clamp: 2;
        font-size: 10px;
        padding: 5px 6px;
    }
}

/* FOOTER */

.footer {
    background-color: var(--color-gray-900);
    color: #fff;
    padding: var(--spacing-2xl) 0 var(--spacing-lg);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--spacing-xl);
    margin-bottom: var(--spacing-xl);
}

.footer h3,
.footer h4 {
    margin-bottom: var(--spacing-md);
    color: var(--color-accent);
}

.footer ul {
    list-style: none;
}

.footer ul li {
    margin-bottom: var(--spacing-sm);
}

.footer a {
    color: #fff;
}

.footer a:hover {
    color: var(--color-accent);
}

.footer-bottom {
    text-align: center;
    padding-top: var(--spacing-lg);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    opacity: 0.7;
}

.footer-trust-image {
    display: block;
    max-width: 260px;
    width: 100%;
    height: auto;
    margin: 0 auto var(--spacing-md);
}

.footer-security-ssl {
    margin: 0 auto var(--spacing-sm);
    max-width: 760px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    background: rgba(77, 163, 255, 0.08);
}

.ssl-badge-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.ssl-badge-text {
    font-size: 0.95rem;
    line-height: 1.5;
}

/* LOADING */
.loading {
    text-align: center;
    padding: var(--spacing-2xl);
    color: var(--color-gray-700);
}

/* ERROR */
.error-message {
    background-color: #fee;
    color: var(--color-error);
    padding: var(--spacing-md);
    border-radius: var(--border-radius);
    margin-bottom: var(--spacing-md);
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .footer-security-ssl {
        align-items: flex-start;
        text-align: left;
    }

    .hero-title {
        font-size: var(--font-size-2xl);
    }

    .hero-subtitle {
        font-size: var(--font-size-base);
    }

    .section {
        padding: var(--spacing-xl) 0;
    }
}

/* ========================================
   SLIDER PRINCIPAL
   ======================================== */
.hero-slider {
    position: relative;
    width: 100%;
    height: 600px;
    overflow: hidden;
    background: #000;
}

.slider-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.slide {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.slide.active {
    opacity: 1;
}

.slide-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slide-content {
    position: absolute;
    bottom: 80px;
    left: 50px;
    right: 50px;
    text-align: left;
    color: #fff;
    z-index: 2;
    max-width: 600px;
}

.slide-badge {
    display: inline-block;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    padding: 8px 20px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.slide-content h2 {
    font-size: 42px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 15px;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
}

.slide-content p {
    font-size: 18px;
    margin-bottom: 25px;
    opacity: 0.95;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.7);
    line-height: 1.4;
}

.slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg,
            rgba(0, 40, 142, 0.4) 0%,
            rgba(0, 0, 0, 0.3) 50%,
            rgba(0, 40, 142, 0.2) 100%);
    z-index: 1;
}

/* Controles del Slider */
.slider-controls {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    display: flex;
    gap: 12px;
}

.slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    border: 2px solid #fff;
    cursor: pointer;
    transition: var(--transition);
}

.slider-dot.active {
    background: var(--color-secondary);
    transform: scale(1.2);
}

.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    transition: var(--transition);
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slider-arrow:hover {
    background: rgba(255, 255, 255, 0.3);
}

.slider-arrow.prev {
    left: 20px;
}

.slider-arrow.next {
    right: 20px;
}

/* Secciones Destacadas (Tours y Paquetes) */
.featured-sections {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-xl);
    margin-top: calc(var(--spacing-3xl) * -1);
    position: relative;
    z-index: 10;
    padding: 0 var(--spacing-md);
}

.featured-card {
    background: #fff;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    transition: transform 0.3s ease;
}

.featured-card:hover {
    transform: translateY(-5px);
}

.featured-image {
    width: 100%;
    height: 300px;
    object-fit: cover;
}

.featured-content {
    padding: var(--spacing-xl);
}

.featured-content h3 {
    font-size: var(--font-size-xl);
    color: var(--color-primary);
    margin-bottom: var(--spacing-md);
}

.featured-content p {
    color: var(--color-gray-700);
    margin-bottom: var(--spacing-lg);
}

@media (max-width: 768px) {
    .hero-slider {
        height: 500px;
        /* Más alto para mejor proporción en móvil */
    }

    .slide-content {
        bottom: 60px;
        left: 20px;
        right: 20px;
        max-width: none;
        text-align: center;
    }

    .slide-badge {
        font-size: 12px;
        padding: 6px 16px;
        margin-bottom: 15px;
    }

    .slide-content h2 {
        font-size: 28px;
        line-height: 1.2;
        margin-bottom: var(--spacing-md);
    }

    .slide-content p {
        font-size: 16px;
        margin-bottom: var(--spacing-lg);
    }

    .featured-sections {
        grid-template-columns: 1fr;
        margin-top: 0;
        gap: var(--spacing-lg);
    }

    .slider-arrow {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }

    .slider-dots {
        bottom: 20px;
    }
}

/* WhatsApp Floating Button */
.whatsapp-float {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    background-color: #25d366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
    z-index: 1000;
    transition: all 0.3s ease;
    text-decoration: none;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);
}

.whatsapp-float svg {
    width: 32px;
    height: 32px;
    fill: white;
}

/* =========================================
   SELECTOR DE IDIOMA
   NOTA: Actualmente oculto - solo español por ahora
   Para reactivar: cambiar display: none a display: block
   ========================================= */
.language-selector {
    position: relative;
    justify-self: center;
    display: none;
    /* OCULTO - Cambiar a 'block' para reactivar */
}

.lang-btn {
    background: rgba(255, 255, 255, 0.15);
    border: none;
    color: #ffffff;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.lang-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-1px);
}

.flag-icon {
    font-size: 20px;
    line-height: 1;
}

.lang-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    min-width: 160px;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
}

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

.lang-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    color: var(--color-gray-700);
    text-decoration: none;
    transition: all 0.2s ease;
    border-bottom: 1px solid var(--color-gray-100);
}

.lang-option:last-child {
    border-bottom: none;
}

.lang-option:hover {
    background: var(--color-gray-50);
    color: var(--color-primary);
}

.lang-option .flag-icon {
    font-size: 24px;
}

/* =====================================================
   CATEGORÍAS PRINCIPALES
   ===================================================== */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.category-card {
    background: white;
    border-radius: var(--border-radius-lg);
    border: 2px solid var(--color-primary);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    transition: all 0.3s ease;
    position: relative;
    display: block;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

.category-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: var(--color-primary);
}

.category-image {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.category-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.category-card:hover .category-image img {
    transform: scale(1.1);
}

.category-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(0, 40, 142, 0.8), rgba(55, 179, 74, 0.6));
    display: flex;
    align-items: flex-start;
    justify-content: flex-end;
    padding: 1rem;
}

.category-badge {
    background: rgba(255, 255, 255, 0.95);
    color: var(--color-primary);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
    backdrop-filter: blur(10px);
}

.category-content {
    padding: 2rem;
}

.category-content h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--color-gray-900);
}

.category-content p {
    color: var(--color-gray-700);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.category-features {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 2rem;
}

.feature-tag {
    background: var(--color-gray-100);
    color: var(--color-gray-700);
    padding: 0.5rem 0.75rem;
    border-radius: var(--border-radius);
    font-size: 0.85rem;
    font-weight: 500;
}

.category-btn {
    width: 100%;
    justify-content: center;
}

/* Membership Highlight */
.membership-highlight {
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    border-radius: var(--border-radius-lg);
    padding: 2.5rem;
    text-align: center;
    color: white;
    margin-top: 3rem;
}

.membership-content h3 {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    font-weight: 600;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.benefit-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
}

.benefit-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

/* Responsive para categorías */
@media (max-width: 768px) {
    .categories-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .category-card {
        margin: 0 1rem;
    }

    .category-image {
        height: 200px;
    }

    .category-content {
        padding: 1.5rem;
    }

    .benefits-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .membership-highlight {
        padding: 2rem;
        margin: 2rem 1rem 0;
    }
}

/* =====================================================
   SCROLL INFINITO Y CARGA PROGRESIVA
   ===================================================== */
.load-more-spinner {
    text-align: center;
    padding: 2rem;
    color: var(--color-gray-700);
    font-style: italic;
    background: var(--color-gray-50);
    border-radius: var(--border-radius);
    margin: 1rem 0;
    animation: pulse 1.5s ease-in-out infinite alternate;
}

.load-more-spinner::before {
    content: "⏳ ";
    margin-right: 0.5rem;
}

@keyframes pulse {
    from {
        opacity: 0.6;
    }

    to {
        opacity: 1;
    }
}

.loading {
    text-align: center;
    padding: 3rem;
    color: var(--color-gray-500);
    font-size: 1.1rem;
}

.loading::before {
    content: "⌛ ";
    margin-right: 0.5rem;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}