/* =========================================================
   REFUGIO GLOBAL HEADER V2 - PREMIUM COMPACT
   Prefijo exclusivo: rgh-v2-
========================================================= */

/* --- RESET BÁSICO --- */
.rgh-v2-global-header-nav * {
    box-sizing: border-box;
    font-family: inherit;
}

/* --- CONTENEDOR PRINCIPAL --- */
.rgh-v2-global-header-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 90px;
    
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 50px;
    
    background: transparent;
    z-index: 99990; /* Compatibilidad WP Admin Bar */
    
    transition: background-color 0.3s ease, height 0.3s ease, top 0.3s ease;
}

.rgh-v2-global-header-nav.rgh-v2-scrolled {
    background: rgba(5, 32, 25, 0.95);
    backdrop-filter: blur(10px);
    height: 80px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* --- LOGO --- */
.rgh-v2-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: #ffffff;
    opacity: 1 !important; /* Fix hover logo */
    filter: none !important;
}

/* Forzar que el logo no se oscurezca al pasar el mouse */
.rgh-v2-logo:hover,
.rgh-v2-logo:focus,
.rgh-v2-logo:active {
    color: #ffffff !important;
    opacity: 1 !important;
    filter: none !important;
    background: transparent !important;
}

.rgh-v2-logo img {
    border-radius: 50%;
    object-fit: cover;
}

.rgh-v2-logo span {
    font-size: 24px;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
}

/* --- MENU PRINCIPAL (DESKTOP) --- */
.rgh-v2-menu-container {
    flex-grow: 1;
    display: flex;
    justify-content: center;
}

.rgh-v2-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 30px;
}

.rgh-v2-menu-item {
    position: relative;
    display: flex;
    align-items: center;
}

.rgh-v2-menu-link {
    color: #ffffff;
    text-decoration: none;
    font-size: 15px; /* Reducido para más elegancia */
    font-weight: 600;
    padding: 10px 0;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: color 0.2s ease;
}

.rgh-v2-menu-link i {
    font-size: 11px;
    transition: transform 0.3s ease;
}

.rgh-v2-menu-link:hover,
.rgh-v2-menu-link.rgh-v2-active {
    color: #27aaa0;
}

.rgh-v2-menu-link.rgh-v2-active i {
    transform: rotate(180deg);
}

/* --- BOTÓN COMPRAR --- */
.rgh-v2-btn-buy {
    background-color: #27aaa0;
    color: #ffffff;
    padding: 12px 22px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 700;
    font-size: 14px;
    transition: background-color 0.3s ease, transform 0.2s ease;
    box-shadow: 0 4px 10px rgba(39, 170, 160, 0.4);
}

.rgh-v2-btn-buy:hover {
    background-color: #1c8880;
    transform: translateY(-2px);
    color: #ffffff;
}

/* --- MEGA MENUS (DESKTOP) --- */
.rgh-v2-mega-layer {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    pointer-events: none;
}

.rgh-v2-mega-container {
    position: absolute;
    top: 10px;
    width: min(1100px, calc(100vw - 60px));
    background: #ffffff;
    border-radius: 12px;
    border-top: 4px solid #27aaa0;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
    padding: 35px 40px; /* Un poco más compacto */
    
    opacity: 0;
    visibility: hidden;
    transform: translateY(-15px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    
    pointer-events: none;
    z-index: 100;
}

.rgh-v2-mega-container.rgh-v2-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

/* --- ESTRUCTURA GRID --- */
.rgh-v2-mega-grid {
    display: grid;
    gap: 35px; /* Brecha ligeramente reducida */
    width: 100%;
}

.rgh-v2-grid-3-cols {
    grid-template-columns: repeat(3, 1fr);
}

.rgh-v2-grid-2-cols {
    grid-template-columns: minmax(280px, 1fr) 2fr;
}

/* --- CONTENIDO DE COLUMNAS --- */
.rgh-v2-mega-col h4 {
    font-size: 18px; /* Títulos reducidos y elegantes */
    color: #149b8d;
    margin: 0 0 16px 0;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.rgh-v2-mt-4 {
    margin-top: 25px !important;
}

.rgh-v2-mega-col p, .rgh-v2-address {
    color: #555555;
    font-size: 14px; /* Textos descriptivos reducidos */
    line-height: 1.5;
    margin-bottom: 12px;
}

/* Enlaces del Mega Menú */
.rgh-v2-mega-menu-item,
.rgh-v2-contact-link {
    display: flex;
    align-items: center;
    padding: 6px 0;
    color: #444444;
    text-decoration: none;
    font-size: 14px; /* Enlaces reducidos */
    font-weight: 500;
    transition: color 0.2s, padding-left 0.2s;
    cursor: pointer;
}

.rgh-v2-contact-link {
    gap: 8px;
}

.rgh-v2-contact-link i {
    color: #27aaa0;
    font-size: 16px;
}

.rgh-v2-mega-menu-item:hover,
.rgh-v2-contact-link:hover {
    color: #27aaa0;
    padding-left: 5px;
}

/* Razones (Lista) */
.rgh-v2-reasons {
    list-style: none;
    padding: 0;
    margin: 0;
}
.rgh-v2-reasons li {
    font-size: 14px; /* Textos descriptivos reducidos */
    color: #555555;
    line-height: 1.45;
    margin-bottom: 12px;
}
.rgh-v2-reasons li strong {
    color: #27aaa0;
}

/* Imágenes en Fila (Fotos Reales) */
.rgh-v2-photo-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.rgh-v2-feature-img,
.rgh-v2-highlight-img {
    border-radius: 6px;
    object-fit: cover;
    display: block;
    width: 100%;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.rgh-v2-photo-row img {
    height: 90px; /* Consistencia en altura */
}

/* Imagen panorámica reducida (Oso y Condor) */
.rgh-v2-panoramic-img {
    max-height: 260px;
    aspect-ratio: 4/3;
    object-position: center;
}

.rgh-v2-video-container {
    position: relative;
    width: 100%;
}

/* Tarjetas de imágenes en Fauna */
.rgh-v2-img-card {
    position: relative;
    border-radius: 6px;
    overflow: hidden;
    height: 100px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.rgh-v2-img-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.rgh-v2-img-card span {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.6);
    color: #ffffff;
    padding: 6px 10px;
    font-size: 13px;
    font-weight: 700;
}

/* --- BOTÓN HAMBURGUESA --- */
.rgh-v2-mobile-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    padding: 10px;
    z-index: 100000;
}

.rgh-v2-mobile-btn span {
    display: block;
    width: 28px;
    height: 2px;
    background-color: #ffffff;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.rgh-v2-mobile-btn.rgh-v2-open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.rgh-v2-mobile-btn.rgh-v2-open span:nth-child(2) {
    opacity: 0;
}
.rgh-v2-mobile-btn.rgh-v2-open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* =========================================================
   RESPONSIVE (TABLET & MOBILE)
========================================================= */
@media (max-width: 1024px) {
    
    .rgh-v2-global-header-nav {
        padding: 0 20px;
        height: 70px;
        background: rgba(5, 32, 25, 0.98) !important;
    }

    .rgh-v2-btn-buy {
        display: none;
    }

    .rgh-v2-mobile-btn {
        display: flex;
    }

    .rgh-v2-menu-container {
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        height: calc(100vh - 70px);
        background: #ffffff;
        flex-direction: column;
        justify-content: flex-start;
        overflow-y: auto;
        
        opacity: 0;
        visibility: hidden;
        transform: translateY(-20px);
        transition: all 0.3s ease;
    }
    
    .rgh-v2-menu-container.rgh-v2-mobile-open {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .rgh-v2-menu {
        flex-direction: column;
        gap: 0;
        padding: 20px;
        width: 100%;
    }

    .rgh-v2-menu-item {
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
        border-bottom: 1px solid #eeeeee;
    }

    .rgh-v2-menu-link {
        color: #222222;
        width: 100%;
        justify-content: space-between;
        padding: 15px 0;
        font-size: 16px; /* Ligeramente mayor en móvil para toque táctil */
    }

    .rgh-v2-mega-layer {
        display: none;
    }

    .rgh-v2-mega-container {
        position: relative;
        top: 0;
        width: 100%;
        padding: 15px 0;
        border: none;
        box-shadow: none;
        border-radius: 0;
        transform: none;
        display: none;
    }

    .rgh-v2-mega-container.rgh-v2-open {
        display: block;
    }

    .rgh-v2-mega-grid {
        display: flex !important;
        flex-direction: column;
        gap: 25px;
    }

    .rgh-v2-photo-row {
        grid-template-columns: 1fr; /* Apilar fotos en móvil */
    }

    .rgh-v2-photo-row img {
        height: auto;
    }
    
    iframe, img {
        max-width: 100%;
    }
}

/* =========================================================
   COMPATIBILIDAD CON WP ADMIN BAR
========================================================= */
body.admin-bar .rgh-v2-global-header-nav {
    top: 32px;
}

@media screen and (max-width: 782px) {
    body.admin-bar .rgh-v2-global-header-nav {
        top: 46px;
    }
}
