/* ======== ESTILOS GENERALES ======== */
body {
  font-family: 'Arial', sans-serif;
  margin: 0;
  background-color: #000417; /* fondo general oscuro */
  color: #e0e0e0; /* texto claro general */
}

/* ======== HEADER ======== */
header {
  text-align: center;
  background-color: #022650;
  color: rgb(155, 255, 5);
  padding: 40px 0;
}

/* ======== SECCIONES ======== */
.seccion {
  text-align: center;
  background-color: #1e1e1e;
  padding: 30px 0;
  margin-top: 20px;
  border-top: 2px solid rgb(72, 93, 2);
  border-bottom: 2px solid rgb(72, 93, 2);
}

.seccion h2 {
  font-size: 2em;
  color: #08f1de;
  margin: 0;
}

/* ======== GALERÍA ======== */
.galeria {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 25px;
  padding: 40px;
  justify-items: center;
}

/*En caso de que no funcione, tengo que eliminar .galeria .card*/
.galeria .card {
  width: 100%;
  max-width: 350px;
}

/* ======== TARJETAS ======== */
.card {
  background: #1c1c1c;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
  transition: transform 0.3s, box-shadow 0.3s;
  display: flex;
  flex-direction: column;
  height: 650px; /* todas las tarjetas mismo tamaño */
}

.card:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.6);
}

/* ======== IMÁGENES ======== */
.card img {
  width: 100%;
  height: 250px;
  object-fit: contain;
  background-color: #2b2b2b;
}

/* ======== TÍTULOS ======== */
.card h2 {
  margin: 10px;
  font-size: 1.2em;
  color: #ee7205;
  text-align: center;
}

/* ======== CONTENEDOR DE TEXTO CON SCROLL ======== */
.texto-card {
  flex: 1 1 auto;
  min-height: 0;              /* IMPORTANTE PARA QUE EL SCROLL FUNCIONE */
  overflow-y: auto;           /* barra de desplazamiento */
  margin: 10px;
  padding-right: 5px;
}

/* ======== PÁRRAFOS DENTRO DEL TEXTO ======== */
.texto-card p {
  margin: 0 0 12px 0;         /* espacio entre párrafos */
  color: #f0f4f6;
  font-size: 0.9em;
  text-align: justify;
}

/* ======== LÍNEA DE PROTAGONISTAS ======== */
.protagonistas {
  color: #e6e6e6;
  font-weight: 500;
  margin: 8px 10px 10px 10px;
  line-height: 1.3;
  overflow: visible;
  flex: 0 0 auto;
  display: block;
}

.protagonistas strong {
  color: #c40571;
}

/* ======== LINK CENTRADO ======== */
.centrado {
  text-align: center;
  margin: 15px 0 20px 0;
}

.centrado a {
  background-color: #022752;
  color: white;
  padding: 10px 20px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  display: inline-block;
  transition: background-color 0.3s;
}

.centrado a:hover {
  background-color: #357ABD;
}

/* ======== FOOTER ======== */
footer {
  background-color: #111;
  color: rgb(243, 240, 240);
  text-align: center;
  padding: 30px;
}

footer h3 {
  margin-bottom: 15px;
}

.redes a {
  color: rgb(17, 243, 5);
  margin: 0 15px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: transform 0.2s, color 0.3s;
}

.redes a:hover {
  color: #4a90e2;
  transform: scale(1.1);
}

.redes i {
  font-size: 1.3em;
}

/* ======== SCROLL PERSONALIZADO ======== */
.texto-card::-webkit-scrollbar {
  width: 6px;
}

.texto-card::-webkit-scrollbar-thumb {
  background-color: #4a4c48;
  border-radius: 6px;
}

.redes img.icono {
  width: 24px;
  height: 24px;
  vertical-align: middle;
  border-radius: 5px;
}

footer p.copyright {
  margin-top: 25px;
  font-size: 0.9em;
  color: white;
}

footer p.copyright span {
  color: white;
  font-weight: bold;
}
