/* ============================================================
   HERMANDAD DEL SEÑOR DE LOS MILAGROS — MAIN CSS
   Paleta: Morado #4a1060 · Dorado #c9a227 · Lila #f5eef8
   Tipografía: Playfair Display (headings) · Lato (body)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&family=Lato:wght@300;400;700&display=swap');

/* ── TOKENS ─────────────────────────────────────────────────── */
:root {
  --purple:        #4a1060;
  --purple-dark:   #2d0a40;
  --purple-mid:    #6b1a80;
  --purple-light:  #9b4ab8;
  --gold:          #c9a227;
  --gold-light:    #e8c040;
  --gold-pale:     #f5ecd4;
  --lilac:         #f5eef8;
  --lilac-mid:     #e8d5f0;
  --white:         #ffffff;
  --text-dark:     #1a0828;
  --text-mid:      #4a3058;
  --text-light:    #7a5a8a;
  --border:        #d4b8e0;

  --font-display:  'Playfair Display', Georgia, serif;
  --font-body:     'Lato', system-ui, sans-serif;

  --radius-sm:     4px;
  --radius-md:     8px;
  --radius-lg:     16px;

  --shadow-sm:     0 2px 8px rgba(74,16,96,0.10);
  --shadow-md:     0 4px 20px rgba(74,16,96,0.15);
  --shadow-lg:     0 8px 40px rgba(74,16,96,0.20);

  --nav-h:         72px;
  --transition:    0.25s ease;
}

/* ── RESET ───────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-body);
  color: var(--text-dark);
  background: var(--white);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* ── TYPOGRAPHY ──────────────────────────────────────────────── */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.2;
  color: var(--purple-dark);
}
h1 { font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 700; }
h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); font-weight: 600; }
h3 { font-size: clamp(1.2rem, 2vw, 1.6rem); font-weight: 600; }
h4 { font-size: 1.1rem; font-weight: 600; }
p  { color: var(--text-mid); line-height: 1.8; }

.eyebrow {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
}

/* ── LAYOUT ──────────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}
.section {
  padding: 80px 0;
}
.section--alt {
  background: var(--lilac);
}
.section__header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 56px;
}
.section__header .eyebrow {
  margin-bottom: 10px;
  display: block;
}
.section__header p {
  margin-top: 12px;
  font-size: 1.05rem;
}

/* ── BUTTONS ─────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  transition: all var(--transition);
  cursor: pointer;
}
.btn--primary {
  background: var(--gold);
  color: var(--purple-dark);
  box-shadow: 0 2px 12px rgba(201,162,39,0.35);
}
.btn--primary:hover {
  background: var(--gold-light);
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(201,162,39,0.45);
}
.btn--outline {
  background: transparent;
  color: var(--white);
  border: 1.5px solid rgba(255,255,255,0.55);
}
.btn--outline:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.8);
}
.btn--purple {
  background: var(--purple);
  color: var(--white);
}
.btn--purple:hover {
  background: var(--purple-mid);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* ── GOLD DIVIDER ────────────────────────────────────────────── */
.gold-divider {
  width: 56px;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  border-radius: 2px;
  margin: 16px auto 0;
}
.gold-divider--left { margin-left: 0; }

/* ════════════════════════════════════════════════════════════════
   NAVIGATION
════════════════════════════════════════════════════════════════ */
.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--nav-h);
  background: transparent;
  transition: background var(--transition), box-shadow var(--transition);
}
.site-nav.scrolled {
  background: var(--purple-dark);
  box-shadow: 0 2px 20px rgba(45,10,64,0.35);
}
.site-nav.scrolled .nav-inner {
  border-bottom-color: transparent;
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  transition: border-color var(--transition);
}
.nav-logo {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}
.nav-logo__main {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.01em;
}
.nav-logo__sub {
  font-size: 0.65rem;
  color: var(--gold);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}
.nav-links a {
  font-size: 0.85rem;
  font-weight: 700;
  color: rgba(255,255,255,0.85);
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  letter-spacing: 0.04em;
  transition: all var(--transition);
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--gold);
}
.nav-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* Language selector */
.lang-selector {
  position: relative;
}
.lang-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255,255,255,0.25);
  color: var(--white);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  transition: all var(--transition);
  background: rgba(255,255,255,0.07);
}
.lang-btn:hover {
  background: rgba(255,255,255,0.14);
  border-color: rgba(201,162,39,0.5);
}
.lang-btn svg {
  width: 14px; height: 14px;
  opacity: 0.7;
  transition: transform var(--transition);
}
.lang-selector.open .lang-btn svg {
  transform: rotate(180deg);
}
.lang-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: var(--purple-dark);
  border: 1px solid rgba(201,162,39,0.2);
  border-radius: var(--radius-md);
  overflow: hidden;
  min-width: 140px;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all var(--transition);
}
.lang-selector.open .lang-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.lang-dropdown button {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 16px;
  font-size: 0.82rem;
  font-weight: 700;
  color: rgba(255,255,255,0.75);
  letter-spacing: 0.04em;
  transition: all var(--transition);
  text-align: left;
}
.lang-dropdown button:hover,
.lang-dropdown button.active {
  background: rgba(201,162,39,0.12);
  color: var(--gold);
}
.lang-dropdown button .lang-flag {
  font-size: 1rem;
}

/* Mobile hamburger */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 6px;
}
.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all var(--transition);
}
.nav-hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* Mobile menu */
.nav-mobile {
  display: none;
  flex-direction: column;
  position: fixed;
  top: var(--nav-h);
  left: 0; right: 0;
  background: var(--purple-dark);
  padding: 20px 24px 32px;
  border-top: 1px solid rgba(201,162,39,0.2);
  box-shadow: var(--shadow-lg);
  z-index: 999;
  transform: translateY(-10px);
  opacity: 0;
  transition: all var(--transition);
}
.nav-mobile.open {
  display: flex;
  transform: translateY(0);
  opacity: 1;
}
.nav-mobile a {
  font-size: 1rem;
  font-weight: 700;
  color: rgba(255,255,255,0.85);
  padding: 14px 0;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  letter-spacing: 0.04em;
  transition: color var(--transition);
}
.nav-mobile a:hover { color: var(--gold); }
.nav-mobile .lang-selector {
  margin-top: 20px;
}
.nav-mobile .lang-btn {
  width: fit-content;
}

/* ════════════════════════════════════════════════════════════════
   HERO — INICIO
════════════════════════════════════════════════════════════════ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--purple-dark);
}

/* Background */
.hero__bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #1a0428 0%, #3d0a55 45%, #5a1070 100%);
}
.hero__bg-pattern {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 50%, rgba(201,162,39,0.06) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(107,26,128,0.4) 0%, transparent 50%),
    radial-gradient(circle at 60% 80%, rgba(74,16,96,0.6) 0%, transparent 40%);
}

/* Gold vertical accent */
.hero__gold-bar {
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, transparent, var(--gold) 20%, var(--gold-light) 50%, var(--gold) 80%, transparent);
  z-index: 2;
}

/* Content */
.hero__inner {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  width: 100%;
  padding-top: var(--nav-h);
}
.hero__content {
  padding: 60px 0;
}
.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 24px;
}
.hero__eyebrow-text {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
}
.hero__eyebrow-line {
  width: 32px;
  height: 1px;
  background: var(--gold);
  opacity: 0.6;
}
.hero__title {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1.1;
  margin-bottom: 8px;
}
.hero__title span {
  color: var(--gold);
  font-style: italic;
}
.hero__subtitle {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  color: rgba(255,255,255,0.6);
  font-weight: 400;
  margin-bottom: 24px;
  font-style: italic;
}
.hero__desc {
  color: rgba(255,255,255,0.65);
  font-size: 1rem;
  line-height: 1.8;
  max-width: 480px;
  margin-bottom: 36px;
}
.hero__actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

/* Hero image side */
.hero__image {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 560px;
}
.hero__image-frame {
  position: relative;
  width: 100%;
  height: 100%;
}
.hero__image-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-lg);
  opacity: 0.85;
}
.hero__image-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(107,26,128,0.4), rgba(201,162,39,0.1));
  border-radius: var(--radius-lg);
  border: 1px dashed rgba(201,162,39,0.3);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
}
.hero__image-placeholder span {
  font-size: 0.8rem;
  color: rgba(201,162,39,0.5);
  text-align: center;
  font-family: var(--font-body);
}

/* Gold border accent on image */
.hero__image-border {
  position: absolute;
  bottom: -12px;
  right: -12px;
  width: 80%;
  height: 80%;
  border: 2px solid var(--gold);
  border-radius: var(--radius-lg);
  opacity: 0.25;
  z-index: -1;
}

/* Scroll indicator */
.hero__scroll {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  animation: bounce 2s ease infinite;
}
.hero__scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(180deg, transparent, var(--gold));
}
.hero__scroll-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--gold);
}
@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(6px); }
}

/* ════════════════════════════════════════════════════════════════
   STATS BAR
════════════════════════════════════════════════════════════════ */
.stats-bar {
  background: var(--purple-dark);
  padding: 32px 0;
}
.stats-bar__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
}
.stat-item {
  text-align: center;
  padding: 16px 24px;
  border-right: 1px solid rgba(255,255,255,0.08);
}
.stat-item:last-child { border-right: none; }
.stat-item__value {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 6px;
}
.stat-item__label {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
}

/* ════════════════════════════════════════════════════════════════
   BIENVENIDA
════════════════════════════════════════════════════════════════ */
.bienvenida {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.bienvenida__image {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4/3;
  background: var(--lilac-mid);
  display: flex;
  align-items: center;
  justify-content: center;
}
.bienvenida__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.bienvenida__image-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--text-light);
  font-size: 0.85rem;
}
.bienvenida__gold-accent {
  position: absolute;
  left: -8px;
  bottom: 24px;
  width: 4px;
  height: 48px;
  background: var(--gold);
  border-radius: 2px;
}
.bienvenida__content .eyebrow { margin-bottom: 12px; display: block; }
.bienvenida__content h2 { margin-bottom: 20px; }
.bienvenida__content p { margin-bottom: 16px; font-size: 1.02rem; }
.bienvenida__content .btn { margin-top: 12px; }

/* ════════════════════════════════════════════════════════════════
   EVENTOS DESTACADOS
════════════════════════════════════════════════════════════════ */
.eventos-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.evento-card {
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  transition: transform var(--transition), box-shadow var(--transition);
}
.evento-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.evento-card__date {
  background: var(--purple);
  color: var(--white);
  padding: 16px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.evento-card__day {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
}
.evento-card__month {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.65);
  margin-top: 4px;
}
.evento-card__body {
  padding: 20px;
}
.evento-card__tag {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 8px;
  display: block;
}
.evento-card__title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--purple-dark);
  margin-bottom: 8px;
  font-family: var(--font-display);
}
.evento-card__desc {
  font-size: 0.875rem;
  color: var(--text-light);
  line-height: 1.6;
}

/* ════════════════════════════════════════════════════════════════
   GALERÍA PREVIEW
════════════════════════════════════════════════════════════════ */
.galeria-preview {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: auto auto;
  gap: 12px;
}
.galeria-preview__item {
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
  background: var(--lilac-mid);
  aspect-ratio: 4/3;
  cursor: pointer;
}
.galeria-preview__item:first-child {
  grid-row: span 2;
  aspect-ratio: auto;
}
.galeria-preview__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.galeria-preview__item:hover img {
  transform: scale(1.04);
}
.galeria-preview__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(45,10,64,0.7) 100%);
  opacity: 0;
  transition: opacity var(--transition);
  display: flex;
  align-items: flex-end;
  padding: 16px;
}
.galeria-preview__item:hover .galeria-preview__overlay { opacity: 1; }
.galeria-preview__placeholder {
  width: 100%;
  height: 100%;
  min-height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
  font-size: 0.8rem;
}

/* ════════════════════════════════════════════════════════════════
   CTA BAND
════════════════════════════════════════════════════════════════ */
.cta-band {
  background: linear-gradient(135deg, var(--purple-dark) 0%, var(--purple) 100%);
  padding: 72px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-band::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
.cta-band h2 {
  color: var(--white);
  margin-bottom: 14px;
}
.cta-band p {
  color: rgba(255,255,255,0.6);
  max-width: 520px;
  margin: 0 auto 32px;
  font-size: 1.05rem;
}
.cta-band .btn-group {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ════════════════════════════════════════════════════════════════
   FOOTER
════════════════════════════════════════════════════════════════ */
.site-footer {
  background: var(--purple-dark);
  padding: 64px 0 0;
  color: rgba(255,255,255,0.65);
}
.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer__brand .nav-logo__main {
  font-size: 1.1rem;
  margin-bottom: 4px;
  display: block;
}
.footer__brand p {
  color: rgba(255,255,255,0.5);
  font-size: 0.875rem;
  margin-top: 14px;
  line-height: 1.7;
}
.footer__col h4 {
  color: var(--gold);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 20px;
  font-family: var(--font-body);
}
.footer__col ul li {
  margin-bottom: 10px;
}
.footer__col ul li a {
  color: rgba(255,255,255,0.55);
  font-size: 0.875rem;
  transition: color var(--transition);
}
.footer__col ul li a:hover { color: var(--gold); }
.footer__contact-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 12px;
  font-size: 0.875rem;
  color: rgba(255,255,255,0.55);
}
.footer__contact-item svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  margin-top: 3px;
  color: var(--gold);
}
.footer__bottom {
  padding: 20px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.3);
  flex-wrap: wrap;
  gap: 8px;
}
.footer__bottom a {
  color: rgba(255,255,255,0.4);
  transition: color var(--transition);
}
.footer__bottom a:hover { color: var(--gold); }

/* ════════════════════════════════════════════════════════════════
   PAGE BANNER (inner pages)
════════════════════════════════════════════════════════════════ */
.page-banner {
  position: relative;
  background: linear-gradient(135deg, var(--purple-dark) 0%, var(--purple) 100%);
  padding: 120px 0 60px;
  overflow: hidden;
}
.page-banner::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--gold) 30%, var(--gold-light) 50%, var(--gold) 70%, transparent);
}
.page-banner__gold-bar {
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, transparent, var(--gold) 30%, var(--gold) 70%, transparent);
}
.page-banner .eyebrow { margin-bottom: 10px; display: block; }
.page-banner h1 { color: var(--white); margin-bottom: 0; }
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.4);
}
.breadcrumb a { color: rgba(255,255,255,0.4); transition: color var(--transition); }
.breadcrumb a:hover { color: var(--gold); }
.breadcrumb span { color: rgba(255,255,255,0.25); }
.breadcrumb .current { color: var(--gold); }

/* ════════════════════════════════════════════════════════════════
   PAGE CONTENT (inner pages — shared)
════════════════════════════════════════════════════════════════ */
.page-lead {
  max-width: 760px;
  font-size: 1.08rem;
}
.page-lead.text-center { margin-left: auto; margin-right: auto; }

/* ════════════════════════════════════════════════════════════════
   HISTORIA / TIMELINE (Quiénes Somos)
════════════════════════════════════════════════════════════════ */
.historia {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.historia__image {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4/3;
  background: var(--lilac-mid);
  display: flex;
  align-items: center;
  justify-content: center;
}
.historia__image img { width: 100%; height: 100%; object-fit: cover; }
.historia__image-placeholder {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  color: var(--text-light); font-size: 0.85rem;
}
.historia__content .eyebrow { margin-bottom: 12px; display: block; }
.historia__content h2 { margin-bottom: 20px; }
.historia__content p { margin-bottom: 16px; font-size: 1.02rem; }

.timeline {
  position: relative;
  max-width: 760px;
  margin: 0 auto;
  padding-left: 32px;
  border-left: 2px solid var(--border);
}
.timeline__item {
  position: relative;
  padding-bottom: 40px;
}
.timeline__item:last-child { padding-bottom: 0; }
.timeline__item::before {
  content: '';
  position: absolute;
  left: -38px;
  top: 4px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 4px var(--lilac);
}
.timeline__year {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--purple);
  margin-bottom: 6px;
}
.timeline__title { margin-bottom: 6px; font-size: 1.05rem; }
.timeline__desc { font-size: 0.92rem; color: var(--text-light); }

/* ── VALUES / MISIÓN-VISIÓN ─────────────────────────────────── */
.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.values-grid--4 { grid-template-columns: repeat(4, 1fr); }
.values-grid--2 { grid-template-columns: repeat(2, 1fr); max-width: 820px; margin: 0 auto; }
.value-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 32px 28px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
}
.value-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.value-card__icon {
  width: 56px; height: 56px;
  margin: 0 auto 18px;
  border-radius: 50%;
  background: var(--lilac);
  display: flex; align-items: center; justify-content: center;
  color: var(--purple);
}
.value-card__icon svg { width: 26px; height: 26px; }
.value-card h3 { margin-bottom: 10px; }
.value-card p { font-size: 0.92rem; }

/* ════════════════════════════════════════════════════════════════
   EVENTOS — FILTROS Y LISTADO COMPLETO
════════════════════════════════════════════════════════════════ */
.eventos-filter {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 48px;
}
.filter-btn {
  padding: 9px 22px;
  border-radius: 999px;
  border: 1.5px solid var(--border);
  background: var(--white);
  color: var(--text-mid);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  transition: all var(--transition);
}
.filter-btn:hover {
  border-color: var(--purple-light);
  color: var(--purple);
}
.filter-btn.active {
  background: var(--purple);
  border-color: var(--purple);
  color: var(--white);
}
.eventos-grid--full {
  grid-template-columns: repeat(3, 1fr);
}
.evento-card[hidden] { display: none; }
.eventos-empty {
  text-align: center;
  padding: 40px 0;
  color: var(--text-light);
  display: none;
}
.eventos-empty.visible { display: block; }

/* ════════════════════════════════════════════════════════════════
   GALERÍA — GRID COMPLETA Y LIGHTBOX
════════════════════════════════════════════════════════════════ */
.gallery-filter {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 40px;
}
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.gallery-item {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  background: var(--lilac-mid);
  aspect-ratio: 1/1;
}
.gallery-item[hidden] { display: none; }
.gallery-item img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.4s ease;
}
.gallery-item:hover img { transform: scale(1.06); }
.gallery-item__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(45,10,64,0.75) 100%);
  opacity: 0;
  transition: opacity var(--transition);
  display: flex; align-items: flex-end; padding: 14px;
  color: var(--white);
  font-size: 0.78rem;
  font-weight: 700;
}
.gallery-item:hover .gallery-item__overlay { opacity: 1; }
.gallery-item__placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-light);
}

.lightbox {
  position: fixed; inset: 0;
  z-index: 2000;
  background: rgba(26,8,40,0.94);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden;
  transition: opacity var(--transition);
  padding: 40px;
}
.lightbox.open { opacity: 1; visibility: visible; }
.lightbox__figure {
  max-width: 900px;
  max-height: 82vh;
  position: relative;
}
.lightbox__figure img {
  max-width: 100%; max-height: 82vh;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
}
.lightbox__caption {
  text-align: center;
  color: rgba(255,255,255,0.7);
  font-size: 0.85rem;
  margin-top: 14px;
}
.lightbox__close,
.lightbox__prev,
.lightbox__next {
  position: absolute;
  display: flex; align-items: center; justify-content: center;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.2);
  color: var(--white);
  transition: all var(--transition);
}
.lightbox__close:hover,
.lightbox__prev:hover,
.lightbox__next:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--purple-dark);
}
.lightbox__close { top: -56px; right: 0; }
.lightbox__prev { left: -60px; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: -60px; top: 50%; transform: translateY(-50%); }

/* ════════════════════════════════════════════════════════════════
   CONTACTO
════════════════════════════════════════════════════════════════ */
.contact-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 56px;
  align-items: flex-start;
}
.contact-cards {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.contact-card {
  display: flex;
  gap: 16px;
  padding: 22px;
  background: var(--lilac);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
}
.contact-card__icon {
  flex-shrink: 0;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--purple);
  color: var(--gold);
  display: flex; align-items: center; justify-content: center;
}
.contact-card__icon svg { width: 20px; height: 20px; }
.contact-card h4 { margin-bottom: 4px; color: var(--purple-dark); }
.contact-card p, .contact-card a { font-size: 0.9rem; color: var(--text-mid); }
.contact-card a:hover { color: var(--purple); text-decoration: underline; }

.contact-social {
  display: flex;
  gap: 10px;
  margin-top: 8px;
}
.contact-social a {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--purple);
  color: var(--white);
  display: flex; align-items: center; justify-content: center;
  transition: all var(--transition);
}
.contact-social a:hover { background: var(--gold); color: var(--purple-dark); }
.contact-social svg { width: 18px; height: 18px; }

.contact-map {
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  aspect-ratio: 16/9;
}
.contact-map iframe { width: 100%; height: 100%; border: 0; display: block; }

.contact-form-wrap {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-md);
}
.contact-form-wrap h3 { margin-bottom: 8px; }
.contact-form-wrap > p { margin-bottom: 28px; font-size: 0.95rem; }
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.form-group { margin-bottom: 20px; }
.form-group label {
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--purple-dark);
  margin-bottom: 8px;
  letter-spacing: 0.02em;
}
.form-control {
  width: 100%;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border);
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text-dark);
  background: var(--white);
  transition: border-color var(--transition), box-shadow var(--transition);
}
.form-control:focus {
  outline: none;
  border-color: var(--purple-light);
  box-shadow: 0 0 0 3px rgba(155,74,184,0.15);
}
textarea.form-control { resize: vertical; min-height: 130px; }
.form-submit {
  width: 100%;
  justify-content: center;
}
.form-notice {
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  margin-bottom: 24px;
}
.form-notice--success {
  background: rgba(74,16,96,0.08);
  color: var(--purple-dark);
  border: 1px solid rgba(74,16,96,0.2);
}
.form-notice--error {
  background: rgba(180,40,40,0.08);
  color: #8a2020;
  border: 1px solid rgba(180,40,40,0.2);
}

/* ════════════════════════════════════════════════════════════════
   RESPONSIVE
════════════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .hero__inner        { grid-template-columns: 1fr; }
  .hero__image        { display: none; }
  .hero__content      { padding: 80px 0 60px; max-width: 620px; }
  .bienvenida         { grid-template-columns: 1fr; gap: 40px; }
  .eventos-grid       { grid-template-columns: 1fr 1fr; }
  .footer__grid       { grid-template-columns: 1fr 1fr; }
  .historia           { grid-template-columns: 1fr; gap: 40px; }
  .values-grid        { grid-template-columns: 1fr 1fr; }
  .values-grid--4     { grid-template-columns: 1fr 1fr; }
  .values-grid--2     { grid-template-columns: 1fr 1fr; }
  .eventos-grid--full { grid-template-columns: 1fr 1fr; }
  .gallery-grid       { grid-template-columns: repeat(3, 1fr); }
  .contact-grid       { grid-template-columns: 1fr; gap: 40px; }
  .lightbox__prev     { left: 8px; }
  .lightbox__next     { right: 8px; }
}

@media (max-width: 768px) {
  :root { --nav-h: 60px; }
  .section { padding: 56px 0; }
  .nav-links          { display: none; }
  .nav-hamburger      { display: flex; }
  .eventos-grid       { grid-template-columns: 1fr; }
  .galeria-preview    { grid-template-columns: 1fr 1fr; }
  .galeria-preview__item:first-child { grid-row: span 1; aspect-ratio: 4/3; }
  .stats-bar__grid    { grid-template-columns: 1fr; }
  .stat-item          { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.08); }
  .stat-item:last-child { border-bottom: none; }
  .footer__grid       { grid-template-columns: 1fr; gap: 32px; }
  .footer__bottom     { flex-direction: column; text-align: center; }
  .hero__actions      { flex-direction: column; align-items: flex-start; }
  .cta-band .btn-group { flex-direction: column; align-items: center; }
  .values-grid        { grid-template-columns: 1fr; }
  .values-grid--4     { grid-template-columns: 1fr; }
  .values-grid--2     { grid-template-columns: 1fr; }
  .eventos-grid--full { grid-template-columns: 1fr; }
  .gallery-grid       { grid-template-columns: repeat(2, 1fr); }
  .contact-form-wrap  { padding: 28px; }
  .form-row           { grid-template-columns: 1fr; gap: 0; }
  .timeline           { padding-left: 24px; }
  .timeline__item::before { left: -30px; }
  .lightbox           { padding: 16px; }
  .lightbox__close    { top: -48px; }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .galeria-preview { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
}

/* ════════════════════════════════════════════════════════════════
   ACCESSIBILITY
════════════════════════════════════════════════════════════════ */
:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
}

/* ════════════════════════════════════════════════════════════════
   UTILITIES
════════════════════════════════════════════════════════════════ */
.text-center { text-align: center; }
.mt-8  { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
