:root{
  --indigo:#312783;
  --orange:#f39200;
  --yellow:#ffde00;
  --red:#e6332a;
  --ink:#1b1b1b;
  --paper:#f6f0e6; /* tono crema del mockup */
  --white:#fff;
}

html{scroll-behavior:smooth}
body{
  margin:0;
  color:var(--ink);
  background:#fff;
  font-family:Inter,system-ui,-apple-system,"Segoe UI",Roboto,"Helvetica Neue",Arial,"Noto Sans","Liberation Sans",sans-serif;
}

/* Tipografías */
.h1,.h2,.hero__title,.card__title,.evento-card__title{
  font-family:Baskerville,"Libre Baskerville",Georgia,serif;
  letter-spacing:.2px;
}
.h2{font-size:clamp(28px,2.4vw,36px); margin:0 0 16px}

/* Utilidades de layout */
.container{width:min(1200px,92%); margin-inline:auto}
.section{padding:56px 0}
.section__header{display:flex; align-items:center; justify-content:space-between; gap:24px}
.section--blog{background:var(--indigo); padding:56px 0}
.h2--light{color:var(--white)}
.text-light{color:rgba(255,255,255,.85)}

.grid{display:grid; gap:20px}
.grid--events{grid-template-columns:repeat(3,1fr)}
.grid--cards{grid-template-columns:repeat(4,1fr)}
.grid--dark .card{background:var(--indigo); border:1px solid rgba(255,255,255,.15)}
@media (max-width:1024px){
  .grid--events{grid-template-columns:repeat(2,1fr)}
  .grid--cards{grid-template-columns:repeat(2,1fr)}
}
@media (max-width:640px){
  .grid--events,.grid--cards{grid-template-columns:1fr}
}

/* Botones & chips */
.btn{
  display:inline-block; padding:14px 20px; border-radius:12px;
  font-weight:700; text-decoration:none;
}
.btn--primary{background:var(--orange); color:#fff}
.btn--ghost{border:2px solid var(--white); color:var(--white); background:transparent}
.chips{display:flex; gap:10px; flex-wrap:wrap}
.chip{
  display:inline-block; padding:8px 14px; border-radius:999px;
  background:rgba(49,39,131,.08); color:var(--indigo); text-decoration:none; font-weight:600;
}

/* ======= HERO ======= */
.hero{position:relative; background:var(--indigo); color:var(--white)}
.hero__track{
  --i:0; --n:1;
  position:relative; overflow:hidden; height:min(70vh,640px);
}
.hero__slide{
  position:absolute; inset:0;
  transform:translateX(calc((var(--i)*-100%)));
  width:100%; height:100%;
}
.hero__slide:nth-child(n){
  left:calc(var(--index,0)*100%)
}
.hero__track > * { --index:0 }
.hero__track > *:nth-child(1){ --index:0 }
.hero__track > *:nth-child(2){ --index:1 }
.hero__track > *:nth-child(3){ --index:2 }
.hero__track > *:nth-child(4){ --index:3 }
.hero__track > *:nth-child(5){ --index:4 }

.hero__bg{width:100%; height:100%; object-fit:cover;}
.hero__overlay{position:absolute; inset:0; background:linear-gradient(180deg, rgba(0,0,0,.35), rgba(0,0,0,.45));}
.hero__content{position:absolute; inset:0; display:flex; flex-direction:column; justify-content:center; gap:14px; align-items: center;}
.hero__title{font-size:clamp(32px,4vw,56px); margin:0}
.hero__subtitle{max-width:800px; font-size:clamp(16px,1.5vw,20px)}
.hero__controls{
  position:absolute; inset:auto 0 12px 0; display:flex; gap:18px; align-items:center; justify-content:center;
}
.hero__arrow{
  background:rgba(0,0,0,.28); color:#fff; border:0; width:40px; height:40px; border-radius:50%;
  font-size:22px; cursor:pointer;
}
.hero__dots{display:flex; gap:8px}
.dot{width:10px; height:12px; border-radius:50%; background:rgba(255,255,255,.5); border:0}
.dot.is-active{background:var(--yellow); width: 40px; border-radius: 10px;}

/* ======= EVENTOS ======= */
.section:nth-of-type(2), .section:nth-of-type(4){ background:var(--paper) } /* bloque eventos */

.evento-card{
  position:relative; overflow:hidden; border-radius:14px;
  background:#000; min-height:320px; isolation:isolate;
}
.evento-card__img{position:absolute; inset:0; width:100%; height:100%; object-fit:cover; filter:brightness(.85)}
.evento-card__link{display:block; position:absolute; inset:0; color:inherit; text-decoration:none}

/* Fechas (bajo la meta) */
.evento-card__fechas{
  position:relative; display:flex; gap:12px; z-index:1;
}
.evento-card__fecha{
  width:72px; height:88px; border-radius:10px; background:var(--orange);
  color:#222; display:flex; flex-direction:column; align-items:center; justify-content:center;
  box-shadow:0 8px 18px rgba(0,0,0,.25);
}
.evento-card__dia{font-weight:800; font-size:28px; line-height:1}
.evento-card__mes{font-weight:700; font-size:12px; letter-spacing:.6px}

/* Meta que sube al hover */
.evento-card__meta {
    position: absolute;
    inset: auto 0 0 0;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.8));
    color: #fff;
    padding: 18px;
    transform: translateY(0);
    transition: transform .35s ease;
    display: flex;
    gap: 10px;
    z-index: 2;
    flex-direction: column;
    align-items: flex-start;
    top: 185px;
    height: fit-content;
}
.evento-card:hover .evento-card__meta{
  transform:translateY(-100px); /* ← sube para revelar fechas */
}
.evento-card__title{margin:0; font-size:22px}
.evento-card__vermas{font-weight:700; color:var(--yellow)}
.badge{
  display:inline-block; padding:6px 10px; border-radius:999px; font-size:12px; font-weight:700;
  background:var(--yellow); color:#222;
}

/* ======= CARDS genéricas (Noticias/Blog) ======= */
.card{
  background:#fff; border-radius:14px; overflow:hidden; border:1px solid #eee; position:relative;
}
.card a {text-decoration: none;}
.card img{width:100%; height:180px; object-fit:cover; display:block}
.card__title{font-size:18px; margin:12px 12px 4px}
.card__meta{margin:0 12px 16px; color:#666; font-size:14px}
.card--dark a{color:#fff; text-decoration:none}
.card--dark img{height:160px}
.card--dark .card__title{color:#fff}

.card__badges{
  position: absolute;
  top: 12px;
  left: 12px;
  display: flex;
  gap: 8px;
}

/* Accesibilidad/estados */
a:focus-visible, .btn:focus-visible, .chip:focus-visible, .hero__arrow:focus-visible{
  outline:3px solid var(--yellow); outline-offset:3px;
}

/* ===========================
   Voces del Centro Histórico
   =========================== */

.section--voices {
  padding-top: 4rem;
  padding-bottom: 4rem;
}

.voices {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.3fr);
  gap: 3rem;
  align-items: center;
}

.voices__image img {
  width: 100%;
  height: 100%;
  max-height: 420px;
  object-fit: cover;
  border-radius: 1.5rem;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.25);
}

.voices__content {
  color: #000;
}

.voices__header {
  margin-bottom: 1.5rem;
}

.voices__subtitle {
  margin-top: 0.5rem;
  max-width: 34rem;
  line-height: 1.6;
  font-size: 0.95rem;
  opacity: 0.9;
}

.voices__slider {
  position: relative;
  min-height: 180px;
  margin-bottom: 1.75rem;
}

.voices__quote {
  display: none;
  margin: 0;
}

.voices__quote.is-active {
  display: block;
}

.voices__quote blockquote {
  margin: 0 0 0.75rem 0;
  font-size: 1.1rem;
  line-height: 1.7;
  font-style: italic;
}

.voices__quote figcaption {
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  font-size: 0.85rem;
  opacity: 0.9;
}

/* Controles del carrusel */
.voices__controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 1rem;
}

.voices__arrow {
  border: none;
  background: rgba(0, 0, 0, 0.12);
  width: 36px;
  height: 36px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
  color: #000;
}

.voices__arrow:hover {
  background: rgba(0, 0, 0, 0.25);
  transform: translateY(-1px);
}

.voices__dots {
  display: flex;
  gap: 0.4rem;
  align-items: center;
}

.voices__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  border: 1px solid rgba(0, 0, 0, 0.6);
  background: transparent;
  cursor: pointer;
  padding: 0;
}

.voices__dot.is-active {
  background: #000;
}

.voices__cta {
  margin-top: 0.5rem;
}

/* Versión responsive */
@media (max-width: 900px) {
  .voices {
    grid-template-columns: 1fr;
  }

  .voices__image img {
    max-height: 260px;
  }

  .voices__content {
    text-align: left;
  }

  .voices__controls {
    justify-content: flex-start;
  }
}


