/* =========================
   historia.css (COMPLETO)
   Estilo periódico/editorial
   Adaptado a su HTML actual
========================= */

:root{
  --bg: #050b1a;                 /* fondo general */
  --paper: rgba(255,255,255,.035); /* "papel" (panel) */
  --paper2: rgba(255,255,255,.02);
  --ink: rgba(255,255,255,.92);
  --muted: rgba(255,255,255,.72);
  --muted2: rgba(255,255,255,.62);
  --line: rgba(255,255,255,.10);
  --line2: rgba(255,255,255,.14);
  --accent: #b88a3b;             /* bronce/dorado */
  --shadow: 0 26px 70px rgba(0,0,0,.40);
  --radius: 18px;
}

/* ===== Base segura (sin romper su style.css) ===== */
body{
  background:
    radial-gradient(1200px 800px at 20% 10%, rgba(184,138,59,.08), transparent 60%),
    radial-gradient(900px 650px at 85% 25%, rgba(90,140,255,.07), transparent 60%),
    var(--bg);
  color: var(--ink);
}

/* Por si su style global pone container distinto, acá no lo toco.
   Solo aseguro que la página respire bien. */
main{
  padding-bottom: 80px;
}

/* ===== HERO editorial ===== */
.history-hero{
  position: relative;
  padding: 52px 0 36px;
  border-bottom: 1px solid var(--line2);
  background:
    radial-gradient(900px 500px at 30% 20%, rgba(255,255,255,.045), transparent 60%),
    radial-gradient(900px 500px at 70% 60%, rgba(184,138,59,.05), transparent 62%);
}

.history-hero-inner{
  position: relative;
  display: grid;
  gap: 14px;
  max-width: 980px;
}

/* “Masthead” tipo periódico (líneas arriba/abajo) */
.history-hero-inner::before,
.history-hero-inner::after{
  content:"";
  display:block;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line2), transparent);
}

.history-hero-inner::before{ margin-bottom: 10px; }
.history-hero-inner::after{ margin-top: 16px; }

/* Badge */
.history-hero-badge{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255,255,255,.02);
  color: rgba(255,255,255,.80);
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.history-dot{
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(184,138,59,.16);
}

/* Titular estilo diario */
.history-hero-title{
  margin: 0;
  font-family: ui-serif, Georgia, "Times New Roman", Times, serif;
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1.05;
  font-size: clamp(36px, 4.6vw, 60px);
}

.history-hero-desc{
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
  font-size: 15.5px;
  max-width: 78ch;
}

/* Botones: no toco sus .btn, solo doy un poco de orden */
.history-hero-actions{
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 6px;
}

/* ===== TIMELINE wrap ===== */
.history-timeline-wrap{
  padding: 42px 0 0;
}

/* Layout “editorial”: línea central y cards */
.timeline{
  position: relative;
  display: grid;
  gap: 18px;
  margin-top: 18px;
}

/* Línea vertical (tipo periódico) */
.timeline::before{
  content:"";
  position: absolute;
  left: 20px;
  top: 0;
  bottom: 0;
  width: 1px;
  background: linear-gradient(180deg, transparent, var(--line2) 10%, var(--line2) 90%, transparent);
  opacity: .9;
}

/* Item */
.timeline-item{
  position: relative;
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 18px;
  align-items: start;
}

/* Marcador */
.timeline-marker{
  position: relative;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 1px solid var(--line2);
  background: rgba(255,255,255,.02);
  box-shadow: 0 12px 30px rgba(0,0,0,.25);
  display: grid;
  place-items: center;
  margin-left: 0;
}

/* Punto/brillo */
.timeline-marker::before{
  content:"";
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 0 5px rgba(184,138,59,.14);
  position: absolute;
  left: 16px;
  top: 16px;
  opacity: .9;
}

/* Número */
.timeline-step{
  font-size: 11px;
  letter-spacing: .18em;
  font-weight: 800;
  color: rgba(255,255,255,.75);
  position: relative;
  z-index: 1;
  transform: translateY(0.5px);
}

/* Card estilo “papel” */
.timeline-card{
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--paper), var(--paper2));
  box-shadow: var(--shadow);
  padding: 18px 18px 16px;
  overflow: hidden;
}

/* Header interno: título + tag */
.timeline-card-header{
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

/* Título serif editorial */
.timeline-title{
  margin: 0;
  font-family: ui-serif, Georgia, "Times New Roman", Times, serif;
  font-weight: 900;
  letter-spacing: -0.01em;
  font-size: 22px;
  line-height: 1.2;
}

/* Tag tipo prensa */
.timeline-tag{
  font-size: 11px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: rgba(255,255,255,.72);
  border: 1px solid var(--line);
  background: rgba(255,255,255,.02);
  padding: 7px 10px;
  border-radius: 999px;
}

/* Texto */
.timeline-text{
  margin: 0 0 12px;
  color: rgba(255,255,255,.86);
  line-height: 1.75;
  font-size: 15px;
}

/* Lista bullets */
.timeline-bullets{
  margin: 0;
  padding-left: 18px;
  color: rgba(255,255,255,.82);
  line-height: 1.7;
  font-size: 14.5px;
}

.timeline-bullets li{
  margin: 6px 0;
}

/* ===== SOPORTE DE IMÁGENES (para “las imágenes que tenemos”) =====
   Usted puede pegar dentro de .timeline-card esto:

   <div class="timeline-media">
     <img src="/img/SU-IMAGEN.jpg" alt="...">
     <div class="timeline-caption">Pie de foto...</div>
   </div>

*/
.timeline-media{
  margin-top: 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  background: rgba(0,0,0,.16);
}

.timeline-media img{
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  filter: contrast(1.02) saturate(1.02);
}

.timeline-caption{
  padding: 10px 12px;
  border-top: 1px solid var(--line);
  font-size: 12.5px;
  line-height: 1.45;
  color: rgba(255,255,255,.72);
}

/* ===== CTA final ===== */
.history-cta{
  margin-top: 26px;
}

.history-cta-card{
  border: 1px solid var(--line);
  border-radius: 22px;
  background:
    radial-gradient(900px 450px at 30% 30%, rgba(184,138,59,.10), transparent 65%),
    linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.02));
  box-shadow: var(--shadow);
  padding: 22px;
}

.history-cta-card h2{
  margin: 0 0 8px;
  font-family: ui-serif, Georgia, "Times New Roman", Times, serif;
  font-weight: 900;
  letter-spacing: -0.01em;
  font-size: 24px;
  line-height: 1.2;
}

.history-cta-card p{
  margin: 0 0 14px;
  color: var(--muted);
  line-height: 1.7;
  font-size: 15px;
  max-width: 85ch;
}

.history-cta-actions{
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* ===== Responsivo ===== */
@media (max-width: 900px){
  .history-hero{
    padding: 44px 0 28px;
  }

  .timeline::before{
    left: 18px;
  }

  .timeline-item{
    grid-template-columns: 48px 1fr;
    gap: 14px;
  }

  .timeline-card{
    padding: 16px;
  }

  .timeline-title{
    font-size: 20px;
  }
}

@media (max-width: 520px){
  .history-hero-badge{
    letter-spacing: .12em;
    font-size: 11px;
  }

  .timeline-card-header{
    gap: 8px;
  }

  .timeline-tag{
    padding: 6px 9px;
  }
}
