/* ============================================================
   LA ESTELA DEL LUCAMVERSO — CSS UNIFICADO (HOME + ARTÍCULOS)
   ============================================================ */


/* ============================================================
   0) BASE GENERAL
   ============================================================ */

body.colectiva {
  background: #ffffff;
  color: #000000;
}

.estela-page {
  max-width: 900px;
  margin: 0 auto;
  background: #ffffff;
  padding-top: 0.5rem;
}


/* ============================================================
   1) CABECERA SUPERIOR (logo + El Lucamverso)
   ============================================================ */

.estela-top {
  background: #ffffff;
  padding: 1.5rem 0 0.5rem 0;
}

.estela-top-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
}

.estela-mini-logo {
  width: 60px;
  height: auto;
}

/* Ocultar cabecera superior solo en artículos */
body.colectiva:has(.estela-articulo) .estela-top {
  display: none !important;
}


/* ============================================================
   2) CABECERA EDITORIAL (banner)
   ============================================================ */

.estela-header-home {
  margin: 0;
  padding: 0;
}

.estela-banner {
  width: 100%;
  height: 150px;
  object-fit: cover;
  object-position: center top;
  display: block;
  margin: 0;
  padding: 0;
  border-radius: 0;
}

@media (max-width: 768px) {
  .estela-banner {
    height: 120px;
    object-position: center top;
  }
}

.estela-header:not(.estela-header-home) {
  padding-top: 1.8rem;
  margin-bottom: 1.6rem;
  overflow: visible;
}


/* ============================================================
   3) HOME — MÓDULO GRIS EDITORIAL
   ============================================================ */

.estela-modulo {
  background: #f8f8f8;
  padding: 40px 24px;
  border-radius: 16px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.06);
}

.estela-modulo .estela-grid {
  gap: 32px;
}


/* ============================================================
   4) HOME — GRID DE TARJETAS
   ============================================================ */

.estela-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.estela-card {
  background: #ffffff;
  border-radius: 12px;
  border: 1px solid #e5e5e5;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.estela-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.10);
}

.estela-card-content {
  padding: 1.5rem;
  text-align: center;
}

.estela-card img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  object-position: center;
  display: block;
  border-bottom: 1px solid #e5e5e5;
}


/* ============================================================
   5) ARTÍCULOS — CONTENIDO EDITORIAL
   ============================================================ */

.estela-articulo {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 1.5rem 3rem 1.5rem;
}

.titulo-articulo {
  font-weight: 800;
  font-size: 2.35rem;
  text-align: center;
  margin: 0.1rem 0 0.4rem 0;
}

.nombre-autor-articulo {
  font-size: 1.2rem;
  font-weight: 700;
  text-align: center;
  margin: 0.3rem 0 1rem 0;
}

.fecha {
  font-size: 1.1rem;
  font-weight: 600;
  text-align: center;
  margin-bottom: 1.5rem;
  color: #333;
}

.subtitulo {
  font-size: 1.2rem;
  text-align: center;
  margin-bottom: 1rem;
}

.imagen-principal {
  max-width: 650px;
  margin: 0 auto 2rem auto;
  text-align: center;
}

.imagen-principal img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  display: block;
  margin: 0 auto;
}

.estela-img-hint {
  font-size: 0.9rem;
  color: #666;
  margin-top: 8px;
}

/* Regla global que fuerza alineado a la izquierda */
.articulo-contenido p,
.articulo-contenido h3 {
  text-align: left;
}


/* ============================================================
   6) BLOQUE DE AUTOR INVITADO
   ============================================================ */

.autor-invitado {
  margin-top: 3rem;
  padding-top: 2.5rem;
  border-top: 1px solid #ddd;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.2rem;
}

.autor-invitado img {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.autor-info h3 {
  font-size: 1.4rem;
  font-weight: 800;
  margin: 0;
}

.autor-info p {
  font-size: 1rem;
  color: #444;
  max-width: 600px;
  margin: 0 auto 1rem auto;
  line-height: 1.5;
}


/* ============================================================
   7) BOTONES
   ============================================================ */

.btn-estela,
.boton-autor {
  background: #0a2747;
  color: #ffffff !important;
  padding: 10px 18px;
  border-radius: 8px;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 600;
  display: inline-block;
  transition: background 0.25s ease, transform 0.2s ease;
  box-shadow: 0 4px 10px rgba(0,0,0,0.10);
}

.btn-estela:hover,
.boton-autor:hover {
  background: #0d355f;
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(0,0,0,0.15);
}

.volver-estela {
  margin-top: 3rem;
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}


/* ============================================================
   8) CORRECCIONES CONTRA INTERIORES.CSS
   ============================================================ */

body.colectiva .btn-estela,
body.colectiva .boton-autor,
body.colectiva .volver-estela a {
  color: #ffffff !important;
}

body.colectiva .estela-page main {
  background: #ffffff !important;
  padding: 0 !important;
}


/* ============================================================
   9) CENTRAR BOTÓN INDEX
   ============================================================ */

.estela-index-boton {
  width: 100% !important;
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  margin-top: 2rem !important;
}

.estela-index-boton a {
  display: inline-block !important;
}


/* ============================================================
   10) FORZAR TAMAÑO DE LA IMAGEN PRINCIPAL
   ============================================================ */

.imagen-principal img {
  max-width: 650px !important;
  object-fit: contain !important;
}


/* ============================================================
   11) JUSTIFICACIÓN SOLO PARA ESTE ARTÍCULO
   ============================================================ */

article.articulo-contenido .articulo-justificado {
    width: 100% !important;
    display: block !important;
}

article.articulo-contenido .articulo-justificado p {
    text-align: justify !important;
    text-justify: inter-word;
}

/* Móvil: asegurar ancho completo */
@media (max-width: 768px) {
    article.articulo-contenido .articulo-justificado {
        width: 100% !important;
        display: block !important;
    }
}
