body {
  margin: 0;
  font-family: Arial, sans-serif;
  background: #f2f2f2;
}

.menu {
  background: #111;
  padding: 15px;
  text-align: center;
}

.menu a {
  color: white;
  margin: 0 15px;
  text-decoration: none;
  font-weight: bold;
}

.contenedor {
  max-width: 1200px;
  margin: auto;
  padding: 40px;

  min-height: 80vh;              /* ocupa casi toda la pantalla */
  display: flex;                /* activa flexbox */
  flex-direction: column;
  justify-content: center;      /* centra vertical */
}


.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, 200px);
  gap: 20px;
  justify-content: center; /* centra horizontal */
}




.card {
  background: white;
  padding: 15px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  text-align: center;
}

.img-btn {
  display: block;
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
}

.img-btn img {
  width: 100%;
  transition: transform 0.3s, filter 0.3s;
}

.img-btn:hover img {
  transform: scale(1.05);
  filter: brightness(0.8);
}

.player {
  display: none;
  margin-top: 8px;
}
/* ===== MODAL ===== */
.modal {
  display: none;
  position: fixed;
  z-index: 999;
  inset: 0;
  background: rgba(0,0,0,0.8);
  align-items: center;
  justify-content: center;
}

.modal.activo {
  display: flex;
}

.modal-contenido {
  background: #000;
  padding: 20px;
  border-radius: 10px;
  max-width: 800px;
  width: 90%;
  position: relative;
}

.modal video,
.modal audio {
  width: 100%;
}

.modal-cerrar {
  position: absolute;
  top: -10px;
  right: -10px;
  background: #ff4444;
  color: white;
  border: none;
  font-size: 18px;
  width: 35px;
  height: 35px;
  border-radius: 50%;
  cursor: pointer;
}


body {
  margin: 0;
  font-family: Arial, sans-serif;
  background: #0b0f1a; /* fondo oscuro tipo Netflix */
  color: #f2f4ff;
}

.menu {
  background: #0a0e23;
  padding: 15px 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.menu a,
.menu button {
  color: #f2f4ff;
  margin: 0 10px;
  text-decoration: none;
  font-weight: bold;
}

.menu a:hover {
  color: #1f4fff;
}

.menu img {
  height: 70px;
}

.contenedor {
  max-width: 1200px;
  margin: auto;
  padding: 30px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 20px;
}

.card {
  background: #151a2e;
  padding: 15px;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.6);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 40px rgba(0,0,0,0.8);
}

.img-btn {
  display: block;
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
}

.img-btn img {
  border-radius: 12px;
}


.img-btn:hover img {
  transform: scale(1.04);
  filter: brightness(0.85);
}

.player {
  display: none;
  margin-top: 10px;
}

/* ===== MODAL ===== */
.modal {
  display: none;
  position: fixed;
  z-index: 999;
  inset: 0;
  background: rgba(5, 8, 25, 0.9);
  align-items: center;
  justify-content: center;
}

.modal.activo {
  display: flex;
}

.modal-contenido {
  background: #000;
  padding: 20px;
  border-radius: 10px;
  max-width: 800px;
  width: 90%;
  position: relative;
}

.modal video,
.modal audio {
  width: 100%;
}

.modal-cerrar {
  position: absolute;
  top: -10px;
  right: -10px;
  background: #1f4fff; /* azul rey */
  color: white;
  border: none;
  font-size: 18px;
  width: 35px;
  height: 35px;
  border-radius: 50%;
  cursor: pointer;
}

.modal-cerrar:hover {
  background: #4f7cff;
}
/* ===== HERO CON PAPEL TAPIZ (SOLO INDEX) ===== */
.hero {
  background-image:
    linear-gradient(
      rgba(11, 15, 26, 0.75),
      rgba(11, 15, 26, 0.9)
    ),
    url("../imagenes/hero-bg.jpg");

  background-size: cover;
  background-position: center;

  min-height: 55vh;     /* antes ocupaba demasiado */
  display: flex;
  align-items: center;
  justify-content: center;

  text-align: center;
  padding: 60px 20px;
}

footer {
  color: #aaa;
  font-size: 14px;
}


/* ===== TEXTO DE TARJETAS: NORMAL / PRESIONADO ===== */
.card h3 {
  color: #FFFFFF;          /* negro normal */
  transition: color 0.2s ease;
}

/* Al pasar el mouse (hover) */
.card:hover h3 {
  color: #777777;          /* gris */
}

/* Al hacer clic (activo) */
.card:active h3 {
  color: #777777;          /* gris */
}

.card.playing {
  outline: 2px solid #1f4fff;
}
.btn-back {
  background: none;
  border: none;
  color: #1f4fff; /* azul rey */
  font-size: 16px;
  cursor: pointer;
  font-weight: bold;
  margin-bottom: 20px;
}

.btn-back:hover {
  text-decoration: underline;
}

.login-box img {
  display: block;
  margin: 0 auto 20px;
}
.btn-continuar {
  background: #1f4fff;
  color: white;
  border: none;
  padding: 14px 32px;
  font-size: 16px;
  border-radius: 30px;
  cursor: pointer;
  font-weight: bold;
  box-shadow: 0 10px 25px rgba(0,0,0,.6);
  transition: transform .2s, background .2s;
}

.btn-continuar:hover {
  background: #4f7cff;
  transform: translateY(-2px);
}
