* {
  box-sizing: border-box;
}

body {
  font-family: 'Trebuchet MS';
  margin: 0;
  color: hsla(0, 0%, 100%, 0.699);
  background-color: rgb(39, 55, 92);
  min-height: 100vh;
}

h1,
h2,
h3,
h4,
a {
  font-family: system-ui, sans-serif;
}

h1,
h2,
h3,
h4 {
  color: hsl(0, 0%, 71%);
}

h2 {
  color: #a7a6a5;
}

img {
  max-width: 100%;
}

a {
  text-decoration: none;
  color: #545eb8;
  font-weight: bold;
}

a:hover,
a:focus-visible {
  color: #f7d022
}

ul,
ol {
  list-style: none;
  padding: 0;
}

.contenedora {
  width: min(75rem, calc(100% - 2rem));
  margin-inline: auto;
}

figure {
  margin: 0;
}

header,
footer {
  background-color: hsla(239, 48%, 21%, 0.521);
  color: rgba(245, 245, 245, 0.233);
  padding-block: 1rem;
}

header {
  box-shadow: 0 4px 4px hsl(0 0% 0% / 25%);
}

header .contenedora {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1em;
}

header nav ul {
  display: flex;
  gap: 0.5em;
}

header nav a {
  color: #92823a;
  display: block;
  width: fit-content;
  padding-inline: 1rem;
}

header nav a:hover,
header nav a:focus-visible {
  color: #f7d022
}

#menu-toggle {
  display: none;
}

.menu-icon {
  display: none;
  font-size: 2rem;
  cursor: pointer;
  color: #d3b21a;
}

@media (max-width: 768px) {
  .menu-icon {
    display: block;
    margin-left: auto;
    order: 2;
  }

  #menu-toggle {
    order: 1;
  }

  nav.menu {
    display: none;
    order: 3;
    width: 100%;

  }


  #menu-toggle:checked+.menu-icon+nav.menu {
    display: block;
  }

  nav.menu ul {
    flex-direction: column;
    gap: 1rem;
    padding-top: 1rem;

  }

  header .contenedora {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
  }
}

/* Main */

/*HISTORIA*/


.historia .enlaces {
  margin-top: 6em;
}

.historia_textos p {
  margin-top: 2em;
}

section {
  padding-block: 2rem;
}

.historia article {
  background-color: rgb(13, 24, 51);
  padding: 2em;
  flex-wrap: wrap;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 3em;
  box-shadow: 0 4px 4px hsl(0 0% 0% / 25%);
}



@media (min-width: 46em) and (max-width: 64em) {
  /* Estilos para tablets */

  .historia .enlaces {
    margin-top: 1em;
  }


  .historia article {
    align-items: center;
    justify-content: center;
    grid-template-columns: auto;
    box-shadow: 0 4px 4px hsl(0 0% 0% / 25%);
  }

  .historia article {
    display: flex;
    align-items: center;
    justify-content: center;

  }

}










@media (max-width: 45em) {

  .historia .enlaces {
    margin-top: 1em;
  }












  .historia article {
    grid-template-columns: auto;
    box-shadow: 0 4px 4px hsl(0 0% 0% / 25%);
  }

}

.historia img {
  border: solid 0.4em hsl(231, 44%, 39%);
  box-shadow: 0 4px 4px hsl(0 0% 0% / 25%);
  width: 30em;
}

.historia_textos h3 {
  margin-block-start: 0;

}

.historia_textos a {
  color: #545eb8;
  display: grid;
  grid-template-rows: auto auto 1fr auto;
}

.historia_textos a:hover {
  color: #f7d022
}

/*PELICULAS*/

.peliculas h2 {

  border-bottom: 3px solid #ccc;
  padding-bottom: 6px;
}


.pelicula {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.estrellas {
  font-size: 18px;
  margin-top: -1em;
}

.galeria {
  display: flex;
  flex-direction: row;
  gap: 1em;
}

@media (max-width: 45em) {
  .galeria {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    padding: 20px;
  }
}


@media (min-width: 46em) and (max-width: 64em) {

  /* Estilos para tablets */
  .galeria {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    padding: 20px;
  }
}










.peliculas h5 {
  padding: 0.2rem 0;
  color: #bbbbbb;
  margin-bottom: -0.5em;
}

.peliculas article {
  margin-bottom: 0.5em;

}

.galeria a:hover img {
  border: solid 0.12em hsl(0, 0%, 75%);
}


/*enlace ir a la seccion de peliculas*/

.enlace_irpeliculas {
  display: flex;
  justify-content: center;
}

.enlace_irpeliculas a {

  align-self: center;
  margin-top: 2rem;
  margin-bottom: -2em;
  display: inline-block;
  padding: 0.5rem 1rem;
  background-color: #FFD700;
  color: #201a50;
  text-decoration: none;
  font-weight: bold;
  border-radius: 5px;
  transition: background-color 0.3s ease;
}

.enlace_irpeliculas a:hover {
  background-color: #19123f;
  color: white;
}



/*Enlace para ir a foros en el index principal*/


.enlace_irforos {
  display: flex;
  justify-content: center;
}

.enlace_irforos a {

  align-self: center;
  margin-top: -0.5rem;

  display: inline-block;
  padding: 0.5rem 1rem;
  background-color: #FFD700;
  color: #201a50;
  text-decoration: none;
  font-weight: bold;
  border-radius: 5px;
  transition: background-color 0.3s ease;
}

.enlace_irforos a:hover {
  background-color: #19123f;
  color: white;
}











/* CORTOS DESTACADOS */

.galeria_cortos {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: flex-start;
  gap: 2em;
}

@media (max-width: 45em) {
  .galeria_cortos {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    padding: 20px;
  }
}

.peliculas_comunidad h2 {

  border-bottom: 3px solid #ccc;
  padding-bottom: 6px;
}

/**/
.usuario img {
  max-width: 2rem;
  border-radius: 50%;
  object-fit: cover;
}

.usuario p {
  margin: 0;
  flex: 1;
  display: block;
  font-weight: bold;
  color: hsl(195, 100%, 55%);
  margin-bottom: 0.2rem;
}

.usuario {
  display: flex;
  flex-direction: row;
  gap: 1em;
}

@media (max-width: 45em) {
  .usuario img {
    max-width: 1.5rem;
  }

  .usuario p {
    font-size: 0.7rem;
  }

  .usuario {
    gap: 0.5em;
    margin-top: -0.5em;
  }

  .peliculas_comunidad h3 {
    font-size: medium;
  }

}

.galeria_cortos a:hover img {
  border: solid 0.12em hsl(0, 0%, 75%);
}

/* FOROS POPULARES*/

.foro_popular h2 {

  border-bottom: 3px solid #ccc;
  padding-bottom: 6px;
}


.foro_popular1 {
  border: solid 0.4em hsl(231, 44%, 39%);
  padding: 2em;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 20px;
  align-items: start;
  background-color: #351741;
  border: 3px solid #340964;
  padding: 20px;
  border-radius: 5px;
}

.foro_popular1 img {
  border: solid .4em hsl(261, 78%, 14%);
  /* sombra */
  box-shadow: 0 4px 4px hsl(0 0% 0% / 25%);
  /* tamaño y proporción cuadrada */
  width: 8em;
  aspect-ratio: 1;
  margin: 0%;
}

.foro_popular1 a {
  display: inline-block;
  padding-block: .25em;
  padding-inline: 1em .75em;

}

.enlaces {
  display: flex;
  justify-content: flex-end;
}

.foro_popular article {
  gap: 2em;
  margin: 2em;
}

.foro_popular h4 {
  color: rgb(191, 198, 204);
}

@media (max-width: 45em) {
  .foro_popular1 {
    grid-template-columns: auto;
    box-shadow: 0 4px 4px hsl(0 0% 0% / 25%);
  }

  .foro_popular article img {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .foro_popular1 h4 {
    margin-top: -1em;
  }
}










/* HTML DE PELICULAS*/

/*LOS 3 BERRETINES*/
/*header*/

.titulo_y_cerrar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  grid-area: title;
}

.close-button {
  font-size: 30px;
  width: 40px;
  height: 40px;
  background: white;
  border: none;
  color: #113685;
  border: none;
}

/*body*/



.movie-card {
  display: grid;
  grid-template-areas:
    "title"
    "description"
    "footer";
  gap: 12px;
  padding: 16px;
  background: #113685;
  border-radius: 10px;

  font-family: sans-serif;
  max-width: 100%;
  box-sizing: border-box;
  margin-top: 2em;
  border-radius: 5px;
  box-shadow: 0 4px 4px hsl(0 0% 0% / 25%);

}

.movie-card p {
  margin-top: 1em;
}

.title {
  grid-area: title;
  font-size: 1.2rem;
  margin: 0;
  color: white;
}


.video {


  border-radius: 10px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  margin-left: auto;
  margin-right: auto;
  display: block;
}

.video iframe {
  max-width: 100%;
  display: block;
}


.description {
  grid-area: description;
  color: #ffffff;
  font-size: 0.95rem;
}

.acciones-video {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  padding: 20px;
  background-color: #122f6e;

  margin-top: 20px;
  border-radius: 5px;
  box-shadow: 0 4px 4px hsl(0 0% 0% / 25%);

}

.acciones-video button {
  padding: 10px 16px;
  font-size: 16px;
  background-color: #113685;
  color: rgb(255, 255, 255);
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

.acciones-video button:hover {
  background-color: #254892;
}

.estrellas {
  font-size: 24px;
  color: gold;
  margin-top: 0.1em;
}



.iconos {
  display: flex;
  gap: 8px;
}

.footer {
  grid-area: footer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}



button {
  padding: 6px 12px;
  background: #0078d7;
  color: #113685;
  ;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.9rem;
}

.movie-card h2 {
  font-size: 2em;
}

button:hover {
  background-color: #254892;
  color: #f7d022
}

/*comentarios*/


.enviar_button_peli {
  padding: 10px 15px;
  background-color: #FFD700;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}


.enviar_button_peli{
  display: flex;
  align-items: center;
  justify-content: flex-end;
  margin-top: 1em;
  margin-bottom: 1em;
  margin-left: 1em;
  margin-right: 1em;

}


.boton_comentario_peli {
  display: flex;
  justify-content: flex-end;

}

.boton_comentario_peli button:hover {
  background-color: #10024e;

 
}

.sumar_comentario_peli{

  display: column;
  align-items: start;
  background-color:#122f6e;
  box-shadow: 0 1px 1px hsl(0 0% 0% / 25%);
  padding: 5px;
  border-radius: 5px;
}

.sumar_comentario_peli input{
  width: 85em;
  height: 10em;
   }

@media (max-width: 45em)  {
  .sumar_comentario_peli input{
    width: 25em;
    height: 10em;
     }
      }






.comentarios h2 {

  border-bottom: 3px solid #ccc;
  padding-bottom: 6px;
}


.comentarios1 {

  padding: 2em;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 20px;
  align-items: start;
  background-color: #122f6e;
  box-shadow: 0 1px 1px hsl(0 0% 0% / 25%);
  padding: 20px;
  border-radius: 5px;
}

.comentarios1 img {

  width: 3em;
  aspect-ratio: 1;
  margin: 0%;
}



.comentarios h4 {
  color: rgb(191, 198, 204);
}

@media (max-width: 45em) {
  .comentarios {
    grid-template-columns: auto;

  }

  .comentarios article img {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .comentarios h4,
  p {
    margin-top: -0.5em;
  }
}

.comentarios article {

  margin-bottom: 1em;

}



/*HTML HISTORIA*/

.caption_luis {
  font-size: 0.8em;
  color: #a8a4a4;
  margin-top: 0.4em;
  margin-bottom: 2em;
}


/* HTML DE EVENTOS */
.seccion {
  padding: 20px;
}

.seccion h2 {
  font-size: 1.5rem;
  margin-bottom: 10px;
  text-align: left;
}

.bajada {
  font-size: 0.9rem;
  color: #ffffff;
  margin-bottom: 15px;
  line-height: 1.4;
  text-align: left;
  font-style: italic;
}

.galeria-horizontal {
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  gap: 10px;
  scroll-snap-type: x mandatory;
  padding-bottom: 10px;
}

.card-evento {
  flex: 0 0 250px;
  height: 200px;
  overflow: hidden;
  background-color: #545eb8;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  position: relative;
  scroll-snap-align: start;
}

.card-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(39, 50, 135, 0.8);
  color: white;
  padding: 5px;
  text-align: center;
  font-size: 0.9rem;
}

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

/*PERFIL*/

.notificaciones {
  display: flex;
  flex-direction: row;
  justify-content: flex-end;
  align-items: center;
  margin-right: 3em;

}

.notificaciones1 p {
  margin-top: 1em;
}

.notificaciones1 {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-end;
}

.notificaciones img {
  width: 2em;
  height: 2em;
}

@media (max-width: 45em) {

  .notificaciones {
    display: flex;
    flex-direction: row;
    justify-content: flex-end;
    align-items: center;


  }

  .notificaciones1 {
    display: flex;
    flex-direction: row;
    align-items: center;
  }

  .notificaciones1 p {
    display: none;
  }



  .notificaciones img {
    width: 2em;
    height: 2em;
  }
}


.foto_perfil {
  display: flex;
  align-items: center;
  justify-content: center;

}

.foto_perfil1 img {
  width: 10em;
  height: 10em;
}

.foto_perfil1 {
  margin-top: -5em;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.editar_perfil {
  margin-top: 1em;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 2em;
}

.editar_perfil a {
  color: #b8b8b8;
  padding: 10px 15px;
  background-color: #0b1625;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.editar_perfil a:hover {
  background-color: #d3b21a;
  color: #081e4d;

}

.Favoritos {
  margin-top: -2em;
}


.Favoritos h2 {
  border-bottom: 3px solid #ccc;

}

.favoritas1 {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-around;
  gap: 1em;
}

.Mis_proyectos {
  margin-top: -2em;
  margin-bottom: 0.5em;
}




.Mis_proyectos h2 {
  border-bottom: 3px solid #ccc;
  margin-bottom: 2em;

}

@media (max-width: 45em) {
  .favoritas1 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    padding: 20px;
  }

}

/*Proyectos*/

.postear h2 {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 2em;
  text-decoration: underline;
}

.postear p {
  margin-top: 2em;
}

.formulario1 {
  margin-top: -1em;
  margin-left: 1em;
  margin-right: 1em;
  display: flex;
  flex-direction: column;
  align-items: center;
  border: solid 0.2em #360730;


  background-color: #283366;
  border-radius: 10px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 2);
}

.formulario h3 {
  border-bottom: solid 0.2em #b8b8b8;

}

.campoformulario {
  display: grid;
  grid-template-columns: auto 1fr;
  justify-items: start;
  gap: 1em;
  padding-block-end: 1.5em;
  margin-top: 2em;


}

input {
  width: 100%;

}


.subir {

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-top: 1em;
  border: solid 0.2em #436dc7;
  padding: 2em;
}



.subir img {
  width: 5em;
  height: 5em;

}



/*boton enviar*/


.enviar {
  display: flex;
  justify-content: center;
}

.enviar a {

  align-self: center;
  display: inline-block;
  margin-top: 2em;
  margin-bottom: 2em;
  background-color: #FFD700;
  color: #201a50;
  text-decoration: none;
  font-weight: bold;
  border-radius: 5px;
  transition: background-color 0.3s ease;
  padding: 1em;
}

.enviar a:hover {
  background-color: #19123f;
  color: white;
}

/*fin del boton*/

.postear span {
  font-weight: bold;
}

.postear {
  gap: 2em;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.nombre_pagina {
  color: #f7d022;
}













@media (max-width: 45em) {
  .formulario1 {

    margin: -0.1em;

    display: flex;
    flex-direction: column;
    align-items: center;
    border: solid 0.2em #360730;
    padding: 2em;

    background-color: #0a1544;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 2);
  }

  .formulario {
    margin-top: -3em;
  }
}

/* ENVIAR.HTML*/

.agradecimiento {

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

@media (max-width: 45em) {
  .agradecimiento {
    margin-top: 3em;
  }

  .agradecimiento p {
    margin-top: 1em;
  }
}

/*FORO*/

.bienvenida_texto {
  margin-top: 2em;

}

.bienvenida_texto ul {
  margin-top: 2em;

}

.bienvenida_texto span {
  color: #ccbf0b;

}

.barra_busqueda {
  gap: 2em;
}

.barra_busqueda {
  margin-top: 10px;

}

.busqueda_input {
  padding: 10px;
  width: 300px;
  border-radius: 5px;
  border: 1px solid #ccc;
}

.busqueda_button {
  padding: 10px 15px;
  background-color: #FFD700;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-weight: bold;
  transition: background-color 0.3s ease;
}


.busqueda_button:hover {
  background-color: #7a1986;
  color: #f7d022
}


.foro_pagina h2 {

  border-bottom: 3px solid #ccc;
  padding-bottom: 6px;
}


.foro_pagina1 {
  border: solid 0.4em hsl(231, 44%, 39%);
  padding: 2em;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 20px;
  align-items: start;
  background-color: #351741;
  border: 3px solid #340964;
  padding: 20px;
  border-radius: 5px;
}

.foro_pagina1 img {
  border: solid .4em hsl(261, 78%, 14%);
  box-shadow: 0 4px 4px hsl(0 0% 0% / 25%);
  width: 8em;
  aspect-ratio: 1;
  margin: 0%;
}

.foro_pagina1 a {
  display: inline-block;
  padding-block: .25em;
  padding-inline: 1em .75em;

}

.foro_pagina article {
  gap: 2em;
  margin-bottom: 2em;
}

.foro_pagina h4 {
  color: rgb(191, 198, 204);
}

@media (max-width: 45em) {

  .barra_busqueda {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1em;
  }



  .foro_pagina1 {
    grid-template-columns: auto;
    box-shadow: 0 4px 4px hsl(0 0% 0% / 25%);
  }

  .foro_pagina article img {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .foro_pagina1 h4 {
    margin-top: -1em;
  }
}





/*DISCUSION DE FORO*/


.discusion span {
  font-weight: bold;
  text-decoration: underline;
}

.discusion1 {
  border: solid 0.4em hsl(231, 44%, 39%);
  padding: 2em;
  gap: 20px;
  align-items: start;
  background-color: #351741;
  border: 3px solid #340964;
  padding: 20px;
  border-radius: 5px;
}

.discusion1 img {
  border: solid .4em hsl(261, 78%, 14%);
  box-shadow: 0 4px 4px hsl(0 0% 0% / 25%);
  width: 20em;
  aspect-ratio: 1;
  margin: 0%;
  margin-bottom: 1em;
}




.discusion article {
  gap: 1em;

  margin-top: -0.5em;
}

.discusion h4 {
  color: rgb(191, 198, 204);
}




.usuario_discusion img {
  max-width: 3rem;
  border-radius: 50%;
  object-fit: cover;
}

.usuario_discusion p {
  margin-top: 1em;
  flex: 1;
  display: flex;
  color: hsl(195, 100%, 55%);
  text-decoration: underline;
  font-size: 0.9em;
}

.usuario_discusion {
  display: flex;
  flex-direction: row;
  gap: 1em;
  margin-top: 1em;
}



.likes_usuario {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
}

.likes {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-end;
  gap: 1em;

}




.likes p {
  margin-top: 0.9em;
  font-size: 0.9em;

}


.discusion_comentario1 {
  border: solid 0.4em hsl(231, 44%, 39%);
  padding: 2em;
  gap: 20px;
  align-items: start;
  background-color: #351741;
  border: 3px solid #340964;
  padding: 20px;
  border-radius: 5px;
}

.comentarios h2 {

  border-bottom: 3px solid #ccc;
  padding-bottom: 6px;
}


.comentarios_foro1 {

  padding: 2em;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 20px;
  align-items: start;
  background-color: #210b30;
  box-shadow: 0 1px 1px hsl(0 0% 0% / 25%);
  padding: 20px;
  border-radius: 5px;
}

.comentarios_foro1 img {

  width: 3em;
  aspect-ratio: 1;
  margin: 0%;
}

.enviar_button {
  padding: 10px 15px;
  background-color: #FFD700;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}


.enviar_button {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  margin-top: 1em;
  margin-bottom: 1em;
  margin-left: 1em;
  margin-right: 1em;

}


.boton_comentario {
  display: flex;
  justify-content: flex-end;

}

.boton_comentario button:hover {
  background-color: #6a1272;


}

.sumar_comentario {

  display: column;
  align-items: start;
  background-color: #210b30;
  box-shadow: 0 1px 1px hsl(0 0% 0% / 25%);
  padding: 5px;
  border-radius: 5px;
}

.sumar_comentario input {
  width: 85em;
  height: 10em;
}

@media (max-width: 45em) {
  .sumar_comentario input {
    width: 25em;
    height: 10em;
  }
}

.foro_popular .explorar {
  padding: 10px 15px;
  background-color: #FFD700;
  border: none;
  border-radius: 5px;
  cursor: pointer;

}

.explorar:hover {
  background-color: #6a1272;
}



/* HTML DE CONTACTO */

.contactos h2 {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.contactos h1 {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: underline;
}

.contactos p {
  margin-top: 1em;
}


.contactos {
  padding: 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  max-width: 90rem;
  margin-inline: auto;
}

.info-contacto {
  background: hsla(239, 48%, 21%, 0.521);
  padding: 1.5rem;
  max-width: 40rem;
  max-height: auto;
  align-content: center;
  border: solid 0.2em #22465c;
  border-radius: 10px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 2);
}

.info-contacto strong {
  color: #f7d022;
}

.formularios form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.formularios input {
  padding: 0.75rem;
  border: 1px solid #ddd;
  font-size: 1rem;
}

.formularios ::placeholder {
  color: rgba(169, 169, 169, 0.733);
}

/* HTML HISTORIA */


.historia_pagina {
  padding: 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  max-width: 90rem;
  margin-inline: auto;
}

.breve-historia {
  background: hsla(239, 48%, 21%, 0.521);
  padding: 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  max-width: 90rem;
  margin-inline: auto;
  border: solid 0.2em #22465c;
  border-radius: 10px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 2);
  margin-bottom: -3em;
  margin-top: -2em;
}

.breve-historia h2 {
  font-size: 40px;
}

.breve-historia b {
  color: #92823a;
}

.breve-historia i {
  color: #92823a;
}

.intro {
  font-size: 24px;
}

.locos-azotea {
  line-height: 1.3;
}

.estudios {
  line-height: 1.3;
}

.h2_historia{
  text-decoration: underline;
  padding: 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  margin-inline: auto;
}

.fila-dato {
  padding: 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  max-width: 90rem;
  margin-inline: auto;
}

.historia img {
  border: solid 0.2em #22465c;
  border-radius: 10px;
  box-shadow: 0 4px 4px hsl(0 0% 0% / 25%);
  width: 30em;
}

.datos figcaption {
  font-size: 10px;
}

.datos img {
  max-width: 10em;
}

.dato {
  max-width: 7em;
  display: flex;
  flex-wrap: wrap;
}

.datos{
  display: flex;

}

.fila-dato {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 4rem;
  padding: 4rem 0;
  margin-top: -4em;
}
.dato {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 20em;
}

.dato img {
  width: 14em;
  height: 12em;
  object-fit: cover;
  border: solid 0.2em #22465c;
  border-radius: 10px;
  box-shadow: 0 4px 4px hsl(0 0% 0% / 25%);
}
.epigrafe h5 {
  font-size: 0.9rem;
  margin-top: 1rem;
  line-height: 1.4;
  
}

.dato_logo_gong img {
  width: 14em;
  height: 12em;
  object-fit: cover;
 
}



/* HTML DE EVENTOS */

.seccion_titulo h1 {
  text-decoration: underline;

  text-align: center;

}


.seccion {
  margin-top: -4em;
  padding: 20px;
  text-align: center;
  display: block;
  unicode-bidi: isolate;
  align-items: center;
  justify-content: center;
  margin-left: 19em;

}

.seccion h2 {
  font-size: 1.5rem;
  margin-bottom: 10px;
  text-align: left;
  margin-top: 2em;
  
}

.titulo-seccion {
  font-size: 1.5rem;
  margin-bottom: 10px;
  text-align: left;
  
}

.bajada {
  font-size: 0.9rem;
  margin-bottom: 15px;
  line-height: 1.4;
  text-align: left;
  font-style: italic;
  margin-top: 1em;
}

.galeria-horizontal {
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  gap: 10px;
  scroll-snap-type: x mandatory;
  padding-bottom: 10px;
}

.card-evento {
  flex: 0 0 250px;
  height: 200px;
  overflow: hidden;
  background-color: hsla(239, 48%, 21%, 0.521);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  position: relative;
  scroll-snap-align: start;
}

.card-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  background: rgb(48, 16, 46);
  color: rgb(218, 206, 206);
  padding: 5px;
  text-align: center;
  font-size: 0.9rem;
}

@media (max-width: 45em) {

  .seccion {
    padding: 20px;
    text-align: center;
    display: block;
    unicode-bidi: isolate;
    margin-left: 0em;
  }

  .seccion h2 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    text-align: left;
    margin-top: 2em;
  }

  .titulo-seccion {
    font-size: 1.5rem;
    margin-bottom: 10px;
    text-align: left;
  }

  .bajada {
    font-size: 0.9rem;
    margin-bottom: 15px;
    line-height: 1.4;
    text-align: left;
    font-style: italic;
  }

  .galeria-horizontal {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 10px;
    scroll-snap-type: x mandatory;
    padding-bottom: 10px;
  }

  .card-evento {
    flex: 0 0 250px;
    height: 200px;
    overflow: hidden;
    background-color: hsla(239, 48%, 21%, 0.521);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    position: relative;
    scroll-snap-align: start;
  }

  .card-header {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    background: rgb(48, 16, 46);
    color: rgb(218, 206, 206);
    padding: 5px;
    text-align: center;
    font-size: 0.9rem;
  }
}

@media (min-width: 46em) and (max-width: 64em) {
  /* Estilos para tablets */

  .seccion {
    text-align: center;
    display: block;
    unicode-bidi: isolate;
    margin-left: 0em;
  }
}

/* VIDEO*/

.video_contenedor {


  width: 100%;
  height: 100%;

  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 2em;
}

.video_contenedor video {


  border: solid 0.4em hsl(232, 47%, 10%);
  width: 50%;
  height: 50%;
}

@media (max-width: 45em) {
  .video_contenedor video {


    border: solid 0.4em hsl(232, 47%, 10%);
    width: 100%;
    height: 100%;

  }
}


/*HTML MI LISTA*/
.milista h2 {
  font-size: 24px;
  color: #c9b500;
  text-align: center;
  margin-bottom: 1em;
}

.carousel {
  position: relative;
  overflow: hidden;
  width: 100%;
}

.slides {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  gap: 20px;
  padding: 10px 40px;
  scroll-behavior: smooth;
}

.slides::-webkit-scrollbar {
  display: none;
}

.slide {
  flex: 0 0 auto;
  width: 200px;
  scroll-snap-align: start;
}

.slide img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  border-radius: 8px;
}

/* Flechas */
.arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.5);
  color: white;
  border: none;
  font-size: 2rem;
  padding: 0.5em;
  cursor: pointer;
  z-index: 1;
}

.arrow.left {
  left: 0;
}

.arrow.right {
  right: 0;
}

/* Responsive: en mobile, mostrar una por vez */
@media (max-width: 768px) {
  .slide {
    width: 85%;
  }

  .arrow {
    display: none;
  }
}


/*HTML DE PELICULAS*/

.peliculas_pagina h5 {
  padding: 0.2rem 0;
  color: #bbbbbb;
  margin-bottom: -0.5em;
}

section {
  padding-block: 2rem;
}

.peliculas_titulo {
  margin-bottom: -3em;
  align-items: center;
}

.peliculas_titulo h2 {
  border-bottom: solid 0.2em #bbbbbb;
  padding-bottom: 0.5em;
  color: #c7ae40;
}

.peliculas_titulo p {
  margin-top: 1em;

}

/*Boton de busqueda*/

.busquedapeli_input {
  padding: 10px;
  width: 300px;
  border-radius: 5px;
  border: 1px solid #ccc;
}

.busquedapeli_button {
  padding: 10px 15px;
  background-color: #FFD700;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

/*fin boton de busqueda*/

.pelicula_destacada article {
  background-color: rgb(13, 24, 51);
  padding: 2em;
  flex-wrap: wrap;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 3em;
  box-shadow: 0 4px 4px hsl(0 0% 0% / 25%);

}

@media (max-width: 45em) {
  .pelicula_destacada article {
    grid-template-columns: auto;
    box-shadow: 0 4px 4px hsl(0 0% 0% / 25%);
    justify-content: center;
    align-items: center;
  }

  .barra_busquedapeli {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1em;
  }
}

.pelicula_destacada1 h3,
p {
  margin-top: -1em;


}

.pelicula_destacada img {
  width: 200px;
  height: auto;
  object-fit: cover;
  border-radius: 5px;
}

.info_pelicula {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.enlace_pelicula {
  display: flex;
  justify-content: flex-end;
}

.enlace_pelicula a {
  align-self: flex-end;
  margin-top: 1rem;
  display: inline-block;
  padding: 0.5rem 1rem;
  background-color: #FFD700;
  color: #1d1134;
  text-decoration: none;
  font-weight: bold;
  border-radius: 5px;
  transition: background-color 0.3s ease;
}

.enlace_pelicula a:hover {
  background-color: #3558cc;
  color: white;
}

.info_pelicula h3 {
  margin-top: 0em;


}

.pelicula_destacada h3 {
  text-decoration: underline;

}

.peliculas_pagina h3 {
  text-decoration: underline;
}


/* BODYS */

.pelibody {
  font-family: 'Trebuchet MS';
  margin: 0;
  color: hsla(0, 0%, 100%, 0.699);
  background-color: rgb(45, 75, 146);
  display: grid;
  grid-template-rows: auto 1fr auto;
}

.historiabody {
  font-family: 'Trebuchet MS';
  margin: 0;
  color: hsla(0, 0%, 100%, 0.699);
  background-color: rgb(13, 24, 51);
  display: grid;
  grid-template-rows: auto 1fr auto;
}

.perfilbody {
  font-family: 'Trebuchet MS';
  margin: 0;
  color: hsla(0, 0%, 100%, 0.699);
  background-color: rgb(13, 36, 51);
  display: grid;
  grid-template-rows: auto 1fr auto;
}

.proyectosbody {
  font-family: 'Trebuchet MS';
  margin: 0;
  color: hsla(0, 0%, 100%, 0.699);
  background-color: rgb(5, 15, 66);
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-height: 100vh;
}


.forobody {
  font-family: 'Trebuchet MS';
  margin: 0;
  color: hsla(0, 0%, 100%, 0.699);
  background-color: rgb(26, 4, 31);
  display: grid;
  grid-template-rows: auto 1fr auto;
}

.discusion1body {
  font-family: 'Trebuchet MS';
  margin: 0;
  color: hsla(0, 0%, 100%, 0.699);
  background-color: rgb(52, 9, 61);
  display: grid;
  grid-template-rows: auto 1fr auto;
}

.eventosbody {
  font-family: 'Trebuchet MS';
  margin: 0;
  color: hsla(0, 0%, 100%, 0.699);
  background-color: rgb(66, 22, 63);
}

.contactobody {
  font-family: 'Trebuchet MS';
  margin: 0;
  color: hsla(0, 0%, 100%, 0.699);
  background-color: rgb(18, 46, 71);
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-height: 100vh;
}

.peliculasbody {

  font-family: 'Trebuchet MS';
  margin: 0;
  color: hsla(0, 0%, 100%, 0.699);
  background-color: rgb(29, 47, 68);
  display: grid;
  grid-template-rows: auto 1fr auto;

}

footer p {
  margin-top: 1em;

}