/* =========================================================
   COMITÉ DE CONCEPCIÓN — SISTEMA VISUAL
   index.css
   ========================================================= */

:root {
  --night: #02090f;
  --night-2: #06131c;
  --blue: #082b39;
  --teal: #075568;
  --teal-light: #0b6d80;
  --gold: #d6b56a;
  --gold-light: #ead59b;
  --cream: #f0ece1;
  --muted: #93a3aa;
  --line: rgba(214,181,106,.20);
  --white-line: rgba(240,236,225,.13);
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Manrope", Arial, sans-serif;
  --shell: min(1180px, calc(100% - 48px));
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--night);
  color: var(--cream);
  font-family: var(--sans);
  overflow-x: hidden;
}
body::selection { background: var(--gold); color: var(--night); }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font: inherit; }

.section-shell {
  width: var(--shell);
  margin-inline: auto;
}

/* ---------------- NAV ---------------- */

.site-header {
  position: fixed;
  z-index: 1000;
  top: 0;
  left: 0;
  width: 100%;
  height: 82px;
  padding: 0 32px;
  display: flex;
  align-items: center;
  gap: 30px;
  background: rgba(2, 9, 15, .45);
  border-bottom: 1px solid rgba(255,255,255,.06);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  transition: .35s ease;
}

.site-header.scrolled {
  height: 70px;
  background: rgba(2, 9, 15, .90);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 255px;
}
.brand-mark {
  color: var(--gold);
  font-size: 22px;
}
.brand-logo {
  height: 42px;
  width: auto;
  max-width: 120px;
  object-fit: contain;
  display: block;
}
.footer-logo { height: 46px; }

/* Crédito sutil de fotografía — solo texto con sombra, sin marco */
.photo-credit {
  position: absolute;
  right: 12px;
  bottom: 12px;
  z-index: 3;
  margin: 0;
  padding: 0;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: none;
  color: rgba(255,255,255,.92);
  background: none;
  border: 0;
  text-shadow: 0 1px 8px rgba(0,0,0,.85), 0 0 2px rgba(0,0,0,.9);
  pointer-events: none;
}
.gallery-item { position: relative; }
.gallery-item .photo-credit { bottom: 76px; }
@media (hover:hover) {
  .photo-credit { opacity: .92; transition: opacity .25s ease; }
  figure:hover .photo-credit, .gallery-item:hover .photo-credit { opacity: 1; }
}
.brand strong {
  display: block;
  font-size: 10px;
  letter-spacing: .16em;
  font-weight: 800;
}
.brand small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 8px;
  letter-spacing: .19em;
}

.main-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(15px, 2vw, 29px);
  flex: 1;
}
.main-nav a {
  position: relative;
  color: rgba(240,236,225,.70);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .04em;
  transition: color .25s ease;
}
.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -9px;
  width: 0;
  height: 1px;
  background: var(--gold);
  transition: width .25s ease;
}
.main-nav a:hover { color: var(--cream); }
.main-nav a:hover::after { width: 100%; }

.nav-cta {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 11px 15px;
  border: 1px solid rgba(214,181,106,.55);
  color: var(--gold-light);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .08em;
  white-space: nowrap;
  transition: .25s ease;
}
.nav-cta:hover {
  background: var(--gold);
  color: var(--night);
}
.nav-cta svg { width: 15px; }

/* Solo menú móvil: oculto en escritorio. */
.nav-cta-mobile { display: none; }

.nav-actions { display: flex; align-items: center; gap: 10px; }
/* Botón En vivo — enlaza a recorrido.html. */
.nav-live {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 14px;
  border: 1px solid rgba(214,181,106,.55);
  background: rgba(214,181,106,.10);
  color: var(--gold-light);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  white-space: nowrap;
  transition: .25s ease;
}
.nav-live:hover { background: var(--gold); color: var(--night); }
.live-pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #e5484d;
  box-shadow: 0 0 0 0 rgba(229,72,77,.6);
  animation: pulse 1.8s infinite;
}
@keyframes pulse { 70% { box-shadow: 0 0 0 8px rgba(229,72,77,0); } 100% { box-shadow: 0 0 0 0 rgba(229,72,77,0); } }
.live-fab {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 900;
  display: none;
  align-items: center;
  gap: 8px;
  padding: 13px 16px;
  background: rgba(2,9,15,.92);
  border: 1px solid rgba(214,181,106,.55);
  color: var(--gold-light);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  backdrop-filter: blur(12px);
}
.live-fab svg { width: 15px; }
@media (max-width: 820px) {
  .nav-actions .nav-cta { display: none; }
  .nav-live { padding: 9px 11px; }
  .live-fab { display: inline-flex; }
}
@media (prefers-reduced-motion: reduce) {
  .live-pulse { animation: none; }
}

/* Reseña rezado con slider vertical de alto fijo */
.rezado-grid { align-items: center; grid-template-columns: 1.2fr .8fr; gap: 100px; }
.rezado-slider {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(214,181,106,.25);
  background: #04111a;
  width: 100%;
  max-width: 520px;
  height: auto;
  justify-self: end;
  align-self: center;
}

.menu-toggle {
  display: none;
  border: 0;
  background: transparent;
  color: var(--cream);
  cursor: pointer;
}

/* ---------------- HERO ---------------- */

.hero {
  position: relative;
  min-height: 920px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: #01070c;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, #01070c 0%, rgba(1,7,12,.90) 31%, rgba(1,7,12,.36) 65%, rgba(1,7,12,.15) 100%),
    radial-gradient(circle at 76% 44%, rgba(7,85,104,.36), transparent 34%);
}
.hero-glow {
  position: absolute;
  width: 600px;
  height: 600px;
  right: 8%;
  top: 16%;
  border-radius: 50%;
  background: rgba(4,104,124,.17);
  filter: blur(80px);
}
.hero-stars {
  position: absolute;
  top: 17%;
  right: 10%;
  color: rgba(234,213,155,.30);
  font-size: 15px;
  letter-spacing: 9px;
}
.hero-content {
  position: relative;
  z-index: 3;
  width: min(620px, 53%);
  margin-left: max(24px, calc((100vw - 1180px) / 2));
  padding-top: 70px;
}
.eyebrow,
.section-kicker,
.heritage-label {
  letter-spacing: .20em;
  font-size: 10px;
  font-weight: 800;
}
.eyebrow { color: var(--gold); }
.hero h1 {
  margin: 24px 0 20px;
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(72px, 8vw, 128px);
  line-height: .78;
  letter-spacing: -.055em;
}
.hero h1 em,
h2 em {
  color: var(--gold-light);
  font-weight: 400;
}
.hero-subtitle {
  max-width: 460px;
  color: #aebcc1;
  font-size: 14px;
  line-height: 1.8;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 47px;
  padding: 0 18px;
  border: 1px solid transparent;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .09em;
  text-transform: uppercase;
  transition: transform .25s ease, background .25s ease, color .25s ease, border .25s ease;
}
.button:hover { transform: translateY(-2px); }
.button svg { width: 15px; }
.button-gold {
  background: var(--gold);
  color: #081016;
}
.button-gold:hover { background: var(--gold-light); }
.button-outline {
  border-color: rgba(214,181,106,.42);
  color: var(--gold-light);
  background: rgba(2,9,15,.18);
}
.button-outline:hover {
  background: rgba(214,181,106,.10);
  border-color: var(--gold);
}
.button-ghost {
  border-color: var(--white-line);
  color: var(--cream);
}
.button-ghost:hover { border-color: rgba(240,236,225,.35); }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  margin-top: 54px;
  padding-top: 15px;
  border-top: 1px solid var(--line);
}
.hero-badge svg {
  color: var(--gold);
  width: 20px;
}
.hero-badge strong,
.hero-badge small {
  display: block;
}
.hero-badge strong {
  font-size: 10px;
  letter-spacing: .13em;
}
.hero-badge small {
  margin-top: 5px;
  color: var(--muted);
  font-size: 9px;
}
.hero-image-wrap {
  position: absolute;
  z-index: 2;
  right: 3%;
  bottom: 0;
  width: min(56vw, 790px);
  height: 92%;
  display: flex;
  justify-content: center;
  align-items: flex-end;
}
.hero-image-frame {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 46%;
  height: 75%;
  bottom: 8%;
  border: 1px solid rgba(214,181,106,.25);
  border-bottom: 0;
  border-radius: 44% 44% 0 0;
  opacity: .7;
}
.hero-image {
  position: relative;
  z-index: 2;
  height: 100%;
  width: auto;
  max-width: none;
  object-fit: contain;
  object-position: bottom center;
  transform: scale(1.07);
  filter: saturate(.82) contrast(1.08);
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 6%, #000 91%, transparent 100%), linear-gradient(to right, transparent 0%, #000 15%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(to bottom, transparent 0%, #000 6%, #000 91%, transparent 100%), linear-gradient(to right, transparent 0%, #000 15%);
  mask-composite: intersect;
}
.scroll-indicator {
  position: absolute;
  z-index: 5;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  color: rgba(240,236,225,.40);
  font-size: 8px;
  letter-spacing: .22em;
}
.scroll-indicator svg { width: 14px; animation: bob 1.8s infinite ease-in-out; }
@keyframes bob { 50% { transform: translateY(5px); } }

/* ---------------- COMMON ---------------- */

section { scroll-margin-top: 90px; }
.section-kicker {
  color: var(--gold);
  display: flex;
  align-items: center;
  gap: 11px;
}
.section-kicker span { color: rgba(214,181,106,.45); }
h2 {
  margin: 18px 0;
  font-family: var(--serif);
  font-size: clamp(52px, 6vw, 86px);
  font-weight: 500;
  line-height: .90;
  letter-spacing: -.045em;
}
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-top: 22px;
  color: var(--gold-light);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .10em;
  text-transform: uppercase;
}
.text-link svg { width: 14px; transition: transform .2s ease; }
.text-link:hover svg { transform: translate(3px,-3px); }

/* ---------------- INTRO ---------------- */

.intro {
  padding-top: 145px;
  padding-bottom: 100px;
  border-bottom: 1px solid var(--line);
}
.section-divider {
  width: 80px;
  height: 1px;
  margin: 0 auto;
  background: var(--gold);
  opacity: .8;
}
.intro-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10%;
  margin-top: 60px;
}
.intro h2 { margin-top: 0; }
.intro-copy {
  max-width: 520px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.9;
}
.intro-copy .lead {
  color: var(--cream);
  font-size: 18px;
  line-height: 1.65;
}

/* ---------------- PATRONA ---------------- */

.patrona {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: clamp(50px, 9vw, 130px);
  align-items: center;
  padding-top: 60px;
  padding-bottom: 160px;
}
.patrona-photo {
  position: relative;
  min-height: 690px;
  overflow: hidden;
  background: var(--blue);
  border: 1px solid var(--white-line);
}
.patrona-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(2,9,15,.95), transparent 55%);
}
.patrona-photo img {
  width: 100%;
  height: 100%;
  min-height: 690px;
  object-fit: cover;
  object-position: center;
  filter: saturate(.78) contrast(1.08);
}
.photo-caption {
  position: absolute;
  z-index: 2;
  bottom: 30px;
  left: 30px;
}
.photo-caption span {
  display: block;
  color: var(--gold);
  font-size: 9px;
  letter-spacing: .20em;
  font-weight: 800;
}
.photo-caption strong {
  display: block;
  margin-top: 7px;
  font-family: var(--serif);
  font-size: 35px;
  font-weight: 500;
}
.patrona-copy p {
  color: var(--muted);
  line-height: 1.9;
  font-size: 14px;
  max-width: 490px;
}
.gold-rule {
  width: 80px;
  height: 1px;
  margin: 30px 0;
  background: var(--gold);
}
/* stat-row eliminado por diseño (bloque 01/∞/✦ retirado) */

/* ---------------- HERITAGE SLIDER (reemplaza emblema) ---------------- */
.heritage-slider {
  position: relative;
  width: min(520px, 100%);
  margin-right: 7%;
  overflow: hidden;
  border: 1px solid rgba(214,181,106,.32);
  background: #04111a;
}
.heritage-track { position: relative; aspect-ratio: 4/3; }
.heritage-slide {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  transition: opacity .6s ease;
}
.heritage-slide.is-active { opacity: 1; z-index: 1; }
.heritage-slide img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(.8) contrast(1.05);
}
.heritage-slide.is-missing img { display: none; }
.heritage-slide.is-missing::after {
  content: "Foto pendiente";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: 10px;
  letter-spacing: .2em;
  text-transform: uppercase;
}
.slider-btn {
  position: absolute;
  top: 40%;
  z-index: 4;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(214,181,106,.5);
  background: rgba(2,9,15,.6);
  color: var(--gold-light);
  font-size: 20px;
  cursor: pointer;
  backdrop-filter: blur(8px);
}
.slider-btn.prev { left: 10px; }
.slider-btn.next { right: 10px; }
.slider-btn:hover { background: var(--gold); color: var(--night); }
.slider-dots {
  position: absolute;
  bottom: 14px;
  left: 0;
  right: 0;
  z-index: 4;
  display: flex;
  justify-content: center;
  gap: 8px;
}
.slider-dots button {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 1px solid var(--gold);
  background: transparent;
  cursor: pointer;
  padding: 0;
}
.slider-dots button.is-active { background: var(--gold); }

/* Agenda pack */
.event-meta { color: var(--gold-light) !important; font-size: 11px !important; letter-spacing: .04em; }
.timeline-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--gold-light);
}
.timeline-cta svg { width: 14px; }
.timeline-cta:hover { color: var(--gold); }
.dev-credit { color: var(--gold-light); opacity: .85; }

/* ---------------- HERITAGE ---------------- */

.heritage {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 75% 50%, rgba(7,85,104,.40), transparent 32%),
    linear-gradient(120deg, #04111a, #061d29 50%, #041018);
  border-top: 1px solid rgba(214,181,106,.12);
  border-bottom: 1px solid rgba(214,181,106,.12);
}
.heritage::before {
  content: "";
  position: absolute;
  width: 480px;
  height: 480px;
  right: -120px;
  top: -160px;
  border-radius: 50%;
  border: 1px solid rgba(214,181,106,.13);
}
.heritage-inner {
  min-height: 610px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.heritage-copy { max-width: 610px; }
.heritage-label {
  color: var(--gold);
  margin-top: 50px;
  line-height: 1.5;
}
.heritage-copy > p:not(.heritage-label) {
  max-width: 520px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.9;
}
/* heritage-emblem eliminado — reemplazado por .heritage-slider */

/* ---------------- AGENDA ---------------- */

.agenda { padding-top: 150px; padding-bottom: 160px; }
.section-heading,
.live-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 30px;
}
.section-heading h2 { margin-bottom: 0; }
.timeline {
  margin-top: 65px;
  border-top: 1px solid var(--white-line);
}
.timeline-item {
  min-height: 150px;
  display: grid;
  grid-template-columns: 95px 1px 1fr;
  align-items: center;
  gap: 25px;
  border-bottom: 1px solid var(--white-line);
  transition: background .25s ease, padding .25s ease;
}
.timeline-item:hover {
  background: rgba(255,255,255,.018);
}
.timeline-date strong,
.timeline-date span { display: block; }
.timeline-date strong {
  font-family: var(--serif);
  color: var(--gold-light);
  font-size: 50px;
  font-weight: 500;
  line-height: .8;
}
.timeline-date span {
  margin-top: 8px;
  color: var(--muted);
  font-size: 9px;
  letter-spacing: .18em;
}
.timeline-line { width: 1px; height: 48px; background: var(--line); }
.timeline-content h3 {
  margin: 7px 0;
  font-family: var(--serif);
  font-size: 29px;
  font-weight: 500;
}
.timeline-content p {
  margin: 0;
  max-width: 600px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
}

/* ---------------- TURNOS ---------------- */

.turnos {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 20% 70%, rgba(7,85,104,.32), transparent 35%),
    #04111a;
  border-top: 1px solid rgba(214,181,106,.14);
  border-bottom: 1px solid rgba(214,181,106,.14);
}
.turnos-glow {
  position: absolute;
  right: -180px;
  top: -250px;
  width: 650px;
  height: 650px;
  border: 1px solid rgba(214,181,106,.10);
  border-radius: 50%;
}
.turnos-inner { padding-top: 100px; padding-bottom: 100px; }
.turnos-grid {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 100px;
  align-items: center;
  margin-top: 35px;
}
.turnos-grid > div:first-child > p {
  color: var(--muted);
  max-width: 540px;
  line-height: 1.9;
  font-size: 14px;
}
.turnos-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 11px;
  margin-top: 30px;
}
.turnos-card {
  position: relative;
  padding: 34px;
  background: rgba(2,9,15,.55);
  border: 1px solid rgba(214,181,106,.25);
  box-shadow: 0 30px 80px rgba(0,0,0,.25);
}
.turnos-card-top,
.availability-meta {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  font-size: 8px;
  letter-spacing: .15em;
  font-weight: 800;
}
.turnos-card-top > span:first-child { color: var(--muted); }
.availability-number {
  margin-top: 30px;
  font-family: var(--serif);
  color: var(--gold-light);
  font-size: 94px;
  line-height: .75;
}
.turnos-card > p {
  color: var(--muted);
  font-size: 10px;
}
.progress {
  height: 3px;
  margin: 28px 0 14px;
  background: rgba(240,236,225,.10);
}
.progress span {
  display: block;
  height: 100%;
  background: var(--gold);
}
.availability-meta { color: var(--muted); letter-spacing: .03em; flex-wrap: wrap; row-gap: 6px; }
.availability-meta strong { color: var(--cream); }
.card-note {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid var(--white-line);
  color: var(--muted);
  font-size: 9px;
}
.card-note svg { width: 16px; color: var(--gold); }

/* ---------------- LIVE MAP ---------------- */

.live-section { padding-top: 150px; padding-bottom: 150px; }
.live-status {
  padding: 8px 12px;
  border: 1px solid var(--white-line);
  color: var(--muted);
  font-size: 8px;
  letter-spacing: .15em;
}
.live-status i {
  display: inline-block;
  width: 5px;
  height: 5px;
  margin-right: 6px;
  border-radius: 50%;
  background: var(--gold);
}
.map-placeholder {
  position: relative;
  height: 520px;
  margin-top: 60px;
  overflow: hidden;
  border: 1px solid var(--white-line);
  background:
    radial-gradient(circle at 40% 40%, rgba(7,85,104,.24), transparent 25%),
    #06131c;
}
.map-grid {
  position: absolute;
  inset: 0;
  opacity: .28;
  background-image:
    linear-gradient(rgba(147,163,170,.10) 1px, transparent 1px),
    linear-gradient(90deg, rgba(147,163,170,.10) 1px, transparent 1px);
  background-size: 65px 65px;
  transform: perspective(500px) rotateX(45deg) scale(1.35);
  transform-origin: center;
}
.map-route {
  position: absolute;
  left: 22%;
  top: 20%;
  width: 55%;
  height: 55%;
  transform: rotate(-10deg);
}
.route-line {
  position: absolute;
  left: 5%;
  top: 48%;
  width: 88%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), var(--teal-light), transparent);
  box-shadow: 0 0 20px rgba(214,181,106,.22);
}
.route-point {
  position: absolute;
  z-index: 2;
  top: calc(48% - 7px);
  width: 15px;
  height: 15px;
  border: 2px solid var(--gold-light);
  border-radius: 50%;
  background: var(--night);
  box-shadow: 0 0 0 7px rgba(214,181,106,.08);
}
.route-point.start { left: 0; }
.route-point.end { right: 4%; }
.map-message {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%,-50%);
  width: min(390px, 80%);
  padding: 30px;
  text-align: center;
  background: rgba(2,9,15,.84);
  border: 1px solid rgba(214,181,106,.20);
  backdrop-filter: blur(15px);
}
.map-message svg {
  width: 22px;
  color: var(--gold);
}
.map-message strong,
.map-message span { display: block; }
.map-message strong {
  margin-top: 12px;
  font-family: var(--serif);
  font-size: 31px;
  font-weight: 500;
}
.map-message span {
  margin-top: 8px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.7;
}
.map-label {
  position: absolute;
  color: rgba(240,236,225,.28);
  font-size: 8px;
  letter-spacing: .18em;
}
.label-1 { top: 24%; left: 16%; }
.label-2 { bottom: 22%; right: 14%; }

/* ---------------- GALLERY ---------------- */

.gallery-item {
  position: relative;
  margin: 0;
  height: 330px;
  overflow: hidden;
  background: #06131c;
  border: 1px solid var(--white-line);
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: saturate(.72) contrast(1.08);
  transition: transform .7s ease, filter .7s ease;
}
.gallery-item:hover img { transform: scale(1.035); filter: saturate(.9) contrast(1.08); }
.gallery-placeholder {
  height: 100%;
  display: grid;
  place-items: center;
  color: rgba(240,236,225,.25);
}
.gallery-placeholder svg { width: 28px; }
.gallery-placeholder span {
  position: absolute;
  margin-top: 75px;
  font-size: 8px;
  letter-spacing: .2em;
}
.gallery-overlay {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: linear-gradient(transparent, rgba(2,9,15,.92));
}
.gallery-overlay span {
  font-family: var(--serif);
  font-size: 25px;
}
.gallery-overlay svg { color: var(--gold); width: 16px; }

/* ---------------- LAS CINCO ---------------- */

.cinco {
  position: relative;
  isolation: isolate;
  padding-top: 110px;
  padding-bottom: 40px;
}
.cinco::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 100vw;
  transform: translateX(-50%);
  background:
    radial-gradient(ellipse at 18% 35%, rgba(7,85,104,.22), transparent 42%),
    linear-gradient(180deg, rgba(4,17,26,0), rgba(4,17,26,.55) 20%, rgba(5,21,31,.45) 65%, rgba(2,9,15,0) 100%);
  pointer-events: none;
  z-index: -1;
}
.cinco-intro {
  margin-top: 26px;
  max-width: 720px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.9;
}
.cinco-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
  margin-top: 55px;
}
.cinco-grid .gallery-item { height: 380px; }
/* La foto cubre el placeholder; si aún no existe, se ve el marco con el nombre. */
.cinco-grid .gallery-item img { position: absolute; inset: 0; }
.cinco-grid .gallery-overlay { padding: 16px; }
.cinco-grid .gallery-overlay span {
  display: block;
  min-width: 0;
  max-width: 100%;
  font-size: clamp(14px, 1.35vw, 20px);
  line-height: 1.12;
  white-space: normal;
  overflow-wrap: break-word;
  word-break: normal;
}
@media (max-width: 1100px) {
  .cinco-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 700px) {
  .cinco-grid { grid-template-columns: repeat(2, 1fr); }
  .cinco-grid .gallery-item { height: 300px; }
}

/* ---------------- FOOTER ---------------- */

.site-footer {
  background: #01070c;
  border-top: 1px solid var(--white-line);
}
.footer-top {
  min-height: 300px;
  padding-top: 75px;
  padding-bottom: 70px;
  display: flex;
  justify-content: space-between;
  gap: 50px;
}
.footer-brand {
  display: flex;
  gap: 13px;
}
.footer-brand strong {
  font-size: 10px;
  line-height: 1.7;
  letter-spacing: .12em;
}
.footer-brand p {
  color: var(--muted);
  font-size: 9px;
}
.footer-links {
  display: flex;
  gap: clamp(45px, 7vw, 100px);
}
.footer-links div { display: flex; flex-direction: column; gap: 9px; }
.footer-links span {
  margin-bottom: 8px;
  color: var(--gold);
  font-size: 8px;
  letter-spacing: .18em;
  font-weight: 800;
}
.footer-links a {
  color: var(--muted);
  font-size: 10px;
  transition: color .2s ease;
}
.footer-links a:hover { color: var(--cream); }
.footer-bottom {
  min-height: 60px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--white-line);
  color: rgba(147,163,170,.55);
  font-size: 8px;
  letter-spacing: .07em;
}

/* ---------------- REVEAL ---------------- */

[data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .75s ease, transform .75s ease;
}
[data-reveal].visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes pageRestore {
  from { opacity: .35; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}
body.page-restored main {
  animation: pageRestore .5s ease both;
}

/* ---------------- RESPONSIVE ---------------- */

@media (max-width: 1050px) {
  .main-nav { gap: 12px; }
  .main-nav a { font-size: 9px; letter-spacing: 0; }
  .brand { min-width: 0; }
  .nav-cta { padding-inline: 11px; }
  .hero-image-wrap { right: -8%; width: 59vw; }
  .hero-content { width: 58%; }
}

@media (max-width: 820px) {
  :root { --shell: min(100% - 34px, 680px); }

  .site-header { padding: 0 17px; height: 68px; }
  .site-header.scrolled { height: 64px; }
  .brand { min-width: 0; flex: 1; }
  .brand strong { font-size: 8px; }
  .brand small { font-size: 7px; }
  .main-nav {
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 10px 17px 18px;
    background: rgba(2,9,15,.97);
    border-bottom: 1px solid var(--white-line);
  }
  .main-nav.open { display: flex; }
  .main-nav a {
    padding: 14px 4px;
    font-size: 11px;
    border-bottom: 1px solid rgba(255,255,255,.06);
  }
  .main-nav a::after { display: none; }
  .nav-cta { display: none; }
  /* CTA visible dentro del menú móvil (el del header se oculta). */
  .main-nav .nav-cta-mobile {
    display: block;
    margin-top: 10px;
    padding: 15px;
    text-align: center;
    border: 1px solid rgba(214,181,106,.55);
    color: var(--gold-light);
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
  }
  .menu-toggle { display: block; }
  .menu-toggle svg { width: 21px; }

  .hero {
    min-height: 0;
    flex-direction: column;
    align-items: stretch;
    padding-bottom: 46px;
  }
  .hero-bg {
    background:
      linear-gradient(180deg, rgba(1,7,12,.38) 0%, rgba(1,7,12,.80) 52%, #01070c 100%),
      radial-gradient(circle at 55% 36%, rgba(7,85,104,.32), transparent 42%);
  }
  .hero-content {
    width: 100%;
    margin: 0;
    padding: 140px 17px 0;
  }
  .hero h1 { font-size: clamp(65px, 18vw, 100px); }
  .hero-subtitle { max-width: 400px; }
  .hero-image-wrap {
    position: relative;
    z-index: 1;
    top: auto;
    right: auto;
    bottom: auto;
    width: calc(100% - 34px);
    height: 460px;
    margin: 36px auto 0;
    opacity: 1;
  }
  .hero-image { width: 100%; height: 100%; object-fit: cover; object-position: 68% 18%; transform: none; }
  .hero-content { z-index: 3; }
  .hero-actions { max-width: 400px; }
  .hero-stars { display: none; }
  .hero-badge { margin-top: 30px; }
  .scroll-indicator { display: none; }

  .intro { padding-top: 90px; padding-bottom: 100px; }
  .intro-grid,
  .patrona,
  .turnos-grid { grid-template-columns: 1fr; }
  .intro-grid { gap: 35px; margin-top: 35px; }

  .patrona { gap: 50px; padding-bottom: 100px; }
  .patrona-photo,
  .patrona-photo img { min-height: 530px; height: 530px; }

  .heritage-inner {
    min-height: 650px;
    padding-top: 90px;
    padding-bottom: 90px;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
  }
  .heritage-slider {
    width: 100%;
    margin: 55px auto 0;
  }

  .agenda,
  .live-section { padding-top: 100px; padding-bottom: 100px; }
  .section-heading,
  .live-header { align-items: flex-start; flex-direction: column; }
  .timeline-item { grid-template-columns: 60px 1px 1fr; gap: 15px; }
  .timeline-date strong { font-size: 38px; }
  .timeline-content h3 { font-size: 23px; }

  .turnos-grid { gap: 45px; }
  .rezado-grid { grid-template-columns: 1fr; gap: 45px; }
  .rezado-slider { max-width: 100%; justify-self: stretch; }
  .turnos-inner { padding-top: 80px; padding-bottom: 80px; }
  .availability-number { font-size: 78px; }

  .map-placeholder { height: 420px; }

  .footer-top { flex-direction: column; padding-top: 55px; }
  .footer-links { flex-wrap: wrap; }
}

@media (max-width: 520px) {
  :root { --shell: calc(100% - 30px); }
  .hero { min-height: 0; }
  .hero-image-wrap { width: calc(100% - 30px); height: 400px; }
  .hero h1 { font-size: 69px; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .button { width: 100%; }
  .hero-badge { max-width: 330px; }
  h2 { font-size: 56px; }
  .patrona-photo,
  .patrona-photo img { min-height: 440px; height: 440px; }
  .timeline-item { min-height: 140px; }
  .timeline-content p { font-size: 10px; }
  .turnos-card { padding: 25px; }
  .map-message { padding: 23px 18px; }
  .map-message strong { font-size: 26px; }
  .footer-links { display: grid; grid-template-columns: 1fr 1fr; gap: 35px 50px; }
  .footer-bottom { min-height: 90px; flex-direction: column; align-items: flex-start; justify-content: center; gap: 7px; flex-wrap: wrap; }
  .brand-logo { height: 34px; }
}

/* ---------------- LIMPIEZA FRONTEND ---------------- */

.footer-soon {
  color: var(--muted);
  font-size: 10px;
  opacity: .7;
}
.hero-image-wrap picture,
.patrona-photo picture,
.gallery-item picture {
  display: contents;
}
.patrona-photo img {
  width: 100%;
  height: 100%;
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: saturate(.72) contrast(1.08);
  transition: transform .7s ease, filter .7s ease;
}
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}
@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; transition: none; }
  body.page-restored main { animation: none; }
  html { scroll-behavior: auto; }
}

/* ===================== RECORRIDO EN VIVO (Leaflet) ===================== */

.live-hero { padding: 150px 0 20px; }
.live-hero .eyebrow { display:block; color: var(--gold); letter-spacing:.18em; text-transform:uppercase; font-size:11px; }
.live-hero h1 { font-family: var(--serif); font-weight:600; font-size:clamp(44px,6vw,84px); line-height:1.02; margin:12px 0 10px; }
.live-hero h1 em { font-style:italic; color: var(--gold); }
.live-hero-sub { color: var(--muted); max-width: 560px; margin:0 0 18px; }
.live-time { color: var(--muted); font-size:13px; min-height:18px; margin:12px 0 0; }

.live-status { display:inline-flex; align-items:center; gap:8px; padding:8px 14px; border:1px solid var(--white-line); border-radius:999px; font-size:11px; letter-spacing:.15em; text-transform:uppercase; color: var(--muted); }
.live-status i { display:inline-block; width:8px; height:8px; border-radius:50%; background: var(--muted); }
.live-status.live { color:#b9f2cf; border-color:rgba(63,191,127,.5); }
.live-status.live i { background:#3fbf7f; animation:ctPulse 1.8s infinite; }
.live-status.stale { color:#f2d39b; border-color:rgba(214,181,106,.5); }
.live-status.stale i { background: var(--gold); }
.live-status.soon { color: var(--muted); }
.live-status.soon i { background: var(--muted); }

@keyframes ctPulse {
  0% { box-shadow:0 0 0 0 rgba(63,191,127,.55); }
  70% { box-shadow:0 0 0 10px rgba(63,191,127,0); }
  100% { box-shadow:0 0 0 0 rgba(63,191,127,0); }
}

.live-map-shell { margin-top: 8px; margin-bottom: 60px; }
.live-map-toolbar { display:flex; align-items:center; justify-content:space-between; gap:14px; margin-bottom:12px; flex-wrap:wrap; }
.live-map-note { color: var(--muted); font-size:13px; }
.live-map { position:relative; height:60vh; min-height:380px; border:1px solid var(--white-line); border-radius:14px; overflow:hidden; z-index:0; background:#06131c; }
.live-map .leaflet-container { height:100%; width:100%; background:#06131c; font-family: var(--sans); }

.map-legend { display:flex; gap:22px; margin-top:12px; color:var(--muted); font-size:12px; flex-wrap:wrap; }
.map-legend span { display:inline-flex; align-items:center; gap:7px; }
.map-legend .dot { width:10px; height:10px; border-radius:50%; }
.map-legend .dot.start { background:var(--gold); border:2px solid #fff; }
.map-legend .dot.live { background:#3fbf7f; }
.map-legend .line { width:18px; height:4px; background:var(--gold); border-radius:2px; }

.ct-live-wrap { background: transparent; border: none; }
.ct-live-dot {
  display:block; width:22px; height:22px; border-radius:50%;
  background:#3fbf7f; border:3px solid #fff;
  box-shadow:0 0 0 0 rgba(63,191,127,.6);
  animation:ctPulse 1.8s infinite;
}

@media (max-width: 700px) {
  .live-hero { padding-top: 120px; }
  .live-map { height: 55vh; }
}

/* ===================== RECORRIDO — controles y estela ===================== */

.hidden { display:none !important; }
[hidden] { display:none !important; }

.live-topbar { display:flex; align-items:center; justify-content:space-between; gap:14px; flex-wrap:wrap; margin:8px 0 12px; }
.live-topbar-right { display:flex; align-items:center; gap:14px; }
.live-topbar-right .live-time { margin:0; }
.live-topbar .button { display:inline-flex; align-items:center; gap:7px; }

.live-map-wrap { position:relative; height:60vh; min-height:420px; border:1px solid var(--white-line); border-radius:14px; overflow:hidden; background:#06131c; }
.live-map { position:relative; height:100%; min-height:0; border:0; border-radius:0; z-index:0; background:#06131c; }
.live-map .leaflet-container { height:100%; width:100%; background:#06131c; font-family:var(--sans); }

.live-inactive { position:absolute; inset:0; z-index:5; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:12px; text-align:center; padding:24px; background:rgba(2,9,15,.86); backdrop-filter:blur(5px); }
.live-inactive-icon { display:flex; align-items:center; justify-content:center; width:64px; height:64px; border-radius:50%; background:rgba(214,181,106,.14); color:var(--gold); }
.live-inactive-icon svg { width:30px; height:30px; }
.live-inactive strong { font-family:var(--serif); font-size:clamp(22px,4vw,32px); font-weight:600; }
.live-inactive span { color:var(--cream); font-size:15px; }
.live-inactive small { color:var(--muted); font-size:13px; }

.ct-zoom { display:flex; flex-direction:column; border:1px solid var(--white-line); border-radius:10px; overflow:hidden; }
.ct-zoom button { width:36px; height:36px; background:rgba(6,19,28,.92); color:var(--cream); border:0; border-bottom:1px solid var(--white-line); cursor:pointer; font-size:20px; line-height:1; }
.ct-zoom button:last-child { border-bottom:0; }
.ct-zoom button:hover { background:var(--blue); }

.ct-chev-wrap { background:transparent; border:none; }
.ct-chev { display:inline-block; font-size:20px; line-height:1; color:var(--gold); text-shadow:0 1px 3px rgba(0,0,0,.6); transform-origin:center; }

.ct-logo-wrap { background:transparent; border:none; }
.ct-logo-wrap img { width:46px; height:46px; border-radius:50%; border:3px solid #0b6d80; background:#02090f; object-fit:cover; box-shadow:0 0 0 0 rgba(11,109,128,.55); animation:ctLogoPulse 2s infinite; }
@keyframes ctLogoPulse { 0% { box-shadow:0 0 0 0 rgba(11,109,128,.55); } 70% { box-shadow:0 0 0 14px rgba(11,109,128,0); } 100% { box-shadow:0 0 0 0 rgba(11,109,128,0); } }

.map-legend .logo-mini { width:12px; height:12px; border-radius:50%; background:var(--gold); border:2px solid #fff; display:inline-block; }
