/* General Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Arial, sans-serif;
  background-color: #141414;
  color: #ffffff;
  line-height: 1.6;
  overflow-x: hidden; /* Evita scroll horizontal */
}

/* Navbar */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  background-color: #e50914;
}

.navbar-logo {
  font-size: 2rem;
  font-weight: bold;
  color: white;
}

.navbar-menu {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.navbar-menu li a {
  text-decoration: none;
  color: white;
  font-size: 1.3rem;
  transition: color 0.3s;
  margin-left: 1rem;
  padding: 1.2rem;
  border-radius: 15px;
}

.navbar-menu li a:hover {
  background-color: #fff;
  color: black;
}

/* Menú lateral (off-canvas) */
.offcanvas-menu {
  position: fixed;
  top: 0;
  left: -100%; /* Oculto fuera de la pantalla */
  width: 250px;
  height: 100%;
  background-color: #181818;
  padding: 2rem;
  box-shadow: 2px 0 5px rgba(0, 0, 0, 0.5);
  transition: all 0.3s ease;
  z-index: 1000;
}

.offcanvas-menu.active {
  left: 0; /* Se desliza a la vista */
}

.offcanvas-menu ul {
  list-style: none;
}

.offcanvas-menu li {
  margin: 1.5rem 0;
}

.offcanvas-menu li a {
  text-decoration: none;
  color: #ffffff;
  font-size: 1.2rem;
  transition: color 0.3s;
}

.offcanvas-menu li a:hover {
  color: #e50914;
}

/* Overlay (fondo oscuro) */
.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 500;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s;
}

.overlay.active {
  opacity: 1;
  visibility: visible;
}

/* Hero Section */
.hero {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  height: 95vh;
  padding: 0 2rem;
  background-color: #141414;
}

.hero-content {
  text-align: center;
}

.hero-image {
  width: 300px;
  border-radius: 10px;
}

.hero-text h1 {
  font-size: 2rem;
  color: #fff;
  margin-bottom: 1rem;
}

.hero-text p {
  font-size: 1rem;
  color: #fff;
}

/* Responsive Design */
@media screen and (max-width: 1200px) {
  .navbar-menu {
      display: none; /* Oculta el menú principal */
  }
  .navbar-toggle {
      display: flex;
      flex-direction: column;
      cursor: pointer;
  }
  .navbar-toggle .bar {
      height: 3px;
      width: 25px;
      background-color: #ffffff;
      margin: 4px 0;
  }
}
/* Hero Section */
.hero {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  height: 90vh;
  padding: 0 2rem;
  background-color: #141414;
}

.hero-content {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
  text-align: center;
}

.hero-image {
  width: 500px;
  max-width: 100%;
  margin: 1rem;
  border-radius: 10px;
  animation: fadeIn 2s ease-out;
}

.hero-text {
  max-width: 600px;
}

.hero-text h1 {
  font-size: 2rem;
  color: #fff;
  margin-bottom: 1rem;
}

.hero-text p {
  font-size: 1rem;
  color: #fff;
}

/* Recomendaciones */
.recommendations {
  padding: 2rem;
  text-align: center;
  background-color: #181818;
}

.recommendations h2 {
  margin-bottom: 2rem;
  font-size: 2rem;
}

.recommendations-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 4rem;
  justify-content: center;
}

.book img {
  width: 250px;
  height: 300px;
  cursor: pointer;
  transition: transform 0.3s;
}

.book img:hover {
  transform: scale(1.1);
}

/* Footer */
.footer {
  text-align: center;
  padding: 1rem;
  background-color: #e50914;
}

.social-icons img {
  width: 24px;
  margin: 0 0.5rem;
}

.review-form-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  background-color: #181818;
  border-radius: 10px;
  max-width: 600px;
  margin: 2rem auto;
  box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.5);
  animation: fadeIn 1.5s ease-in-out;
}

.review-form-container h2 {
  font-size: 2rem;
  color: #e50914;
  margin-bottom: 1rem;
  text-align: center;
}

.review-form-container form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  width: 100%;
}

.review-form-container label {
  font-size: 1.2rem;
  color: #ffffff;
  margin-bottom: 0.5rem;
}

.review-form-container textarea {
  resize: none;
  width: 100%;
  padding: 1rem;
  border: 2px solid #e50914;
  background-color: #141414;
  color: #ffffff;
  border-radius: 5px;
  font-size: 1rem;
  transition: border-color 0.3s ease;
}

.review-form-container textarea:focus {
  border-color: #ffffff;
  outline: none;
}

.review-form-container button {
  background-color: #e50914;
  color: #ffffff;
  font-size: 1.2rem;
  border: none;
  padding: 0.8rem 1.5rem;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.review-form-container button:hover {
  background-color: #b20710;
}

/* Lista de Reseñas */
.reviews-container {
  background-color: #181818;
  padding: 2rem;
  border-radius: 10px;
  max-width: 800px;
  margin: 2rem auto;
  box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.5);
}

.reviews-container h2 {
  font-size: 2rem;
  color: #e50914;
  text-align: center;
  margin-bottom: 1.5rem;
}

.review-item {
  background-color: #141414;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  border-left: 5px solid #e50914;
  border-radius: 5px;
  color: #ffffff;
  animation: fadeIn 1s ease-in-out;
}

.review-item p {
  font-size: 1rem;
  line-height: 1.5;
  margin: 0;
}

.review-item .date {
  font-size: 0.8rem;
  color: #cccccc;
  margin-top: 0.5rem;
  text-align: right;
}

.review-item strong {
  color: #e50914; /* Color del nombre de usuario */
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  display: block;
}

.review-item p {
  color: #fff;
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

.review-item .date {
  font-size: 0.9rem;
  color: #aaa;
}


/* Responsividad para dispositivos pequeños */
@media screen and (max-width: 768px) {
  .navbar-menu {
    display: none; /* Oculta el menú principal */
  }

  .navbar-toggle {
    display: flex; /* Muestra el ícono del menú */
  }

  .navbar-logo {
    font-size: 1.5rem; /* Ajusta el tamaño del logo en pantallas pequeñas */
  }

  .hero {
    height: auto; /* Permite que se ajuste el contenido automáticamente */
    padding: 2rem;
  }
  .review-form-container {
    padding: 1.5rem;
  }

  .reviews-container {
    padding: 1.5rem;
  }

  .review-item {
    padding: 1rem;
  }

  .review-form-container h2,
  .reviews-container h2 {
    font-size: 1.5rem;
  }

  .review-form-container button {
    font-size: 1rem;
  }
}

.review-form-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  background-color: #181818;
  border-radius: 10px;
  max-width: 600px;
  margin: 2rem auto;
  box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.5);
  animation: fadeIn 1.5s ease-in-out;
}

.review-form-container h2 {
  font-size: 2rem;
  color: #ffffff;
  margin-bottom: 1rem;
  text-align: center;
}

.review-form-container form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  width: 100%;
}

.review-form-container label {
  font-size: 1.2rem;
  color: #ffffff;
  margin-bottom: 0.5rem;
}

.review-form-container input[type="text"] { /* Estilo específico para inputs de texto */
  width: 100%;
  padding: 1rem;
  border: 2px solid #e50914;
  background-color: #141414;
  color: #ffffff;
  border-radius: 5px;
  font-size: 1rem;
  transition: border-color 0.3s ease;
}

.review-form-container input[type="text"]:focus {
  border-color: #ffffff;
  outline: none;
}

.review-form-container textarea {
  resize: none;
  width: 100%;
  padding: 1rem;
  border: 2px solid #e50914;
  background-color: #141414;
  color: #ffffff;
  border-radius: 5px;
  font-size: 1rem;
  transition: border-color 0.3s ease;
}

.review-form-container textarea:focus {
  border-color: #ffffff;
  outline: none;
}

.review-form-container button {
  background-color: #e50914;
  color: #ffffff;
  font-size: 1.2rem;
  border: none;
  padding: 0.8rem 1.5rem;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.review-form-container button:hover {
  background-color: #b20710;
}