/* Estilos de la plantilla original (extraídos de index.html) */

* {
    margin: 0;
    cursor: url('../img/nota-musical.png'), auto; /* Cursor de nota musical */
    padding: 0;
    box-sizing: border-box;
}

html, body {
    width: 100%;
    height: 100%;
}

body {
    font-family: 'Poppins', sans-serif;
    color: #2d3436;
    background-color: #fafafa;
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    color: #1a1a1a;
    letter-spacing: -0.5px;
}

/* Header */
header {
    background: linear-gradient(135deg, #C41E3A 0%, #8B0000 100%);
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 8px 32px rgba(196, 30, 58, 0.15);
    width: 100%;
}

.logo {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo img {
    height: 80px;
    width: auto;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}

.logo-text h1 {
    font-size: 1.6rem;
    color: white;
    margin: 0;
    letter-spacing: 0.5px;
}

.logo-text p {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.9);
    margin: 0;
    font-weight: 500;
}

nav {
    display: flex;
    gap: 2.5rem;
    flex-wrap: wrap;
}

.menu-toggle {
    display: none; /* Ocultar en desktop */
}

nav a {
    text-decoration: none;
    color: white;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
    letter-spacing: 0.3px;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: white;
    transition: width 0.3s;
}

nav a:hover::after {
    width: 100%;
}

nav a.active::after {
    width: 100%;
}

/* Hero Section con Video */
.hero {
    position: relative;
    width: 100%;
    height: 300px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    text-align: center;
    overflow: hidden;
    background: linear-gradient(135deg, #C41E3A 0%, #8B0000 100%);
}

.hero video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 2rem;
    animation: fadeInUp 0.8s ease-out;
}

.hero h2 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    color: white;
    font-weight: 900;
    letter-spacing: -1px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero p {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    font-weight: 400;
    opacity: 0.95;
    color: white !important;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    padding: 1rem 2.5rem;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    display: inline-block;
    letter-spacing: 0.5px;
}

.btn-primary {
    background: white;
    color: #C41E3A;
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(0,0,0,0.25);
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.btn-secondary:hover {
    background: white;
    color: #C41E3A;
}

/* Banner Slider */
.banner-slider {
    width: 100%;
    height: 500px;
    position: relative;
    overflow: hidden;
    background: #f5f5f5;
}

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

.banner-slide.active {
    opacity: 1;
}

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

.banner-controls {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.banner-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    cursor: pointer;
    transition: all 0.3s;
}

.banner-dot.active {
    background: white;
    width: 30px;
    border-radius: 6px;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    width: 100%;
}

/* Section */
section {
    padding: 5rem 2rem;
    width: 100%;
}

section:nth-child(even) {
    background: #f5f5f5;
}

.section-with-bg {
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
}

.section-with-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(196, 30, 58, 0.8); /* Opacidad roja */
    z-index: 1;
}

.section-with-bg > * {
    position: relative;
    z-index: 2;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2.8rem;
    font-weight: 900;
    letter-spacing: -1px;
    position: relative;
    animation: fadeInDown 0.8s ease-out;
    font-style: italic; /* Títulos cursivos */
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, #C41E3A, #8B0000);
    margin: 1.5rem auto 0;
    border-radius: 2px;
}

/* Animación de desplazamiento de izquierda a derecha */
@keyframes slideInLeft {
    0% {
        transform: translateX(-100%);
        opacity: 0;
    }
    100% {
        transform: translateX(0);
        opacity: 1;
    }
}

.section-title {
    animation: slideInLeft 1s ease-out;
}

/* Grid */
.grid-container {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
    width: 100%;
}

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

.grid-2 {
    grid-template-columns: repeat(2, 1fr);
    align-items: center;
}

/* Card */
.card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 32px rgba(0,0,0,0.05);
}

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

.card-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    position: relative;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

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

.card-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #C41E3A;
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    z-index: 10;
}

.card-content {
    padding: 1.5rem;
}

.card-title {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: #1a1a1a;
}

.card-subtitle {
    font-size: 0.9rem;
    color: #C41E3A;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.card-text {
    font-size: 0.95rem;
    color: #666;
}

/* Search Box */
.search-box {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    align-items: center;
    flex-wrap: wrap;
}

.search-box input,
.search-box select {
    padding: 0.75rem 1rem;
    border: 1px solid #ccc;
    border-radius: 8px;
    flex: 1;
}

.search-box input {
    padding-left: 2.5rem; /* Espacio para el nuevo icono */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512'%3E%3Cpath fill='%23999' d='M416 208c0 45.9-14.9 88.3-40 122.7L502.6 457.4c12.5 12.5 12.5 32.8 0 45.3s-32.8 12.5-45.3 0L330.7 376c-34.4 25.1-76.8 40-122.7 40C93.1 416 0 322.9 0 208S93.1 0 208 0S416 93.1 416 208zM208 352a144 144 0 1 0 0-288 144 144 0 1 0 0 288z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: 0.8rem center;
    background-size: 1.2rem;
}

.search-box select {
    min-width: 200px;
}

/* Footer */
footer {
    background: #1a1a1a;
    padding: 3rem 0 1rem;
    color: white;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    color: #C41E3A;
    margin-bottom: 1.2rem;
    font-size: 1.2rem;
    font-weight: 800;
}

.footer-section p,
.footer-section a {
    color: #ccc;
    text-decoration: none;
    margin-bottom: 0.7rem;
    display: block;
    font-size: 0.95rem;
    transition: color 0.3s;
}

.footer-section a:hover {
    color: #C41E3A;
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid #333;
    padding-top: 2rem;
    color: #999;
    font-size: 0.7rem; /* Reducido a 0.7rem */
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Page Sections */
.page {
    display: none;
    width: 100%;
}

.page.active {
    display: block;
    animation: fadeIn 0.5s ease-in;
    width: 100%;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    overflow-y: auto;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: white;
    border-radius: 16px;
    padding: 2.5rem;
    max-width: 700px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.modal-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: #f5f5f5;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: #999;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.modal-close:hover {
    background: #C41E3A;
    color: white;
}

.profile-image {
    width: 100%;
    height: 300px;
    background: #f5f5f5;
    border-radius: 12px;
    margin-bottom: 2rem;
    overflow: hidden;
}

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

.profile-info {
    margin-bottom: 2rem;
}

.profile-info h2 {
    font-size: 2.2rem;
    margin-bottom: 0.5rem;
    color: #1a1a1a;
}

.profile-info p {
    margin-bottom: 0.8rem;
    color: #666;
    line-height: 1.6;
}

.profile-info strong {
    color: #C41E3A;
    font-weight: 700;
}

/* Social Links */
.social-links {
    display: flex;
    gap: 1rem;
    margin: 1.5rem 0;
    flex-wrap: wrap;
}

.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background: #f5f5f5;
    border-radius: 50%;
    text-decoration: none;
    color: #666;
    transition: all 0.3s;
    font-size: 1.2rem;
}

.social-icon:hover {
    background: #C41E3A;
    color: white;
    transform: translateY(-3px);
}

/* Songs Section */
.songs-section {
    margin: 2rem 0;
    padding: 2rem;
    background: #f9f9f9;
    border-radius: 12px;
}

.songs-section h3 {
    margin-bottom: 1.5rem;
    color: #1a1a1a;
    font-size: 1.3rem;
}

.song-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: white;
    border-radius: 8px;
    margin-bottom: 1rem;
    transition: all 0.3s;
}

.song-item:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.song-play {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #C41E3A, #8B0000);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1rem;
    cursor: pointer;
    flex-shrink: 0;
}

.song-info {
    flex: 1;
}

.song-title {
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 0.3rem;
}

.song-artist {
    font-size: 0.85rem;
    color: #999;
}

/* Video Section */
.video-section {
    margin: 2rem 0;
    padding: 2rem;
    background: #f9f9f9;
    border-radius: 12px;
}

.video-section h3 {
    margin-bottom: 1rem;
    color: #1a1a1a;
    font-size: 1.3rem;
}

.video-container {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 12px;
    background: #000;
}

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

.result-count {
    text-align: center;
    color: #C41E3A;
    font-weight: 700;
    margin-bottom: 1.5rem;
    font-size: 1rem;
}

.no-results {
    text-align: center;
    padding: 3rem;
    color: #999;
    font-size: 1.1rem;
}

/* About Section */
.about-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.about-image {
    width: 100%;
    height: 400px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0,0,0,0.15);
}

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

.about-text h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: #C41E3A;
}

.about-text p {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #555;
    margin-bottom: 1.5rem;
}

/* Responsive */
@media (max-width: 768px) {
    header {
        flex-direction: row;
        justify-content: space-between;
        gap: 0;
    }

    nav {
        position: fixed;
        top: 100px; /* Altura del header */
        left: 0;
        width: 100%;
        height: calc(100vh - 100px);
        background: #C41E3A;
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        padding-top: 2rem;
        transform: translateX(100%);
        transition: transform 0.3s ease-in-out;
        z-index: 99;
    }

    nav.open {
        transform: translateX(0);
    }

    nav a {
        padding: 1rem 0;
        width: 80%;
        text-align: center;
        border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    }

    .menu-toggle {
        display: block;
        background: none;
        border: none;
        color: white;
        font-size: 1.5rem;
        cursor: pointer;
        z-index: 101;
    }

    .hero h2 {
        font-size: 2rem;
    }

    .hero {
        height: 400px;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .grid {
        grid-template-columns: 1fr;
    }

    .grid-3 {
        grid-template-columns: 1fr;
    }

    .grid-2 {
        grid-template-columns: 1fr;
    }

    .modal-content {
        padding: 1.5rem;
    }

    .about-section {
        grid-template-columns: 1fr;
    }

    .search-box {
        flex-direction: column;
    }

    .search-box input,
    .search-box select {
        width: 100%;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }
}

a, button, [onclick] {
    cursor: pointer;
}

/* Estilos adicionales para corregir problemas y aplicar mejoras */

/* 1. Fondo de sección */
.section-quienes {
    background-image: url('../img/fondo-quienes.jpg'); /* Imagen de fondo para Quienes Somos */
}

.section-directorio {
    background-image: url('../img/fondo-directorio.jpg'); /* Imagen de fondo para Directorio */
}

.section-grupos {
    background-image: url('../img/fondo-grupos.jpg'); /* Imagen de fondo para Grupos */
}

.section-comunicados {
    background-image: url('../img/fondo-comunicados.jpg'); /* Imagen de fondo para Comunicados */
}

.section-afiliacion {
    background-image: url('../img/fondo-afiliacion.jpg'); /* Imagen de fondo para Afiliación */
}

/* 2. Texto cursivo dinámico para títulos */
.section-title::before {
    content: attr(data-subtitle); /* Usar un atributo de datos para el texto */
    display: block;
    font-family: 'Poppins', sans-serif;
    font-style: italic;
    font-weight: 400;
    font-size: 1.2rem;
    color: #C41E3A;
    margin-bottom: 0.5rem;
    letter-spacing: 0.5px;
}

/* 3. Espaciado del formulario de Afiliación */
#afiliacion .container {
    padding-top: 3rem; /* Espacio antes del formulario */
    padding-bottom: 3rem; /* Espacio antes del footer */
}

/* 4. Estilo para el apuntador musical (cursor) */
body {
    cursor: url('../img/nota-musical.cur'), auto !important; /* Usar un cursor personalizado */
}

/* 5. Modernización de iconos de redes sociales (usando Font Awesome 6) */
.social-icon i {
    font-size: 1.5rem; /* Ajustar tamaño del icono */
}

/* 6. Estilos para el contador en Quienes Somos */
.counter-box {
    text-align: center;
    padding: 2rem;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 4px 16px rgba(0,0,0,0.05);
    transition: transform 0.3s;
}

.counter-box:hover {
    transform: translateY(-5px);
}

.counter-box .icon {
    font-size: 3rem;
    color: #C41E3A;
    margin-bottom: 0.5rem;
}

.counter-box .number {
    font-size: 2.5rem;
    font-weight: 900;
    color: #1a1a1a;
    display: block;
}

.counter-box .text {
    font-size: 1rem;
    color: #666;
    font-weight: 500;
}

/* --- Estilos de Encabezados de Sección con Fondo de Imagen (Solicitud del Usuario) --- */

.hero-quienes {
    background-image: url('../img/artista-mujer-1.jpg');
    background-size: cover;
    background-position: center;
}

.hero-directorio {
    background-image: url('../img/artista-hombre.jpg');
    background-size: cover;
    background-position: center;
}

.hero-grupos {
    background-image: url('../img/grupo-musical-1.jpg');
    background-size: cover;
    background-position: center;
}

.hero-comunicados {
    background-image: url('../img/slider-02.jpg');
    background-size: cover;
    background-position: center;
}

.hero-afiliacion {
    background-image: url('../img/artista-mujer-3.jpg');
    background-size: cover;
    background-position: center;
}

/* Asegurar que el texto sea visible sobre la imagen */
.hero-quienes .hero-content h2,
.hero-quienes .hero-content p,
.hero-directorio .hero-content h2,
.hero-directorio .hero-content p,
.hero-grupos .hero-content h2,
.hero-grupos .hero-content p,
.hero-comunicados .hero-content h2,
.hero-comunicados .hero-content p,
.hero-afiliacion .hero-content h2,
.hero-afiliacion .hero-content p {
    color: white !important;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.7);
}

/* Ajuste de altura para la versión móvil */
@media (max-width: 768px) {
    .hero {
        height: 200px; /* Altura más pequeña en móvil */
    }

    .hero h2 {
        font-size: 1.8rem;
    }

    .hero p {
        font-size: 1rem;
    }
}

/* Estilos para el formulario de afiliación */
.afiliacion-form-container {
    max-width: 600px;
    margin: 0 auto;
}

.afiliacion-form-container div {
    margin-bottom: 1.5rem;
}

.afiliacion-form-container label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 700;
    color: #1a1a1a;
}

.afiliacion-form-container input[type="text"],
.afiliacion-form-container input[type="email"],
.afiliacion-form-container select,
.afiliacion-form-container textarea {
    width: 100%;
    padding: 0.9rem;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    box-sizing: border-box; /* Asegura que el padding no aumente el ancho */
}

.afiliacion-form-container textarea {
    resize: vertical;
    min-height: 100px;
}

.afiliacion-form-container button[type="submit"] {
    background: #C41E3A;
    color: white;
    padding: 1rem 2rem;
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.3s;
}

.afiliacion-form-container button[type="submit"]:hover {
    background: #8B0000;
}

/* Estilos para las imágenes de redes sociales en el modal */
.social-links img {
    width: 24px;
    height: 24px;
}

/* Estilos para el formulario de afiliación (Clases refactorizadas) */
.afiliacion-form-container {
    max-width: 600px;
    margin: 0 auto;
}

.afiliacion-form-container div {
    margin-bottom: 1.5rem;
}

.afiliacion-form-container label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 700;
    color: #1a1a1a;
}

.form-input {
    width: 100%;
    padding: 0.9rem;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    box-sizing: border-box;
}

.form-submit {
    width: 100%;
    margin-top: 1rem;
}

/* Estilos para las imágenes de redes sociales en el modal */
.social-links img {
    width: 24px;
    height: 24px;
}

.form-message {
    margin-top: 1rem;
    text-align: center;
    display: none;
    color: #C41E3A;
    font-weight: 700;
    font-size: 1.1rem;
}

/* Corrección de espaciado: Margen superior para el contenido principal */
.content-section {
    padding-top: 30px; /* Espacio entre el encabezado y el contenido */
}

/* Estilos para modernizar la sección de comunicados con foto */
.comunicado-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

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

.comunicado-card-image {
    height: 150px;
    overflow: hidden;
}

.comunicado-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.comunicado-card-content {
    padding: 15px;
}

.comunicado-card-content h3 {
    margin-top: 0;
    font-size: 1.2rem;
    color: #C41E3A;
}

.comunicado-card-content p {
    font-size: 0.9rem;
    color: #555;
}

.comunicado-card-content .date {
    display: block;
    margin-top: 10px;
    font-size: 0.8rem;
    color: #999;
}

/* Estilos para los iconos de redes sociales en el footer */
.social-links-footer img {
    width: 30px; /* Aumentar un poco el tamaño para mejor visibilidad */
    height: 30px;
    margin: 0 5px;
    transition: opacity 0.3s;
}

.social-links-footer img:hover {
    opacity: 0.8;
}

/* --- FASE 16: Ajustes de Hero y Video --- */

/* Eliminar el espacio en blanco superior en los heroes de encabezado */
.hero {
    padding-top: 0 !important;
}

/* Aumentar la altura de la sección de video en el inicio */
.hero-inicio-video {
    height: 60vh; /* 60% del alto de la ventana */
    min-height: 450px; /* Altura mínima para desktop */
}

/* Asegurar que el contenido del hero esté centrado verticalmente */
.hero-content {
    padding-top: 0;
    padding-bottom: 0;
}

/* --- FASE 17: Modernización de Actividades de la Institución --- */

/* Asegurar 4 columnas en desktop */
.activities-grid {
    grid-template-columns: repeat(4, 1fr);
}

/* Estilos para las tarjetas de actividad */
.activity-card .card-image {
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    color: white;
    text-align: center;
    padding: 20px;
}

/* Fondo de color para las 3 primeras tarjetas */
.activity-icon-bg {
    background: linear-gradient(135deg, #C41E3A 0%, #8B0000 100%);
    flex-direction: column;
}

/* Fondo de imagen para la última tarjeta (sin filtro) */
.activity-image-bg {
    background-size: cover !important;
    background-position: center !important;
}

.activity-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3); /* Ligero overlay para legibilidad */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.activity-icon {
    font-size: 3rem;
    margin-bottom: 10px;
    color: white; /* Iconos de un solo tono (blanco) */
}

.activity-title {
    margin-top: 0;
    font-size: 1.2rem;
    color: white;
}

/* Media Query para responsive (volver a 2 columnas en tablet y 1 en móvil) */
@media (max-width: 1024px) {
    .activities-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .activities-grid {
        grid-template-columns: 1fr;
    }
}

/* --- FASE 18: Modernización de Iconos de Búsqueda y Fichas --- */

/* Modernización de Iconos de Búsqueda */
.search-box select {
    /* Eliminar los iconos de emoji y usar solo texto */
    font-weight: 600;
    color: #C41E3A;
    border-color: #C41E3A;
    background-color: #fff;
    transition: all 0.3s;
}

.search-box select:hover {
    background-color: #f5f5f5;
}

/* Modernización de Ficha de Músico (Modal) */
.modal-content {
    border-radius: 15px;
    max-width: 900px;
}

.perfil-social-links a {
    color: #C41E3A;
    font-size: 1.5rem;
    margin: 0 10px;
    transition: color 0.3s;
}

.perfil-social-links a:hover {
    color: #8B0000;
}

/* Estilo para los iconos de la ficha de músico (un solo tono) */
.perfil-info i {
    color: #C41E3A; /* Tono principal de la marca */
    margin-right: 8px;
}

/* --- FASE 19: Mejoras en Misión y Visión --- */

.section-mision-vision {
    background: url('../img/grupo-musical-2.jpg') no-repeat center center;
    background-size: cover;
    position: relative;
    padding: 6rem 2rem;
}

.section-mision-vision::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85); /* Overlay más oscuro para garantizar contraste y legibilidad (WCAG) */
    z-index: 1;
}

.section-mision-vision .section-title,
.section-mision-vision .mision-vision-card {
    position: relative;
    z-index: 2;
    color: white;
}

.mision-vision-grid {
    gap: 3rem;
}

.mision-vision-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s, background 0.3s;
}

.mision-vision-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.2);
}

.mision-vision-card .card-content {
    padding: 2rem;
    color: white;
}

.mision-icon {
    font-size: 3rem;
    color: #C41E3A; /* Icono de color primario */
    margin-bottom: 1rem;
    display: block;
}

.mision-vision-card h3 {
    color: white;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.mision-vision-card p {
    font-size: 1rem;
    line-height: 1.8;
}

/* --- FASE 22: Ajuste Fino de Iconografía en Ficha de Músico --- */

/* Asegurar que los iconos de la ficha de músico sean visibles y modernos */
.perfil-info p {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
    font-size: 1rem;
}

.perfil-info i {
    color: #C41E3A; /* Tono principal de la marca */
    margin-right: 10px;
    font-size: 1.1rem;
    /* Usar iconos solidos para un look moderno y de un solo tono */
    font-weight: 900; 
}

/* Estilo para la sección de canciones */
.songs-section h3 {
    display: flex;
    align-items: center;
    gap: 10px;
}

.songs-section h3 i {
    color: #C41E3A;
    font-size: 1.5rem;
}

/* Modernizar el icono de reproducción de la canción */
.song-play {
    color: #C41E3A;
    font-size: 1.2rem;
    font-weight: bold;
    margin-right: 10px;
    line-height: 1;
}

/* --- FASE 28: Unificación Global de Iconografía --- */

/* Forzar el color principal de la marca a todos los iconos de Font Awesome (excepto en el header y footer) */
i.fas, i.fab {
    color: #C41E3A !important;
}

/* Excepciones para el header (debe ser blanco) */
header i.fas, header i.fab {
    color: white !important;
}

/* Excepciones para el footer (debe ser blanco) */
footer i.fas, footer i.fab {
    color: white !important;
}

/* Excepciones para los heroes (debe ser blanco) */
.hero i.fas, .hero i.fab {
    color: white !important;
}

/* Excepciones para las tarjetas de actividad (debe ser blanco) */
.activity-icon-bg i.fas, .activity-overlay i.fas {
    color: white !important;
}

/* Excepciones para el modal de perfil (ya tiene un estilo específico, pero lo reforzamos) */
.perfil-info i.fas {
    color: #C41E3A !important;
}

/* Asegurar que el icono de reproducción de la canción sea del color principal */
.song-play i.fas {
    color: #C41E3A !important;
}

/* Asegurar que los iconos de Misión/Visión sean del color principal */
.mision-icon {
    color: #C41E3A !important;
}

/* ========================================
   FASE 36: ANIMACIONES Y TRANSICIONES MODERNAS
   ======================================== */

/* Animación de entrada para las tarjetas */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.card {
    animation: fadeInUp 0.6s ease-out;
    animation-fill-mode: both;
}

/* Retraso escalonado para las tarjetas */
.card:nth-child(1) { animation-delay: 0.1s; }
.card:nth-child(2) { animation-delay: 0.2s; }
.card:nth-child(3) { animation-delay: 0.3s; }
.card:nth-child(4) { animation-delay: 0.4s; }
.card:nth-child(5) { animation-delay: 0.5s; }
.card:nth-child(6) { animation-delay: 0.6s; }

/* Transiciones suaves para todos los elementos interactivos */
a, button, .card, .nav-link, .social-icon {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Animación de hover para botones */
.btn:hover, button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(196, 30, 58, 0.3);
}

/* Animación de hover para tarjetas */
.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

/* Animación de entrada para los títulos de sección */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.section-title {
    animation: fadeIn 0.8s ease-out;
}

/* Animación de hover para los iconos de redes sociales */
.social-icon:hover {
    transform: scale(1.2) rotate(5deg);
}

/* Animación de entrada para el hero */
.hero-content {
    animation: fadeInUp 1s ease-out;
}

/* Transición suave para el menú móvil */
.main-nav {
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ========================================
   FASE 37: TIPOGRAFÍA MODERNA Y PALETA REFINADA
   ======================================== */

/* Mejoras tipográficas globales */
body {
    font-size: 16px;
    line-height: 1.7;
    letter-spacing: 0.3px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    letter-spacing: -0.5px;
    line-height: 1.3;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 3rem;
    position: relative;
    letter-spacing: -1px;
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #C41E3A, #8B0000);
    margin: 1rem auto 0;
    border-radius: 2px;
}

/* Subtítulos de sección */
.section-title[data-subtitle]::before {
    content: attr(data-subtitle);
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #C41E3A;
    margin-bottom: 0.5rem;
}

/* Paleta de colores refinada */
:root {
    --color-primary: #C41E3A;
    --color-primary-dark: #8B0000;
    --color-primary-light: #E63950;
    --color-secondary: #1a1a1a;
    --color-text: #333333;
    --color-text-light: #666666;
    --color-bg: #ffffff;
    --color-bg-light: #f8f9fa;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.16);
}

/* Aplicar colores refinados */
p {
    color: var(--color-text);
}

.card-text, .card-subtitle {
    color: var(--color-text-light);
}

/* ========================================
   FASE 38: DISEÑO DE TARJETAS MODERNO
   ======================================== */

/* Diseño de tarjetas sofisticado */
.card {
    background: var(--color-bg);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    cursor: pointer;
    position: relative;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(196, 30, 58, 0.05), rgba(139, 0, 0, 0.05));
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
}

.card:hover::before {
    opacity: 1;
}

.card-image {
    position: relative;
    overflow: hidden;
    height: 220px;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.card-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(196, 30, 58, 0.95);
    color: white;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 12px rgba(196, 30, 58, 0.3);
}

.card-content {
    padding: 1.5rem;
}

.card-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 0.8rem;
    color: var(--color-secondary);
}

.card-subtitle {
    font-size: 0.95rem;
    color: var(--color-text-light);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.card-text {
    font-size: 0.9rem;
    color: var(--color-text-light);
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Efecto de brillo en hover */
.card::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent 30%,
        rgba(255, 255, 255, 0.1) 50%,
        transparent 70%
    );
    transform: rotate(45deg);
    transition: all 0.6s;
    opacity: 0;
}

.card:hover::after {
    opacity: 1;
    left: 100%;
}

/* ========================================
   FASE 39: OPTIMIZACIÓN DE ESPACIADOS Y DISEÑO LIMPIO
   ======================================== */

/* Espaciados optimizados */
.container {
    padding: 4rem 2rem;
}

section {
    margin-bottom: 4rem;
}

.grid {
    gap: 2rem;
}

/* Footer moderno */
footer {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    padding: 3rem 2rem 2rem;
    margin-top: 6rem;
}

footer .container {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    color: white;
    font-size: 1.2rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.footer-section p {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.8;
}

.social-links-footer {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.social-links-footer .social-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    backdrop-filter: blur(10px);
}

.social-links-footer .social-icon:hover {
    background: var(--color-primary);
    transform: translateY(-4px);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
}

/* Formulario moderno */
.form-input, .form-select {
    width: 100%;
    padding: 1rem 1.2rem;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s;
    background: white;
}

.form-input:focus, .form-select:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 4px rgba(196, 30, 58, 0.1);
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
    color: white;
    padding: 1rem 2.5rem;
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(196, 30, 58, 0.3);
}

.btn-primary:hover {
    box-shadow: 0 8px 24px rgba(196, 30, 58, 0.4);
}

/* Buscador moderno */
.search-box {
    background: white;
    padding: 1.5rem;
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    margin-bottom: 2rem;
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.search-box input, .search-box select {
    flex: 1;
    min-width: 200px;
    padding: 0.9rem 1.2rem;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s;
}

.search-box input:focus, .search-box select:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 4px rgba(196, 30, 58, 0.1);
}

/* Texto informativo del formulario */
.form-info-text {
    margin-top: 1rem;
    font-size: 0.9rem;
    color: var(--color-text-light);
    text-align: center;
    font-style: italic;
    line-height: 1.6;
}

/* ========================================
   SECCIONES ESPECIALES (Clases, 15 Años, TV)
   ======================================== */

.card-special {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.card-special:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.card-special img {
    width: 100%;
    height: 350px;
    object-fit: cover;
}

.card-special-tv img {
    height: 120px;
    object-fit: contain;
    background: white;
    padding: 0.5rem;
}

.card-special-content {
    padding: 1.5rem;
}

.card-special-content h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--color-secondary);
}

.card-special-content p {
    font-size: 0.95rem;
    color: var(--color-text-light);
}

.card-special-tv {
    /* Mantener en la misma fila */
}

.card-special-tv .card-special-content {
    padding: 1rem;
}

.card-special-tv iframe {
    border-radius: 12px;
    margin-top: 1rem;
}

@media (max-width: 768px) {
    .card-special-tv {
        grid-column: span 1;
    }
}
