/**
 * Header CSS - Template Monte Cristo
 * 
 * Migrado desde: C:\Users\usuario\Documents\gitvenus\montecristo\theme\estilos\generales\template_estructura.css
 * Fecha: 2026-07-06
 * 
 * IMPORTANTE: Mantiene estilos exactos del legacy
 */

/* ========================================
   HEADER CAPA 1: Radio, Clima, Redes
   ======================================== */

.contenedor-header-1 {
    padding: 0rem;
}

.contenedor-header-1 .header-1 {
    margin-top: 0rem 1rem;
}

/* ========================================
   RADIO EN VIVO
   ======================================== */

.radio-container {
    display: flex;
    align-items: center;
}

.radio-link {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.img-radio {
    width: 15rem;
}

@media (min-width: 768px) {
    .img-radio {
        width: 15rem;
    }
}

@media (max-width: 576px) {
    .radio-container .img-radio {
        max-height: 3.6rem;
        max-width: 10rem;
        width: auto;
        object-fit: contain;
    }

    .radio-container .icono {
        margin-right: 4px;
    }
}

/* Botón EN VIVO */
.en-vivo-btn {
    display: flex;
    align-items: center;
    background-color: #ff0000;
    color: white;
    padding: 5px 10px;
    border-radius: 30px;
    margin-left: 10px;
    font-weight: bold;
    text-decoration: none;
    font-size: 1.1rem;
    animation: pulse 1.5s infinite;
}

.en-vivo-btn:hover {
    color: white;
    background-color: #ff0000;
    animation: pulse 1.5s infinite;
    font-size: 1.15rem;
    transition: all 0.5s ease-in-out;
}

.live-dot {
    height: 10px;
    width: 10px;
    background-color: white;
    border-radius: 50%;
    display: inline-block;
    margin-right: 8px;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 0, 0, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(255, 0, 0, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(255, 0, 0, 0);
    }
}

@media (max-width: 768px) {
    .en-vivo-btn {
        display: none !important;
    }
}

@media (max-width: 576px) {
    .en-vivo-btn {
        display: none !important;
    }

    .live-dot {
        display: none;
    }
}

/* ========================================
   CLIMA WIDGET
   ======================================== */

.clima-widget {
    display: flex;
    align-items: center;
}

@media (min-width: 992px) {
    .clima-widget {
        margin-left: auto;
        margin-right: 1rem;
    }
}

/* ========================================
   REDES SOCIALES Y WHATSAPP
   ======================================== */

.redes {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: nowrap;
}

.red_social {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 4rem;
    width: 4rem;
    background: var(--blanco);
    border-radius: 50%;
    margin-top: 0.5rem;
    color: var(--negro);
    -webkit-box-shadow: 0rem 0.1rem 0.3rem 0.2rem rgba(162, 162, 162, 0.43);
    -moz-box-shadow: 0rem 0.1rem 0.3rem 0.2rem rgba(162, 162, 162, 0.43);
    box-shadow: 0rem 0.1rem 0.3rem 0.2rem rgba(162, 162, 162, 0.43);
    font-size: 2rem;
    margin: 0.5rem 0;
    transition: all 0.5s ease-in-out;
}

.red_social:hover {
    background: var(--primario);
    color: var(--blanco);
    transition: all 0.5s ease-in-out;
}

@media (max-width: 576px) {
    .redes {
        gap: 0.4rem;
    }
    
    .red_social {
        width: 3.5rem;
        height: 3.5rem;
        padding: 0;
        margin: 0;
    }

    .red_social i {
        font-size: 1.6rem;
    }
}

/* Botón WhatsApp */
.btn-whatsapp {
    color: white;
    background: #47a36b;
    transition: all 0.5s ease-in-out;
    font-size: 1.4rem;
    padding: 0.5rem 0.8rem;
    border-radius: 5rem;
    font-weight: 600;
}

.btn-whatsapp:hover {
    background-color: white;
    color: #47a36b;
    border: 2px solid #47a36b;
    transition: all 0.5s ease-in-out;
}

@media (max-width: 600px) {
    .btn-whatsapp .whatsapp-text {
        display: none;
    }

    .btn-whatsapp {
        border-radius: 50%;
        width: 3rem;
        height: 3rem;
        justify-content: center;
        align-items: center;
    }

    .btn-whatsapp i {
        margin: 0;
    }
}

@media (max-width: 576px) {
    .header-1 .btn-whatsapp {
        display: none !important;
    }

    .header-1 {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 6px;
    }
}

/* ========================================
   HEADER CAPA 2: Logo y Menú
   ======================================== */

.contenedor-header-2 {
    background: white;
}

@media (max-width: 768px) {
    .contenedor-header-2 {
        background: var(--primario);
        padding: 0rem;
    }
    
    .contenedor-header-2 .hamburger span {
        background-color: var(--blanco);
    }
}

@media (min-width: 992px) and (max-width: 1200px) {
    .contenedor-header-2 {
        background: white !important;
    }
}

/* Responsive móvil */
@media (max-width: 991px) {
    .contenedor-header-2 .navbar-collapse {
        max-height: calc(100vh - 46px - 64px);
        overflow-y: auto;
    }
}

@media (max-width: 991px) {
    .no-body-padding {
        padding: 0;
    }
}

/* ========================================
   MENÚ NAVEGACIÓN
   ======================================== */

.navbar-light .navbar-nav .nav-link {
    color: var(--negro);
    font-size: 1.6rem;
    text-transform: none;
    font-weight: bold;
}

.navbar-light .navbar-nav .nav-link.active,
.navbar-light .navbar-nav .show>.nav-link {
    color: var(--negro);
}

.navbar-light .navbar-nav .nav-link:focus,
.navbar-light .navbar-nav .nav-link:hover {
    color: var(--negro);
}

.nav-link i {
    font-size: 1.2rem;
}

@media (max-width: 768px) {
    .navbar-light .navbar-nav .nav-link {
        color: var(--blanco);
    }

    .navbar-light .navbar-nav .nav-link:focus,
    .navbar-light .navbar-nav .nav-link:hover {
        color: var(--blanco);
    }
}

@media (max-width: 480px) {
    .navbar-light .navbar-nav .nav-link {
        color: var(--blanco);
    }

    .navbar-light .navbar-nav .nav-link:focus,
    .navbar-light .navbar-nav .nav-link:hover {
        color: var(--blanco);
    }

    .navbar-light .navbar-brand {
        padding: 0.5rem 0rem;
    }
    
    .navbar-brand .logo {
        max-height: 50px;
        width: auto;
    }
}

/* ========================================
   MEGA-MENÚ
   ======================================== */

/* Dropdown menu base */
.dropdown-menu {
    display: none;
    position: absolute;
    z-index: 1000;
    min-width: 10rem;
    padding: 0.5rem 0;
    margin: 0;
    margin-top: 0;
    font-size: 1rem;
    color: #212529;
    text-align: left;
    list-style: none;
    background-color: var(--blanco);
    background-clip: padding-box;
    border: none;
    border-radius: 0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.dropdown-menu.show {
    display: block;
}

.nav-item.dropdown.dropdown-mega .dropdown-menu {
    width: 100%;
    text-transform: none;
    padding: 2rem 1rem;
    margin-top: 2.3rem;
    top: 100%;
}

.nav-item.dropdown.dropdown-mega-2 .dropdown-menu {
    width: 100%;
    text-transform: none;
    padding: 2rem 1rem;
    margin-top: 2.3rem;
}

@media (min-width: 992px) {
    .contenedor-header-2 {
        position: relative;
    }
    
    .nav-item.dropdown.dropdown-mega-2 .dropdown-menu,
    .nav-item.dropdown.dropdown-mega .dropdown-menu {
        position: fixed;
        top: auto;
        left: 0 !important;
        right: 0 !important;
        width: 100%;
        transform: none;
        border-color: var(--blanco);
        z-index: 1000;
    }
    
    /* Posicionar el dropdown justo debajo del header */
    .contenedor-header-2 .navbar-nav .dropdown.show .dropdown-menu {
        top: 100%;
    }
    
    .nav-item.dropdown.dropdown-mega-2 .dropdown-menu .mega-content,
    .nav-item.dropdown.dropdown-mega .dropdown-menu .mega-content {
        width: 100%;
        max-width: 100%;
    }
    
    .nav-item.dropdown.dropdown-mega-2 .dropdown-menu .mega-content .container,
    .nav-item.dropdown.dropdown-mega .dropdown-menu .mega-content .container {
        max-width: 100% !important;
        width: 100% !important;
        padding-left: 2rem !important;
        padding-right: 2rem !important;
    }
}

.contenedor-columnas {
    display: flex;
    justify-content: space-evenly;
}

@media (max-width: 992px) {
    .nav-item.dropdown.dropdown-mega .dropdown-menu {
        width: 100%;
    }
}

@media (max-width: 576px) {
    .contenedor-columnas {
        display: flex;
        flex-direction: column;
        gap: 2rem;
    }
    
    .menu {
        width: 100%;
    }
}

.columna {
    min-width: 25rem;
    margin-right: 30px;
}

.columna:last-child {
    margin-right: 0;
}

.nombre-contendor-items {
    font-size: 1.7rem;
    font-weight: 800;
    display: inline-block;
    line-height: 0;
    padding-bottom: 1.5rem;
}

.top-line {
    height: 2px;
    width: 100%;
    margin-bottom: 8px;
    background: linear-gradient(to right, var(--primario), var(--secundario));
    border-radius: 2px;
}

.icon-label {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.6rem;
}

.icon-label i {
    font-weight: 600;
    font-size: 1.3rem;
    color: var(--primario);
}

.icon-label a {
    color: var(--negro);
}

.icon-label a:hover {
    color: var(--primario);
}

.sub-menu {
    margin-bottom: 0.5rem;
}

.sub-menu a {
    color: var(--negro);
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: 500;
    transition: color 0.3s ease;
}

.sub-menu a:hover {
    color: var(--primario);
}

.items-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

@media (max-width: 480px) {
    .icon-label {
        font-size: 1.7rem;
    }

    .sub-menu {
        margin-bottom: 1rem;
    }
}

/* ========================================
   HAMBURGER MENU
   ======================================== */

.hamburger-toggle .hamburger {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.hamburger span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--primario);
    transition: all 0.3s ease-in-out;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* ========================================
   LOGO
   ======================================== */

.logo {
    transition: all 0.3s ease-in-out;
}

.logo.minimize-logo {
    max-height: 50px;
}

.navbar.minimize-navbar {
    padding: 0.5rem 1rem;
}

.navbar-collapse.minimize-navbar-collapse {
    margin-top: 0;
}
