/* =============================================
   HISTORIA — Izquierda Española
   ============================================= */

:root {
  --rojo:      #e52c21;
  --rojo-dark: #b8221a;
  --negro:     #0f0e0d;
  --crema:     #f7f3ee;
  --gris:      #6b6560;
  --font-body: 'RedditSans', sans-serif;
}

/* ── Reset Astra ── */
.page-template-historia #page,
.page-template-historia #content,
.page-template-historia #primary,
.page-template-historia .site-content,
.page-template-historia .ast-container,
.page-template-historia .entry-content,
.page-template-historia article {
  max-width: 100% !important;
  width: 100% !important;
  padding: 0 !important;
  margin: 0 !important;
  float: none !important;
}
.page-template-historia #content   { display: block !important; }
.page-template-historia #secondary { display: none !important; }
.page-template-historia            { overflow-x: hidden !important; }

/* ── Base ── */
.historia-main {
  font-family: var(--font-body);
  background: var(--crema);
  overflow-x: hidden;
}

/* ══════════════════════════════════════════
   HERO — altura reducida, no pantalla completa
══════════════════════════════════════════ */
.historia-hero {
  position: relative;
  background: var(--rojo);
  padding: 6rem 0 5rem;
  overflow: clip;
}

.hero-bg-text {
  position: absolute;
  bottom: -0.1em;
  left: -0.02em;
  font-size: clamp(80px, 16vw, 200px);
  font-weight: 900;
  letter-spacing: -0.04em;
  color: rgba(0,0,0,0.13);
  line-height: 1;
  pointer-events: none;
  user-select: none;
  white-space: nowrap;
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 0 8vw;
  max-width: 580px;
}

.hero-titulo {
  font-size: clamp(2.4rem, 5.5vw, 4.5rem);
  font-weight: 800;
  line-height: 1.05;
  color: white;
  margin: 0 0 1rem;
  letter-spacing: -0.025em;
}
.hero-titulo em {
  font-style: italic;
  font-weight: 300;
  color: rgba(255,255,255,0.85);
}

.hero-subtitulo {
  font-size: clamp(0.9rem, 1.5vw, 1.05rem);
  color: rgba(255,255,255,0.70);
  line-height: 1.65;
  margin: 0;
}

/* Don Quijote */
.hero-ilustracion {
  position: absolute;
  right: 0;
  bottom: 0;
  z-index: 1;
  pointer-events: none;
  transform: translateY(6%);
}
.hero-svg {
  display: block;
  width: clamp(200px, 32vw, 400px);
  height: auto;
}

/* Corte diagonal inferior */
.historia-hero::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 60px;
  background: var(--crema);
  clip-path: polygon(0 100%, 100% 0, 100% 100%);
  z-index: 3;
}

/* ══════════════════════════════════════════
   CUERPO — texto centrado, una columna
══════════════════════════════════════════ */
.historia-cuerpo {
  background: var(--crema);
  padding: 5rem 0 6rem;
}

.historia-inner {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 5vw;
}

.historia-texto {
  display: flex;
  flex-direction: column;
  gap: 1.8rem;
}

/* ── Reveal on scroll ── */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Párrafo apertura con drop cap ── */
.parrafo-destacado {
  font-size: clamp(1.08rem, 1.9vw, 1.28rem);
  line-height: 1.78;
  color: var(--negro);
  text-align: justify;
}
.drop-cap {
  float: left;
  font-size: 4.8rem;
  line-height: 0.78;
  font-weight: 800;
  color: var(--rojo);
  margin-right: 0.07em;
  margin-top: 0.06em;
}

/* ── Párrafos ── */
.parrafo {
  font-size: 1rem;
  line-height: 1.85;
  color: #2d2a27;
  margin: 0;
  text-align: justify;
}
.parrafo strong {
  font-weight: 700;
  color: var(--negro);
}

/* ── Cita lateral ── */
.cita-lateral {
  border-left: 3px solid var(--rojo);
  padding-left: 1.3rem;
}
.cita-lateral blockquote {
  margin: 0;
  font-size: clamp(1rem, 1.7vw, 1.2rem);
  font-weight: 600;
  font-style: italic;
  color: var(--rojo-dark);
  line-height: 1.5;
}

/* ── Bloque votos ── */
.bloque-votos {
  display: flex;
  align-items: center;
  gap: 1.4rem;
  background: var(--negro);
  border-radius: 12px;
  padding: 1.5rem 1.8rem;
  position: relative;
  overflow: hidden;
}
.bloque-votos::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    45deg, transparent, transparent 10px,
    rgba(255,255,255,0.015) 10px, rgba(255,255,255,0.015) 20px
  );
}
.votos-numero {
  font-size: clamp(1.9rem, 3.5vw, 2.8rem);
  font-weight: 900;
  color: var(--rojo);
  letter-spacing: -0.03em;
  line-height: 1;
  flex-shrink: 0;
  position: relative;
}
.votos-texto {
  position: relative;
}
.votos-texto p {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.5;
  color: rgba(255,255,255,0.78);
}
.votos-sub {
  margin-top: 0.25rem !important;
  font-style: italic;
  color: rgba(255,255,255,0.42) !important;
  font-size: 0.78rem !important;
}

/* ── Cierre ── */
.parrafo-cierre {
  text-align: center;
  padding-top: 0.5rem;
}
.cierre-enfasis {
  font-size: clamp(1.15rem, 2.2vw, 1.5rem);
  font-weight: 700;
  color: var(--negro);
  margin: 0;
  line-height: 1.4;
}

/* ══════════════════════════════════════════
   CTA FINAL
══════════════════════════════════════════ */
.historia-cta {
  background: var(--rojo);
  text-align: center;
  padding: 6rem 5vw 7rem;
}
.cta-inner {
  max-width: 500px;
  margin: 0 auto;
}
.cta-eyebrow {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
  margin: 0 0 0.9rem;
}
.cta-titulo {
  font-size: clamp(1.9rem, 4vw, 2.8rem);
  font-weight: 800;
  color: white;
  margin: 0 0 1.8rem;
  letter-spacing: -0.025em;
}
.cta-btn {
  display: inline-flex;
  align-items: center;
  background: white;
  color: var(--rojo) !important;
  text-decoration: none;
  font-size: 1rem;
  font-weight: 700;
  padding: 0.85rem 2rem;
  border-radius: 8px;
  letter-spacing: 0.02em;
  transition: background 0.2s, transform 0.18s;
  font-family: var(--font-body);
}
.cta-btn:hover {
  background: rgba(255,255,255,0.88);
  transform: translateY(-2px);
  color: var(--rojo) !important;
}

/* ══════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════ */
@media (max-width: 600px) {
  .historia-hero {
    padding: 4rem 0 4rem;
  }
  .hero-content {
    padding: 0 6vw;
  }
  .hero-ilustracion {
    display: none;
  }
  .historia-cuerpo {
    padding: 3.5rem 0 4rem;
  }
  .parrafo-destacado {
    font-size: 1.03rem;
  }
  .drop-cap {
    font-size: 3.6rem;
  }
  .parrafo {
    font-size: 0.96rem;
  }
  .bloque-votos {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.45rem;
    padding: 1.1rem 1.2rem;
  }
  .votos-numero {
    font-size: 1.9rem;
  }
  .historia-cta {
    padding: 4rem 5vw 5rem;
  }
}
