/* ===================================================
   components.css
   Componentes visuales reutilizables de la interfaz
   =================================================== */


/* ======================================
   2. BOTONES REUTILIZABLES
   ====================================== */


.boton-principal {
  background-color: #ffce00;
  color: #000;
  padding: 0.8rem 1.5rem;
  border: none;
  border-radius: 999px;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s ease;
  text-align: center;
  display: inline-block;
  margin-top: 1.5rem;
}

.boton-principal:hover {
  background-color: #01fe55;
}

.boton-contenedor {
  text-align: center;
}

.btn-ver {
  display: inline-block;
  background-color: #4329a1;
  color: #fff;
  padding: 12px 24px;
  border-radius: 100px;
  font-weight: bold;
  text-decoration: none;
  transition: background-color 0.3s ease;
  margin: 15px auto;
  text-align: center;
}

.btn-ver:hover {
  background-color: #01fe55;
}

.btn-destacado {
  display: inline-block;
  background-color: #4329a1;
  color: #fff;
  padding: 10px 16px;
  border-radius: 52px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.btn-descarga:hover {
  background-color: #4a2cb5;
}

.btn-suscribirme {
  display: inline-block;
  margin-top: 20px;
  background-color: #5c3dc4;
  color: #fff;
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: bold;
  text-decoration: none;
  transition: background-color 0.3s ease;
}

.btn-suscribirme:hover {
  background-color: #4329a1;
  transform: scale(1.05);
}

/* ==============================
   BOTÓN IMDB
   ============================== */

.btn-imdb {
	display: inline-block;
	background-color: #f5c518;
	color: #000;
	padding: 12px 24px;
	border-radius: 8px;
	font-weight: bold;
	text-decoration: none;
	transition: background-color 0.3s ease;
	margin-top: 20px;
}

.btn-imdb:hover {
	background-color: #d4a514; 
}

/* ======================================
   3. ÍNDICE DE PÁGINA
   ====================================== */

.contenedor-boton-indice {
  margin: 2rem auto;
  text-align: center;
    font-family: "Poppins", "Sans-serif";
}

.indice-pagina {
  max-width: 300px;
  margin: 20px auto 0;
  padding: 20px;
  background-color: #fefcf8;
  border: 1px solid #e5e4dc;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  transition: all 0.4s ease;
}

.indice-pagina h3 {
  font-size: 1.3em;
  color: #3f2f1d;
  margin-bottom: 15px;
  text-align: center;
}

.indice-pagina ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.indice-pagina li {
  width: 100%;
  margin-bottom: 0.5rem;
}

.indice-pagina ul li {
  padding: 0.5rem 1rem;
  color: #5c3dc4;
  border-radius: 8px;
}

.indice-pagina a {
  text-decoration: none;
  color: #5c3dc4;
  font-weight: bold;
  transition: color 0.3s;
}

.indice-pagina a:hover {
  color: #2b1f7a;
}

/* oculta el índice */
.oculto {
  display: none !important;
}
/* ======================================
   4. SCROLL TO TOP
   ====================================== */

#scrollTopBtn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 1000;
  background-color: #333;
  color: white;
  border: none;
  padding: 12px 16px;
  border-radius: 50%;
  font-size: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  opacity: 0.3;
  cursor: pointer;
  transition: opacity 0.3s ease;
}

#scrollTopBtn:hover {
  background-color: #555;
  opacity: 1;
}


/* ======================================
   5. ETIQUETAS VISUALES
   ====================================== */

.etiqueta {
  margin: 0 0.5rem;
  display: inline-block;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.9em;
  font-weight: bold;
  color: #5a2ea6;
  white-space: nowrap;
  text-align: center;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.etiqueta:hover {
  opacity: 0.85;
  background-color: #d1c9ff;
  transform: scale(1.05);
}


/* ======================================
   6. REDES SOCIALES
   ====================================== */

.rrss {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  padding: 0;
  margin: 2rem 0 0;
}

.rrss li a.boton-redes {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: #fff;
  font-weight: 500;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  padding: 0.4rem 0.8rem;
  border-radius: 8px;
}

.rrss li a.boton-redes:hover {
  background-color: #01fe55;
  transform: scale(1.05);
}

.rrss li a.boton-redes img {
  margin: 0;
  transition: transform 0.3s ease;
}

.rrss li a.boton-redes:hover img {
  transform: scale(1.1);
}

/* ======================================
   7. BLOQUE HERO
   ====================================== */

.hero {
  text-align: center;
  padding: 4rem 1.5rem;
  background-color: #dcd3ff;
  margin-bottom: 0;
  border-radius: 0 0 20px 20px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
font-family: "Poppins", "Sans-serif";
}

.hero h1 {
  font-size: 2rem;
  color: #5b52bc;
    font-family: "Poppins", "Sans-serif";
}

.hero h2 {
  font-size: 1.3rem;
font-family: "Poppins", "Sans-serif";

}

.hero h3 {
  font-size: 1rem;
font-family: "Poppins", "Sans-serif";
}

.hero p {
  font-size: 1rem;
    font-family: "Poppins", "Sans-serif";

}

.hero .subfrase {
  font-size: 1rem;
  opacity: 0.9;
  font-style: italic;
  margin-bottom: 1.5rem;
    font-family: "Poppins", "Sans-serif";

}

/* ======================================
   8. BLOQUE DE INFORMACIÓN COLAPSABLE
   ====================================== */

.info-extra {
  display: none;
  margin-top: 1rem;
  background-color: #f8f8f8;
  padding: 1rem;
  border-left: 4px solid #5c6bc0;
  border-radius: 8px;
}

.btn-mas-info {
  margin-top: 1rem;
  background-color: transparent;
  border: 2px solid #5c6bc0;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  cursor: pointer;
  font-weight: bold;
  color: #5c6bc0;
  transition: background-color 0.3s;
}

.btn-mas-info:hover {
  background-color: #e0e7ff;
}


/* ======================================
   10. AVISOS / BANNERS DESTACADOS
   (Mover a components.css)
   ====================================== */

.aviso {
  background-color: #fff9e6;
  border-left: 4px solid #f4c430;
  padding: 1rem 1.5rem;
  margin: 2rem 0;
  border-radius: 8px;
  font-size: 1rem;
  color: #5a4a22;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.03);
}

.aviso em {
  display: block;
  font-weight: 600;
  margin-bottom: 0.5rem;
  font-style: normal;
}

.aviso a {
  color: #a26a00;
  font-weight: 600;
  text-decoration: underline dotted;
}

.aviso a:hover {
  text-decoration: underline solid;
}

.tip-descarga {
  background-color: #fff8e6;
  color: #5c3d00;
  font-size: 0.95rem;
  padding: 0.8rem 1rem;
  border: 1px solid #f4c430;
  border-radius: 6px;
  margin-top: 1rem;
  font-style: italic;
}

/* ======================================
   11. TARJETAS Y COLUMNAS
   ====================================== */

.tarjeta-recursos {
  background-color: #ffffff;
  border: 1px solid #b3e5fc;
  border-radius: 12px;
  padding: 30px 40px;
  max-width: 1100px;
  margin: auto;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
  transition: transform 0.4s ease, box-shadow 0.3s ease;
}

.tarjeta-recursos:hover {
  transform: scale(1.05);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.1);
}

.tarjeta-recursos h2 {
  text-align: center;
  font-size: 2em;
  color: #5c3dc4;
  margin-bottom: 25px;
}

.tarjeta-recursos p {
  font-size: 1.1em;
  color: #000000;
  line-height: 1.7;
  margin-bottom: 1em;
}


/* Columnas de contenido (bloques justificados) */

.contenido-recursos,
.columnas-laterales-recursos {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 30px;
}

.columnas-laterales-recursos {
  flex-direction: row;
}

.columnas-laterales-recursos .bloque-intro-recursos,
.columnas-laterales-recursos .bloque-cta-recursos {
  flex: 1 1 45%;
  text-align: justify;
}

.intro-columna,
.destacado-columna {
  flex: 1 1 48%;
  padding: 60px 40px;
  border-radius: 12px;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
  width: 50%;
  margin: 0;
}

.intro-columna {
  background-color: #ffff;
  border-top-left-radius: 12px;
  border-bottom-left-radius: 12px;
}

.destacado-columna {
  background-color: rgb(228, 254, 209);
  border-left: 1px solid #eee;
  border-top-right-radius: 12px;
  border-bottom-right-radius: 12px;
}

.intro-columna:hover {
  transform: scale(1.05);
}

.intro-columna h2,
.destacado-columna h2,
.destacado-columna h3 {
  text-align: center;
}


/* ======================================
   7. TABLA DE RECURSOS Y FILTROS
   ====================================== */

.tabla-base {
  background-color: #fff;
  padding: 60px 40px;
  text-align: center;
  max-width: 85%;
  margin: auto;
  margin-bottom: 4rem;
  border-radius: 12px;
  transition: box-shadow 0.3s ease;
}
.tabla-base:hover {
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}
.tabla-base h2 {
  font-size: 2.2em;
  color: #5c3dc4;
  margin-bottom: 40px;
}
.tabla-base table {
  border-radius: 12px;
  overflow: hidden;
  width: 100%;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  margin-bottom: 40px;
  transition: box-shadow 0.3s ease;
}
.tabla-base table:hover {
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}
.tabla-base th,
.tabla-base td {
  padding: 16px 20px;
  border: 1px solid #ddd;
  text-align: left;
}
.tabla-base th {
  background-color: #ece4ff;
  color: #000;
  font-weight: bold;
}
.tabla-base td {
  background-color: #fdfbff;
  color: #000;
  font-size: 1em;
}
.tabla-base th:first-child {
  border-top-left-radius: 12px;
}
.tabla-base th:last-child {
  border-top-right-radius: 12px;
}
.tabla-base a {
  color: #5c3dc4;
  text-decoration: none;
  font-weight: bold;
}
.tabla-base a:hover {
  text-decoration: underline;
}
.divisor-recursos {
  border: none;
  height: 2px;
  background: linear-gradient(to right, #d0c4ff, #eae4ff, #d0c4ff);
  margin: 60px auto 40px;
  width: 15%;
  border-radius: 2px;
}

/* Filtros */
.bloque-filtros {
  text-align: center;
  margin: 30px 0;
}
.bloque-filtros label {
  font-size: 1.1em;
  margin-right: 10px;
}
.bloque-filtros input[type="text"],
.bloque-filtros select {
  padding: 8px;
  font-size: 1em;
  margin-right: 20px;
  border: 1px solid #ccc;
  border-radius: 5px;
}
.bloque-filtros button {
  background-color: #5c3dc4;
  color: #fff;
  border: none;
  padding: 10px 16px;
  margin: 5px;
  border-radius: 6px;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.3s ease;
}
.bloque-filtros button:hover {
  background-color: #4329a1;
  transform: scale(1.05);
}

/* ======================================
   8. INFORMACIÓN ADICIONAL DESPLEGABLE
   ====================================== */

.resource-info-container {
  background-color: #ffffff;
  padding: 2rem;
  margin: 3rem auto;
  border-radius: 10px;
  max-width: 700px;
  text-align: center;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, color 0.3s ease;
}

.resource-info-container:hover {
  transform: scale(1.05);
  color: #3a1a6d;
}

.toggle-info {
  background-color: transparent;
  border: none;
  font-size: 1.1rem;
  font-weight: bold;
  color: #5a2ea6;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  margin: 1rem 0;
  transition: color 0.3s ease;
}

.toggle-info:hover {
  transform: scale(1.05);
  color: #3a1a6d;
}

.arrow {
  display: inline-block;
  margin-left: 0.5rem;
  transition: transform 0.3s ease;
}

.resource-info {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.5s ease, opacity 0.5s ease;
  margin-bottom: 1.5rem;
  text-align: left;
  padding: 0 1rem;
}

.resource-info.visible {
  max-height: 500px;
  opacity: 1;
}

.resource-info-container p {
  margin: 1rem 0;
  line-height: 1.5;
  color: #333333;
}

/* ==============================
   PORTADAS
   ============================== */

/* Estilos comunes para todas las portadas */
.portada {
  object-fit: cover;
  border-radius: 8px;
  display: block;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.1);
  flex-shrink: 0;
}

/* Tamaño estándar para todas las portadas */
.portada-estandar {
  width: 120px;
  height: auto;
}

/* Portada especial destacada (proyectos principales) */
.portada-destacada {
  width: 200px;
  height: 300px;
  margin: 10px auto;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

/* Altura estándar para portadas sin ancho definido */
.portada-h250 {
  height: 250px;
}

/* Estilo del enlace activo en el menú de navegación */
.nav-menu a.active {
  background-color: #ffee03;
  color: #000 !important;
  border-radius: 0.5em;
    font-family: "Poppins", "Sans-serif";

}

/* ======================================
   NEWSLETTER
   ====================================== */
.newsletter-wrapper {
   margin-top: 5rem;
    margin-bottom: 5rem;
  border-radius: 0.5rem;
        font-family: "Poppins", "Sans-serif";

}