
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
  background-color: #121212;
  color: #ddd;
  line-height: 1.5;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}


.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0,0,0,0) !important;
  border: 0 !important;
}


header {
  background-color: #1f1f1f;
  padding: 10px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  border-bottom: 1px solid #333;
  position: relative;
  z-index: 1001;
}

#hamburguesa {
  font-size: 26px;
  background: none;
  border: none;
  color: #ddd;
  cursor: pointer;
}

.botones-header button {
  background-color: #333;
  border: none;
  color: #ddd;
  padding: 8px 14px;
  border-radius: 4px;
  margin-left: 10px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.botones-header button:hover {
  background-color: #4caf50;
}


#menu {
  position: fixed;
  top: 0;
  left: -240px;
  width: 220px;
  height: 100%;
  background-color: #222;
  padding-top: 60px;
  box-shadow: 2px 0 5px rgba(0,0,0,0.7);
  transition: left 0.3s ease;
  z-index: 1000;
}

#menu.active {
  left: 0;
}

#menu ul {
  list-style: none;
}

#menu ul li {
  padding: 15px 20px;
}

#menu ul li a {
  color: #ddd;
  text-decoration: none;
  font-weight: 600;
  display: block;
  transition: color 0.3s ease;
}

#menu ul li a:hover {
  color: #4caf50;
}


.infoperfil {
  display: flex;
  align-items: center;
  margin-left: 15px;
}

.fotoperfil {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #4caf50;
  cursor: pointer;
}


main {
  flex-grow: 1;
  padding: 20px;
  max-width: 960px;
  margin: 0 auto;
  width: 100%;
}


.contenedor {
  margin-bottom: 15px;
}


form.formulario {
  background-color: #1f1f1f;
  padding: 15px;
  border-radius: 6px;
  box-shadow: 0 0 10px rgba(76, 175, 80, 0.3);
  margin-bottom: 30px;
}

input[type="text"],
input[type="number"],
input[type="search"],
select {
  width: 100%;
  padding: 10px;
  margin-top: 6px;
  margin-bottom: 15px;
  border-radius: 4px;
  border: none;
  background-color: #333;
  color: #ddd;
  font-size: 16px;
  transition: background-color 0.3s ease;
}

input[type="text"]:focus,
input[type="number"]:focus,
input[type="search"]:focus,
select:focus {
  background-color: #4caf50;
  color: #121212;
  outline: none;
}


.contenedor-numeros {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 15px;
}

.contenedor-numeros input[type="number"] {
  flex: 1 1 100px;
}


button {
  background-color: #4caf50;
  border: none;
  color: #121212;
  padding: 10px 20px;
  border-radius: 4px;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.3s ease;
  margin-right: 10px;
  margin-top: 5px;
}

button:hover {
  background-color: #43a047;
}


button[type="reset"] {
  background-color: #f44336;
  color: #fff;
}

button[type="reset"]:hover {
  background-color: #d32f2f;
}


.botones {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
}


.caja-resultado {
  background-color: #2214;
  border-radius: 6px;
  padding: 15px;
  margin-top: 20px;
  color: #ddd;
  box-shadow: 0 0 10px rgba(76, 175, 80, 0.3);
  display: none;
}
#peliculas {
  gap: 30px; /* o más si lo deseas */
}

.titulo {
  margin-bottom: 10px;
  color: #4caf50;
  font-weight: 700;
  text-align: center;
}


.novisible {
  display: none;
}


#contenedorpeliculas {
  margin-top: 20px;
}

select {
  cursor: pointer;
}


footer {
  background-color: #121212;
  border-top: 1px solid #333;
  padding: 15px;
  font-size: 12px;
  color: #ddd;
  text-align: center;
}

footer a img {
  filter: brightness(0) invert(1);
  width: 100px;
  transition: filter 0.3s ease;
}

footer a:hover img {
  filter: brightness(0.7) invert(1);
}

.tarjeta {
  background-color: #1f1f1f;              /* Fondo oscuro */
  border-radius: 10px;                   /* Bordes redondeados */
  padding: 20px;                         /* Espaciado interno */
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4); /* Sombra elegante */
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: #ddd;                           /* Texto claro */
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.tarjeta:hover {
  transform: translateY(-5px);           /* Levanta la tarjeta al pasar el mouse */
  box-shadow: 0 8px 20px rgba(76, 175, 80, 0.4); /* Sombra verde suave */
}

.tarjeta h2 {
  color: #4caf50;                        /* Título en verde */
  font-size: 1.4rem;
  margin-bottom: 12px;
}

.tarjeta p {
  font-size: 0.95rem;
  margin: 6px 0;
  line-height: 1.4;
}

.tarjeta img {
  width: 100%;
  max-width: 160px;
  border-radius: 8px;
  margin-top: 10px;
  box-shadow: 0 0 10px rgba(76, 175, 80, 0.3);
}



/* Contenedor grid responsive */
.peliculas-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* Móviles: 2 columnas */
  gap: 15px;
  padding: 10px;
}

/* En pantallas más grandes, usa más columnas automáticamente */
@media (min-width: 600px) {
  .peliculas-grid {
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  }
}

/* Estilo tarjeta */
.peliculas-grid .pelicula {
  background-color: #1e1e1e;
  border-radius: 8px;
  padding: 10px;
  text-align: center;
  color: white;
  box-shadow: 0 0 8px #222;
  transition: transform 0.2s ease;
}

.peliculas-grid .pelicula:hover {
  transform: scale(1.05);
  box-shadow: 0 0 12px #448aff;
}

.peliculas-grid .pelicula img {
  width: 100%;
  border-radius: 6px;
  margin-bottom: 8px;
}

.peliculas-grid .pelicula h3 {
  font-size: 1rem;
  margin: 8px 0 4px;
}

.peliculas-grid .pelicula p {
  font-size: 0.9rem;
  margin: 2px 0;
}

#detallesPelicula {
      margin-top: 40px;
      background-color: #1e1e1e;
      padding: 20px;
      border-radius: 10px;
      box-shadow: 0 0 15px #222;
      max-width: 800px;
    }
    #detallesPelicula img {
      float: left;
      margin-right: 20px;
      border-radius: 10px;
      max-width: 200px;
      box-shadow: 0 0 12px #448aff;
    }
    iframe {
      margin-top: 20px;
      border-radius: 10px;
      max-width: 100%;
    }
    /* Clear floats */
    #detallesPelicula::after {
      content: "";
      display: block;
      clear: both;
    }
    
    @media (max-width: 600px) {
  #detallesPelicula img {
    float: none;
    display: block;
    margin: 0 auto 20px auto;
    max-width: 100%;
  }

  iframe {
    height: 200px; /* ajusta según te guste */
  }
}

@media screen and (max-width: 600px) {
  .tarjeta-pelicula {
    width: 45%;
  }
}


@media (max-width: 768px) {
  header {
    flex-direction: row;
    justify-content: flex-start;
  }

  #hamburguesa {
    font-size: 30px;
  }

  .botones-header button {
    padding: 8px 12px;
    font-size: 14px;
    margin-left: 5px;
  }

  main {
    padding: 10px;
  }

  input[type="text"],
  input[type="number"],
  input[type="search"],
  select {
    font-size: 14px;
    padding: 8px;
  }

  button {
    padding: 8px 16px;
    font-size: 14px;
    margin-right: 5px;
  }

  .fotoperfil {
    width: 35px;
    height: 35px;
  }

  .contenedor-numeros {
    flex-direction: column;
  }

  .contenedor-numeros input[type="number"] {
    flex: 1 1 auto;
  }
}

#cookie-banner {
  position: fixed;
  bottom: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  max-width: 600px;
  background-color: #1f1f1f;
  color: #fff;
  padding: 20px;
  border-radius: 12px 12px 0 0;
  box-shadow: 0 -4px 10px rgba(0,0,0,0.4);
  text-align: center;
  z-index: 1000;
  transition: bottom 0.5s ease-in-out;
  font-family: 'Arial', sans-serif;
}

#cookie-banner.show { bottom: 0; }

#cookie-banner p { margin: 0 0 10px 0; font-size: 14px; }

#cookie-banner a { color: #4CAF50; text-decoration: underline; }

#cookie-banner button {
  background-color: #4CAF50;
  color: #fff;
  border: none;
  padding: 8px 16px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  margin: 5px;
  transition: background 0.3s;
}

#cookie-banner button:hover { background-color: #45a049; }

/* Modal de configuración */
#cookie-modal {
  display: none;
  position: fixed;
  top:0; left:0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.8);
  z-index: 2000;
  justify-content: center;
  align-items: center;
}

#cookie-modal .modal-content {
  background: #222;
  padding: 25px;
  border-radius: 12px;
  max-width: 500px;
  width: 90%;
  color: #fff;
  text-align: left;
}

#cookie-modal h2 { margin-top:0; }
#cookie-modal label { display:block; margin:10px 0; }
#cookie-modal input[type="checkbox"] { margin-right:10px; }

#cookie-modal button {
  background-color: #4CAF50;
  color: #fff;
  border: none;
  padding: 8px 16px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  margin-top: 10px;
}

@media (max-width: 500px) {
  #cookie-banner { padding: 15px; font-size: 13px; }
  #cookie-banner button { padding: 6px 12px; font-size: 13px; }
  #cookie-modal .modal-content { padding: 15px; font-size: 13px; }
}