
@import url('https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100..900;1,100..900&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  width: 100%;
  overflow-x: hidden;
}

body {
  background-color: rgb(225, 225, 225);
  min-height: 100vh;
  font-family: 'Roboto';
}

footer {
  position: relative;
  bottom: 0;
  background-color: #002b5c;
  color: white;
  padding: 10px;
  text-align: center;
  font-size: 0.5rem;
}

a {
  text-decoration: none;
}

.encabezado {
  width: 100%;
  background-color: #002b5c;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  padding: 5px 5px;
}

.encabezado img {
  height: 80px;
  width: auto;
  display: block;
}
/* MENU HAMBURGUESA */
.hamburger {
  font-size: 2rem;
  color: white;
  cursor: pointer;
  background: none;
  border: none;
  display: block;
  justify-self: end;
}

.nav-links {
  display: none;
  grid-auto-flow: row;
  background-color: #002554;
  position: absolute;
  top: 70px;
  right: 0;
  width: 100%;
  padding: 1rem;
  align-items: center;
  text-align: center;
  z-index: 999;
  list-style: none;
  transition: all 0.3s ease;
  padding-right: 40px;
}

.nav-links.open {
  display: grid;
  gap: 1rem;
}

.nav-links li a {
  color: white;
  text-decoration: none;
  font-size: 1.2rem;
  font-weight: bold;
}

.nav-links li a:hover {
  text-decoration: underline;
}


@media (min-width: 768px) {
  .hamburger {
    display: none;
  }
  .nav-links li:last-child {
    margin-right: 40px; 
  }
  .nav-links {
    display: grid !important;
    position: static;
    grid-auto-flow: column;
    background-color: transparent;
    justify-content: flex-end;
    width: auto;
    padding: 0;
    gap: 20px;
  }
}
/* PELICULAS */
.nombrepeliculas {
 color: #221851;
 font-weight: bold;
 text-align: center;
 display: inline-block;
white-space: nowrap
}

figure {
  display: inline-block;
  margin: 0.8em;
}

figcaption {
  text-align: center;
  width: 100%;
}
@media screen and (min-width: 768px) {
  .nombrepeliculas {
    font-size: 1.2em;
  }
}

@media screen and (min-width: 1024px) {
  .nombrepeliculas {
    font-size: 1.4em;
  }
}

/*PAGINA INICIO*/
.peliculasinicio img {
  width: 140px;
  height: auto;
  margin: 0.5em;
}

.peliculasinicio {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5em;
  justify-content:center
}

@media screen and (min-width: 768px) {
  .peliculasinicio img {
    width: 200px;
    height: auto;
    margin: 0.8em;
  }
  .titulosinicio h2 {
    font-size: 1.5em;
  }
}

@media screen and (min-width: 1024px) {
 .peliculasinicio img {
    width: 250px;
    height: auto;
    margin: 1.2em;
  }
}

.titulosinicio h2 {
  color: aliceblue;
  background-color: #6a5dbc;
  padding: 0.2em;
  margin: 1em;
  font-size: 1.3em;
  font-weight: normal;
  text-align: center;
  text-transform: uppercase;
  font-size: 1.7em;
}

.resena {
  background-color: #0c3a60;
  color: white;
  border-radius: 10px;
  padding: 1rem;
  margin: 1rem 0;
  box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.2);
}

.resena h3 {
  background-color: #1a4d7a;
  padding: 0.5rem;
  margin: -1rem -1rem 1rem -1rem;
  border-radius: 10px 10px 0 0;
  font-size: 1rem;
  text-align: center;
}

.perfil {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  margin-bottom: 0.8rem;
}

.perfil img {
  width: 4.2em;
}

.perfil h4 {
  margin: 0;
  font-size: 1rem;
}

.resena p {
  font-size: 0.9rem;
  line-height: 1.4;
  margin-bottom: 0.8rem;
}

.reacciones {
  display: grid;
  grid-auto-flow: column;
  align-items: center;
  justify-content: end;
  gap: 8px;
}

.reacciones img {
  width: 1.5em;
}

.reacciones p {
  margin: 0;
  font-size: 0.9rem;
}

.resena-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
  margin: 1em;
}

@media (min-width: 768px) {
  .resena-container {
    justify-items: center;
  }

  .resena {
    width: 300px;
  }
}

@media (min-width: 1024px) {
  .resena-container {
    justify-items: center;
  }

  .resena {
    width: 400px;
  }
}

.footercontainer {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  column-gap: 0.2rem;;
  justify-self: center;
}

.footer-inicio p {
  color: #1a4d7a;
  text-align: center;
  padding: 0.8em;
  font-size: 1.5em;
}

.footer-inicio img {
  width: 140px;
  height: auto;
  margin: 0.5em;
}

.botoninicio {
  text-decoration: none;
  background-color: #0b3553;
  color: white;
  font-size: 1.3em;
  padding: 8px;
  margin: 0.5em;
  border-radius: 6px;
  width: 100px;
  text-align: center;
}

@media (min-width: 768px) {
  .footercontainer img {
    width: 160px;
  }

  .botoninicio {
    width: 105px;
  }
}

@media (min-width: 1024px) {
  .footercontainer img {
    width: 170px;
  }

  .botoninicio {
    width: 110px;
  }
}

/*PAGINA PERFIL*/
.peliculasperfil img {
  width: 140px;
  height: auto;
  margin: 0.5em;
}

.peliculasperfil {
  display: grid;
  grid-template-columns: 1fr;
  justify-content: center;
  text-align: center;
  gap: 1em;
}

.usuario {
  display: flex;
  align-items: center;
  gap: 1em;
  background-color: #5a7ba1;
  padding: 1em 2em;
  border-radius: 10px;
  margin: 2em auto;
  max-width: 900px;
  color: white;
}

.usuario img {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.info-usuario {
  display: flex;
  flex-direction: column;
}

.info-usuario h2 {
  font-size: 1.5em;
  font-weight: bold;
  margin: 0;
}

.info-usuario p {
  font-size: 1em;
  margin: 0.5em 0 0;
}

.pagina-perfil h1 {
  text-align: center;
  font-size: 2em;
  margin: 1em 0;
  color: #002b5c;
}

.usuario h2 {
  margin: 0.5em;
  font-size: 1em;
  color: #001f4d;
  font-weight: bold;
}

.usuario p {
  margin: 0.5em;
  font-size: 1em;
  color: #001f4d;
  font-weight: normal;
}

@media screen and (min-width: 768px) {
  .peliculasperfil img {
    width: 200px;
    height: auto;
    margin: 0.8em;
  }
}

@media screen and (min-width: 1024px) {
 .peliculasperfil img {
    width: 250px;
    height: auto;
    margin: 1em;
  }
}

.peliculasperfil h2 {
  color: aliceblue;
  background-color: #6a5dbc;
  padding: 0.2em;
  margin: 1em;
  font-size: 1.3em;
  font-weight: normal;
  text-align: center;
  text-transform: uppercase;
}
@media screen and (min-width: 1024px) {
  .usuario {
    gap: 2em;
    padding: 2em 4em;
  }

  .info-usuario h2 {
    font-size: 2em;
  }
}
/* PAGINA PELICULAS Y ESTRELLAS */
.peliculas img {
  width: 140px;
  height: auto;
  margin: 0.5em;
}

.peliculas {
  display: flex;
  overflow-x: auto;
  padding-bottom: 1rem;
}

.listapeliculas h2 {
  color: aliceblue;
  padding: 0.2em;
  margin-inline: 0.5em;
  font-size: 1.3em;
  font-weight: normal;
  text-align: start;
  text-transform: uppercase;
}

.listapeliculas {
  background-color: #a69edd;
  margin-block: 1em;
}

@media screen and (min-width: 768px) {
  .peliculas img {
    width: 190px;
    height: auto;
    margin: 0.8em;
  }
}

@media screen and (min-width: 1024px) {
 .peliculas img {
    width: 230px;
    height: auto;
    margin: 1em; 
  }
}

@media screen and (min-width: 768px) {
  .peliculas {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5em;
  }
}

@media screen and (min-width: 1024px) {
  .peliculas {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5em;
  }
}

.estrellas figcaption {
 border-bottom: 2px solid #412ec0;
 text-align: center;
 width: 100%;
 line-height: 2em;
 margin: 0.2em;
}

.estrellas img {
  width: 140px;
  height: auto;
  margin: 0.5em;
}

.estrellas {
  display: flex;
  overflow-x: auto;
  padding-bottom: 1rem;
}

.listaestrellas h2 {
  color: aliceblue;
  padding: 0.2em;
  margin-inline: 0.5em;
  font-size: 1.3em;
  font-weight: normal;
  text-align: start;
  text-transform: uppercase;
}

.listaestrellas {
  background-color: #9388db;
  margin-block: 1em;
}
.footer-fijo {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.footer-fijo main {
  flex: 1;
}

@media screen and (min-width: 768px) {
  .estrellas img {
    width: 190px;
    height: auto;
    margin: 0.8em;
  }
}

@media screen and (min-width: 1024px) {
 .estrellas img {
    width: 230px;
    height: auto;
    margin: 1em; 
  }
}

@media screen and (min-width: 768px) {
  .estrellas {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5em;
  }
}

@media screen and (min-width: 1024px) {
  .estrellas {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5em;
  }
}
@media screen and (min-width: 768px) {
  .listapeliculas h2,
  .listaestrellas h2,
  .peliculasperfil h2 {
    font-size: 1.4em;
  }
}

@media screen and (min-width: 1024px) {
  .listapeliculas h2,
  .listaestrellas h2,
  .peliculasperfil h2 {
    font-size: 1.6em;
  }
}
 /*PAGINA HISTORIA*/
.titulohistoria{
  color: aliceblue;
  background-color: #5c49d9;
  padding: 0.2em;
  margin: 1em;
  font-size: 1em;
  font-weight: normal;
  text-align: center;
  text-transform: uppercase;
}

 .historia {
  position: relative;
  display: grid;
  grid-template-rows:  column; 
  align-items: flex-start;
  gap: 20px;
  padding: 60px 20px 40px;
  max-width: 100%;
  box-sizing: border-box;
}

.historia::before {
  content: "";
  position: absolute;
  top: 40px;
  left: 20px; 
  width: 4px;
  height: 95%;
  background-color: #2d416d;
  z-index: 0;
}

.historia-item {
  background: white;
  padding: 20px;
  border-radius: 8px;
  margin-left: 40px; 
  margin-bottom: 40px;
  text-align: left;
  position: relative;
  z-index: 1;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.historia-item::after {
  content: "";
  position: absolute;
  top: 20px;
  left: -25px;
  width: 14px;
  height: 14px;
  background-color: #2d416d;
  border: 3px solid white;
  border-radius: 50%;
  z-index: 2;
}

.historia-item h3 {
  color: #2d416d;
  margin-block: 0.5em;
  font-size: 18px;
}

.historia-item h4 {
  margin: 10px 0 5px;
  font-size: 15px;
  font-weight: bold;
}

.historia-item p {
  font-size: 14px;
  color: #555;
}

.historia-item img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 6px;
  margin-top: 10px;
}

@media (min-width: 1024px) {
  .historia {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
  }

  .historia::before {
    content: "";
    position: absolute;
    top: 50px; 
    left: 0;
    width: 100%;
    height: 4px;
    background-color: #2d416d;
    z-index: 0;
  }

  .historia-item {
    flex: 1;
    max-width: 220px;
    text-align: center;
    margin: 0;
  }

  .historia-item::after {
    top: -38px;
    left: 50%;
    transform: translateX(-50%);
  }

  .historia-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
  }
}
@media screen and (max-width: 768px) {
  .historia {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
  }  
} 

video {
  width: 100%; 
  margin-block-end: 1em;
}

.museo h2 {
  color: #1a4d7a;
  text-align: center;
  padding: 0.8em;
  font-size: 1.5em;
}

.museo img {
  width: 22em;
  height: auto;
  object-position: center;
  display: block;
  margin-inline: auto;
  border-radius: 6px;
  border:#1b4773 5px solid;
  margin-block-end: 1em;
}

.botonsabermas {
  text-decoration: none;
  background-color: #0b3553;
  color: white;
  font-size: 1.3em;
  padding: 8px;
  margin: 1em;
  border-radius: 6px;
  width: 120px;
  text-align: center;
  display: grid;
  justify-self: center;
}

@media screen and (min-width: 768px) {
  .video {
   width: 40em;
   height: auto;
   margin-inline: auto;
   margin-block: 2em;
  }
 
  .museo img {
   width: 22em;
   margin-block-end: 1em;
   margin-inline: 1em;
  }
 
  .museocontainer {
   display: grid;
   grid-template-columns: 1fr 1fr;
   align-items: center;
   column-gap: 0.2rem;;
   justify-self: center;
 }
 }

@media screen and (min-width: 1024px) {
 .video {
  width: 60em;
  height: auto;
  margin-inline: auto;
  margin-block: 2em;
 }

 .museo img {
  width: 30em;
  margin-block-end: 1em;
  margin-inline: 1em;
 }

 .museocontainer {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  column-gap: 0.2rem;;
  justify-self: center;
}
}

/*PAGINA FORO*/
.foro {
  font-family: Arial, sans-serif;
  color: #222;
  padding: 1em;
}

.foro-titulo {
  color: aliceblue;
  background-color: #5a4bb9;
  padding: 0.2em;
  font-size: 1.3em;
  font-weight: normal;
  text-align: center;
}

.foro-titulo h1 {
  font-size: 1.2em;
  margin: 0;
}

.foro-resena {
  background-color: #0b3553;
  margin: 1em 0;
  padding: 1em;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  display: flex;
  align-items: flex-start;
  gap: 1em;
}

.foro-resena h3 {
  font-size: 1em;
  color: #0b3553;
  margin-bottom: 0.5em;
}

.foro-resena p {
  font-size: 0.95em;
  margin: 0.5em 0;
  color: #ccc;
}

.foro-resena img {
  width: 100%;
  max-width: 120px;
  display: block;
  margin: 0.5em 0;
  border-radius: 4px;
}

.comenta {   
  background-color: #0b3553;
  color: white;
  padding: 0.4em 1em;
  border-radius: 6px;
  font-size: 0.9em;
  cursor: pointer;
  text-align: center;
  transition: background-color 0.3s;
  margin: auto;
  display: grid;
  justify-self: center
}

.comenta:hover  {
  background-color: #092a43;
  margin: auto
}

.foro-footer {
  text-align: center;
  margin-top: 2em;
  padding: 1em;
  background-color: #0b3553;
  color: white;
  border-top: 2px solid #ccc;
}

.foro-footer h4 {
  margin: 0.5em 0;
  font-size: 1em;
}

.foro-footer p {
  background-color: white;
  color: #0b3553;
  display: inline-block;
  padding: 0.5em 1em;
  margin-top: 0.5em;
  border-radius: 5px;
  font-weight: bold;
  font-size: 0.9em;
}

@media screen and (min-width: 1024px) {
  .foro-resena {
    display: flex;
    align-items: flex-start;
    gap: 1.5em;
    max-width: 1100px;
    margin: 2em auto;
    font-size: 1.2rem; 
    line-height: 1.6;
  }

  .foro-resena img {
    width: 20%;
    max-width: 400px; 
    height: auto;
    border-radius: 6px;
    flex-shrink: 0;
  }

  .foro-resena h3 {
    font-size: 1.4rem; 
    margin-bottom: 0.3em;
  }

  .foro-resena p {
    font-size: 1.2rem;
  }

  .contenido-resena {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
  }

  .contenido-resena h3 {
    margin-top: 0;
  }

  .contenido-resena .comenta {
    align-self: center;
    margin-top: 1em;
  }

  .contenido-resena p {
    margin-top: 0.5em;
    display: inline-block;
  }

  .comenta {
    display: inline-block;        
    background-color: #002b4f;
    color: white;
    padding: 0.6rem 1.5rem;
    border-radius: 0.5rem;
    margin: 2rem auto 0;
    text-align: center;
    font-size: 1.2rem;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
  }

  .comenta p {
    margin: 0;
    font-size: 1.2rem;
  }

}

@media screen and (min-width: 768px) {
  .foro {
    padding: 2em;
  }

  .foro-titulo {
    font-size: 1.5em;
  }
}

/*PAGINA MIRTHA Y LUIS*/
.mirtha-info,
.luis-info {
  text-align: center;
  max-width: 400px;
}

.mirtha-info h2,
.luis-info h2 {
  font-size: 1.2rem;
  background-color: #d6bfa3;
  display: inline-block;
  padding: 5px 10px;
  margin: 1em;
}

.mirtha-info img,
.luis-info img {
  width: 100%;
  max-width: 250px;
  height: auto;
  margin: 10px 0;
  border-radius: 5px;
}

.mirtha-info p,
.luis-info p {
  font-size: 0.95rem;
  line-height: 1.4;
  margin-inline: 1em;
}

.aparece {
  margin-top: 30px;
  text-align: center;
  
}

.aparece h3 {
  font-size: 1rem;
  text-transform: uppercase;
  color: #ccc;
  border-top: 1px solid #0b3553;
  border-bottom: 1px solid #0b3553;
  padding: 10px 0;
  margin-bottom: 15px;
  background-color: #0b3553;
}

.aparece img {
  width: 140px;
  height: auto;
  margin: 0.5em;
}

@media (min-width: 768px) {
  .aparece {
    flex-direction: row;
    justify-content: center;
    flex-wrap: wrap;
  }

  .aparece h3 {
    width: 100%;
  }

  .aparece figure {
    margin: 0 20px;
  }
  .mirtha {
    flex-direction: row;
    text-align: left;
    align-items: flex-start;
  }

  .mirtha img {
    margin-right: 30px;
  }

  .mirtha p {
    padding: 0;
  }
}

/*PAGINA LOS 3 BERRETINES Y LOS MARTES, ORQUIDEAS*/
.losmartes h2, .lostresb h2 {
  font-size: 1.2rem;
  background-color: #d6bfa3;
  display: inline-block;
  padding: 5px 10px;
  margin: 1em;
}

.sinopsis {
  text-align: center;
  max-width: 400px;
}

.sinopsis h2 {
  font-size: 1.2rem;
  background-color: #1a4d7a;
  display: inline-block;
  padding: 5px 10px;
  margin-bottom: 10px;
}

.sinopsis img {
  width: 100%;
  max-width: 250px;
  height: auto;
  margin: 10px 0;
  border-radius: 5px;
}

.sinopsis p {
  font-size: 0.95rem;
  line-height: 1.4;
  align-items: start;
  margin-inline: 1em;
}

.actuan img {  
  width: 140px;
  height: auto;
  margin: 0.5em;
}

.actuan h3 {
  font-size: 1.2rem;
  background-color: #1a4d7a;
  display: inline-block;
  padding: 5px 10px;
  margin-bottom: 10px;
}

.actuan p {
  font-size: 0.95rem;
  line-height: 1.4;
}

.director h3 {
  font-size: 1.2rem;
  background-color: #1a4d7a;
  display: inline-block;
  padding: 5px 10px;
  margin-bottom: 10px;
}

.director p {
  font-size: 0.95rem;
  line-height: 1.4;
}

.director img {
  width: 140px;
  height: auto;
  margin: 0.5em;
}

.mirtha,
.luis,
.equipo,
.actuan,
.director,
.lostresb,
.losmartes {
  display: grid;
  place-items: center;
  gap: 1rem;
}

.actuan h3 {
  font-size: 1.2rem;
  background-color: #1a4d7a;
  display: inline-block;
  padding: 5px 10px;
  margin-bottom: 10px;
}

.actuan .actor {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 10px;
}

.actuan img {
  width: 140px;
  height: auto;
  border-radius: 5px;
}

@media (min-width: 1024px) {
  .lostresb {
    margin-bottom: 5rem;
  }
  
  .sinopsis {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: flex-start;
    gap: 2rem;
    max-width: 1000px;
    margin: 2rem auto;
    text-align: left;
  }

  .sinopsis img {
    width: 300px;
    height: auto;
    border-radius: 10px;
  }

  .sinopsis p {
    font-size: 1.1rem;
    line-height: 1.6;
    max-width: 600px;
  } 

  /* BLOQUE EQUIPO COMPLETO */
  
  .director {
    flex: 1;
    text-align: center;
  }

  .actuan {
    flex: 2;
    text-align: center;
  }

  .actuan h3 {
    margin-bottom: 1rem;
  }

  .equipo {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3rem;
    margin-top: 3rem;
    margin-bottom: 5rem; 
  }
  
  .director,
  .actuan {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  
  .actuan .personas {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
  }
  
  .actor {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

}

/*PAGINA MUSEO*/
.paginamuseo {
  padding: 20px;
  margin: 20px auto;
  max-width: 800px;
  line-height: 1.6;
}
.paginamuseo h1 {
  font-size: 1.8rem;
  font-weight: bold;
  text-align: center;
  color: #003366;
  margin-bottom: 10px;
}
.paginamuseo h2 {
  background-color: rgb(248, 241, 233);
  border-radius: 10px;
  font-size: 1.2rem;
  color: #003366;
  font-weight: bold;
  text-align: center;
  margin: 20px 0 10px;
}
.paginamuseo ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.paginamuseo ul li {
  margin-bottom: 10px;
}
.paginamuseo a {
  color: #0056b3;
  text-decoration: none;
}
.paginamuseo a:hover {
  text-decoration: underline;
}

.resaltar {
  color: #221851;
  font-weight: bold;
}
.paginamuseo img {
  width: 100%;
}
@media screen and (min-width: 768px) {
  .museo h2 {
    font-size: 1.8em;
  }
}

@media screen and (min-width: 1024px) {
  .museo h2 {
    font-size: 2em;
  }
}