:root {
    --primary-color: #6c5ce7;
    --menu-bg: #1a1b1f;
    --menu-text: #ffffff;
    --menu-hover: #2d2e32;
    --modal-overlay: rgba(0, 0, 0, 0.6);
}
html, body {
    margin: 0;
    padding: 0;
    height: 100%;
}
body {
    font-family: 'Arial', sans-serif;
    display: flex;
    position: relative;
    overflow: hidden;
}

.main-content {
    flex: 1;
    overflow: hidden;
    height: 100vh;
    position: relative;
}
.banner-player{
    background-color: #1DA1F2;
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
}

.mobile-header {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 60px;
    background-color: var(--mobile-bg);
    color: var(--mobile-text);
    padding: 0 15px;
    align-items: center;
    justify-content: space-between;
    z-index: 1000;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
.menu-toggle {
    background: none;
    border: none;
    color: var(--mobile-icon);
    font-size: 24px;
    cursor: pointer;
    padding: 10px;
    margin-left: auto;
}
.mobile-title {
    font-size: 18px;
    font-weight: bold;
    text-align: left;
    flex: 1;
}
.sidebar {
    width: 300px;
    height: 100%;
    background-color: var(--menu-bg);
    color: var(--menu-text);
    border-right: solid 2px #ffffff;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease;
}
.sidebar-header {
    padding: 10px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    text-align: center;
    margin-bottom: 25px;
}
.logo-container {
    margin-bottom: 20px;
}
.logo {
    width: 100%;
    height: auto;
    margin: 0 auto;
}
.logo img {
    width: 250px;
    height: auto;
    object-fit: cover;
}
.site-name {
    white-space: nowrap;
    font-size: 16px;
    font-weight: bold;
    margin-top: 30px;
}
.menu-items {
    list-style: none;
    padding: 0;
    margin: 0;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 5px;
}
.menu-item {
    padding: 12px 15px;
    display: flex;
    align-items: center;
    gap: 15px;
    background: var(--menu-bg, #0d83b5);
    border: 2px solid #ffffff;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    margin: 0 15px 5px;
    position: relative;
    text-decoration: none;
    color: var(--menu-text, #ffffff);
    border-radius: 8px;
    -webkit-tap-highlight-color: transparent;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* Estilos para los enlaces del menú */
.menu-items a.menu-item,
.menu-modal-link {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Efecto hover en el ítem del menú */
.menu-items a.menu-item:hover,
.menu-modal-link:hover,
.menu-item:hover {
    background-color: var(--menu-hover, #2d2e32);
    transform: translateX(8px);
}

/* Estilos para el texto del menú */
.menu-item span {
    white-space: nowrap;
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    color: var(--menu-text, #ffffff);
}

/* Efecto hover en el texto */
.menu-items a.menu-item:hover span,
.menu-modal-link:hover span,
.menu-item:hover span {
    color: var(--menu-text-hover, #ffffff) !important;
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.4);
}

/* Efecto al hacer clic */
.menu-item:active {
    transform: translateX(8px) scale(0.98);
    transition: all 0.15s ease;
}

/* Estilos base para los iconos */
.menu-item i {
    width: 30px;
    text-align: center;
    font-size: 1.2em;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--menu-icon, #ffffff);
}

/* Efecto hover en los iconos */
.menu-items a.menu-item:hover i,
.menu-modal-link:hover i,
.menu-item:hover i {
    transform: scale(1.2) rotate(5deg);
    color: var(--menu-icon-hover, #ffffff) !important;
    text-shadow: 0 0 12px rgba(255, 255, 255, 0.5);
}

/* Asegurar que los iconos de Font Awesome mantengan el color en hover */
.menu-item:hover i.fas,
.menu-item:hover i.fab,
.menu-item:hover i.far,
.menu-items a.menu-item:hover i.fas,
.menu-items a.menu-item:hover i.fab,
.menu-items a.menu-item:hover i.far,
.menu-modal-link:hover i.fas,
.menu-modal-link:hover i.fab,
.menu-modal-link:hover i.far {
    color: var(--menu-icon-hover, #ffffff) !important;
}

.menu-item span {
    white-space: nowrap;
    font-weight: 500;
    transition: all 0.3s ease;
}
.mobile-footer {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: var(--mobile-bg);
    padding: 20px 0;
    box-shadow: 0 -2px 4px rgba(0,0,0,0.1);
    z-index: 99999;
}
.footer-menu {
    display: flex;
    justify-content: space-around;
    list-style: none;
    margin: 0;
    padding: 0;
}
.footer-menu-item {
    text-align: center;
    color: var(--mobile-text);
    text-decoration: none;
    font-size: 12px;
}
.footer-menu-item i {
    display: block;
    font-size: 20px;
    margin-bottom: 4px;
    color: var(--mobile-icon);
}
.footer-menu-item span {
    display: block;
}
.main-content {
    flex: 1;
    height: 100%;
    overflow: auto;
    position: relative;
}

@media screen and (max-width: 860px) {
    body {
        flex-direction: column;
    }
    .mobile-header {
        display: flex;
    }
    .mobile-footer {
        display: block;
    }
    .sidebar {
        position: fixed;
        left: 0;
        top: 0;
        bottom: 0;
        transform: translateX(-100%);
        z-index: 1001;
    }
    .sidebar.active {
        transform: translateX(0);
    }
    .main-content {
        margin-top: 60px;
        margin-bottom: 70px;
        width: 100%;
        height: calc(100vh - 130px);
    }
    .site-name {
        display: none;
    }
    #lunaradio {
        height: 100% !important;
    }
}
.legal-links {
    padding: 15px;
    font-size: 13px;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.legal-links a {
    color: var(--menu-text);
    text-decoration: none;
    opacity: 0.8;
    transition: all 0.3s;
    padding: 5px;
}
.legal-links a:hover {
    opacity: 1;
    text-decoration: underline;
}
.credits {
    padding: 15px;
    font-size: 14px;
    text-align: center;
}
.credits a {
    color: var(--menu-text);
    text-decoration: none;
    opacity: 0.8;
    transition: opacity 0.3s;
}
.credits a:hover {
    text-decoration: underline;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--modal-overlay);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 999999;
    align-items: center;
    justify-content: center;
    padding: 20px;
    transition: all 0.3s ease-in-out;
}

.modal.active {
    display: flex;
}

.modal-content {
    background-color: white;
    padding: 30px 5px;
    border-radius: 12px;
    width: 90%;
    max-width: 800px;
    max-height: 85vh;
    overflow-y: auto;
    position: relative;
    color: #333;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    animation: modalFadeIn 0.3s ease-out;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
    text-align: center;
}

.modal-title {
    font-size: 1.8em;
    font-weight: bold;
    margin: 0;
    width: 100%;
    text-align: center;
    color: var(--primary-color);
}



.modal-close {
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: #666;
    padding: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.modal-close:hover {
    color: var(--primary-color);
    background-color: rgba(108, 92, 231, 0.1);
    transform: rotate(90deg);
}

.modal-body {
    line-height: 1.7;
    text-align: center;
    padding: 0 20px 0 20px;
    font-size: 1.05em;
}

.modal-body > p {
    margin-bottom: 20px;
}

/* Estilo para enlaces de contacto */
.whatsapp-link, .email-link {
    color: #128C7E;
    background-color: #e8f5e9;
    padding: 6px 12px;
    border-radius: 20px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    display: inline-block;
    border: 1px solid #128C7E;
}

.whatsapp-link:hover {
    background-color: #128C7E;
    color: white;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.email-link {
    color: #4285F4;
    background-color: #e8f0fe;
    border: 1px solid #4285F4;
}

.email-link:hover {
    background-color: #4285F4;
    color: white;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Estilos para la sección Nosotros */
.nosotros-content {
    margin-bottom: 30px;
    line-height: 1.6;
}

.nosotros-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.nosotros-card {
    background-color: #f8f9fa;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.nosotros-card h3 {
    color: #6c5ce7;
    margin-bottom: 15px;
    text-align: center;
}

.nosotros-valores h3 {
    color: #6c5ce7;
    margin-bottom: 15px;
    text-align: center;
}

.nosotros-valores ul {
    list-style-type: none;
    padding: 0;
}

.nosotros-valores li {
    padding: 8px 0;
    border-bottom: 1px solid #eee;
    position: relative;
    padding-left: 25px;
}

.nosotros-valores li:before {
    content: '\f00c';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    color: #6c5ce7;
}

/* Estilos para patrocinadores */
.sponsors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
    margin-bottom: 20px;
}

.sponsor-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 15px;
    border-radius: 8px;
    background-color: #f8f9fa;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.sponsor-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.sponsor-banner {
    width: 100%;
    height: 120px;
    object-fit: cover;
    border-radius: 6px;
    margin-bottom: 10px;
    cursor: pointer;
}

.sponsor-name {
    font-weight: bold;
    font-size: 16px;
    margin: 8px 0 5px;
    text-align: center;
}

@media screen and (max-width: 768px) {
    .sponsors-grid {
        grid-template-columns: 1fr;
    }
}



/* ============================================
   ESTILOS PARA MODALES (Facebook y Chat)
   ============================================ */

/* Contenedor del iframe de Facebook */
.fb-iframe-container {
    position: relative;
    width: 100%;
    padding-bottom: 120%; /* Proporción 5:6 para el iframe */
    height: 0;
    overflow: hidden;
}

.fb-iframe-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* Botones flotantes */
.floating-buttons {
    position: fixed;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 9999;
}

.floating-btn {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background-color: #8d0972;
    color: white;
    border: none;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    transition: all 0.3s ease;
    -webkit-tap-highlight-color: transparent; /* Elimina el resaltado en móviles */
    touch-action: manipulation; /* Mejora la respuesta táctil */
}

.floating-btn:hover {
    background-color: #5f044d;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* Estilos para los modales */
.modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch; /* Mejora el desplazamiento en iOS */
    -webkit-tap-highlight-color: transparent; /* Elimina el resaltado en móviles */
}

.modal-content {
    background-color: #fff;
    margin: 5% auto;
    padding: 20px;
    border-radius: 8px;
    max-width: 600px;
    width: 90%;
    position: relative;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.3);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.modal-title {
    margin: 0;
    font-size: 1.5em;
    color: #333;
}

.modal-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #666;
    padding: 0 10px;
}

.modal-close:hover {
    color: #000;
}

.modal-body {
    margin: 15px 0;
}

/* Ajustes para pantallas medianas */
@media (min-width: 576px) {
    .modal-content {
        max-width: 500px;
        margin: 1.75rem auto;
    }
}

/* Ajustes para pantallas pequeñas */
@media (max-width: 575.98px) {
    .modal-content {
        margin: 0.5rem;
        width: auto;
    }
    
    .fb-iframe-container {
        padding-bottom: 150%; /* Más alto en móviles para mejor visualización */
    }
    
    .floating-btn {
        width: 45px;
        height: 45px;
        font-size: 18px;
    }
}

.form-control {
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(108, 92, 231, 0.2);
    outline: none;
}

.btn-submit {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s;
    margin-top: 10px;
    align-self: flex-start;
}

.btn-submit:hover {
    background-color: #5a4cdb;
    transform: translateY(-2px);
}

.btn-submit:active {
    transform: translateY(0);
}

/* Alertas para el formulario de contacto */
.alert-success, .alert-error {
    padding: 12px 15px;
    border-radius: 6px;
    margin-bottom: 15px;
    font-weight: 500;
    opacity: 1;
    transition: opacity 0.3s ease;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Botón flotante de compartir */
.share-button {
    position: fixed;
    bottom: 40px;
    right: 20px;
    width: 60px;
    height: 60px;
    background-color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    z-index: 999;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
}

/* Ajustes para dispositivos móviles */
@media (max-width: 768px) {
    .share-button {
        width: 45px;
        height: 45px;
        bottom: 80px;
        right: 15px;
        font-size: 18px;
    }
}

.share-button:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.4);
}

.share-options {
    position: fixed;
    bottom: 110px;
    right: 20px;
    display: none;
    flex-direction: column;
    gap: 15px;
    z-index: 998;
}

@media (max-width: 768px) {
    .share-options {
        bottom: 135px;
        right: 15px;
        gap: 12px;
    }
}

.share-options.show {
    display: flex;
}

.share-option {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s;
}

@media (max-width: 768px) {
    .share-option {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
}

.share-option:hover {
    transform: scale(1.1);
}

.share-facebook {
    background-color: #1877F2;
}

.share-twitter {
    background-color: #1DA1F2;
}

.share-whatsapp {
    background-color: #25D366;
}

.share-telegram {
    background-color: #0088cc;
}

/* Estilos antiguos de redes sociales (mantenidos por compatibilidad) */
.social-media {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 15px;
    align-items: center;
}

.social-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #333;
    padding: 10px;
    border-radius: 5px;
    transition: background-color 0.3s;
    width: 200px;
    justify-content: flex-start;
}

.social-link span {
    display: none;
}

.social-link:hover {
    transform: translateY(-3px);
    opacity: 0.9;
}

/* Responsive para móviles */
@media (max-width: 768px) {
    .social-icons-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
    }
    
    .social-icon-round {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }
}

.facebook {
    background-color: #3b5998;
}

.instagram {
    background: linear-gradient(45deg, #405DE6, #5851DB, #833AB4, #C13584, #E1306C, #FD1D1D);
}

.twitter {
    background-color: #1DA1F2;
}

.youtube {
    background-color: #FF0000;
}

.tiktok {
    background: linear-gradient(45deg, #000000, #EE1D52, #69C9D0);
}

@media screen and (max-width: 768px) {
    .staff-grid,
    .program-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .social-media {
        gap: 10px;
    }
    
    .modal-content {
        width: 95%;
        padding: 15px 5px;
    }
}

@media screen and (max-width: 480px) {
    .staff-grid,
    .program-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .social-media {
        gap: 8px;
    }
    
    .social-link {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }
    
    .contact-item i {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
    
    .modal-title {
        font-size: 1.3em;
    }
    
    .modal-body {
        font-size: 14px;
    }
}

