:root {
    --color-guinda: #5a1221;
    --color-guinda-oscuro: #3c0b15;
    --color-crema: #fdfbf7;
    --color-crema-oscuro: #f2ebd9;
    --color-texto: #2c2c2c;
    --color-acento: #8c1d34;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: var(--color-crema);
    color: var(--color-texto);
    line-height: 1.6;
}

/* --- MENÚ DE NAVEGACIÓN --- */
header {
    background-color: var(--color-guinda);
    color: var(--color-crema);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem 2rem;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    letter-spacing: 1px;
    color: var(--color-crema);
    text-decoration: none;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 1.5rem;
}

.nav-menu a {
    color: var(--color-crema);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    padding: 0.5rem 0.8rem;
    border-radius: 4px;
}

.nav-menu a:hover, .nav-menu a.active {
    background-color: var(--color-acento);
    color: white;
}

/* --- HERO SECTION (PORTADA ESPECTACULAR) --- */
.hero {
    background: linear-gradient(135deg, var(--color-guinda-oscuro), var(--color-guinda));
    color: var(--color-crema);
    padding: 6rem 2rem;
    text-align: center;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--color-crema);
}

.hero p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto 2rem auto;
    opacity: 0.9;
}

.btn-principal {
    background-color: var(--color-crema);
    color: var(--color-guinda);
    padding: 0.8rem 2rem;
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.btn-principal:hover {
    background-color: var(--color-crema-oscuro);
    transform: translateY(-2px);
}

/* --- SECCIÓN DE CONTENIDO DINÁMICO / DESTACADOS --- */
.container {
    max-width: 1200px;
    margin: 4rem auto;
    padding: 0 2rem;
}

.section-title {
    text-align: center;
    font-size: 2.2rem;
    color: var(--color-guinda);
    margin-bottom: 3rem;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background-color: var(--color-acento);
    margin: 0.5rem auto 0 auto;
    border-radius: 2px;
}

.grid-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(90, 18, 33, 0.08);
    border-top: 4px solid var(--color-guinda);
    transition: transform 0.3s ease;
}

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

.card-content {
    padding: 2rem;
}

.card-content h3 {
    color: var(--color-guinda);
    margin-bottom: 1rem;
    font-size: 1.4rem;
}

/* --- PIE DE PÁGINA (FOOTER) --- */
footer {
    background-color: var(--color-guinda-oscuro);
    color: var(--color-crema);
    text-align: center;
    padding: 2rem;
    margin-top: 4rem;
}

footer p {
    opacity: 0.8;
    font-size: 0.95rem;
}

/* --- CARRUSEL DE IMÁGENES ESPECTACULAR (ANCHO TOTAL) --- */
.carousel-container {
    width: 100%;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    margin-bottom: 2rem;
}

.carousel-slide {
    display: none;
    position: relative;
    width: 100%;
    height: 500px; /* Altura generosa para que luzca espectacular */
}

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

.carousel-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(60, 11, 21, 0.9), transparent);
    color: var(--color-crema);
    padding: 3rem 2rem 2rem 2rem;
    text-align: center;
}

.carousel-caption h3 {
    font-size: 2.2rem;
    margin-bottom: 0.5rem;
}

.carousel-caption p {
    font-size: 1.2rem;
    opacity: 0.95;
}

/* Botones de navegación del carrusel */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(90, 18, 33, 0.6);
    color: white;
    border: none;
    padding: 1rem;
    cursor: pointer;
    font-size: 1.2rem;
    transition: background 0.3s;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.carousel-btn:hover {
    background-color: var(--color-guinda);
}

.carousel-btn.prev {
    left: 20px;
}

.carousel-btn.next {
    right: 20px;
}

/* Animación de desvanecimiento suave */
.fade {
    animation-name: fadeEffect;
    animation-duration: 1.5s;
}

@keyframes fadeEffect {
    from { opacity: 0.4; }
    to { opacity: 1; }
}

/* --- MEDIA QUERIES PARA RESPONSIVIDAD TOTAL --- */
@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        gap: 1rem;
    }

    .nav-menu {
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.8rem;
    }

    .hero h1 {
        font-size: 2.2rem;
    }

    .carousel-slide {
        height: 320px; /* Se adapta perfectamente en celulares */
    }

    .carousel-caption h3 {
        font-size: 1.4rem;
    }
    
    .carousel-caption p {
        font-size: 0.95rem;
    }
}

/* --- SECCIÓN DE MÚSICA Y VIDEOS --- */
.music-container {
    max-width: 1200px;
    margin: 3rem auto;
    padding: 0 2rem;
}

/* Cuadrícula de 3 columnas por fila */
.music-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 3rem;
}

.music-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(90, 18, 33, 0.08);
    border-top: 4px solid var(--color-guinda);
    display: flex;
    flex-direction: column;
}

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* Relación de aspecto 16:9 para YouTube */
    height: 0;
    overflow: hidden;
    background: #000;
}

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

.music-card-content {
    padding: 1.2rem;
    text-align: center;
}

.music-card-content h3 {
    color: var(--color-guinda);
    font-size: 1.1rem;
    margin-bottom: 0;
}

/* --- ESTILOS DEL PAGINADOR --- */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin: 4rem 0;
    flex-wrap: wrap;
}

.pagination a, .pagination span {
    padding: 0.6rem 1rem;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.pagination a {
    background-color: white;
    color: var(--color-guinda);
    border: 1px solid var(--color-guinda);
}

.pagination a:hover {
    background-color: var(--color-guinda);
    color: white;
}

.pagination .active {
    background-color: var(--color-guinda);
    color: white;
    border: 1px solid var(--color-guinda);
}

/* Responsividad para la cuadrícula y pantallas chicas */
@media (max-width: 900px) {
    .music-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 columnas en tablets */
    }
}

@media (max-width: 600px) {
    .music-grid {
        grid-template-columns: 1fr; /* 1 columna en celulares */
    }
}