@charset "utf-8";
@import url('https://fonts.googleapis.com/css2?family=Aleo:ital,wght@0,700;1,700&family=Montserrat:wght@100..900&display=swap');
/* ============================
   RESET GENERAL
============================ */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Montserrat", sans-serif;
  background: #f6f0bf;
  color: #111;
  margin-block-end: 50px; /* espacio inferior para el menú fijo */
}

section {
  padding: 20px;
  max-width: 100%;
  margin: 0 auto 20px auto;
}

a {
  text-decoration: none;
  color: inherit;
}

h1, h2 {
  font-family: "Aleo", serif;
  font-weight: 700;
  color: var(--verde-oscuro);
}

h3, h4, h5 {
  font-family: "Montserrat", sans-serif;
  font-weight: 600;
  color: var(--verde-oscuro);
  margin-block-end: 8px;
}

p {
  font-size: 1rem;
  line-height: 1.5;
  color: #444;
  max-width: 65ch;
  font-weight: 400;
}

/* Paleta de colores */
:root {
  --verde-oscuro: #324839;
  --verde-claro: #c9da9b;
  --naranja: #e59b32;
  --blanco: #fff;
  --gris-claro: #ddd;
  --rojo-dest: #a82622;
  --beige: #f6f0bf;
}

/* ============================
   HEADER Y MENÚ LATERAL
============================ */
header {
  background: #324839;
  border-bottom: 1px solid #ddd;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 10;
}

.contenedora {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 22px;
  position: relative;
}

/* LOGO */
#logotipo img {
  height: 15px;
}
#logo img {
  height: 30px;
}

/* BOTÓN HAMBURGUESA */
.menu-toggle-checkbox {
  display: none;
}

.menu-toggle-label {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 25px;
  height: 19px;
  cursor: pointer;
  z-index: 1001;
}

.btn-linea {
  height: 3px;
  width: 100%;
  background-color: #f9f9f9;
  border-radius: 3px;
  transition: all 0.3s ease;
}

/* Animación del ícono hamburguesa → X */
.menu-toggle-checkbox:checked ~ .menu-toggle-label .btn-linea:nth-child(1) {
transform: rotate(45deg) translate(5px, 6px);  
}
.menu-toggle-checkbox:checked ~ .menu-toggle-label .btn-linea:nth-child(2) {
 opacity: 0; 
}
.menu-toggle-checkbox:checked ~ .menu-toggle-label .btn-linea:nth-child(3) {
transform: rotate(-45deg) translate(5px, -6px);   
}

/* PANEL DEL MENÚ USUARIO (oculto por defecto) */
.nav-usuario {
  position: fixed;
  top: 0;
  right: -250px;
  width: 250px;
  height: 100vh;
  background-color: #324839;
  box-shadow: 2px 0 10px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  transition: right 0.4s ease;
  z-index: 1000;
  padding-top: 50px;
}

/* Mostrar menú lateral */
.menu-toggle-checkbox:checked ~ .nav-usuario {
  right: 0;
}

/* DATOS DEL USUARIO */
.perfil-usuario {
  text-align: center;
  border-bottom: 1px solid #ddd;
  padding-bottom: 15px;
  margin-bottom: 15px;
}

.avatar-usuario {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 8px;
}

.nombre-usuario {
  font-size: 1.1rem;
  font-weight: 600;
  color: #f9f9f9;
}

/* LISTA DE ENLACES */
.menu {
  list-style: none;
}

.menu li {
  border-bottom: 1px solid #eee;
}

.menu li a {
  display: block;
  padding: 14px 20px;
  color: #f9f9f9;
  text-decoration: none;
  font-weight: 500;
  transition: background 0.2s ease;
}

.menu li a:hover {
  background-color: #eba148;
}


/* ============================
   FOOTER NAVEGACIÓN INFERIOR
============================ */
.bottom-nav {
  position: fixed;
  bottom: -1px;
  left: 0;
  width: 100%;
  background: #e59b32;
  display: flex;
  justify-content: space-around;
  align-items: flex-end;
  height: 50px;
  z-index: 9999;
}

/* Radios ocultos */
.nav-toggle {
  display: none;
}

/* Botones (naranja por defecto) */
.nav-item {
  color: #fff;
  font-size: 12px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 50px;
  transition: all 0.3s ease;
  border-top-left-radius: 40px;
  border-top-right-radius: 40px;
}

.nav-item img {
  width: 26px;
  height: 26px;
  filter: brightness(0) invert(1);
  transition: transform 0.3s ease;
}

/* Botón activo (verde oscuro) */
.nav-toggle:checked + .nav-item {
  background: var(--verde-oscuro);
  height: 70px;
  box-shadow: 0 -4px 10px rgba(0, 0, 0, 0.25);
  z-index: 9999;
  padding: 6px;
  position: relative;
}

/* Submenús */
.submenu-izq {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translate(-50%, 10px);
  background: #c9da9b;
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;
  padding: 8px 0 30px;
  box-shadow: 0px -5px 8px rgba(0, 0, 0, 0.25);
  display: flex;
  flex-direction: column;
  min-width: 310px;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s ease;
}

.submenu-medio {
  position: absolute;
  bottom: 40px;
  left: 0%;
  transform: translate(-50%, 10px);
  background: #c9da9b;
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;
  padding: 8px 0 30px;
  box-shadow: 0px -5px 8px rgba(0, 0, 0, 0.25);
  display: flex;
  flex-direction: column;
  min-width: 310px;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s ease;
}

.submenu-der {
  position: absolute;
  bottom: 40px;
  left: -50%;
  transform: translate(50%, 10px);
  background: #c9da9b;
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;
  padding: 8px 0 30px;
  box-shadow: 0px -5px 8px rgba(0, 0, 0, 0.25);
  display: flex;
  flex-direction: column;
  min-width: 310px;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s ease;
}

.submenu-der a, .submenu-medio a, .submenu-izq a {
  color: var(--verde-oscuro);
  text-decoration: none;
  padding: 8px 16px;
  display: block;
  font-weight: 600;
}

/* Mostrar submenú activo */
.nav-toggle:checked ~ .submenu-der {
  opacity: 1;
  transform: translate(53%, -10px);
  pointer-events: auto;
} 
.nav-toggle:checked ~ .submenu-medio {
  opacity: 1;
  transform: translate(2%, -10px);
  pointer-events: auto;
}
.nav-toggle:checked ~ .submenu-izq {
  opacity: 1;
  transform: translate(-50%, -10px);
  pointer-events: auto;
}



/* =======================================================
   BUSCADOR DE RESEÑAS
========================================================== */
.buscar-reseña {
  position: relative;
}

.search-section {
  display: flex;
  align-items: center;
  gap: 10px;
}

.search-section input[type="text"] {
  flex: 1;
  padding: 10px 15px;
  border-radius: 20px;
  border: none;
  background: var(--verde-claro);
  color: var(--verde-oscuro);
  font-weight: bold;
}

.filter-btn {
  cursor: pointer;
  border-radius: 50%;
  transition: transform 0.2s;
}

.filter-btn img {
  width: 28px;
  height: 28px;
}

.filter-btn:hover {
  transform: scale(1.1);
}

/* Filtros desplegables */
.toggle-filtros {
  display: none;
}

.filtros {
  position: absolute;
  top: 4em;
  right: 0;
  width: max-content;
  background: var(--verde-claro);
  border-radius: 10px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
  padding: 1.4em;
  display: none;
  grid-template-columns: repeat(2, 1fr);

  gap: 25px 10px;
  opacity: 0;
  transform: translateY(-10px);
  
}

.toggle-filtros:checked ~ .filtros {
  opacity: 1;
  transform: translateY(0);
  z-index: 9999;
  display: grid;
  transition: all 0.3s ease;
}

.grupo-filtro h5 {
  font-size: 0.9rem;
  margin-bottom: 5px;
  color: #264033;
}

.grupo-filtro ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 15px;
  padding: 0;
}

.grupo-filtro input[type="radio"] {
  display: none;
}

.grupo-filtro label {
  border: 1px solid #445;
  color: #445;
  border-radius: 15px;
  padding: 3px 8px;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.2s;
}

.grupo-filtro input[type="radio"]:checked + label,
.grupo-filtro label:hover {
  background: var(--rojo-dest);
  color: #fff;
  font-weight: bold;
  border: none;
}

/* ==========================
   NUEVA PUBLICACIÓN
========================== */
.nueva-publicacion {
  background: #fff;
  padding: 15px;
  border-radius: 15px;
  box-shadow: 0 6px 5px rgba(0, 0, 0, 0.15);
}

.form-publicacion {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.texto-publicacion {
  width: 100%;
  border: none;
  font-size: 0.95rem;
  resize: none;
  outline: none;
}

.opciones-publicacion h3 {
  font-size: 0.9rem;
  color: var(--naranja);
  margin-bottom: 5px;
}

.acciones-publicacion {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 20px;
  list-style: none;
  padding: 0;
  border-top: 1px solid #e0ddd8;
  padding-top: 10px;
}

.acciones-publicacion img {
  width: 26px;
  height: 26px;
  cursor: pointer;
  transition: transform 0.2s;
}

.acciones-publicacion img:hover {
  transform: scale(1.1);
}

/* Estrellas */
.rating {
  display: flex;
  flex-direction: row-reverse;
  gap: 3px;
}

.rating input {
  display: none;
}

.rating label {
  font-size: 24px;
  color: white;
  -webkit-text-stroke: 2px #e89a3c;
  cursor: pointer;
  transition: color 0.3s;
}

.rating label:hover,
.rating label:hover ~ label,
.rating input:checked ~ label {
  color: #e89a3c;
}

/* Botón Publicar */
.btn-publicar {
  align-self: flex-end;
  background: var(--rojo-dest);
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 8px 18px;
  font-size: 0.9rem;
  cursor: pointer;
  transition: background 0.3s;
}

.btn-publicar:hover {
  background: #8d2000;
}

/* ==========================
   FEED DE PUBLICACIONES
========================== */
.feed-publicaciones {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.publicacion {
  background: #fff;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);
  border-radius: 10px;
  padding: 15px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.datos-usuario {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.nombre-usuario {
  font-weight: 600;
  color: #382735;
}

.fecha-publicacion {
  font-size: 0.85rem;
  color: #8c8680;
}

.texto-publicacion {
  color: #2f2b27;
  line-height: 1.4;
}

.imagen-publicacion {
  width: 100%;
  border-radius: 10px;
  object-fit: cover;
  max-height: 260px;
}



.btn-accion {
  display: flex;
  align-items: center;
  gap: 5px;
  background: var(--naranja);
  color: white;
  border: none;
  border-radius: 15px;
  padding: 5px 10px;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}

.btn-accion:hover {
  background: var(--rojo-dest);
  transform: scale(1.05);
}

/* =====================
        ARCHIVOS
===================== */

/* ====== TITULO DEL SIGLO ====== */
.titulo-siglo {
    font-size: 2rem;
    margin-bottom: 15px;
}

.titulo-siglo span {
    display: block;
    font-size: 1rem;
    color: #555;
    margin-top: 4px;
}

/* ====== PELÍCULA DESTACADA ====== */
.peli-destacada {
    display: flex;
    flex-direction: column;
    margin-block: 40px;
    text-align: center;
}

.peli-destacada img {
    width: 100%;
    max-height: 400px;
    border-radius: 6px;
    object-fit: cover;
  margin-bottom: 20px;
  }

.peli-destacada h2 {
    display: block;
    margin-top: 6px;
    font-weight: 600;
    color: var(--rojo-dest);
}

/* ====== PARRAFO DESCRIPTIVO ====== */
.carrusel-siglo p {
    margin-block: 10px;
    font-size: 0.8em;
}

/* ====== CARRUSEL HORIZONTAL ====== */
.carrusel {
    display: flex;
    overflow-x: auto;
    gap: 20px;
    padding-bottom: 10px;
    scroll-snap-type: x mandatory;
    -ms-overflow-style: none;  /* IE y Edge */
    scrollbar-width: none;     /* Firefox */
}

.carrusel::-webkit-scrollbar {
    height: 8px;
    display: none; /* Chrome, Safari */
}

.carrusel::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 4px;
}

/* ====== CADA PELÍCULA ====== */
.peli {
    flex: 0 0 auto;
    width: 100px;
    text-align: center;
    scroll-snap-align: start;
}

.peli img {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
}

/* ====== TITULO Y AÑO SEPARADOS ====== */
.titulo-peli {
    display: block;
    margin-top: 6px;
    font-size: 1rem;
    font-weight: 600;
}

.anio-peli {
    display: block;
    font-size: 0.8rem;
    margin-top: 3px;
    color: #666;
}

/* =========================
      RESPONSIVE
  ========================== */
@media (min-width: 325px) {

  .submenu-der, .submenu-medio, .submenu-izq {
    min-width: fit-content;
  }

.nav-toggle:checked ~ .submenu-der {
    justify-self: center;
    transform: translate(0%, -10px);
    left: inherit;
    transition:none;
  }
  .nav-toggle:checked ~ .submenu-medio{
    justify-self: center;
    transform: translate(0%, -10px);
    left: inherit;
    transition:none
  }
.nav-toggle:checked ~ .submenu-izq {
    justify-self: center;
    transform: translate(0%, -10px);
    left: inherit;
    transition:none;
  }
  }

  @media (min-width: 680px) {
  .destacada {
    grid-template-columns: 1fr 1fr;
  }
 
  main {
    padding: 12px;
  }
  .publicacion {
    padding: 12px;
  }

  /* Película destacada */

 .lista-peliculas {
    grid-template-columns: 1fr;
  }

    .peli {
        width: 180px;
    }

    .peli img {
    border-radius: 15px;
}
    .destacada {
        width: 220px;
    }
    .peli span {
        font-size: 1rem;

    }.titulo-siglo {
        font-size: 1.7rem;
    }

    .peli-destacada {
    display: grid;
    grid-template-columns: 2fr 1.5fr;
    text-align: left;
    gap: 15px;
    }

    .carrusel { 
      gap: 22px;
    -ms-overflow-style: auto;  /* IE y Edge */
    scrollbar-width:auto;   /* Firefox */
    padding: 20px;
}
    .carrusel::-webkit-scrollbar {
    height: 8px;
    display: block; /* Chrome, Safari */
}

.carrusel-siglo .peli-destacada p {
    font-size: 1.2em;
   }
 }
/* =========================
      INICIO
  ========================== */
.video-container {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  display: block;
  background: #000;
  border-radius: 10px;
  overflow: hidden;
}

/* el video controla la altura */
.video-container video {
  width: 100%;
  height: auto;
  display: block;
}

.pie {
  color: #fff;
  margin-top: 8px;
  justify-self: center;
  position: absolute;
}

.pie p {
  text-align: center;
  font-size: 0.7rem;
  color: var(--verde-oscuro);
  text-wrap: pretty;
  margin: 15px;
}
