/* Configuración General */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: #f8f6fc;
    color: #333;
    line-height: 1.6;
}

/* Header */
.hero {
    background: linear-gradient(135deg, #c3aed6 0%, #f3abb6 100%);
    height: 60vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: #2b2238;
    padding: 20px;
}

.hero h1 {
    font-family: 'Playfair Display', serif;
    font-size: 4rem;
    margin-bottom: 10px;
}

.hero .subtitle {
    font-style: italic;
    font-size: 1.2rem;
    margin-bottom: 25px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* Botones */
.btn-primary, .btn-album {
    display: inline-block;
    padding: 12px 25px;
    background-color: #7b5294;
    color: #fff;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(123, 82, 148, 0.2);
}

.btn-primary:hover, .btn-album:hover {
    background-color: #5a3a6e;
    transform: translateY(-2px);
}

/* Biografía y Foto */
.bio-section {
    display: flex;
    gap: 40px;
    align-items: center;
    margin-bottom: 60px;
    background: #ffffff;
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.03);
}

.bio-section .main-img {
    flex: 1;
}

.bio-section .main-img img {
    width: 100%;
    height: 450px;
    object-fit: cover;
    border-radius: 15px;
    box-shadow: 0 8px 15px rgba(0,0,0,0.1);
}

.bio-text {
    flex: 1.2;
}

.bio-text h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.2rem;
    color: #4a3356;
    margin-bottom: 15px;
}

.bio-text p {
    margin-bottom: 15px;
    color: #555;
}

/* Estadísticas */
.stats-grid {
    display: flex;
    gap: 20px;
    margin-top: 25px;
}

.stat-card {
    background-color: #f3ebf7;
    padding: 15px;
    border-radius: 10px;
    text-align: center;
    flex: 1;
}

.stat-card span {
    display: block;
    font-size: 1.8rem;
    font-weight: 700;
    color: #7b5294;
}

.stat-card p {
    font-size: 0.8rem;
    margin: 0;
    color: #666;
}

/* Regrabaciones */
.re-recordings {
    background-color: #ece3f5;
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    margin-bottom: 60px;
}

.re-recordings h2 {
    font-family: 'Playfair Display', serif;
    color: #4a3356;
    margin-bottom: 10px;
}

/* Sección de Álbumes */
.albums-section h2, .videos-section h2 {
    text-align: center;
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    color: #4a3356;
}

.section-intro {
    text-align: center;
    color: #666;
    margin-bottom: 30px;
}

.grid-albums {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.album-card {
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
}

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

.album-img img {
    width: 100%;
    height: 280px;
    object-fit: cover;
}

.album-info {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.album-info h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    color: #333;
}

.album-info .year {
    font-size: 0.85rem;
    color: #7b5294;
    font-weight: 600;
    margin-bottom: 10px;
}

.album-info p {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 20px;
    flex-grow: 1;
}

/* ==========================================
   NUEVA SECCIÓN DE VIDEOS EN UNA SOLA FILA 
   ========================================== */
.videos-section {
    margin: 60px 0;
}

.grid-videos-row {
    display: flex !important;
    flex-direction: row !important; /* Fuerza dirección en fila */
    justify-content: space-between;
    align-items: stretch;
    gap: 20px;
    width: 100%;
    overflow-x: auto; /* Permite scroll suave si la pantalla es muy pequeña */
}

.video-card-inline {
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
    border: 1px solid #eae2f2;
    flex: 1 1 0; /* Obliga a los 3 recuadros a medir exactamente lo mismo */
    min-width: 280px; /* Tamaño mínimo para no deformarse */
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: transform 0.3s ease;
}

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

.video-header {
    padding: 12px 15px;
    background: #fbf9fc;
    border-bottom: 1px solid #f0e6f5;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.video-header h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1rem;
    color: #4a3356;
    margin: 0;
}

.era-tag {
    font-size: 0.7rem;
    background-color: #ede4f5;
    color: #7b5294;
    padding: 3px 8px;
    border-radius: 12px;
    font-weight: 600;
}

.iframe-container {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* Mantener video en 16:9 */
    height: 0;
    background-color: #000;
}

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

.video-footer {
    padding: 10px 15px;
    text-align: right;
    background: #ffffff;
}

.btn-yt-small {
    font-size: 0.8rem;
    color: #cc0000;
    text-decoration: none;
    font-weight: 600;
}

.btn-yt-small:hover {
    text-decoration: underline;
}

/* Banner Redirección Escuela */
.school-redirect {
    margin: 60px 0;
}

.redirect-card {
    background: linear-gradient(135deg, #4a3356 0%, #7b5294 100%);
    color: #fff;
    padding: 40px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 8px 25px rgba(74, 51, 86, 0.25);
}

.redirect-card h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.2rem;
    margin-bottom: 15px;
    color: #ffd1dc;
}

.redirect-card p {
    max-width: 700px;
    margin: 0 auto 25px auto;
    font-size: 1.05rem;
    opacity: 0.95;
}

.btn-eras {
    display: inline-block;
    padding: 14px 32px;
    background-color: #ffd1dc;
    color: #33233c;
    text-decoration: none;
    border-radius: 30px;
    font-weight: 700;
    transition: all 0.3s ease;
}

.btn-eras:hover {
    background-color: #ffffff;
    transform: scale(1.05);
}

/* Banner Spotify */
.redirect-banner {
    margin-top: 60px;
    background: linear-gradient(135deg, #e3d3f2 0%, #fcdbe1 100%);
    padding: 40px;
    border-radius: 20px;
    text-align: center;
}

.redirect-banner h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    margin-bottom: 10px;
    color: #333;
}

.redirect-banner p {
    margin-bottom: 20px;
    color: #555;
}

footer {
    text-align: center;
    padding: 25px;
    background-color: #33233c;
    color: #f3abb6;
    margin-top: 60px;
}

/* Reglas especiales Eras Tour */
.eras-hero {
    background: linear-gradient(135deg, #7b5294 0%, #33233c 100%);
    color: #fff;
}

.eras-hero h1 {
    color: #ffd1dc;
}

.grid-stadiums {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.stadium-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0,0,0,0.03);
}

.stadium-img img {
    width: 100%;
    height: 160px;
    object-fit: cover;
}

.stadium-info {
    padding: 18px;
}

.stadium-info h3 {
    color: #4a3356;
    margin-bottom: 5px;
}

.stadium-info .location {
    font-size: 0.85rem;
    font-weight: 600;
    color: #7b5294;
    margin-bottom: 10px;
}

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

.era-detail-card {
    background: #fff;
    border-radius: 18px;
    overflow: hidden;
    display: flex;
    box-shadow: 0 5px 18px rgba(0,0,0,0.05);
}

.era-img {
    flex: 1;
    min-width: 300px;
}

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

.era-content {
    flex: 1.5;
    padding: 25px;
}

.era-content h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    color: #4a3356;
    margin-bottom: 8px;
}

.era-desc {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 15px;
}

.era-content h4 {
    font-size: 0.95rem;
    color: #7b5294;
    margin-bottom: 8px;
}

.era-content ul {
    padding-left: 20px;
}

.era-content li {
    font-size: 0.9rem;
    color: #444;
    margin-bottom: 4px;
}

/* Celulares */
@media (max-width: 768px) {
    .bio-section, .era-detail-card {
        flex-direction: column;
    }
    .grid-videos-row {
        flex-direction: column !important; /* En celular se acomodan vertical para no romper la pantalla */
    }
}
/* Ajuste perfecto para las fotos de los videos */
.iframe-container img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Recorta suavemente la imagen para llenar el recuadro sin deformarla */
    display: block;
    border-radius: 8px; /* Opcional: para que mantenga las esquinas redondeadas */
}
/* Corrección para que las fotos dentro del contenedor de video se vean sí o sí */
.iframe-container {
    position: relative;
    width: 100%;
    height: 220px; /* Le da una altura fija y visible al recuadro */
    overflow: hidden;
    border-radius: 8px;
}

.iframe-container a {
    display: block;
    width: 100%;
    height: 100%;
}

.iframe-container img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block !important;
}