/* Fuente */
@import url("https://fonts.googleapis.com/css2?family=Cinzel:wght@400;600;700&family=Lato&display=swap");

/* Reset y estilos base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Lato", sans-serif;
  background: linear-gradient(to bottom, #111 0%, #222 100%);
  background-image: url(../img/backgorund.jpg);
  background-size: cover;
  background-attachment: fixed;
  background-position: center;
}

h1 {
  display: none;
}

h2,
h3 {
  font-family: "Cinzel", serif;
}

h2 {
  text-align: center;
  font-size: 2rem;
  margin: 1.5rem 0;
  padding: 2rem 0 3rem 0;
  color: #fff;
}

p {
  font-size: 1.2rem;
  margin-bottom: 1rem;
  line-height: 30px;
}

img {
  max-width: 100%;
  height: auto;
}

/* Seccion  */
section {
  padding: 4rem 2rem 6rem 2rem;
}

/* Navegación */
nav {
  background-color: #000000;
  padding: 2rem 3rem;
  box-shadow: 0 4px 6px rgba(255, 255, 255, 0.1);
}

nav ul {
  display: flex;
  justify-content: center;
  gap: 6rem;
  flex-wrap: wrap;
  list-style: none;
  align-items: center;
}

nav li a {
  color: #fff;
  font-family: "Cinzel", serif;
  text-decoration: none;
  font-weight: bold;
  font-size: 1rem;
  transition: color 0.3s ease, transform 0.3s ease;
}

nav li a:hover {
  color: #f8f4ff;
  transform: scale(1.1);
  border-bottom: 2px solid white;
}

/* logo */
header img {
  width: auto;
  height: 50px;
  display: block;
}

/* Contenedor principal */
.container {
  width: calc(100% - 30px);
  max-width: 1080px;
  margin: auto;
}

/* Estilos de cada seccion */
#intro {
  padding: 0 0 4rem 0;
}

#intro,
#personajes,
#sorteo {
  background: radial-gradient(
    circle,
    rgba(184, 138, 158, 1) 0%,
    rgba(75, 69, 79, 1) 100%
  );
}

#caracteristicas {
  background-color: #f4f4f4;
  border-bottom-left-radius: 15px;
  border-bottom-right-radius: 15px;
}

#galeria {
  background: radial-gradient(
    circle,
    rgba(75, 69, 79, 1) 0%,
    rgba(0, 0, 0, 1) 100%
  );
}

#personajes,
#sorteo {
  border-top-left-radius: 15px;
  border-top-right-radius: 15px;
}

#sorteo {
  margin-bottom: 2rem;
  border-bottom-left-radius: 15px;
  border-bottom-right-radius: 15px;
}

/* Sección Intro */
.banner {
  padding: 0 0 2rem 0;
  margin: 0;
}

.img-mobile {
  display: none;
}

.container-poster {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 4rem;
  padding: 0 0 4rem 0;
  background-color: #f4f4f4;
  margin: 4rem 5rem;
  max-width: 1100px;
  border-radius: 12px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  flex-wrap: wrap;
}

.lista-poster {
  width: 50%;
}

.container-poster-texto {
  padding: 0 2.5rem 2rem 3.5rem;
  margin: 0 3rem;
}
.img-poster {
  width: 200px;
  border-radius: 8px;
  margin-bottom: 2rem;
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.4);
}

.text-title {
  color: #000000;
  margin: 1.7rem 0 0.5rem 0;
  text-align: left;
}

.text-poster {
  font-size: 1.3rem;
}

.destacado {
  font-weight: bold;
}
.cursiva {
  font-style: italic;
}
.subrayado {
  text-decoration: underline;
}

.container-poster ul {
  font-family: sans-serif;
  font-size: 1.4rem;
  line-height: 2;
  padding: 0;
  margin: 0;
}

.titulo-item {
  font-weight: bold;
}

/* Sección Caracteristicas */
.contenedor-caract {
  display: flex;
  flex-direction: column;
  padding: 0rem 5rem;
  margin-bottom: 6rem;
  gap: 9rem;
  text-align: justify;
}

.titulo-caracteristicas {
  color: #000000;
}

.tarjeta-caract {
  display: flex;
  gap: 3rem;
  align-items: stretch;
}

.tarjeta-caract-img,
.tarjeta-caract-texto {
  flex: 1;
}

.tarjeta-caract-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.tarjeta-caract-img img:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.tarjeta-caract:nth-child(even) {
  flex-direction: row-reverse;
}

.tarjeta-caract-texto {
  width: 50%;
  max-width: 500px;
}

.tarjeta-caract-texto h3 {
  margin: 0 0 0.9rem;
  font-size: 1.6rem;
}

/* sección video */
.video {
  max-width: 100%;
  aspect-ratio: 16 / 9;
  margin: 0 auto;
}

.video iframe {
  width: 100%;
  height: 100%;
  border: 2px solid white;
  border-radius: 12px;
  transition: all 0.3s ease;
}

.video iframe:hover {
  transform: scale(1.02);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.3);
}

/* sección personajes */
.contenedor-personajes {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 3rem;
  padding: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.personaje {
  background-color: white;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  padding: 1rem 3rem 3rem 1rem;
  transition: transform 0.2s ease;
}

.personaje:hover {
  transform: scale(1.02);
}

figcaption {
  margin: 1rem 1.5rem;
  padding: 1rem 0;
}

.personaje-img {
  max-height: 350px;
  width: auto;
  display: block;
  margin: 0 auto;
}

.nombre-personaje {
  text-align: center;

  font-size: 1.6rem;
  font-weight: bold;
}

.interprete {
  font-style: italic;
  margin: 1.7rem 0 1rem 0;
  color: #595858;
}

/* seccion galeria */
.galeria-imagenes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem;
  margin: 0 2.5rem;
  padding-bottom: 5rem;
}

.titulo-galeria {
  color: #ffffff;
}

.item-imagen img {
  width: 100%;
  border-radius: 8px;
  object-fit: cover;
  background-color: #f4f4f4;
  box-shadow: 0 2px 6px rgba(255, 255, 255, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.item-imagen img:hover {
  transform: scale(1.03);
  box-shadow: 0 4px 12px rgba(255, 255, 255, 0.3);
}

/* seccion sorteo */
.formulario-con-imagen {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
  background-color: #f4f4f4;
  border-radius: 16px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  padding: 4rem 2rem;
  margin: 3rem 2rem;
}

.imagen-sorteo img {
  width: 400px;
  max-width: 100%;
  border-radius: 12px;
}

.texto-formulario {
  color: #fff;
  text-align: center;
}

form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 400px;
  width: 100%;
}

form label {
  font-weight: bold;
}

form input,
form select,
form textarea {
  padding: 0.5rem;
  border-radius: 8px;
  border: 1px solid #ccc;
  font-size: 1rem;
  width: 100%;
}

input,
select,
textarea {
  margin-top: 0.7rem;
}

form button {
  background-color: #000000;
  color: white;
  padding: 0.8rem;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.2s ease;
  font-weight: 600;
}

form button:hover {
  background-color: #4d4761;
  color: rgb(255, 255, 255);
}

/* Footer */
footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 2rem;
  background-color: #000000;
  color: #fff;
  border-top: 3px solid #fff;
  margin-top: 6rem;
}

.texto-sorteo {
  padding: 1rem 2rem;
}
.info-foto {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 20px;
}

.foto img {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #fff;
}

/* Media Queries */

/*------------------------------- Pantallas Mobile ------------------------ */
@media (max-width: 420px) {
  h2 {
    font-size: 1.5rem;
    margin: 1.5rem 0;
  }

  p {
    font-size: 1rem;
    line-height: 25px;
  }

  section {
    padding: 2em;
    margin: 0 1.5rem;
  }
  /*--- Nav--- */
  nav {
    padding: 1rem;
  }

  nav ul {
    flex-direction: column;
    gap: 1rem;
    align-items: center;
  }

  nav li a {
    font-size: 0.9rem;
  }

  /* Banner */
  .img-mobile {
    display: block;
    width: 100%;
    height: auto;
  }

  .img-desktop {
    display: none;
  }

  /*---Intro--- */

  .container-poster {
    flex-direction: column;
    padding: 0.5rem;
    margin: 1rem;
    gap: 2rem;
    background-color: #f4f4f4;
  }

  .container-poster-texto {
    padding: 0 0.5rem 2rem 0.5rem;
    margin: 0 1rem;
    text-align: center;
  }

  .img-poster {
    width: 70%;
    margin-bottom: 1rem;
  }

  .text-title {
    font-size: 1rem;
    text-align: center;
  }

  .text-poster {
    font-size: 1rem;
  }

  .lista-poster {
    width: 75%;
  }

  .container-poster ul {
    font-size: 1rem;
    padding-bottom: 3rem;
  }

  /*--- Caracteristicas---  */
  #caracteristicas {
    background-color: #f4f4f4;
  }

  .tarjeta-caract-texto h3 {
    text-align: center;
    font-size: 1.4rem;
    line-height: 20px;
  }
  .tarjeta-caract {
    flex-direction: column;
    align-items: center;
  }

  .tarjeta-caract-img {
    display: none;
  }

  .tarjeta-caract-texto {
    width: 100%;
    max-width: 100%;
    text-align: center;
  }

  .contenedor-caract {
    padding: 0 1rem;
    gap: 2rem;
  }

  /*--- Personajes---  */

  .contenedor-personajes {
    grid-template-columns: 1fr;
    padding: 0.1rem;
  }

  .personaje {
    padding: 1rem;
    box-shadow: none;
  }

  .personaje-img {
    max-height: 200px;
  }

  figcaption {
    margin: 0.5rem 1rem;
    padding: 0;
    font-size: 1em;
    text-align: left;
  }

  figcaption p {
    line-height: 18px;
  }

  .nombre-personaje {
    font-size: 1.2rem;
  }

  .interprete {
    font-size: 0.9rem;
  }

  .galeria-imagenes {
    gap: 1rem;
    margin: 0 0.5rem;
    grid-template-columns: repeat(2, 1fr);
  }

  /*--- Form sorteo----  */
  #sorteo {
    padding: 4rem 1rem 6rem 1rem;
  }

  .formulario-con-imagen {
    flex-direction: column;
    align-items: center;
    text-align: left;
    margin: 0.5rem;
    padding: 2.5rem 1.5rem;
  }

  .texto-sorteo {
    padding: 1rem 0.3rem;
  }
  form label {
    font-size: 1rem;
    font-weight: 500;
  }
  .imagen-sorteo {
    display: none;
  }

  form {
    width: 100%;
    max-width: 100%;
  }

  form input,
  form select,
  form textarea {
    padding: 0.2rem;
    width: 100%;
  }

  input,
  select,
  textarea {
    margin: 1rem 0;
  }
}

/*-------------------------------- Pantallas tablet --------------------*/
@media (min-width: 421px) and (max-width: 768px) {
  /*----Generales---- */
  h2 {
    font-size: 1.8rem;
  }

  p {
    font-size: 1.5rem;
    line-height: 35px;
  }

  section {
    padding: 1em;
    margin: 0 3rem;
  }

  /*Nav  */
  nav {
    padding: 1.5rem 2rem;
  }

  nav ul {
    gap: 1rem;
  }

  nav li a {
    font-size: 1rem;
  }
  /*Intro */
  .container-poster {
    flex-direction: column;
    padding: 0.3rem;
    margin: 3rem 2rem;
  }

  .container-poster-texto {
    margin: 0;
    max-width: 100%;
    text-align: center;
  }

  .img-poster {
    width: 60%;
    margin-bottom: 1rem;
  }

  .text-title {
    font-size: 1.5rem;
  }

  .text-poster {
    font-size: 1.2rem;
  }

  .container-poster ul {
    font-size: 1.2rem;
    padding-bottom: 4rem;
  }

  .lista-poster {
    width: 65%;
  }

  /*Caracteristicas */
  .contenedor-caract {
    gap: 5rem;
  }

  .tarjeta-caract,
  .tarjeta-caract:nth-child(even) {
    flex-direction: column;
    align-items: center;
    text-align: left;
  }

  .tarjeta-caract-texto {
    width: 100%;
    text-align: center;
  }

  .tarjeta-caract-img {
    width: 100%;
  }
  .tarjeta-caract-texto p {
    text-align: left;
  }

  /* ---Personajes ---*/
  .contenedor-personajes {
    grid-template-columns: 1fr;
    padding: 1.5rem;
  }

  .personaje {
    padding: 1rem 1.5rem 2rem 1rem;
  }

  .personaje-img {
    max-height: 250px;
  }

  figcaption {
    font-size: 1.6em;
    text-align: center;
  }

  .nombre-personaje {
    font-size: 1.6rem;
  }

  .interprete {
    font-size: 1.3rem;
  }

  /* Galeria */
  .galeria-imagenes {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Form sorteo */

  .imagen-sorteo img {
    width: 100%;
    max-width: 500px;
    height: auto;
  }

  form {
    width: 100%;
    max-width: 500px;
  }
  form label {
    font-size: 1.5rem;
    font-weight: 500;
  }

  form input,
  form select,
  form textarea {
    padding: 1rem;
    width: 100%;
  }

  input,
  select,
  textarea {
    margin: 1rem 0;
  }
}
