/* RESET BÁSICO */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background-color: #050608;
  color: #f5f5f5;
  line-height: 1.6;
}

/* LAYOUT GLOBAL */

main {
  max-width: 1100px;
  margin: 0 auto;
  padding-bottom: 3rem;
}

/* CABECERA */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.8rem 5vw;
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid #222;
}

.logo-texto {
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #ffffff;
  font-size: 0.9rem;
}

.site-nav ul {
  list-style: none;
  display: flex;
  gap: 1rem;
  margin: 0;
  padding: 0;
}

.site-nav a {
  color: #cfcfcf;
  text-decoration: none;
  font-size: 0.9rem;
  padding-bottom: 0.2rem;
  border-bottom: 2px solid transparent;
}

.site-nav a.activo,
.site-nav a:hover {
  color: #ffffff;
  border-bottom-color: #e50914;
}

/* HERO / PORTADA */

.hero {
  padding: 2.8rem 5vw 2rem;
  background: radial-gradient(circle at top, #1b1b1b 0, #050608 55%);
}

.hero-texto h1 {
  font-family: "Georgia", "Times New Roman", serif;
  font-size: 2.1rem;
  margin-bottom: 0.5rem;
  letter-spacing: 0.03em;
}

.hero-texto p {
  max-width: 620px;
  color: #cfcfcf;
  font-size: 0.98rem;
}

/* ÍNDICE PELÍCULAS */

.indice-peliculas {
  padding: 1.5rem 5vw 1.8rem;
  border-top: 1px solid #141414;
  border-bottom: 1px solid #141414;
  background: #08090b;
}

.indice-peliculas h2 {
  font-size: 1.1rem;
  margin-bottom: 0.6rem;
  font-family: "Georgia", serif;
}

.indice-peliculas ul {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 0.4rem 1rem;
  padding: 0;
  margin: 0;
}

.indice-peliculas a {
  display: block;
  padding: 0.3rem 0;
  color: #d8d8d8;
  text-decoration: none;
  font-size: 0.9rem;
}

.indice-peliculas a:hover,
.indice-peliculas a.activo {
  color: #ffffff;
}

/* SECCIONES DE PELÍCULA */

.pelicula {
  padding: 2.5rem 5vw 2.5rem;
  border-bottom: 1px solid #141414;
}

.pelicula-cabecera h2 {
  font-family: "Georgia", serif;
  font-size: 1.6rem;
  margin-bottom: 0.35rem;
}

.pelicula-meta {
  font-size: 0.88rem;
  color: #aaaaaa;
}

/* TARJETA PRINCIPAL PELÍCULA */

.pelicula-layout {
  display: grid;
  grid-template-columns: minmax(190px, 230px) minmax(0, 1fr);
  gap: 1.8rem;
  margin-top: 1.6rem;
  align-items: flex-start;
}

/* CONTROL DE TAMAÑO DEL PÓSTER */

.pelicula-poster figure {
  margin: 0;
}

.pelicula-poster img {
  display: block;
  width: 100%;
  max-width: 230px;     /* ancho máximo visual del póster */
  height: auto;
  border-radius: 6px;
  object-fit: cover;
  box-shadow: 0 18px 35px rgba(0, 0, 0, 0.7);
}

.pelicula-poster figcaption {
  font-size: 0.78rem;
  color: #b0b0b0;
  margin-top: 0.5rem;
}

/* TEXTO DE LA RESEÑA */

.pelicula-resena p {
  margin: 0 0 0.9rem;
  font-size: 0.97rem;
  color: #e3e3e3;
}

.pelicula-hechos h3 {
  font-size: 0.96rem;
  margin: 0.7rem 0 0.3rem;
  font-family: "Georgia", serif;
}

.pelicula-hechos ul {
  margin: 0;
  padding-left: 1.1rem;
  font-size: 0.9rem;
  color: #c7c7c7;
}

/* GALERÍA DE IMÁGENES */

.pelicula-galeria {
  margin-top: 2rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 1rem;
}

/* Contenedor uniforme para que las imágenes se recorten bien */
.pelicula-galeria figure {
  margin: 0;
  background: #0d0e11;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid #1a1a1a;
}

/* CONTROL CLAVE: TODAS LAS IMÁGENES DE GALERÍA AL MISMO ALTO */
.galeria-img {
  width: 100%;
  height: 190px;        /* alto uniforme atractivo */
  object-fit: cover;    /* recorta la imagen sin deformarla */
  display: block;
}

.pelicula-galeria figcaption {
  font-size: 0.8rem;
  padding: 0.45rem 0.6rem 0.6rem;
  color: #c0c0c0;
}

/* FOOTER */

.site-footer {
  padding: 1.4rem 5vw 1.7rem;
  text-align: center;
  background: #000;
  font-size: 0.85rem;
  color: #8d8d8d;
}

/* RESPONSIVE */

@media (max-width: 900px) {
  main {
    max-width: 100%;
  }

  .pelicula-layout {
    grid-template-columns: 1fr;
  }

  .pelicula-poster img {
    max-width: 260px;
    margin: 0 auto;
  }
}

@media (max-width: 600px) {
  .hero {
    padding: 2.1rem 1.4rem 1.4rem;
  }

  .pelicula {
    padding: 2rem 1.4rem;
  }

  .indice-peliculas {
    padding: 1.5rem 1.4rem;
  }

  .hero-texto h1 {
    font-size: 1.7rem;
  }
}




/* ═══════════════════════════════════════════════════════════════ */
/* SECCIÓN: SOBRE ALFRED HITCHCOCK - ACORDEÓN */
/* ═══════════════════════════════════════════════════════════════ */

.sobre-seccion {
  padding: 3rem 5vw 3rem;
  background: linear-gradient(135deg, #08090b 0%, #0d0e11 100%);
  border-bottom: 1px solid #141414;
  margin-bottom: 2rem;
}

.sobre-cabecera {
  margin-bottom: 2.2rem;
}

.sobre-cabecera h2 {
  font-family: "Georgia", serif;
  font-size: 1.8rem;
  margin-bottom: 0.4rem;
}

.sobre-subtitulo {
  font-size: 0.95rem;
  color: #b0b0b0;
}

/* ACORDEÓN: Estructura y estilos */

.acordeon {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.acordeon-item {
  background: #0d0e11;
  border: 1px solid #1a1a1a;
  border-radius: 6px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.acordeon-item:hover {
  border-color: #7e859c;
}

/* BOTÓN DEL ACORDEÓN */

.acordeon-boton {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 1rem 1.2rem;
  background: transparent;
  border: none;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  font-size: 0.98rem;
  font-weight: 500;
  color: #e3e3e3;
  transition: all 0.3s ease;
}

.acordeon-boton:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.03);
}

.acordeon-boton:focus {
  outline: 2px solid #e50914;
  outline-offset: -2px;
}

.acordeon-titulo {
  flex: 1;
}

.acordeon-icono {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  margin-left: 0.8rem;
  font-size: 1.2rem;
  color: #e50914;
  line-height: 1;
  transition: transform 0.3s ease;
}

/* CUANDO EL ACORDEÓN ESTÁ ABIERTO */

.acordeon-boton[aria-expanded="true"] {
  background: rgba(255, 255, 255, 0.05);
  color: #ffffff;
}

.acordeon-boton[aria-expanded="true"] .acordeon-icono {
  transform: rotate(45deg);
}

/* CONTENIDO DEL ACORDEÓN */

.acordeon-contenido {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}
/*
.acordeon-boton[aria-expanded="true"] ~ .acordeon-contenido {
  max-height: 2000px;
  overflow: visible;
}
*/
.acordeon-texto {
  padding: 0 1.2rem 1.2rem;
  font-size: 0.95rem;
  line-height: 1.7;
  color: #d8d8d8;
}

.acordeon-texto p {
  margin: 0 0 1rem;
}

.acordeon-texto p:last-child {
  margin-bottom: 0;
}

.acordeon-texto h3 {
  font-family: "Georgia", serif;
  font-size: 1.05rem;
  margin: 1.2rem 0 0.6rem;
  color: #ffffff;
}

.acordeon-texto h3:first-child {
  margin-top: 0;
}

.acordeon-texto ul {
  margin: 0.8rem 0 1rem;
  padding-left: 1.4rem;
  list-style: disc;
}

.acordeon-texto li {
  margin-bottom: 0.5rem;
}

/* TABLA MACGUFFIN */

.tabla-macguffin {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
  font-size: 0.9rem;
  border: 1px solid #222;
}

.tabla-macguffin thead {
  background: rgba(229, 9, 20, 0.1);
}

.tabla-macguffin th {
  padding: 0.8rem;
  text-align: left;
  font-weight: 600;
  color: #e50914;
  border-bottom: 1px solid #222;
}

.tabla-macguffin td {
  padding: 0.7rem 0.8rem;
  border-bottom: 1px solid #1a1a1a;
  color: #c7c7c7;
}

.tabla-macguffin tbody tr:hover {
  background: rgba(255, 255, 255, 0.02);
}

/* RESPONSIVE */

@media (max-width: 900px) {
  .sobre-seccion {
    padding: 2.5rem 1.5rem;
  }

  .sobre-cabecera h2 {
    font-size: 1.5rem;
  }

  .acordeon-boton {
    padding: 0.9rem 1rem;
    font-size: 0.93rem;
  }

  .tabla-macguffin {
    font-size: 0.85rem;
  }

  .tabla-macguffin th,
  .tabla-macguffin td {
    padding: 0.6rem;
  }
}

@media (max-width: 600px) {
  .sobre-seccion {
    padding: 2rem 1.4rem;
    margin-bottom: 1.5rem;
  }

  .sobre-cabecera h2 {
    font-size: 1.35rem;
  }

  .sobre-subtitulo {
    font-size: 0.9rem;
  }

  .acordeon-boton {
    padding: 0.85rem 0.9rem;
    font-size: 0.9rem;
  }

  .acordeon-icono {
    width: 24px;
    height: 24px;
    font-size: 1rem;
  }

  .acordeon-texto {
    padding: 0 0.9rem 0.9rem;
  }

  .tabla-macguffin {
    font-size: 0.8rem;
  }

  .tabla-macguffin th,
  .tabla-macguffin td {
    padding: 0.5rem;
  }
}

/* ═══════════════════════════════════════════════════════════════ */
/* FOOTER MINIMALISTA KRISOL.ES */
/* ═══════════════════════════════════════════════════════════════ */

.site-footer {
  border-top: 1px solid #181818;
  background: #020203;
  padding: 2.2rem 5vw 1.8rem;
  color: #9a9a9a;
  font-size: 0.88rem;
}

.footer-contenido {
  max-width: 1100px;
  margin: 0 auto 1.5rem;
  display: grid;
  grid-template-columns: 2fr 2fr 1.5fr;
  gap: 2rem;
}

.footer-bloque {
  min-width: 0;
}

.footer-titulo-sitio {
  font-family: "Georgia", serif;
  font-size: 1rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #f5f5f5;
  margin: 0 0 0.5rem;
}

.footer-texto {
  margin: 0;
  color: #b8b8b8;
  line-height: 1.7;
}

.footer-label {
  margin: 0 0 0.4rem;
  font-size: 0.86rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #d0d0d0;
}

.footer-destacado {
  color: #ffffff;
}

.footer-menu {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-menu li {
  margin-bottom: 0.25rem;
}

.footer-menu a {
  color: #b8b8b8;
  text-decoration: none;
  font-size: 0.87rem;
}

.footer-menu a:hover {
  color: #ffffff;
  text-decoration: underline;
}

.footer-base {
  max-width: 1100px;
  margin: 0 auto;
  border-top: 1px solid #111;
  padding-top: 0.9rem;
  text-align: center;
}

.footer-copy {
  margin: 0;
  color: #707070;
  font-size: 0.8rem;
}

/* Responsive footer */

@media (max-width: 900px) {
  .footer-contenido {
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
  }

  .footer-enlaces {
    text-align: left;
  }
}

@media (max-width: 600px) {
  .site-footer {
    padding: 2rem 1.4rem 1.6rem;
  }

  .footer-contenido {
    grid-template-columns: 1fr;
  }

  .footer-base {
    text-align: left;
  }
}




