body{
    margin: 0;
    display: flex;
    background-color: black;
    display: flex;
    flex-direction: column;
    margin-bottom: 30px;
}

header{
    color: white;
    border-bottom: 1px solid white;
}

.imgLogo{
    height: 40px;
    width: 40px;
    margin-left: 3px;
    margin-top: 10px;
    margin-right: 20px;
}

.headArriba{
    display: flex;
    flex-direction: row;
}

.contBanner {
  position: relative;
  overflow: hidden;
  font-family: Arial, sans-serif;
  margin-bottom: 30px;
}

.contBanner img {
    width: 100%;
    display: block;
}

.cuadrado {
  position: absolute;
  bottom: 50px; 
  left: 20px;   
  display: flex;
  flex-direction: column;
  gap: 15px;    
}

.edad {
  background-color: gray;
  color: white;
  height: 20px;
  width: 30px;
  padding: 4px 8px;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
}


.titulo{
  color: white;
  margin: 0;
  font-size: 24px;
  text-transform: uppercase;
  letter-spacing: 1px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5); 
}

.menu{
    display: flex;
    flex-direction: row;
    color: white;
    
}

.menu h4{
    margin-left: 20px;
    cursor: pointer;
}

.menu h4:hover {
    border-bottom: 2px solid white;
    padding-bottom: 5px;          
}

/* Menu Detalles */

.cabeceraDeta{
    display: flex;
    flex-direction: column;
    color: white;
}

.tituloDetalles{
    display: flex;
    flex-direction: row;
    margin-left: 25px;
}

.tituloDetalles h2{
    margin-right: 12px;
}

.cuadrado2 {
    display: flex;         
    align-items: center;    
    gap: 15px;             
    margin-left: 25px;
}

.edad {
    background-color: gray;
    color: white;
    padding: 10px 15px;
    font-weight: bold;
    font-size: 1.5rem;
    min-width: 50px;      
    text-align: center;
}


.recomendacion {
    display: flex;
    flex-direction: column; 
    justify-content: center;
}


.avisoEdad {
    margin: 0;             
    line-height: 1.2;      
    color: white;          
    font-weight: bold;
}

.detallesIzq img{
    height: 100vh;
    margin-right: 120px;
}

.mainDet{
    margin-top: 40px;
    margin-left: 25px;
    display: flex;
    flex-direction: row;
}

.detallesCen{
    color: white;
}

.detallesCen h3{
    color: gray;
    margin-bottom: 40px;
}

.detallesCen p{
    font-size: large;
}

.detallesDer{
    color: white;
    margin-left: 120px;
}

.detallesDer h3{
    color: gray;
    margin-bottom: 40px;
}

.detallesDer span{
    color: gray;
}

.gris{
    color: gray;
}

.detallesDer p{
    margin-bottom: 18px;
}

.footerDetalles{
    margin-top: 40px;
    margin-left: 380px;
}

.footerDetalles img{
    height: 500p;
    width: 500px;
}

.footerDetalles p{
    color: white;
}


/* Menu Capitulos */

#episodios.active {
    display: flex;
    flex-direction: column;
    margin-left: 25px;
}

#episodios h2{
    color: white;
}

#episodios img{
    margin: 0 0 10px 0; 
    width: 100%;        
    height: auto;       
    display: block;
}

#episodios p{
    font-size: large;
}

.bloque1, .bloque2, .bloque3 {
    display: flex;
    flex-direction: row;
    margin-bottom: 40px; 
    justify-content: flex-start; 
}

.cap1, .cap2, .cap3, .cap4, .cap5, .cap6{
    color: white;
    width: 45%;        
    margin-left: 25px;  
    color: white;
}

#trailers h3{
    color: white;
}

/* Menu Trailers */

#trailers.active{
    display: flex;
    flex-direction: column;
}

.bloqueTr1, .bloqueTr2, .bloqueTr3{
    display: flex;
    flex-direction: row;
    width: 98vw;
}

#trailers h2{
    color: white;
    margin-left: 600px;
}

#trailers p{
    color: white;
    font-size: large;
}

.trailer1, .trailer2, .trailer3, .trailer4, .trailer5{
    margin-left: 60px;
    width: 49vw;
    height: 300px;
}

.trailer1 iframe{
    width: 90%;          
    height: 80%;         
    border-radius: 8px;   
    box-shadow: 0 4px 15px rgba(0,0,0,0.5); 
}

.trailer2 iframe{
    width: 90%;          
    height: 80%;         
    border-radius: 8px;   
    box-shadow: 0 4px 15px rgba(0,0,0,0.5); 
}

.trailer3 iframe{
    width: 90%;          
    height: 80%;        
    border-radius: 8px;  
    box-shadow: 0 4px 15px rgba(0,0,0,0.5); 
}

.trailer4 iframe{
    width: 90%;         
    height: 80%;         
    border-radius: 8px;   
    box-shadow: 0 4px 15px rgba(0,0,0,0.5); 
}

.trailer5 iframe{
    width: 90%;          
    height: 80%;         
    border-radius: 8px;   
    box-shadow: 0 4px 15px rgba(0,0,0,0.5); 
}

.bloqueCo1, .bloqueCo2{
    display: flex;
    flex-direction: row;
    width: 98vw;
}

.colaboracion1, .colaboracion2, .colaboracion3{
    margin-left: 60px;
    width: 49vw;
    height: 300px;
}

.colaboracion1 iframe{
    width: 90%;          
    height: 80%;        
    border-radius: 8px;   
    box-shadow: 0 4px 15px rgba(0,0,0,0.5);
}

.colaboracion2 iframe{
    width: 90%;          
    height: 80%;         
    border-radius: 8px;   
    box-shadow: 0 4px 15px rgba(0,0,0,0.5); 
}

.colaboracion3 iframe{
    width: 90%;         
    height: 80%;         
    border-radius: 8px;   
    box-shadow: 0 4px 15px rgba(0,0,0,0.5); 
}

/* Menu Educacion */

#educacion .active{
    display: flex;
    flex-direction: column;
    width: 98vw;
}

.imagenesPremios img{
    width: 80vw;
    margin-left: 120px;
    margin-top: 70px;
}

.imagenesPremios h2{
    color: white;
    margin-left: 48vw;
}

.imgTalleres{
    width: 98vw;
    display: flex;
    flex-direction: column;
}



.bloqueTa1, .bloqueTa2, .bloqueTa3, .bloqueTa4{
    width: 98vw;
    display: flex;
    flex-direction: row;
}

.talleresIzq{
    display: flex;
    flex-direction: column;
}

.talleresIzq img{
    margin-bottom: 40px;
    margin-left: 30px;
}

#educacion p{
    color: white;
    margin-left: 50px;
    font-size: x-large;
}

#educacion h4{
    color: white;
    margin-left: 400px;
}

.bloqueTa2 img{
    height: 250px;
    margin-left: 50px;
    margin-bottom: 40px;
}

.bloqueTa3 img{
    height: 250px;
    margin-left: 50px;
    margin-bottom: 40px;
}

.bloqueTa4 img{
    height: 250px;
    margin-left: 50px;
    margin-bottom: 40px;
}

/* Oculta todas las secciones por defecto */
.tab-content {
    display: none;
}

/* Solo muestra la que tenga la clase active */
.tab-content.active {
    display: block;
}

/* Estilo opcional para resaltar el botón del menú activo */
.tab-btn.active {
    border-bottom: 2px solid white;
    font-weight: bold;
}

@media (max-width: 768px) {
    
    .headArriba h3 {
        font-size: 14px;
        margin-top: 15px;
    }

    .titulo {
        font-size: 18px;
    }

    .menu {
        overflow-x: auto;
        white-space: nowrap;
        padding-bottom: 10px;
    }

    .mainDet {
        flex-direction: column; 
        margin-left: 15px;
        margin-right: 15px;
    }

    .detallesIzq img {
        height: auto; 
        width: 100%;  
        margin-right: 0;
        margin-bottom: 20px;
    }

    .detallesDer {
        margin-left: 0; 
        margin-top: 30px;
    }

    .bloque1, .bloque2, .bloque3 {
        flex-direction: column;
        margin-left: 0;
    }

    .cap1, .cap2, .cap3, .cap4, .cap5, .cap6 {
        width: 90%; 
        margin-left: 0;
        margin-bottom: 30px;
    }

    .footerDetalles {
        margin-left: 0;
        text-align: center;
        padding: 20px;
    }

    .footerDetalles img {
        width: 80%;
        height: auto;
    }

    #trailers.active, 
    #educacion.active {
        display: flex !important; 
        flex-direction: column;   
        align-items: center;      
        gap: 30px;                
        margin-top: 20px;
    }

    #trailers video, 
    #trailers iframe, 
    #educacion img {
        width: 80%;            
        max-width: 800px;         
        height: auto;
        border-radius: 10px;     
        box-shadow: 0 4px 15px rgba(255,255,255,0.1); 
    }
}