/* ----- ESTILOS GENERALES ----- */
body {
  margin: 0;
  font-family: 'Poppins', sans-serif;
  color: white;
  background: linear-gradient(135deg, #1b0034, #240046, #3c096c);
  background: -moz-linear-gradient(135deg, #1b0034, #240046, #3c096c);
  background: -webkit-linear-gradient(135deg, #1b0034, #240046, #3c096c);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* ----- FUENTES ----- */
@font-face{
  font-family: "fuente 1";
  src: url("Bungee_Spice/BungeeSpice-Regular.ttf")
          format("truetype");
}

h1{
  font-family: 'fuente 1';
}
h2{
  font-family: 'fuente 1';
}

@font-face{
  font-family: "fuente 2";
  src: url("Orbitron/Orbitron-VariableFont_wght.ttf")
          format("truetype");
}

p{
  font-family: 'fuente 2'
}

#graficaGeneros, #graficaPie {
    width: 450px !important;
    height: 350px !important;
 }
/* ----- ENCABEZADO ----- */
header {
  text-align: center;
  margin-top: 30px;
  text-shadow: 0 0 10px #a100ff;
  -moz-text-shadow: 0 0 10px #a100ff;
  -webkit-text-shadow: 0 0 10px #a100ff;
}

header h1 {
  font-size: 2.5rem;
  margin-bottom: 5px;
}

header p {
  color: #ccc;
  font-size: 1rem;
}

/* ==== Modal emergente centrado con animación ==== */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.75);
  -webkit-backdrop-filter: blur(4px);
  -moz-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  justify-content: center;
  align-items: center;
  -webkit-animation: fadeIn 0.3s ease forwards;
  -moz-animation: fadeIn 0.3s ease forwards;
  animation: fadeIn 0.3s ease forwards;
}

.modal-contenido {
  background: linear-gradient(145deg, #2a006e, #4b0082);
  color: #fff;
  padding: 30px;
  border-radius: 18px;
  width: 90%;
  max-width: 500px;
  box-shadow: 0 0 25px rgba(255, 255, 255, 0.2);
  -webkit-transform: scale(0.8);
  -moz-transform: scale(0.8);
  transform: scale(0.8);
  opacity: 0;
  -webkit-animation: popUp 0.3s ease forwards;
  -moz-animation: popUp 0.3s ease forwards;
  animation: popUp 0.3s ease forwards;
}

.cerrar {
  float: right;
  font-size: 22px;
  cursor: pointer;
  color: #ff4444;
  font-weight: bold;
  -webkit-transition: color 0.3s ease;
  -moz-transition: color 0.3s ease;
  transition: color 0.3s ease;
}

.cerrar:hover {
  color: #ff8888;
}

/* ==== Animaciones ==== */
@-webkit-keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@-moz-keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@-webkit-keyframes popUp {
  from {
    opacity: 0;
    -webkit-transform: scale(0.8);
  }
  to {
    opacity: 1;
    -webkit-transform: scale(1);
  }
}

@-moz-keyframes popUp {
  from {
    opacity: 0;
    -moz-transform: scale(0.8);
  }
  to {
    opacity: 1;
    -moz-transform: scale(1);
  }
}

@keyframes popUp {
  from {
    opacity: 0;
    transform: scale(0.8);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* ----- BOTONES DE PAGINACIÓN ----- */
.paginacion {
  display: -webkit-flex;
  display: -moz-flex;
  display: flex;
  justify-content: center;
  gap: 20px;
  margin: 30px 0 50px;
}

.paginacion button {
  background: linear-gradient(90deg, #6a00f4, #a100ff);
  background: -moz-linear-gradient(90deg, #6a00f4, #a100ff);
  background: -webkit-linear-gradient(90deg, #6a00f4, #a100ff);
  color: #fff;
  border: none;
  padding: 10px 25px;
  font-size: 1rem;
  border-radius: 30px;
  -webkit-border-radius: 30px;
  -moz-border-radius: 30px;
  cursor: pointer;
  box-shadow: 0 5px 15px rgba(161, 0, 255, 0.5);
  -webkit-transition: transform 0.3s ease, box-shadow 0.3s ease;
  -moz-transition: transform 0.3s ease, box-shadow 0.3s ease;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.paginacion button:hover {
  -webkit-transform: scale(1.1);
  -moz-transform: scale(1.1);
  transform: scale(1.1);
  box-shadow: 0 8px 20px rgba(255, 0, 255, 0.6);
}

.paginacion button:disabled {
  background: #555;
  color: #aaa;
  box-shadow: none;
  cursor: not-allowed;
  -webkit-transform: scale(1);
  -moz-transform: scale(1);
  transform: scale(1);
}

/* ----- SECCIÓN DE PELÍCULAS ----- */
.peliculas {
  display: -webkit-flex;
  display: -moz-flex;
  display: flex;
  -webkit-flex-wrap: wrap;
  -moz-flex-wrap: wrap;
  flex-wrap: wrap;
  -webkit-justify-content: center;
  -moz-justify-content: center;
  justify-content: center;
  gap: 25px;
  padding: 40px 20px;
}
/* ----- BARRA DE BUSQUEDA ----- */
.busqueda-container {
      text-align: center;
      margin: 20px auto;
    }
    .busqueda-container input {
      width: 80%;
      max-width: 400px;
      padding: 10px;
      border-radius: 25px;
      -moz-border-radius: 25px;
      -webkit-border-radius: 25px;
      border: 1px solid #ccc;
      font-size: 16px;
      transition: 0.3s;
    }
    .busqueda-container input:focus {
      outline: none;
      border-color: #ff6600;
      box-shadow: 0 0 10px rgba(255, 102, 0, 0.5);
    }

/* ----- TARJETAS ----- */
.tarjeta {
  background: linear-gradient(145deg, #3a0072, #5b00b2);
  background: -moz-linear-gradient(145deg, #3a0072, #5b00b2);
  background: -webkit-linear-gradient(145deg, #3a0072, #5b00b2);
  border-radius: 16px;
  -webkit-border-radius: 16px;
  -moz-border-radius: 16px;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.5);
  width: 240px;
  text-align: center;
  color: #fff;
  padding-bottom: 15px;
  overflow: hidden;
  -webkit-transition: transform 0.3s ease, box-shadow 0.3s ease;
  -moz-transition: transform 0.3s ease, box-shadow 0.3s ease;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.tarjeta:hover {
  -webkit-transform: translateY(-8px);
  -moz-transform: translateY(-8px);
  transform: translateY(-8px);
  box-shadow: 0 10px 25px rgba(161, 0, 255, 0.7);
}

.tarjeta img {
  width: 100%;
  height: 340px;
  object-fit: cover;
  border-radius: 16px 16px 0 0;
  -webkit-border-radius: 16px 16px 0 0;
  -moz-border-radius: 16px 16px 0 0;
  -webkit-transition: transform 0.3s ease;
  -moz-transition: transform 0.3s ease;
  transition: transform 0.3s ease;
}

.tarjeta:hover img {
  -webkit-transform: scale(1.05);
  -moz-transform: scale(1.05);
  transform: scale(1.05);
}

.tarjeta h2 {
  font-size: 1rem;
  margin: 12px 0 5px;
  font-weight: bold;
  text-shadow: 0 0 5px rgba(255, 255, 255, 0.3);
  -webkit-text-shadow: 0 0 5px rgba(255, 255, 255, 0.3);
  -moz-text-shadow: 0 0 5px rgba(255, 255, 255, 0.3);
}

.tarjeta p {
  font-size: 0.9rem;
  color: #ddd;
  margin: 0 10px 15px;
}

/* Alejandro Navarro Gonzalez */
/* ----- BOTONES DE LAS TARJETAS ----- */
.tarjeta button {
  background: linear-gradient(90deg, #a100ff, #6a00f4);
  background: -moz-linear-gradient(90deg, #a100ff, #6a00f4);
  background: -webkit-linear-gradient(90deg, #a100ff, #6a00f4);
  border: none;
  color: white;
  padding: 8px 18px;
  border-radius: 20px;
  -webkit-border-radius: 20px;
  -moz-border-radius: 20px;
  cursor: pointer;
  font-size: 0.85rem;
  box-shadow: 0 4px 10px rgba(161, 0, 255, 0.4);
  -webkit-transition: background 0.3s ease, transform 0.3s ease;
  -moz-transition: background 0.3s ease, transform 0.3s ease;
  transition: background 0.3s ease, transform 0.3s ease;
}

.tarjeta button:hover {
  background: linear-gradient(90deg, #c24cff, #8b00ff);
  background: -moz-linear-gradient(90deg, #c24cff, #8b00ff);
  background: -webkit-linear-gradient(90deg, #c24cff, #8b00ff);
  -webkit-transform: scale(1.1);
  -moz-transform: scale(1.1);
  transform: scale(1.1);
  box-shadow: 0 6px 15px rgba(255, 0, 255, 0.6);
}



/* ----- PIE DE PÁGINA ----- */
footer {
  margin-top: auto;
  padding: 20px;
  font-size: 0.9rem;
  color: #bbb;
  text-align: center;
}

/* ----- SECCIÓN DE REDES SOCIALES (Font Awesome) ----- */
.redes-sociales {
  text-align: center;
  padding: 50px 20px;
  background: linear-gradient(145deg, #2a006e, #4b0082);
  background: -moz-linear-gradient(145deg, #2a006e, #4b0082);
  background: -webkit-linear-gradient(145deg, #2a006e, #4b0082);
  border-top: 2px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.5);
}

.redes-sociales h2 {
  font-size: 1.8rem;
  margin-bottom: 25px;
  text-shadow: 0 0 15px #a100ff;
  -webkit-text-shadow: 0 0 15px #a100ff;
  -moz-text-shadow: 0 0 15px #a100ff;
}

.social-icons {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 25px;
  flex-wrap: wrap;
}

.social-icons a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  font-size: 1.5rem;
  color: #fff;
  background: linear-gradient(135deg, #6a00f4, #a100ff);
  background: -moz-linear-gradient(135deg, #6a00f4, #a100ff);
  background: -webkit-linear-gradient(135deg, #6a00f4, #a100ff);
  border-radius: 50%;
  -moz-border-radius: 50%;
  -webkit-border-radius: 50%;
  box-shadow: 0 0 15px rgba(161, 0, 255, 0.6);
  text-decoration: none;
  transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
  -webkit-transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
  -moz-transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}

.social-icons a:hover {
  transform: scale(1.2) rotate(5deg);
  -webkit-transform: scale(1.2) rotate(5deg);
  -moz-transform: scale(1.2) rotate(5deg);
  box-shadow: 0 0 25px rgba(255, 0, 255, 0.9);
  background: linear-gradient(135deg, #c24cff, #8b00ff);
  background: -moz-linear-gradient(135deg, #c24cff, #8b00ff);
  background: -webkit-linear-gradient(135deg, #c24cff, #8b00ff);
}

/* Responsivo */
@media (max-width: 600px) {
  .social-icons a {
    width: 50px;
    height: 50px;
    font-size: 1.2rem;
  }
}


.login-section {
  background: linear-gradient(145deg, #1a0033, #3a006e);
  background: -moz-linear-gradient(145deg, #1a0033, #3a006e);
  background: -webkit-linear-gradient(145deg, #1a0033, #3a006e);
  padding: 50px 20px;
  text-align: center;
  color: white;
}

.login-container {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}

.formulario {
  background-color: rgba(255,255,255,0.1);
  padding: 25px;
  border-radius: 15px;
  -moz-border-radius: 15px;
  -webkit-border-radius: 15px;
  box-shadow: 0 0 15px rgba(255,255,255,0.2);
  width: 280px;
}

.formulario input {
  display: block;
  width: 100%;
  margin: 10px 0;
  padding: 8px;
  border: none;
  border-radius: 8px;
  -moz-border-radius: 8px;
  -webkit-border-radius: 8px;
}

.formulario button {
  width: 100%;
  padding: 10px;
  background: linear-gradient(135deg, #6a00f4, #a100ff);
  border: none;
  border-radius: 8px;
  -moz-border-radius: 8px;
  -webkit-border-radius: 8px;
  color: white;
  font-weight: bold;
  cursor: pointer;
  transition: 0.3s;
}

.formulario button:hover {
  transform: scale(1.05);
  background: linear-gradient(135deg, #8b00ff, #d500ff);
}

/* ----- RESPONSIVO ----- */
@media (max-width: 768px) {
  .peliculas {
    -webkit-flex-direction: column;
    -moz-flex-direction: column;
    flex-direction: column;
    align-items: center;
  }

  .tarjeta {
    width: 90%;
  }
}












