@import url("https://fonts.googleapis.com/css2?family=Noto+Sans:ital,wght@0,100..900;1,100..900&family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&family=Space+Grotesk:wght@300..700&display=swap");

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

body {
  font-family: "Roboto", sans-serif;
  background-color: hsl(206, 60%, 7%);
}

.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2rem;
  background-color: hsl(206, 60%, 7%);
  color: hsl(0, 0%, 95%);
  max-width: 90rem;
  margin-inline: auto;
}

.logo img {
  max-width: 4rem;
}

.hamburguesa {
  display: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: white;
}

.menu {
  display: none;
  flex-direction: column;
  z-index: 1000;
}

.menu-op {
  display: flex;
  gap: 3rem;
  margin: 0;
}

.menu-op li {
  list-style: none;
}

.menu-op a {
  text-decoration: none;
  color: white;
  font-size: 1rem;
  padding: 0.5rem 1rem;
}

.menu-op a:hover {
  background-color: hsl(195, 100%, 55%);
  color: hsl(206, 60%, 7%);
  border-radius: 2rem;
}

/* Banner */
.banner {
  position: relative;
  max-width: 100%;
  height: 60vh;
  background-image: url(../imagenes/banner.jpg);
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

.banner-contenido {
  position: absolute;
  top: 50%;
  left: 45%;
  transform: translate(-40%, -40%);
  text-align: center;
  color: white;
}

.banner-contenido h1 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.banner-contenido p {
  font-size: 1rem;
  margin-top: 0.5rem;
}

.banner-boton {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.5rem 1.5rem;
  font-size: 1rem;
  font-weight: 500;
  color: hsl(206, 60%, 7%);
  background-color: hsl(44, 100%, 50%);
  text-decoration: none;
  border-radius: 2rem;

}

.banner-boton:hover {
  background-color: hsl(0, 0%, 95%);
}

/* Sección Lo más visto */
.mas-visto {
  padding: 2rem;
  max-width: 90rem;
  margin-inline: auto;
}

.mas-visto h2 {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  color: hsl(0, 0%, 95%);
}

.card-contenedor {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(2, 1fr);
}

.card {
  overflow: hidden;
  text-align: left;
}

.card img {
  width: 100%;
  height: auto;
  display: block;
  transition: filter 0.2s ease;
  border-radius: 0.5rem;
}

.card h3 {
  padding: 0.2rem 0;
  color: hsl(44, 100%, 50%);
}

.card p {
  padding: 0 0 0.5rem 0;
  font-size: 1rem;
  font-weight: 300;
  color: hsla(0, 0%, 95%);
}

.etiqueta {
  padding: 0 0.8rem;
  text-decoration: none;
  color: hsl(206, 60%, 7%);
  background-color: hsla(0, 0%, 95%, 50%);
  border-radius: 1rem;
}

.card a:hover {
  background-color: hsl(195, 100%, 55%);
}

.card img:hover {
  filter: brightness(1.2);
}

/* Sección Próximos estrenos */
.estrenos {
  padding: 1rem 2rem;
  background-color: hsl(206, 60%, 7%);
  max-width: 90rem;
  margin-inline: auto;
}

.estrenos h2 {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  color: hsl(0, 0%, 95%);
}

.deslizado-contenedor {
  display: flex;
  gap: 1.5rem;
  overflow-x: auto;
  padding-bottom: 1rem;
  scroll-behavior: smooth;
}

.card-horizontal {
  flex: 0 0 auto;
  width: 25rem;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.card-horizontal img {
  width: 100%;
  height: auto;
  border-radius: 0.5rem;
  object-fit: cover;
  transition: filter 0.2s ease;
}

.card-contenido h3 {
  padding: 0.2rem 0;
  color: hsl(44, 100%, 50%);
}

.card-contenido p {
  padding-bottom: 0.5rem;
  font-size: 1rem;
  font-weight: 300;
  color: hsl(0, 0%, 95%);
}

.card-contenido a {
  padding: 0 0.8rem;
  text-decoration: none;
  color: hsl(206, 60%, 7%);
  background-color: hsla(0, 0%, 95%, 50%);
  border-radius: 1rem;
}

.card-contenido a:hover {
  background-color: hsl(195, 100%, 55%);
}

.card-horizontal img:hover {
  filter: brightness(1.2);
}

/* Ocultar scrollbars */
.deslizado-contenedor::-webkit-scrollbar {
  display: none;
}
.deslizado-contenedor {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* Sección Mejores valoradas */
.mas-valorados {
  padding: 1rem 2rem;
  max-width: 90rem;
  margin-inline: auto;
}

.mas-valorados h2 {
  font-size: 1.5rem;
  margin-bottom: 2rem;
  color: hsl(0, 0%, 95%);
}

.mas-valorados-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  max-width: 90rem;
  margin: 0 auto;
}

.valorados-card {
  display: flex;
  flex-direction: column;
  text-align: left;
  overflow: hidden;
}

.valorados-card img {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 0.5rem;
  transition: filter 0.2s ease;
}

.valorados-card img:hover {
  filter: brightness(1.2);
}

.valorados-contenido h3 {
  padding: 0.2rem 0;
  color: hsl(44, 100%, 50%);
}

.valorados-contenido h4 {
  color: hsl(0, 0%, 95%);
}

.comentario {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin-top: 1rem;
  font-size: 1rem;
  font-weight: 300;
  color: hsl(0, 0%, 95%);
}

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

.comentario p {
  margin: 0;
  flex: 1;
}

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

/* Sección Eventos */
.eventos {
  padding: 2rem;
  max-width: 90rem;
  margin-inline: auto;
}

.eventos h2 {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  color: hsl(0, 0%, 95%);
}

.eventos-lista {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.evento {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.evento img {
  width: 100%;
  height: auto;
  border-radius: 0.5rem;
  transition: filter 0.2s ease;
}

.evento img:hover {
  filter: brightness(1.2);
}

.evento-detalles {
  padding: 0.5rem;
}

.evento-detalles h3 {
  margin-bottom: 0.5rem;
  color: hsl(44, 100%, 50%);
}

.evento-detalles p {
  margin: 0.5rem 0;
  font-size: 1rem;
  color: hsl(0, 0%, 95%);
}

/* Sección Categorías */
.categorias {
  padding: 2rem;
  max-width: 90rem;
  margin-inline: auto;
}

.categorias h2 {
  font-size: 2rem;
  color: hsl(0, 0%, 95%);
  margin-bottom: 1rem;
}

.buscador {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  padding: 0;
}

.buscador input {
  width: 100%;
  max-width: 90rem;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  border: 1px solid #ddd;
  border-radius: 2rem;
}

.buscador button {
  background-color: hsl(195, 100%, 55%);
  color: white;
  border: none;
  padding: 0.75rem;
  border-radius: 2rem;
  cursor: pointer;
}

.buscador button:hover {
  background-color: hsl(0, 0%, 95%);
  color: hsl(206, 60%, 7%);
}

.buscador i {
  font-size: 1.2rem;
}

.categoria {
  margin-bottom: 2rem;
}

.categoria h3 {
  font-size: 1.5rem;
  color: hsl(44, 100%, 50%);
  margin-bottom: 1rem;
  text-align: left;
}

.peliculas-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.pelicula {
  overflow: hidden;
  text-align: left;
}

.pelicula img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 0.5rem;
}

.pelicula p {
  font-size: 1rem;
  color: hsl(0, 0%, 95%);
  padding: 0.5rem 0;
}

/* Sección Eventos */
.eventos {
  padding: 2rem;
  max-width: 90rem;
  margin-inline: auto;
}

.eventos h2 {
  color: hsl(0, 0%, 95%);
  margin-bottom: 1rem;
}

.calendario {
  max-width: 30rem;
  margin-inline: auto;
}

.calendario h3 {
  font-size: 1.5rem;
  color: hsl(44, 100%, 50%);
  margin-bottom: 0.5rem;
}

.calendario table {
  width: 100%;
  border-collapse: collapse;
  text-align: center;
  background-color: hsl(0, 0%, 95%);
  border-radius: 1rem;
}

.calendario th,
.calendario td {
  padding: 1rem;
  font-size: 1rem;
  color: hsl(206, 60%, 7%);
}

.calendario th {
  background-color: hsl(195, 100%, 55%);
  color: hsl(206, 60%, 7%);
}

#marcado {
  color: hsl(206, 60%, 7%);
  background-color: hsl(44, 100%, 50%);
  border-radius: 2rem;
}

.eventos-imp {
  padding: 2rem;
  max-width: 90rem;
  margin-inline: auto;
}

.eventos-imp h2 {
  color: hsl(0, 0%, 95%);
  margin-bottom: 2rem;
}

.eventos-importantes {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.evento-imp {
  display: flex;
  flex-direction: row;
  align-items: center;
  overflow: hidden;
}

.evento-imp img {
  width: 20rem;
  height: auto;
  object-fit: cover;
  border-radius: 0.5rem;
}

.evento-imp-detalle {
  padding: 1rem;
  flex: 1;
}

.evento-imp-detalle h3 {
  margin-bottom: 0.5rem;
  color: hsl(44, 100%, 50%);
}

.evento-imp-detalle p {
  font-size: 1rem;
  margin: 0.5rem 0;
  color: hsl(0, 0%, 95%);
}

.evento-imp-detalle p strong {
  font-weight: bold;
}

/* Sección Contacto */
.contacto {
  padding: 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  max-width: 90rem;
  margin-inline: auto;
}

.contacto h2 {
  color: hsl(0, 0%, 95%);
  margin-bottom: 1rem;
}

.ayuda-identidad {
  background: hsl(195, 100%, 55%);
  padding: 1.5rem;
  border-radius: 10px;
  max-width: 40rem;
  max-height: auto;
  align-content: center;
}

.ayuda-identidad h3 {
  color: hsl(206, 60%, 7%);
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.ayuda-identidad p {
  color: hsl(206, 60%, 7%);
}

.formulario-contacto {
  flex: 1;
  min-width: 40rem;
}

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

.formulario-contacto label {
  font-weight: 500;
  color: hsl(0, 0%, 95%);
}

.formulario-contacto input,
.formulario-contacto textarea {
  font-family: "Roboto", sans-serif;
  padding: 0.75rem;
  border: 1px solid #ddd;
  border-radius: 2rem;
  font-size: 1rem;
}

.formulario-contacto button {
  padding: 0.75rem;
  background: hsl(44, 100%, 50%);
  color: hsl(206, 60%, 7%);
  border: none;
  border-radius: 2rem;
  font-size: 1rem;
  cursor: pointer;
}

.formulario-contacto button:hover {
  background-color: hsl(0, 0%, 95%);
  color: hsl(206, 60%, 7%);
}

/* Selección Pelicula */
.peli-contenedor {
  max-width: 90rem;
  margin-inline: auto;
  padding: 2rem;
}

.peli-seccion {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.peli-portada img {
  width: 100%;
  max-width: 16rem;
  border-radius: .5rem;
  object-fit: cover;
}

.peli-info {
  flex: 1;
  text-align: left;
}

.peli-titulo {
  font-size: 2rem;
  color: hsl(44, 100%, 50%);
  margin-bottom: .5rem;
}

.peli-sinopsis {
  font-size: 1rem;
  margin-bottom: 1rem;
  color: hsl(0, 0%, 95%);
}

.peli-detalles {
  color: hsl(0, 0%, 95%);
  list-style: none;
  padding: 0;
  margin-bottom: 1rem;
  line-height: 1.6;
}

.peli-detalles li {
  font-size: 1rem;
}

.peli-detalles a{
  padding: .2rem 1rem;
  background-color: hsl(195, 100%, 55%);
  border-radius: 1rem;
  color: hsl(206, 60%, 7%);
  text-decoration: none;
}

.peli-botones {
  display: flex;
  gap: 1rem;
}

.btn {
  padding: .6rem 1rem;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  border-radius: 2rem;
}

.ver-boton {
  background-color: hsl(195, 100%, 55%);
  color: hsl(206, 60%, 7%);
}

.trailer-boton {
  border: 2px solid hsl(195, 100%, 55%);
  background-color: hsl(206, 60%, 7%);
  color: white;
}

.relacionado-cont {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  color: hsl(0, 0%, 95%);
}

.historia-rel h2{
  margin-bottom: 1rem;
}

.historia-rel, .reparto {
  flex: 1 1 45%;
}

.historia-rel iframe {
  width: 100%;
  height: 24rem;
  border: none;
  border-radius: .5rem;
  margin-top: 1rem;
}

.reparto-grilla {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  margin-top: 1rem;
}

.reparto-act {
  text-align: center;
}

.reparto-act img {
  width: 5rem;
  height: 5rem;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: .8rem;
}

.fotogramas {
  width: 100%;
  margin-top: 2rem;
  text-align: left;
}

.fotogramas h2 {
  margin-bottom: 1rem;
}

.fotogramas-grilla {
  display: flex;
  gap: 1rem;
  justify-content: auto;
  flex-wrap: wrap;
}

.fotogramas-grilla img {
  max-width: 20rem;
  border-radius: 10px;
  object-fit: cover;
}




/* Sección actor */
.actor-contenedor {
  max-width: 90rem;
  margin-inline: auto;
  padding: 2rem;
}

.actor-perfil {
  display: flex;
  gap: 1rem;
  align-items:end;
  margin-bottom: 1rem;
}

.actor-info h1{
  font-size: 2rem;
  margin: 0;
  color: hsl(44, 100%, 50%);
}

.actor-perfil img {
  border-radius: .5rem;
  width: 10rem;
  height: auto;
  object-fit: cover;
}

.actor-info h3, .actor-info h2 {
  margin: 0.5rem 0;
  color: hsl(0, 0%, 95%); 
}

.actor-info p {
  margin-top: 10px;
  color: hsl(0, 0%, 95%);
}

.actor-info ul {
  list-style: none;
  padding: 0;
  color: hsl(0, 0%, 95%);
}

section {
  margin-bottom: 20px;
}

.actor-pelis h2{
  color: hsl(0, 0%, 95%);
  margin: 1rem 0
}

.peli-item {
  display: flex;
  gap: 1rem;
  margin-bottom: 15px;
  align-items: center;
}

.peli-item img {
  border-radius: .5rem;
  width: 10rem;
  height: auto;
  object-fit: cover;
}

.peli-nombre h3 {
  margin: 0;
  color: hsl(195, 100%, 55%);
}

.peli-nombre p {
  margin: 5px 0;
  color: hsl(0, 0%, 95%);
}

/* Sección Foro */
.foro-contenedor {
  color: hsl(0, 0%, 95%);
  padding: 1rem 2rem;
  text-align: left;
  max-width: 90rem;
  margin-inline: auto;
}

.foro-contenedor h1{
  margin-bottom: 1rem;
}

.foro-post {
  display: flex;
  align-items: flex-start;
  background-color: hsl(0, 0%, 95%);
  margin-bottom: 1rem;
  padding: 1rem;
  border-radius: .5rem;
}

.foro-post i {
  font-size: 2.5rem;
  margin-right: 1rem;
  color: hsl(44, 100%, 50%);
}

.post-contenido h3 {
  margin: 0 0 0.5rem;
  color: hsl(206, 60%, 7%);
}

.post-contenido p {
  margin: 0 0 1rem;
  color: hsl(206, 60%, 7%);
}

.foro-boton {
  background-color: hsl(0, 0%, 70%);
  color: hsl(206, 60%, 7%);
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 2rem;
  cursor: pointer;
}

.foro-boton:hover {
  background-color: hsl(195, 100%, 55%);
}

.historias-vida {
  padding: .5rem 2rem 2rem 2rem;
  /*text-align: left;*/
  max-width: 90rem;
  margin-inline: auto;
}

.historias-vida h2 {
  margin-bottom: 1.5rem;
  color: hsl(0, 0%, 95%);
}

.historias-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(20rem, 1fr));
  gap: 1.5rem;
}

.historia {
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
}

.historia img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: .5rem;
}

.historia h3 {
  padding: 0;
  color: hsl(195, 100%, 55%);
  margin: 1rem 0 0.5rem;
}

.historia p {
  font-size: 1rem;
  color: hsl(0, 0%, 95%);
  margin: 0;
}



/* Footer */
.footer {
  background-color: hsl(204, 9%, 11%);
  color: white;
  padding: 2.5rem 4.5rem;
  max-width: 100%;
  margin-inline: auto;
}

.footer p {
  text-align: center;
  font-size: 0.8rem;
  padding-bottom: 1rem;
}

.social-icons {
  display: flex;
  justify-content: center;
  gap: 1rem;
}

.social-icons a {
  color: white;
  font-size: 1.5rem;
}

.social-icons a:hover {
  color: hsl(44, 100%, 50%);
}

/* Responsive - Mobile */
@media (max-width: 768px) {
  .hamburguesa {
    display: block;
  }

  .menu-toggle {
    display: none;
  }

  .menu-toggle:checked + .hamburguesa + .menu {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 5rem;
    right: 0;
    background-color: hsl(0, 0%, 70%);
    width: 100%;
    padding: 2rem 0;
  }

  .menu-op {
    flex-direction: column;
    gap: 2rem;
    text-align: center;
  }

  .menu-op a {
    color: hsl(206, 60%, 7%);
  }

  .peliculas-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .evento-imp {
    flex-direction: column;
    align-items: flex-start;
  }

  .evento-imp img {
    width: 100%;
  }

  .contacto {
    flex-direction: column;
  }

  .contacto,
  .formulario-contacto {
    min-width: unset;
  }

  .peli-seccion {
    flex-direction: column;
    align-items: flex-start;
  }

  .peli-info {
    text-align: left;
  }

  .peli-botones {
    flex-direction: column;
  }

  .relacionado-cont {
    flex-direction: column;
  }

  .fotogramas-grilla img{
    max-width: 100%;
  }

  .foro-post {
      flex-direction: column;
      text-align: left;
  }

  .foro-post i {
      font-size: 2rem;
      margin: 0 0 1rem 0;
  }

  .post-contenido h3 {
      font-size: 1.2rem;
  }

  .post-contenido p {
      font-size: 0.9rem;
      margin-bottom: 1rem;
  }

  .foro-boton {
      width: 100%;
      padding: 0.7rem;
  }

  .historias {
    width: 100%;
  }

  .historia h3 {
      font-size: 1.3rem;
  }

  .historia p {
      font-size: 0.9rem;
  }
}

/* Desktop */
@media (min-width: 769px) {
  .menu-toggle {
    display: none;
  }
  .menu {
    display: flex;
    align-items: center;
  }

  .hamburguesa {
    display: none;
  }

  .banner-contenido h1 {
    font-size: 3rem;
  }

  .banner-contenido p {
    font-size: 1.2rem;
  }

  .card-contenedor {
    grid-template-columns: repeat(6, 1fr); /* 6 columnas en escritorio */
  }

  .eventos-lista {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .eventos-lista {
    grid-template-columns: repeat(3, 1fr);
  }

  .peliculas-grid {
    grid-template-columns: repeat(6, 1fr);
  }
}
