html{
scroll-behavior:smooth;
}

body{
margin:0;
font-family:Arial, Helvetica, sans-serif;
background-color:#0517a1;
color:#ffffff;
line-height:1.5;
}


/* HEADER */

.header{
text-align:center;
padding-top:20px;
padding-bottom:20px;
}

.site-title{
font-size:50px;
letter-spacing:4px;
margin-bottom:0px;
}

.site-subtitle{
opacity:0.7;
font-size:14px;
margin-bottom:20px;
}

.social{
display:flex;
justify-content:center;
gap:20px;
}

.social a{
color:inherit;
text-decoration:none;
font-size:14px;
opacity:0.7;
transition:opacity .3s;
}

.social a:hover{
opacity:1;
}

/* SUBCATEGORIAS */

.subcategories{

display:flex;
justify-content:center;
gap:30px;

max-width:1200px;

margin-left:auto;
margin-right:auto;

margin-top:10px;
margin-bottom:25px;

font-size:18px;

}

.subcategories a{

text-decoration:none;
color:inherit;

opacity:0.7;

transition:opacity .3s;

}

.subcategories a:hover{

opacity:1;

}

/* GRID */

.video-grid{
display:grid;
grid-template-columns:repeat(3,1fr);
gap:10px;
padding:20px;
max-width:1200px;
margin-left:auto;
margin-right:auto;
}

.thumbnail{
display:block;
overflow:hidden;
background:#222;
}

.thumbnail img{
width:100%;
display:block;
transition:transform .4s;
}

.thumbnail:hover img{
transform:scale(1.08);
}


/* GRID DESKTOP */

@media (min-width:900px){

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

}


/* BOTONES */

.open-videos{
display:flex;
justify-content:center;
gap:25px;
margin-top:20px;
margin-bottom:60px;
}

.open-videos a{
width:50px;
height:50px;
border-radius:50%;
border:1px solid currentColor;
display:flex;
align-items:center;
justify-content:center;
text-decoration:none;
font-size:28px;
color:inherit;
transition:transform .3s,opacity .3s;
}

.open-videos a:hover{
transform:scale(1.1);
opacity:.7;
}


/* SECCION VIDEOS */

.videos{
display:none;
max-width:900px;
margin-left:auto;
margin-right:auto;
padding-left:20px;
padding-right:20px;
padding-bottom:120px;
}


/* ABRIR CON BOTON + */

#open:target + .videos{
display:block;
}


/* ABRIR TAMBIEN SI UN VIDEO ES TARGET */

.videos:has(.video-page:target){
display:block;
}


/* VIDEO */

.video-page{
margin-bottom:120px;
scroll-margin-top:60px;
}

.video-page h2{
font-size:20px;
margin-bottom:20px;
letter-spacing:1px;
}


/* CONTENEDOR VIDEO */

.video-container{
position:relative;
width:100%;
padding-top:3%;
margin-bottom:20px;
}

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

/* VIDEO */

.video-container{
width:100%;
margin-top:20px;
margin-bottom:20px;
}

.video-container video{
width:100%;
height:auto;
display:block;
background:black;
}

/* PAGINA DE VIDEO */

.video-page{
margin-bottom:80px;
}

.video-page h2{
margin-bottom:15px;
font-size:20px;
}

.video-description{
opacity:0.7;
font-size:14px;
margin-bottom:20px;
}

/* DESCRIPCION */

.video-description{
opacity:.8;
font-size:14px;
margin-bottom:30px;
}


/* FORMULARIO */

.comment-form{
display:flex;
flex-direction:column;
gap:10px;
}

.comment-form input{
padding:10px;
background:#1a1a1a;
border:1px solid #333;
color:white;
}

.comment-form textarea{
padding:10px;
background:#1a1a1a;
border:1px solid #333;
color:white;
min-height:80px;
resize:vertical;
}

.comment-form button{
padding:10px;
background:white;
color:black;
border:none;
cursor:pointer;
font-weight:bold;
transition:opacity .3s;
}

.comment-form button:hover{
opacity:.8;
}

footer { padding:0px; max-width:760px; margin:0 auto; width:100%;
  display:flex; align-items:center; justify-content:space-between; gap:16px; flex-wrap:wrap; font-size:0.95rem; }

/* MODO CLARO */
