/* Reset y base */
body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  margin: 0;
  padding: 20px;
  background: linear-gradient(135deg, #f0f3f7, #d9e2ec);
  color: #2c3e50;
}



/* Estilo general del nav */
.navbar {
  background: linear-gradient(90deg, #f8c291, #f6b93b); /* Colores cálidos */
  padding: 15px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
}

/* Hamburguesa para móviles */
.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 5px;
}

.hamburger span {
  height: 3px;
  width: 25px;
  background: #fff;
  border-radius: 5px;
}

/* Menú */
.nav-menu {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin: 0;
  padding: 0;
}

.nav-menu li a {
  text-decoration: none;
  color: #fff;
  font-weight: bold;
  font-family: 'Segoe UI', sans-serif;
  transition: color 0.3s, transform 0.3s;
}

.nav-menu li a:hover,
.nav-menu li a.active {
  color: #2d3436;
  transform: scale(1.05);
}

/* Responsive */
@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }

  .nav-menu {
    display: none;
    flex-direction: column;
    background: #f6b93b;
    position: absolute;
    top: 60px;
    right: 0;
    width: 200px;
    padding: 20px;
    border-radius: 0 0 0 12px;
    box-shadow: -4px 4px 10px rgba(0, 0, 0, 0.1);
  }

  .nav-menu.show {
    display: flex;
  }
}






h1 {
  text-align: center;
  font-weight: 700;
  font-size: 2.5rem;
  margin-bottom: 40px;
  color: #34495e;
  text-shadow: 1px 1px 3px rgba(0,0,0,0.1);
}

/* Contenedor de cada película */
.pelicula {
  display: flex;
  background: #ffffffcc; /* blanco semitransparente */
  border-radius: 14px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
  overflow: hidden;
  margin-bottom: 35px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.pelicula:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 36px rgba(0,0,0,0.18);
}

/* Imagen portada */
.pelicula img {
  width: 220px;
  height: 320px;
  object-fit: cover;
  border-top-left-radius: 14px;
  border-bottom-left-radius: 14px;
  box-shadow: inset 0 0 15px rgba(0,0,0,0.1);
}

/* Contenido al costado */
.contenido {
  padding: 28px 30px;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* Título */
.contenido h2 {
  margin: 0 0 12px;
  font-size: 1.8rem;
  font-weight: 700;
  color: #2c3e50;
  letter-spacing: 0.03em;
  text-shadow: 0 1px 1px rgba(0,0,0,0.05);
}

/* Descripción */
.descripcion {
  font-size: 1rem;
  line-height: 1.5;
  color: #5d6d7e;
  margin-bottom: 18px;
  font-weight: 500;
}

/* Contenedor de acciones */
.acciones {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 14px;
}

/* Botón de like */
.like-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.4rem;
  cursor: pointer;
  user-select: none;
  color: #7f8c8d;
  transition: color 0.3s ease, transform 0.2s ease;
}

.like-btn:hover {
  color: #e74c3c;
  transform: scale(1.12);
}

.like-btn.liked {
  color: #e74c3c;
  font-weight: 700;
  transform: scale(1.15);
  transition: transform 0.3s ease, color 0.3s ease;
}

.like-btn.liked i.fas.fa-heart {
  animation: pulseHeart 1s infinite alternate ease-in-out;
  color: #e74c3c;
}

/* Animación pulso para corazón */
@keyframes pulseHeart {
  0% { transform: scale(1); }
  100% { transform: scale(1.25); }
}

/* Área de comentarios */
.comentarios {
  margin-top: 12px;
  display: flex;
  flex-direction: column;
}

/* Textarea para comentario */
.comentarios textarea {
  width: 100%;
  min-height: 80px;
  max-height: 120px;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1.8px solid #bdc3c7;
  font-size: 1rem;
  resize: vertical;
  font-family: inherit;
  box-shadow: inset 0 2px 6px rgba(0,0,0,0.07);
  transition: border-color 0.3s ease;
}

.comentarios textarea:focus {
  outline: none;
  border-color: #2980b9;
  box-shadow: 0 0 6px #2980b9aa;
}

/* Botón publicar */
.comentarios button {
  align-self: flex-end;
  margin-top: 8px;
  background: #2980b9;
  color: white;
  border: none;
  padding: 11px 24px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(41,128,185,0.3);
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
  user-select: none;
}

.comentarios button:hover:not(:disabled) {
  background: #1c5980;
  box-shadow: 0 6px 15px rgba(28,89,128,0.6);
}

.comentarios button:disabled {
  background: #a3c0dc;
  cursor: not-allowed;
  box-shadow: none;
}

/* Lista de comentarios */
.comentario-lista {
  margin-top: 14px;
  max-height: 210px;
  overflow-y: auto;
  border-top: 1px solid #dfe6e9;
  padding-top: 12px;
  font-size: 0.95rem;
  color: #34495e;
}

/* Comentarios individuales */
.comentario-lista p {
  background: #ecf0f1;
  padding: 9px 12px;
  border-radius: 12px;
  margin-bottom: 8px;
  box-shadow: 1px 1px 4px rgba(0,0,0,0.05);
  word-wrap: break-word;
  line-height: 1.4;
}

/* Comentario con usuario y fecha */
.comentario-lista p strong {
  color: #2980b9;
  font-weight: 700;
}

/* Fecha pequeña a la derecha */
.comentario-lista p span.fecha {
  font-size: 0.75rem;
  color: #7f8c8d;
  float: right;
  font-style: italic;
  margin-left: 10px;
}

/* Scroll estilizado para webkit */
.comentario-lista::-webkit-scrollbar {
  width: 8px;
}

.comentario-lista::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 8px;
}

.comentario-lista::-webkit-scrollbar-thumb {
  background: #2980b9;
  border-radius: 8px;
}

.btn-ver {
  display: inline-block;
  margin-top: 10px;
  background-color: #f8c291;
  color: white;
  padding: 10px 16px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease;
  margin-bottom: 10px;
}

.btn-ver:hover {
  background-color: #218838;
}

@media (max-width: 600px) {
  .btn-ver {
    width: 100%;
    text-align: center;
  }
}



/* FOOTER */
.footer {
  background: linear-gradient(180deg, #f6b93b, #f8c291);
  padding: 40px 20px 30px;
  color: #fff;
  text-align: center;
  border-top-left-radius: 20px;
  border-top-right-radius: 20px;
  margin-top: 60px;
  font-family: 'Segoe UI', sans-serif;
}

.footer h3 {
  margin-bottom: 10px;
  font-size: 1.8rem;
  color: #2d3436;
}

.footer p {
  font-size: 1rem;
  color: #2d3436;
  margin-bottom: 20px;
}

.footer-links {
  margin: 20px 0;
}

.footer-links a {
  margin: 0 12px;
  text-decoration: none;
  font-weight: bold;
  color: #2d3436;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: #ffffff;
}

.footer-copy {
  font-size: 0.85rem;
  color: #444;
  margin-top: 20px;
}
