:root {
  --navy: #10182a;
  --navy-deep: #0b101c;
  --burgundy: #7c1e32;
  --burgundy-deep: #5c1424;
  --gold: #c6a15b;
  --gold-soft: #e4d2a4;
  --cream: #f6f1e7;
  --paper: #fffaf3;
  --ink: #1b1714;
  --muted: #5e564c;
  --line: rgba(198, 161, 91, 0.45);
  --shadow: 0 24px 60px rgba(8, 10, 16, 0.28);
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Outfit", "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--cream);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
.skip {
  position: absolute;
  left: 12px;
  top: -40px;
  background: var(--gold);
  color: var(--navy);
  padding: 8px 12px;
  z-index: 20;
}
.skip:focus { top: 12px; }
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 6vw;
  background: rgba(11, 16, 28, 0.94);
  color: var(--cream);
  border-bottom: 1px solid rgba(198, 161, 91, 0.28);
  backdrop-filter: blur(10px);
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.brand img { width: 48px; height: 48px; object-fit: contain; }
.brand span { display: block; font-family: var(--serif); font-size: 22px; line-height: 1; letter-spacing: 0.02em; }
.brand small { display: block; margin-top: 4px; color: var(--gold-soft); letter-spacing: 0.16em; font-size: 10px; text-transform: uppercase; }
.nav { display: flex; gap: 22px; align-items: center; }
.nav a { color: var(--cream); text-decoration: none; font-size: 14px; letter-spacing: 0.12em; text-transform: uppercase; }
.nav a[aria-current="page"], .nav a:hover { color: var(--gold); }
.menu-btn {
  display: none;
  background: transparent;
  color: var(--cream);
  border: 1px solid var(--line);
  padding: 8px 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.hero {
  position: relative;
  min-height: 88vh;
  display: grid;
  align-items: end;
  color: white;
  background: #111 center/cover no-repeat;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(11,16,28,0.25), rgba(11,16,28,0.78));
}
.hero-inner, .page-hero-inner { position: relative; z-index: 1; padding: 8vh 6vw 7vh; max-width: 980px; }
.kicker, .eyebrow {
  margin: 0 0 10px;
  color: var(--gold-soft);
  letter-spacing: 0.28em;
  text-transform: uppercase;
  font-size: 12px;
}
h1, h2, h3 { font-family: var(--serif); font-weight: 500; letter-spacing: 0.01em; }
h1 { margin: 0; font-size: clamp(52px, 8vw, 92px); line-height: 0.92; }
.subtitle { margin: 18px 0 0; font-size: clamp(22px, 3vw, 34px); font-family: var(--serif); color: var(--gold-soft); }
.hero p.lead, .lede { max-width: 62ch; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.btn {
  display: inline-block;
  text-decoration: none;
  padding: 12px 18px;
  border: 1px solid var(--gold);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 13px;
}
.btn-gold { background: var(--gold); color: var(--navy-deep); }
.btn-ghost { color: white; }
.section { padding: 76px 6vw; }
.section-narrow { max-width: 1080px; margin: 0 auto; }
.section h2 { font-size: clamp(36px, 5vw, 56px); margin: 0 0 12px; line-height: 0.95; }
.rule { width: 72px; height: 1px; background: var(--gold); margin: 16px 0 22px; }
.grid-4, .grid-3, .grid-2 { display: grid; gap: 18px; }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: 1.1fr 0.9fr; align-items: center; }
.card, .plaza, .marcha, .acto {
  background: var(--paper);
  border: 1px solid rgba(92, 20, 36, 0.12);
  box-shadow: 0 10px 30px rgba(16, 24, 42, 0.05);
}
.card { padding: 22px; text-decoration: none; color: inherit; min-height: 180px; }
.card strong { display: block; font-family: var(--serif); font-size: 30px; margin-bottom: 8px; }
.card span { color: var(--muted); }
.dark img { width: 100%; max-height: 520px; object-fit: cover; object-position: center 35%; }
.dark .muted, .muted { color: #b7ad9e; }
.stats { display: flex; gap: 28px; flex-wrap: wrap; margin-top: 26px; }
.stats b { display: block; font-family: var(--serif); font-size: 42px; color: var(--gold); line-height: 1; }
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.gallery button {
  padding: 0;
  border: 0;
  background: #111;
  cursor: pointer;
  overflow: hidden;
}
.gallery img { width: 100%; height: 230px; object-fit: cover; transition: transform 0.4s ease; }
.gallery button:hover img { transform: scale(1.04); }
.videos { display: grid; grid-template-columns: 1.4fr 0.8fr; gap: 18px; }
.video-main, .shorts { display: grid; gap: 14px; }
.frame {
  position: relative;
  background: #000;
  overflow: hidden;
}
.frame.wide { aspect-ratio: 16/9; }
.frame.short { aspect-ratio: 9/16; }
.frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.shorts { grid-template-columns: repeat(3, 1fr); }
.page-hero {
  position: relative;
  min-height: 42vh;
  display: grid;
  align-items: end;
  color: white;
  background: #151515 center/cover no-repeat;
}
.page-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(16,24,42,0.2), rgba(16,24,42,0.82)); }
.prose { max-width: 74ch; }
.prose p { margin: 0 0 16px; }
.plazas { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.plaza, .marcha, .acto { padding: 16px 18px; }
.plaza b, .acto b { display: block; font-size: 18px; }
.plaza em { color: var(--burgundy); font-style: normal; font-weight: 600; }
.plaza .cerrado { color: var(--muted); }
.marcha { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.tag { color: var(--burgundy); letter-spacing: 0.12em; text-transform: uppercase; font-size: 12px; }
.cofradias { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.cofradias figure { margin: 0; background: var(--paper); }
.cofradias img { width: 100%; height: 360px; object-fit: cover; }
.cofradias figcaption { padding: 14px 16px 18px; }
.site-footer { background: var(--navy-deep); color: #d9d0c3; padding: 42px 6vw 28px; }
.footer-grid { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.site-footer a { color: var(--gold-soft); }
.socials { display: flex; gap: 16px; }
.legal { margin-top: 22px; color: #8d8478; font-size: 13px; }
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(8, 10, 16, 0.92);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 30;
  padding: 24px;
}
.lightbox.open { display: flex; }
.lightbox img { max-height: 88vh; max-width: 92vw; }
.lightbox button {
  position: absolute;
  top: 16px;
  right: 16px;
  background: transparent;
  color: white;
  border: 1px solid white;
  padding: 8px 12px;
}
@media (max-width: 900px) {
  .menu-btn { display: block; }
  .nav { display: none; position: absolute; top: 74px; left: 0; right: 0; background: var(--navy-deep); flex-direction: column; align-items: flex-start; padding: 18px 6vw 22px; }
  .nav.open { display: flex; }
  .grid-4, .grid-3, .grid-2, .plazas, .cofradias, .videos, .shorts, .gallery { grid-template-columns: 1fr 1fr; }
  .videos, .grid-2 { grid-template-columns: 1fr; }
  .gallery img, .cofradias img { height: 210px; }
  h1 { font-size: 54px; }
}
@media (max-width: 620px) {
  .grid-4, .grid-3, .plazas, .cofradias, .shorts, .gallery { grid-template-columns: 1fr; }
}
