/* PRUEBA CON AYUDA DE GIBHUB IA */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;700&family=Raleway:wght@300;400;600&display=swap');

:root {
  --color-fondo: #0D0D0D;
  --color-texto: #e8e0d0;
  --color-acento: #F2DABD;
  --color-secundario: #a19172;
  --color-hover: #591111;
}

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

body {
  font-family: 'Raleway', sans-serif;
  background-color: var(--color-fondo);
  color: var(--color-texto);
  line-height: 1.6;
}

/* Header y navegación */
header {
  background-color: #a19172;
  padding: 1rem 5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: static;
  z-index: 100;
  border-bottom: 1px solid var(--color-acento);
}

header div img {
  height: 50px;
  filter: sepia(50%);
}

nav ul {
  display: flex;
  list-style: none;
  gap: 2rem;
}

nav ul li a {
  color: var(--color-hover);
  text-decoration: none;
  text-transform: uppercase;
  font-size: 0.9rem;
  letter-spacing: 1px;
  font-weight: 600;
  transition: color 0.3s ease;
}

nav ul li a:hover {
  color: var(--color-texto);
}

/* Sección principal con banner */
main section:first-child {
  height: 70vh;
  display: grid;
  align-items: center;
  margin-bottom: auto;
  padding: 2rem 5%;
  position: relative;
}


main section:first-child h1 {
  font-family: 'Playfair Display', serif;
  font-size: 4.5rem;
  font-weight: 700;
  color: var(--color-texto);
  line-height: 1.1;
  max-width: 1200px;
}

main section:first-child h2 {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  font-weight: 400;
  color: var(--color-acento);
}

main section:first-child p {
  max-width: 1200px;
  font-size: 1.1rem;
}

main section:first-child h4 {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  color: var(--color-acento);
}

/* Sección del equipo */
main section:nth-child(2) {
  padding: 4rem 5%;
  background-color: var(--color-secundario);
}

main section:nth-child(2) h2 {
  font-family: 'Playfair Display', serif;
  font-size: 2.5rem;
  color: var(--color-hover);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

main section:nth-child(2) > div {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

main section:nth-child(2) article {
  background-color: rgba(0, 0, 0, 0.2);
  border-radius: 5px;
  overflow: hidden;
  transition: transform 0.3s ease;
  display: grid;
  grid-template-rows: 250px 1fr;
}

main section:nth-child(2) article:hover {
  transform: translateY(-5px);
}

main section:nth-child(2) figure {
  height: 250px;
  overflow: hidden;
}

main section:nth-child(2) figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: sepia(30%);
  transition: filter 0.3s ease;
}

main section:nth-child(2) article:hover figure img {
  filter: sepia(0%);
}

main section:nth-child(2) article div {
  display: grid;
  grid-template-rows: auto 1fr auto;
  align-items: center;
  justify-items: center;
  gap: 0.5rem;
  padding: 1.5rem;
  height: 100%;
}

main section:nth-child(2) h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  color: var(--color-hover);
  text-align: center;
}

main section:nth-child(2) div p:first-of-type {
  font-weight: 600;
  font-style: italic;
  text-align: center;
}

main section:nth-child(2) a {
  display: inline-block;
  margin-top: 1rem;
  color: var(--color-hover);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
  align-self: center;
}

main section:nth-child(2) a:hover {
  color: var(--color-acento);
}

/* Sección de datos académicos */
main section:nth-child(3) {
  padding: 4rem 5%;
}

main section:nth-child(3) h2 {
  font-family: 'Playfair Display', serif;
  font-size: 2.5rem;
  color: var(--color-texto);
  margin-bottom: 2rem;
  text-align: center;
}

main section:nth-child(3) > ul {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

main section:nth-child(3) > ul > li {
  background-color: #f2dabd8a;
  border-radius: 5px;
  padding: 2rem;
  display: grid;
  grid-template-rows: auto 1fr;
  align-items: center;
  text-align: center;
}

main section:nth-child(3) figure {
  width: 250px;
  height: 250px;
  display: grid;
  grid-template-rows: 1fr;
  justify-content: center;
  align-items: center;
}

main section:nth-child(3) figure img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  filter: grayscale(50%) sepia(20%);
}

main section:nth-child(3) h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--color-acento);
}

main section:nth-child(3) h4 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

main section:nth-child(3) ul ul {
  list-style: none;
  margin: 1rem 0;
}

main section:nth-child(3) a {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.5rem 1rem;
  background-color: var(--color-acento);
  color: var(--color-fondo);
  text-decoration: none;
  font-weight: 600;
  border-radius: 3px;
  transition: background-color 0.3s ease;
}

main section:nth-child(3) a:hover {
  background-color: var(--color-hover);
}

/* Sección de películas (similar a la imagen) */
.peliculas-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 2rem;
  padding: 2rem 0;
}

.pelicula-card {
  background-color: rgba(0, 0, 0, 0.2);
  border-radius: 5px;
  overflow: hidden;
  transition: transform 0.3s ease;
}

.pelicula-card:hover {
  transform: translateY(-5px);
}

.pelicula-poster {
  height: 300px;
  overflow: hidden;
}

.pelicula-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: sepia(50%);
}

.pelicula-card:hover .pelicula-poster img {
  filter: sepia(20%);
}

.pelicula-info {
  padding: 1.5rem;
}

.pelicula-titulo {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  color: var(--color-acento);
}

.pelicula-anio {
  font-size: 1rem;
  color: var(--color-texto);
  opacity: 0.8;
}

/* Footer */
footer {
  background-color: var(--color-secundario);
  padding: 2rem 5%;
  text-align: center;
  border-top: 1px solid rgba(161, 145, 114, 0.3);
}

footer p {
  font-size: 0.9rem;
  color: var(--color-texto);
  opacity: 0.7;
  max-width: 800px;
  margin: 0 auto;
}

/* Media queries para responsividad */
@media (max-width: 768px) {
  main section:first-child h1 {
    font-size: 3rem;
  }
  
  main section:first-child h2 {
    font-size: 1.5rem;
  }
  
  header {
    flex-direction: column;
    padding: 1rem;
  }
  
  nav ul {
    margin-top: 1rem;
    gap: 1rem;
  }
}

@media (max-width: 480px) {
  main section:first-child h1 {
    font-size: 2.5rem;
  }
  
  nav ul {
    flex-wrap: wrap;
    justify-content: center;
  }
}

/* Estilos para la home - banner principal */
.home-banner {
  height: 100vh;
  position: relative;
  background-image: linear-gradient(rgba(30, 27, 23, 0.6), rgba(30, 27, 23, 0.8)), url('https://example.com/background.jpg');
  background-position: center;
  background-size: cover;
  display: flex;
  align-items: center;
  justify-content: center;
}

.home-banner-content {
  text-align: center;
  max-width: 800px;
  padding: 0 2rem;
}

.home-title {
  font-family: 'Playfair Display', serif;
  font-size: 5rem;
  line-height: 1;
  margin-bottom: 2rem;
}

.home-subtitle {
  font-size: 1.5rem;
  max-width: 600px;
  margin: 0 auto 3rem;
}

.play-button {
  width: 80px;
  height: 80px;
  background-color: rgba(161, 145, 114, 0.2);
  border: 2px solid var(--color-acento);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 auto 3rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.play-button:hover {
  background-color: rgba(161, 145, 114, 0.4);
  transform: scale(1.1);
}

.play-button::after {
  content: '';
  width: 0;
  height: 0;
  border-top: 15px solid transparent;
  border-bottom: 15px solid transparent;
  border-left: 25px solid var(--color-acento);
  margin-left: 5px;
}

/* Estilos para la sección de películas como en la imagen */
.peliculas-section {
  padding: 4rem 5%;
  background-color: var(--color-fondo);
}

.peliculas-heading {
  font-family: 'Playfair Display', serif;
  font-size: 2.5rem;
  margin-bottom: 3rem;
  color: var(--color-texto);
}