/**
 * ==========================================================
 * COMPONENTS.CSS — Componentes Reutilizables
 * ==========================================================
 * Estilos comunes utilizados en múltiples secciones del sitio
 * para evitar duplicación de código CSS.
 * ==========================================================
 */

/* -------------------------------------------
   SECTION TITLE WRAP (Encabezados de sección)
------------------------------------------- */
.section-title-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.2rem;
  margin-top: 3.8rem;
  margin-bottom: 3.8rem;
  padding: 0rem 2rem;
  position: relative;
  text-align: center;
}

.section-title-wrap .icon-lateral {
  width: 1.55rem;
  height: 1.55rem;
  fill: var(--color-principal, #7b1917);
  stroke: var(--color-principal, #7b1917);
  opacity: 0.82;
  transition: filter 0.25s;
  filter: drop-shadow(0 0 3px #cfc0b440);
}

.section-title-wrap .icon-lateral:hover {
  filter: drop-shadow(0 0 8px var(--color-principal, #7b1917));
}

.section-title-wrap .linea-lateral {
  flex: 1 1 48px;
  height: 1.5px;
  /* max-width: 250px; */
  /* min-width: 100px; */
  background: linear-gradient(90deg, transparent 0%, var(--color-principal, #7b1917) 50%, transparent 100%);
  opacity: 0.44;
  box-shadow: 0 0 6px #eee4e4b0 inset;
}

.section-title-wrap .section-title {
  font-family: var(--fuente-inter);
  font-size: 2.0rem;
  font-weight: 600;
  color: var(--color-principal) !important;
  margin: 0 1.5rem;
  letter-spacing: 0.05em;
  border-radius: 1.5em;
  padding: 0.18em 1.1em 0.13em;
  /* box-shadow: 0 1px 12px #e9d4d420; */
  position: relative;
  display: flex;
  z-index: 1;
  background-color: transparent;
}

/* -------------------------------------------
   ABECEDARIO / SELECTOR (Letras y años)
------------------------------------------- */
.abecedario-container {
  text-align: center;
  margin: 30px 0;
  text-transform: uppercase;
  font-family: var(--fuente-inter);
  color: var(--color-principal);
  letter-spacing: 2px;
  font-weight: 400;
}

.abecedario-container p {
  margin: 30px 0;
}

.abecedario {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.3rem;
  margin-top: -20px;
}

.abecedario a {
  display: inline-block;
  margin: 0.3rem;
  padding: 0.4rem 0.7rem;
  border-radius: 4px;
  color: var(--color-principal);
  text-decoration: none;
  border: 1px solid transparent;
  transition: all 0.2s ease;
  font-family: var(--fuente-inter);
}

.abecedario a:hover,
.abecedario a.activo {
  background: var(--color-principal);
  color: #fff;
  border-color: var(--color-principal);
}

/* -------------------------------------------
   GRID DE AUTORES
------------------------------------------- */
.grid-autores {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  padding: 0 1rem 3rem;
  max-width: 1100px;
  margin: 0 auto;
}

/* -------------------------------------------
   AUTOR CARD (Tarjetas de autor)
------------------------------------------- */
.autor-card {
  text-align: center;
  transition: transform 0.3s ease;
  flex: 1 1 180px;
  max-width: 220px;
}

.autor-card a {
  text-decoration: none;
}

.autor-card:hover {
  transform: translateY(-4px);
}

.autor-imagen {
  width: 130px;
  height: 130px;
  border-radius: 50%;
  background-size: cover;
  background-position: 80% 25%;
  border: 3px solid var(--color-principal);
  margin: 0 auto 1rem;
  box-shadow: 0 3px 8px rgba(0,0,0,0.1);
}

.autor-nombre {
  font-weight: 400;
  color: var(--color-principal);
  font-family: var(--fuente-inter);
  font-size: 0.9rem;
  margin-top: 0.5rem;
}

/* -------------------------------------------
   TÍTULOS Y MENSAJES
------------------------------------------- */
.titulo-letra {
  text-align: center;
  font-size: 1.6rem;
  color: var(--color-principal);
  font-weight: 400;
  margin-bottom: 50px;
  font-family: var(--fuente-inter);
}

.mensaje-vacio {
  text-align: center;
  color: #777;
  font-style: italic;
  margin-bottom: 3rem;
}

/* -------------------------------------------
   BOTÓN VOLVER
------------------------------------------- */
.btn-volver {
  display: block;
  width: fit-content;
  margin: 1rem auto 3rem;
  background: var(--color-principal);
  color: #fff;
  padding: 0.6rem 1.2rem;
  border-radius: 25px;
  text-decoration: none;
  font-family: var(--fuente-inter);
  transition: background 0.3s ease;
  font-size: 0.8rem;
  letter-spacing: 1.8px;
}

.btn-volver:hover {
  background: var(--color-principal-hover);
}

/* -------------------------------------------
   RESPONSIVO
------------------------------------------- */
@media (max-width: 650px) {

.section-title-wrap {
  /* justify-content: space-evenly; */
  padding: 1rem 1rem;
  margin-top: 1rem;
}

  .section-title-wrap .section-title {
    font-size: 1.8rem;
    margin: 0 0.8rem;
    padding: 0.16em 0.7em 0.12em;

  }
  
  .section-title-wrap .icon-lateral {
    width: 1.2rem;
    height: 1.2rem;
    margin: 0 0.13rem;
  }
  
  .section-title-wrap .linea-lateral {
    max-width: 28px;
    min-width: 12px;
  }
  
  .section-title-wrap {
    gap: 0.4rem;
    margin-bottom: 1.2rem;
  }
}
@media (max-width: 450px) {
   .section-title-wrap .linea-lateral {
    display: none;
   }
}

@media (max-width: 400px) {
.section-title-wrap .linea-lateral {
  display: none;
}
  .section-title-wrap .section-title {
    font-size: 1.6rem;
    margin: 0 0.8rem;
    padding: 0.16em 0.7em 0.12em;

  }
  
}