: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%;
    overflow: hidden;
}
body {
    font-family: 'Arial', sans-serif;
    display: flex;
    position: relative;
}
.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: 200px;
    height: auto;
    object-fit: cover;
    border: solid 3px #ffffff;
    border-radius: 50%;
}
.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;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
    text-decoration: none;
    color: var(--menu-text);
    border-radius: 8px;
    -webkit-tap-highlight-color: transparent; /* Elimina el resaltado en dispositivos táctiles */
}

/* Aplicar el hover de forma más directa y con mayor especificidad */
.menu-items a.menu-item:hover,
.menu-modal-link:hover {
    background-color: var(--menu-hover);
    transform: translateX(5px);
}
.menu-item:active {
    transform: translateX(5px) scale(0.98);
}
.menu-item i {
    width: 30px;
    text-align: center;
    font-size: 1.2em;
    transition: transform 0.3s;
}
.menu-item:hover i {
    transform: scale(1.1);
}
.menu-item span {
    white-space: nowrap;
    font-weight: 500;
}
.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: hidden;
    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;
    border-top: 1px solid rgba(255,255,255,0.1);
}
.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;
    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 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 grids en modales */
.staff-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 20px;
}

@media screen and (max-width: 992px) {
    .staff-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

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

.staff-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: 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;
}

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

.staff-image {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 10px;
    border: 3px solid var(--primary-color);
}

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

.staff-role {
    font-size: 14px;
    color: #666;
    margin: 0;
    text-align: center;
}

.program-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
    margin-top: 20px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}



.program-card {
    display: flex;
    flex-direction: column;
    padding: 20px;
    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;
    text-align: center;
    align-items: center;
    border-left: 4px solid #6c5ce7;
}

.program-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    background-color: #f0f0f0;
}

.program-name {
    font-weight: bold;
    font-size: 18px;
    margin: 0 0 10px;
    text-align: center;
    color: #333;
}

.program-schedule {
    font-size: 15px;
    color: #666;
    margin: 0;
    text-align: center;
    font-style: italic;
}

.contact-container {
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin-top: 20px;
}

@media screen and (min-width: 768px) {
    .contact-container {
        flex-direction: row;
        align-items: flex-start;
    }
    
    .contact-info {
        flex: 1;
        margin-right: 30px;
    }
    
    .contact-form-container {
        flex: 1;
    }
}

.contact-info {
    margin-bottom: 20px;
}

.contact-info-grid {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact-info-item {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    transition: transform 0.2s ease;
    text-align: center;
}



.contact-info-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.contact-info-item i {
    font-size: 24px;
    color: var(--primary-color);
    margin-top: 5px;
}

.contact-text {
    font-size: 15px;
    color: #333;
}

.contact-item i {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    margin-bottom: 10px;
    font-size: 20px;
}

/* Formulario de contacto */
.contact-form-container {
    background-color: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

@media screen and (max-width: 768px) {
    .contact-form-container h3 {
        text-align: center;
    }
    
    .btn-submit {
        align-self: center;
        width: 100%;
        max-width: 200px;
    }
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.form-group label {
    font-weight: 500;
    color: #333;
}

.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;
    }
}

@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;
    }
}

