/* Paleta patriótica — bandera de Colombia (estilo Defensores / Patria Milagro) */
:root {
  --ama: #ffcd00;
  --ama-brillo: #ffe566;
  --azu: #003893;
  --azu-profundo: #00205b;
  --roj: #ce1126;
  --ink: #0b1220;
  --soft: #4a5568;
  --paper: #f7f8fa;
  --white: #ffffff;
  --display: "Oswald", Impact, sans-serif;
  --body: "Outfit", system-ui, sans-serif;
  --verse: "Cormorant Garamond", "Palatino Linotype", Palatino, Georgia, serif;
  --hebrew: "Frank Ruhl Libre", "Times New Roman", "Noto Serif Hebrew", serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  scroll-padding-top: 5.75rem;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.5;
  overflow-x: hidden;
  padding-top: env(safe-area-inset-top);
  padding-bottom: env(safe-area-inset-bottom);
  padding-left: env(safe-area-inset-left);
  padding-right: env(safe-area-inset-right);
}

a { color: inherit; text-decoration: none; }

/* PWA — banner instalar */
.pwa-install {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 14000;
  background: linear-gradient(135deg, var(--azu) 0%, var(--azu-profundo) 100%);
  color: #fff;
  border-top: 3px solid var(--ama);
  padding-bottom: env(safe-area-inset-bottom);
  box-shadow: 0 -10px 30px rgba(11, 18, 32, 0.28);
}

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

.pwa-install-inner {
  width: min(1120px, calc(100% - 1.5rem));
  margin: 0 auto;
  padding: 0.65rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.pwa-install-copy {
  display: grid;
  gap: 0.15rem;
  min-width: 0;
}

.pwa-install-copy strong {
  font-family: var(--display);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.95rem;
}

.pwa-install-copy span {
  font-size: 0.82rem;
  opacity: 0.92;
}

.pwa-ios-tip {
  display: block;
  margin-top: 0.15rem;
  font-weight: 600;
}

.pwa-install-actions {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  flex-shrink: 0;
}

.pwa-install-btn {
  border: 0;
  background: var(--ama);
  color: var(--ink);
  font: inherit;
  font-weight: 800;
  font-size: 0.85rem;
  padding: 0.55rem 0.9rem;
  cursor: pointer;
}

.pwa-install-close {
  width: 2.2rem;
  height: 2.2rem;
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
}

html.is-pwa .pwa-install {
  display: none !important;
}

@media (max-width: 720px) {
  .pwa-install-inner {
    align-items: flex-start;
  }

  .pwa-install-copy span {
    font-size: 0.78rem;
  }
}

.top {
  position: sticky;
  top: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1.25rem;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 3px solid var(--ama);
  box-shadow: 0 1px 0 var(--azu), 0 2px 0 var(--roj);
}

.logo {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.45rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--azu);
  min-width: 0;
  flex: 1 1 auto;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.top-nav {
  display: flex;
  align-items: center;
  gap: 1rem;
  position: relative;
  flex: 0 0 auto;
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  width: 2.6rem;
  height: 2.6rem;
  padding: 0;
  border: 2px solid var(--azu);
  background: var(--white);
  color: var(--azu);
  cursor: pointer;
  flex-shrink: 0;
}

.nav-toggle span {
  display: block;
  width: 1.15rem;
  height: 2px;
  background: currentColor;
  transition: transform 0.22s var(--ease), opacity 0.22s var(--ease);
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.nav-menu a,
.top-nav a {
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--azu);
}

.top-cta {
  background: var(--roj);
  color: var(--white) !important;
  padding: 0.55rem 1.05rem;
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.hero {
  min-height: calc(100vh - 4.1rem);
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(18rem, 1.05fr);
  grid-template-rows: 2fr 1fr 1fr;
  overflow: hidden;
  animation: pulse-flag 10s ease-in-out infinite alternate;
}

.hero-band {
  display: flex;
  align-items: center;
  padding: 0 clamp(1rem, 4vw, 3.5rem);
  grid-column: 1;
  min-width: 0;
}

.hero-ama {
  grid-row: 1;
  background: linear-gradient(180deg, var(--ama-brillo), var(--ama));
  align-items: flex-end;
  padding-bottom: clamp(1.25rem, 3vw, 2rem);
}

.hero-azu {
  grid-row: 2;
  background: linear-gradient(180deg, #1a54b8, var(--azu));
}

.hero-roj {
  grid-row: 3;
  background: linear-gradient(180deg, #e83245, var(--roj));
}

.hero-verso {
  grid-column: 2;
  grid-row: 1 / -1;
  display: grid;
  grid-template-rows: 1.05fr 1.55fr 1.35fr;
  min-width: 0;
  border-left: 1px solid rgba(11, 33, 74, 0.12);
  animation: subir 1s var(--ease) both;
}

.hv-ama,
.hv-azu,
.hv-roj {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  padding: clamp(0.85rem, 2vw, 1.35rem) clamp(1.1rem, 2.8vw, 2rem);
}

.hv-ama {
  background: linear-gradient(180deg, var(--ama-brillo), var(--ama));
  align-items: flex-start;
  justify-content: flex-end;
  padding-bottom: clamp(1.1rem, 2.8vw, 1.85rem);
  gap: 0.35rem;
}

.hv-azu {
  position: relative;
  background: linear-gradient(180deg, #1a54b8, var(--azu));
  justify-content: center;
  gap: 0.2rem;
  overflow: hidden;
}

.hv-roj {
  background: linear-gradient(180deg, #e83245, var(--roj));
  gap: 0.45rem;
  justify-content: flex-start;
  padding-top: clamp(0.9rem, 2vw, 1.25rem);
}

.hv-eyebrow {
  margin: 0;
  font-size: clamp(0.72rem, 1.35vw, 0.86rem);
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--azu-profundo);
  opacity: 0.88;
}

.hv-title {
  margin: 0;
  font-family: var(--verse);
  font-size: clamp(1.85rem, 3.6vw, 2.85rem);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: 0.01em;
  text-transform: none;
  font-style: italic;
  color: var(--azu-profundo);
}

.hv-ref {
  margin: 0.2rem 0 0;
  font-family: var(--display);
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--azu-profundo);
}

.hv-mark {
  position: absolute;
  top: -0.15em;
  left: 0.15rem;
  font-family: var(--verse);
  font-size: clamp(4.5rem, 9vw, 7rem);
  font-weight: 600;
  line-height: 0.8;
  color: rgba(255, 255, 255, 0.16);
  pointer-events: none;
  user-select: none;
}

.hv-text {
  position: relative;
  z-index: 1;
  margin: 0;
  font-family: var(--verse);
  font-size: clamp(1.2rem, 2.15vw, 1.72rem);
  font-weight: 600;
  font-style: italic;
  line-height: 1.28;
  letter-spacing: 0.01em;
  color: var(--white);
  text-wrap: pretty;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 6;
  overflow: hidden;
}

.hv-note-label {
  margin: 0;
  font-size: clamp(0.68rem, 1.15vw, 0.78rem);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ama);
}

.hv-note {
  margin: 0;
  font-family: var(--verse);
  font-size: clamp(1rem, 1.7vw, 1.28rem);
  font-weight: 500;
  font-style: italic;
  line-height: 1.32;
  color: rgba(255, 255, 255, 0.97);
  text-wrap: pretty;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 5;
  overflow: hidden;
}

.hv-link {
  align-self: flex-start;
  margin-top: 0.15rem;
  color: var(--ama);
  font-size: clamp(0.72rem, 1.2vw, 0.82rem);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  border-bottom: 1px solid rgba(252, 209, 22, 0.55);
}

.hv-link:hover {
  color: var(--ama-brillo);
}

.hero-copy {
  max-width: 100%;
  min-width: 0;
  animation: subir 0.9s var(--ease) both;
}

.brand {
  margin: 0 0 0.55rem;
  font-family: var(--display);
  font-size: clamp(3rem, 10vw, 5.2rem);
  font-weight: 700;
  line-height: 0.92;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--azu-profundo);
  overflow-wrap: anywhere;
}

.hero h1 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(1.35rem, 3.2vw, 1.95rem);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--azu-profundo);
  max-width: 100%;
  display: grid;
  gap: 0.15em;
}

.hero h1 span {
  display: block;
  white-space: normal;
}

.lead {
  margin: 0;
  max-width: 100%;
  white-space: normal;
  font-size: clamp(0.92rem, 2.1vw, 1.3rem);
  font-weight: 600;
  color: var(--white);
  animation: subir 1s var(--ease) both;
  line-height: 1.3;
}

.hero-aviva {
  position: relative;
  width: min(42rem, 100%);
  animation: subir 1s var(--ease) both;
}

.lead-verse-btn {
  display: grid;
  gap: 0.28rem;
  width: 100%;
  padding: 0.15rem 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.lead-verse-btn:hover .lead-ref,
.lead-verse-btn[aria-expanded="true"] .lead-ref {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.2em;
}

.lead-kicker {
  font-family: var(--display);
  font-size: clamp(1.05rem, 2.6vw, 1.55rem);
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  line-height: 1.15;
  color: #fff;
}

.lead-ref {
  font-family: var(--verse), Georgia, serif;
  font-size: clamp(1.05rem, 2.4vw, 1.45rem);
  font-weight: 700;
  font-style: italic;
  color: var(--ama);
}

.lead-hint {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.72);
}

.verso-globo {
  --globo-scale: 1;
  position: fixed;
  inset: 0;
  z-index: 15000;
  display: grid;
  place-items: center;
  padding: 1rem;
  background: rgba(11, 18, 32, 0.55);
  backdrop-filter: blur(4px);
  filter: none;
}

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

.verso-globo.is-fullscreen {
  padding: 0;
  background: #fff;
  backdrop-filter: none;
}

.verso-globo-card {
  position: relative;
  display: flex;
  flex-direction: column;
  width: min(34rem, 100%);
  max-height: min(88vh, 40rem);
  overflow: hidden;
  padding: 0;
  background: #fff;
  color: var(--ink);
  border: 3px solid var(--ama);
  border-radius: 1.6rem;
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.4);
}

.verso-globo.is-fullscreen .verso-globo-card {
  width: 100%;
  height: 100%;
  height: 100dvh;
  max-width: none;
  max-height: none;
  border: none;
  border-radius: 0;
  box-shadow: none;
}

.verso-globo-card::before {
  content: none;
}

.verso-globo-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  margin: 0;
  padding: 0.85rem 0.95rem;
  flex-shrink: 0;
  background: linear-gradient(135deg, var(--azu) 0%, var(--azu-profundo) 100%);
  color: #fff;
}

.verso-globo-head strong {
  font-family: var(--display);
  font-size: 1rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #fff;
}

.verso-globo-tools {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  flex-shrink: 0;
}

.verso-globo-font {
  display: inline-flex;
  align-items: center;
  gap: 0.1rem;
  background: rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  padding: 0.1rem;
}

.verso-globo-font button,
.verso-globo-fs,
.verso-globo-close {
  width: 2.05rem;
  height: 2.05rem;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #fff;
  font: inherit;
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  display: inline-grid;
  place-items: center;
}

.verso-globo-font span {
  min-width: 2.5rem;
  text-align: center;
  font-size: 0.72rem;
  font-weight: 700;
  color: #fff;
  user-select: none;
}

.verso-globo-font button:hover,
.verso-globo-fs:hover,
.verso-globo-close:hover {
  background: rgba(255, 255, 255, 0.2);
}

.verso-globo-fs svg {
  width: 1.1rem;
  height: 1.1rem;
  display: block;
}

.verso-globo-close {
  font-size: 1.4rem;
}

.verso-globo-scroll {
  flex: 1;
  min-height: 0;
  overflow: auto;
  overscroll-behavior: contain;
  padding: 1.15rem 1.15rem 1.35rem;
}

.verso-globo-text {
  margin: 0;
  font-family: var(--verse), Georgia, serif;
  font-size: calc(clamp(1.05rem, 2.2vw, 1.28rem) * var(--globo-scale, 1));
  font-style: italic;
  font-weight: 600;
  line-height: 1.5;
  color: var(--azu-profundo);
}

.verso-globo-he {
  margin: 0.95rem 0 0;
  padding-top: 0.9rem;
  border-top: 2px solid rgba(255, 205, 0, 0.85);
  font-family: var(--hebrew);
  font-size: calc(clamp(1.15rem, 2.5vw, 1.45rem) * var(--globo-scale, 1));
  font-weight: 700;
  line-height: 1.75;
  color: var(--azu);
  text-align: right;
}

.verso-globo-heading {
  display: grid;
  gap: 0.15rem;
  min-width: 0;
}

.verso-globo-kicker {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.78);
}

.verso-globo-ref {
  font-family: var(--display);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ama);
}

.verso-globo-note {
  margin-top: 0.95rem;
  padding-top: 0.85rem;
  border-top: 1px solid rgba(0, 56, 147, 0.15);
}

.verso-globo-note-label {
  margin: 0 0 0.35rem;
  font-family: var(--display);
  font-size: calc(0.78rem * var(--globo-scale, 1));
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--azu);
}

.verso-globo-note-text {
  margin: 0;
  font-size: calc(0.98rem * var(--globo-scale, 1));
  line-height: 1.55;
  color: var(--soft);
}

.verso-globo-link {
  display: inline-block;
  margin-top: 1rem;
  font-size: calc(0.88rem * var(--globo-scale, 1));
  font-weight: 700;
  color: var(--azu);
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.verso-globo-card-arrep {
  width: min(38rem, 100%);
}

body.globo-verso-open {
  overflow: hidden;
}

@media (max-width: 720px) {
  .verso-globo-head {
    flex-wrap: wrap;
  }

  .verso-globo-tools {
    width: 100%;
    justify-content: flex-end;
  }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.75rem 1.45rem;
  border: 0;
  background: var(--azu);
  color: var(--white);
  font: inherit;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 0.3s var(--ease), background 0.3s;
}

.btn:hover {
  transform: translateY(-2px);
  background: var(--azu-profundo);
}

.btn-hero {
  background: var(--ama);
  color: var(--ink);
  min-height: auto;
  padding: 0.7rem 1.4rem;
  font-size: 1.05rem;
  flex-direction: column;
  gap: 0.05rem;
  line-height: 1;
  animation: subir 1.1s var(--ease) both;
}

.btn-hero em {
  font-family: Georgia, "Times New Roman", serif;
  font-style: italic;
  font-weight: 700;
  text-transform: none;
  font-size: 1.15em;
}

.btn-hero:hover {
  background: var(--ama-brillo);
  color: var(--ink);
}

/* MAPA */
.mapa-section {
  background: var(--azu-profundo);
  color: var(--white);
  padding: 2.5rem 0 3rem;
  border-top: 6px solid var(--ama);
  border-bottom: 6px solid var(--roj);
  scroll-margin-top: 6.5rem;
}

.mapa-wrap {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
}

.mapa-head { margin-bottom: 1.5rem; }

.live-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0 0 0.6rem;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: var(--ama);
}

.pulse {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--roj);
  box-shadow: 0 0 0 0 rgba(206, 17, 38, 0.7);
  animation: ping 1.4s infinite;
}

.mapa-head h2 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(2rem, 5vw, 2.8rem);
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--ama);
}

.click-ora-zone {
  display: grid;
  justify-items: center;
  gap: 0.85rem;
  margin: 0 0 1.75rem;
  text-align: center;
}

.click-ora {
  --size: min(220px, 58vw);
  width: var(--size);
  height: var(--size);
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  display: grid;
  place-content: center;
  gap: 0.35rem;
  padding: 1rem;
  color: #1a1200;
  background:
    radial-gradient(circle at 35% 30%, #ffe566 0%, #ffcd00 42%, #e0a800 100%);
  box-shadow:
    0 0 0 6px rgba(255, 205, 0, 0.25),
    0 16px 40px rgba(0, 0, 0, 0.35);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), filter 0.25s;
  animation: click-pulse 2.4s ease-in-out infinite;
}

.click-ora:hover {
  transform: scale(1.04);
  filter: brightness(1.05);
}

.click-ora:active { transform: scale(0.98); }

.click-ora:disabled {
  opacity: 0.75;
  cursor: wait;
}

.click-ora.loading {
  animation: spin-soft 1s linear infinite;
}

.click-ora.orando {
  color: var(--white);
  background:
    radial-gradient(circle at 35% 30%, #ff5a62 0%, #ce1126 50%, #8f0b1a 100%);
  box-shadow:
    0 0 0 6px rgba(206, 17, 38, 0.28),
    0 16px 40px rgba(0, 0, 0, 0.4);
  animation: glow 1.8s ease-in-out infinite;
}

.click-ora-main {
  display: grid;
  gap: 0.05rem;
  font-family: var(--display);
  font-size: clamp(1.55rem, 5vw, 2rem);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1;
}

.click-ora-main em {
  font-style: italic;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 700;
  text-transform: none;
  font-size: 1.15em;
  line-height: 0.9;
}

.ora-estado {
  margin: 0;
  min-height: 1.4rem;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.88);
  max-width: 36rem;
}

.stat-lugar-line {
  margin: 0;
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.75);
}

.stat-lugar-line strong {
  color: var(--ama);
  font-family: var(--display);
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.mapa-grid {
  display: grid;
  grid-template-columns: minmax(260px, 340px) 1fr;
  gap: 1rem;
}

.mapa-panel {
  display: grid;
  gap: 0.75rem;
  align-content: start;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.mapa-panel label,
.manual-loc label {
  display: grid;
  gap: 0.35rem;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ama);
}

.mapa-panel select,
.mapa-panel input,
.manual-loc select,
.manual-loc input {
  min-height: 2.7rem;
  padding: 0.55rem 0.7rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: var(--white);
  color: var(--ink);
  font: inherit;
  font-size: 0.95rem;
  text-transform: none;
  letter-spacing: 0;
  font-weight: 500;
}

.manual-loc {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 0.75rem;
}

.manual-loc summary {
  cursor: pointer;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 0.65rem;
}

.manual-loc[open] {
  display: grid;
  gap: 0.65rem;
}

@keyframes click-pulse {
  0%, 100% { box-shadow: 0 0 0 6px rgba(255, 205, 0, 0.22), 0 16px 40px rgba(0, 0, 0, 0.35); }
  50% { box-shadow: 0 0 0 14px rgba(255, 205, 0, 0.08), 0 16px 40px rgba(0, 0, 0, 0.35); }
}

@keyframes spin-soft {
  from { filter: brightness(1); }
  50% { filter: brightness(1.15); }
  to { filter: brightness(1); }
}

.stats-box {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem;
}

.stats-box > div,
.analytics {
  padding: 0.75rem;
  background: rgba(0, 0, 0, 0.22);
  border-left: 3px solid var(--ama);
}

.stat-k {
  margin: 0;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.65);
}

.stat-v {
  margin: 0.2rem 0 0;
  font-family: var(--display);
  font-size: 2rem;
  line-height: 1;
  color: var(--ama);
}

.stat-v.sm {
  font-size: 1rem;
  line-height: 1.25;
  text-transform: uppercase;
}

.analytics { margin-top: 0.25rem; }
.analytics p { margin: 0.45rem 0 0; }

.tabs {
  display: flex;
  gap: 0.35rem;
  margin-top: 0.45rem;
}

.tabs button {
  flex: 1;
  min-height: 2rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: transparent;
  color: var(--white);
  font: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
}

.tabs button.on {
  background: var(--ama);
  color: var(--ink);
  border-color: var(--ama);
}

.mapa-canvas {
  display: grid;
  gap: 0.75rem;
}

#map {
  width: 100%;
  height: min(68vh, 620px);
  min-height: 360px;
  background: #0a1838;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.dept-live {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 0.4rem;
  max-height: 140px;
  overflow: auto;
}

.dept-live li {
  display: flex;
  justify-content: space-between;
  gap: 0.4rem;
  padding: 0.4rem 0.55rem;
  background: rgba(255, 255, 255, 0.06);
  font-size: 0.8rem;
}

.dept-live b { color: var(--ama); }

.bloque {
  width: min(920px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 3.1rem 0;
}

.eyebrow-pub {
  margin: 0 0 0.35rem;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--roj);
}

.oracion-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.oracion-section-title {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--azu);
  line-height: 1.05;
}

.oracion-tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.55rem;
}

.font-tools {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.2rem;
  border: 1px solid rgba(11, 18, 32, 0.15);
  background: var(--white);
}

.font-tools button,
.btn-tool {
  min-height: 2.1rem;
  padding: 0.35rem 0.7rem;
  border: 1px solid rgba(11, 18, 32, 0.15);
  background: var(--white);
  color: var(--ink);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.btn-mostrar-pulse {
  position: relative;
  border-color: var(--roj) !important;
  background: var(--roj) !important;
  color: var(--white) !important;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  animation: mostrar-pulse 1.4s ease-in-out infinite;
  box-shadow: 0 0 0 0 rgba(206, 17, 38, 0.55);
  z-index: 2;
}

.btn-mostrar-pulse::after {
  content: "↓";
  margin-left: 0.35rem;
  font-weight: 800;
}

@keyframes mostrar-pulse {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(206, 17, 38, 0.55);
  }
  50% {
    transform: scale(1.06);
    box-shadow: 0 0 0 12px rgba(206, 17, 38, 0);
  }
}

.font-tools button {
  border: 0;
  background: transparent;
}

.font-tools span {
  min-width: 3.2rem;
  text-align: center;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--azu);
}

.translate-wrap {
  display: grid;
  gap: 0.2rem;
  min-width: 200px;
  position: relative;
  z-index: 20;
}

.translate-label {
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--soft);
}

.gt-hidden {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

.lang-picker { position: relative; }

.lang-btn {
  width: 100%;
  min-height: 2.4rem;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.35rem 0.65rem;
  border: 1px solid rgba(11, 18, 32, 0.15);
  background: var(--white);
  color: var(--ink);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.lang-btn-flag {
  display: inline-flex;
  align-items: center;
  line-height: 1;
}

.flag-img {
  display: block;
  width: 24px;
  height: 18px;
  object-fit: cover;
  border-radius: 2px;
  box-shadow: 0 0 0 1px rgba(11, 18, 32, 0.12);
  background: #e8eef2;
}

.flag-img-btn {
  width: 22px;
  height: 16px;
}

.lang-flag {
  display: inline-flex;
  align-items: center;
  line-height: 1;
}

.lang-btn-name {
  flex: 1;
  text-align: left;
  font-size: 0.92rem;
}

.lang-caret {
  color: var(--soft);
  font-size: 0.8rem;
}

.lang-panel {
  position: absolute;
  top: calc(100% + 0.35rem);
  right: 0;
  width: min(280px, 82vw);
  background: var(--white);
  border: 1px solid rgba(11, 18, 32, 0.14);
  box-shadow: 0 14px 34px rgba(11, 18, 32, 0.16);
  padding: 0.55rem;
  z-index: 40;
}

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

.lang-search {
  width: 100%;
  min-height: 2.3rem;
  margin-bottom: 0.45rem;
  padding: 0.45rem 0.65rem;
  border: 1px solid rgba(0, 56, 147, 0.2);
  font: inherit;
}

.lang-search:focus {
  outline: none;
  border-color: var(--azu);
}

.lang-list {
  max-height: 240px;
  overflow: auto;
  display: grid;
  gap: 0.15rem;
}

.lang-item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
  text-align: left;
  padding: 0.45rem 0.5rem;
  border: 0;
  background: transparent;
  font: inherit;
  cursor: pointer;
}

.lang-item:hover,
.lang-item.is-active {
  background: rgba(255, 205, 0, 0.22);
}

.lang-flag { display: inline-flex; align-items: center; line-height: 1; }
.lang-name { font-size: 0.9rem; font-weight: 600; }
.lang-code {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--soft);
  text-transform: uppercase;
}

.lang-empty {
  margin: 0;
  padding: 0.7rem;
  color: var(--soft);
  font-size: 0.9rem;
}

#google_translate_element {
  min-height: 0;
}

/* Google Translate widget cleanup */
.goog-te-gadget {
  font-family: var(--body) !important;
  font-size: 0 !important;
}
.goog-te-gadget .goog-te-combo {
  font-size: 0.9rem !important;
  min-height: 2.2rem;
  max-width: 100%;
  border: 1px solid rgba(11, 18, 32, 0.15);
  padding: 0.3rem 0.45rem;
}
.goog-logo-link,
.goog-te-gadget span {
  display: none !important;
}
body > .skiptranslate,
.goog-te-banner-frame {
  display: none !important;
}
body {
  top: 0 !important;
}

#oracion {
  scroll-margin-top: 6.5rem;
}

.oracion-dia .oracion-card {
  padding: 0;
  background: var(--white);
  border: 1px solid rgba(184, 134, 11, 0.35);
  border-top: 4px solid var(--ama);
  border-bottom: 4px solid var(--roj);
  box-shadow: inset 4px 0 0 var(--azu);
  --oracion-scale: 1;
  overflow: hidden;
  scroll-margin-top: 5.75rem;
}

.oracion-ventana-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.65rem 0.85rem;
  background: linear-gradient(135deg, var(--azu) 0%, var(--azu-profundo) 100%);
  color: #fff;
  scroll-margin-top: 5.75rem;
}

.oracion-ventana-label {
  font-family: var(--display);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.oracion-fs-btn {
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  margin-left: auto;
  display: inline-grid;
  place-items: center;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #fff;
  cursor: pointer;
}

.oracion-fs-btn:hover {
  background: rgba(255, 255, 255, 0.2);
}

.oracion-fs-btn svg {
  width: 20px;
  height: 20px;
  display: block;
}

.oracion-card.is-hidden {
  display: none;
}

body.oracion-fullscreen-open {
  overflow: hidden;
}

.oracion-card.is-fullscreen {
  position: fixed;
  inset: 0;
  z-index: 13000;
  width: 100%;
  height: 100%;
  height: 100dvh;
  max-width: none;
  margin: 0;
  border: none;
  border-radius: 0;
  box-shadow: none;
  overflow: auto;
  background: #fff;
  --oracion-scale: 1.08;
}

.oracion-card.is-fullscreen .oracion-body {
  padding: 1.25rem 1.35rem 2rem;
  max-width: 52rem;
  margin: 0 auto;
}

.oracion-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  align-items: center;
  margin: 0;
  padding: 0.85rem 0.9rem;
  background: linear-gradient(90deg, rgba(255, 205, 0, 0.2), rgba(247, 248, 250, 0.95) 45%, rgba(0, 56, 147, 0.06));
  border-bottom: 1px solid rgba(0, 56, 147, 0.1);
  min-height: 3.4rem;
}

.badge-main {
  background: var(--ama);
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.4rem 0.65rem;
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.08);
  flex: 0 0 auto;
}

.badge-soft {
  font-size: 0.82rem;
  color: var(--white);
  font-weight: 700;
  background: var(--azu);
  padding: 0.35rem 0.6rem;
  letter-spacing: 0.02em;
  flex: 0 0 auto;
}

.badge-ref {
  flex: 1 1 140px;
  min-width: 0;
  text-align: center;
  font-family: var(--display);
  font-size: clamp(1rem, 2.4vw, 1.35rem);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--azu-profundo);
  padding: 0.25rem 0.5rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.badge-ref-empty {
  visibility: hidden;
}

.badge-hoy {
  margin-left: 0;
  flex: 0 0 auto;
  color: var(--white);
  background: var(--roj);
  font-size: 0.88rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.4rem 0.7rem;
  animation: hoy-pulse 1.5s ease-in-out infinite;
}

@keyframes hoy-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(206, 17, 38, 0.45); }
  50% { box-shadow: 0 0 0 8px rgba(206, 17, 38, 0); }
}

.oracion-body {
  padding: 1.25rem 1.2rem 1.4rem;
}

.oracion-titulo {
  margin: 0 0 0.55rem;
  font-family: var(--display);
  font-size: calc(clamp(1.5rem, 3.2vw, 2.1rem) * var(--oracion-scale));
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--azu);
  line-height: 1.15;
}

.oracion-meta {
  margin: 0 0 0.85rem;
  color: #9a7b2f;
  font-size: calc(0.95rem * var(--oracion-scale));
  font-weight: 600;
}

.oracion-cuerpo {
  color: var(--ink);
  font-size: calc(1.05rem * var(--oracion-scale));
  line-height: 1.7;
}

.oracion-vacia {
  margin: 0;
  padding: 1.25rem;
  color: var(--soft);
}

@media (max-width: 900px) {
  .mapa-grid { grid-template-columns: 1fr; }
  #map {
    height: min(58vh, 420px);
    min-height: 280px;
  }
  .lang-panel {
    left: 0;
    right: 0;
    width: 100%;
  }

  .top {
    padding: 0.65rem 0.75rem;
    gap: 0.55rem;
  }

  .logo {
    font-size: clamp(0.95rem, 4.2vw, 1.15rem);
    letter-spacing: 0.02em;
    max-width: calc(100% - 8.5rem);
  }

  .top-nav {
    gap: 0.4rem;
  }

  .nav-toggle {
    display: inline-flex;
    order: 1;
    width: 2.45rem;
    height: 2.45rem;
  }

  .nav-menu {
    display: none;
    position: absolute;
    top: calc(100% + 0.55rem);
    right: 0;
    min-width: min(16rem, calc(100vw - 1.5rem));
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.4rem;
    background: rgba(255, 255, 255, 0.98);
    border: 2px solid var(--azu);
    border-top: 3px solid var(--ama);
    box-shadow: 0 10px 28px rgba(11, 33, 74, 0.18);
    z-index: 1001;
  }

  .top.is-nav-open .nav-menu {
    display: flex;
  }

  .nav-menu a {
    display: block;
    padding: 0.75rem 0.9rem;
    font-size: 0.95rem;
    border-bottom: 1px solid rgba(11, 33, 74, 0.08);
  }

  .nav-menu a:last-child {
    border-bottom: 0;
  }

  .top-cta {
    order: 2;
    padding: 0.45rem 0.7rem;
    font-size: 0.78rem;
    min-height: 2.45rem;
    white-space: nowrap;
  }

  .hero {
    min-height: 0;
    height: auto;
    overflow: visible;
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    animation: none;
  }

  .hero-band {
    grid-column: 1;
    padding: 1.15rem 1rem;
    min-height: 0;
  }

  .hero-ama {
    grid-row: auto;
    align-items: flex-start;
    justify-content: flex-end;
    padding-top: 1.6rem;
    padding-bottom: 1.25rem;
    min-height: 11.5rem;
  }

  .hero-azu {
    grid-row: auto;
    min-height: 4.75rem;
  }

  .hero-roj {
    grid-row: auto;
    min-height: 5.25rem;
  }

  .hero-verso {
    grid-column: 1;
    grid-row: auto;
    border-left: 0;
    border-top: 0;
    grid-template-rows: auto auto auto;
    min-height: 0;
  }

  .hv-ama,
  .hv-azu,
  .hv-roj {
    padding: 1.05rem 1rem;
    min-height: 0;
  }

  .hv-ama {
    justify-content: flex-start;
    padding-top: 1.2rem;
    padding-bottom: 1.1rem;
  }

  .hv-azu {
    min-height: 7.5rem;
  }

  .hv-roj {
    padding-bottom: 1.25rem;
  }

  .hv-mark {
    font-size: 4rem;
    left: 0.35rem;
    top: 0.1rem;
  }

  .hv-title {
    font-size: clamp(1.55rem, 7vw, 2.1rem);
  }

  .hv-ref {
    font-size: 1rem;
  }

  .hv-text {
    font-size: clamp(1.12rem, 4.6vw, 1.35rem);
    -webkit-line-clamp: 8;
    line-height: 1.3;
  }

  .hv-note {
    font-size: clamp(0.98rem, 4vw, 1.15rem);
    -webkit-line-clamp: 7;
  }

  .brand {
    font-size: clamp(2.1rem, 11vw, 3.1rem);
  }

  .hero h1 {
    font-size: clamp(1.1rem, 5vw, 1.45rem);
    gap: 0.18em;
  }

  .lead {
    font-size: clamp(0.9rem, 3.8vw, 1.05rem);
  }

  .btn-hero {
    padding: 0.65rem 1.15rem;
    font-size: 0.95rem;
  }
}

@media (max-width: 720px) {
  .mapa-section {
    padding: 1.5rem 0 2rem;
  }

  .mapa-wrap {
    width: min(1120px, calc(100% - 1.2rem));
  }

  .mapa-head h2 {
    font-size: clamp(1.55rem, 7vw, 2.1rem);
  }

  .click-ora {
    --size: min(190px, 64vw);
  }

  .click-ora-main {
    font-size: clamp(1.35rem, 6vw, 1.75rem);
  }

  .ora-estado,
  .stat-lugar-line {
    font-size: 0.9rem;
    padding-inline: 0.25rem;
  }

  .mapa-panel {
    padding: 0.85rem;
  }

  .stats-box {
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
  }

  .stat-v {
    font-size: 1.55rem;
  }

  .dept-live {
    grid-template-columns: 1fr 1fr;
    max-height: 120px;
  }

  .bloque {
    width: min(920px, calc(100% - 1.2rem));
    padding: 2.1rem 0;
  }

  .oracion-top {
    flex-direction: column;
    gap: 0.85rem;
  }

  .oracion-tools {
    width: 100%;
    justify-content: stretch;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
  }

  .font-tools {
    grid-column: 1 / -1;
    justify-content: center;
    min-height: 2.7rem;
  }

  .font-tools button,
  .btn-tool {
    min-height: 2.7rem;
    font-size: 0.88rem;
  }

  .btn-mostrar-pulse {
    grid-column: 1 / -1;
    width: 100%;
    min-height: 3rem;
    font-size: 0.95rem;
  }

  .translate-wrap {
    grid-column: 1 / -1;
    min-width: 0;
    width: 100%;
  }

  .oracion-dia .oracion-card {
    padding: 0;
  }

  .oracion-dia .oracion-card:not(.is-hidden):not(.is-fullscreen) .oracion-body {
    padding: 1.05rem 0.9rem;
  }

  .badge-hoy {
    margin-left: 0;
    width: auto;
  }

  .oracion-badges {
    padding: 0.65rem 0.7rem;
  }

  .badge-ref {
    flex: 1 1 100%;
    order: 10;
    text-align: left;
    white-space: normal;
  }

  .pasos {
    padding: 2.1rem 0.85rem;
  }

  .pasos li {
    flex-direction: column;
    gap: 0.2rem;
  }

  .pasos b {
    min-width: 0;
  }

  .tres strong {
    font-size: 1.2rem;
  }

  .peticion-form input,
  .peticion-form textarea,
  .peticion-form .btn {
    min-height: 3.1rem;
    font-size: 1rem;
  }

  .peticion-form textarea {
    min-height: 8.5rem;
  }

  footer {
    padding: 0 0.85rem 1.5rem;
  }

  footer small {
    font-size: 0.72rem;
    line-height: 1.45;
    max-width: 34rem;
    margin-inline: auto;
  }
}

@media (max-width: 480px) {
  .top {
    padding: 0.6rem 0.7rem;
  }

  .logo {
    font-size: 1.02rem;
    letter-spacing: 0.02em;
  }

  .top-cta {
    padding: 0.45rem 0.65rem;
    font-size: 0.75rem;
  }

  .hero-band {
    padding-inline: 0.75rem;
  }

  .hv-ama,
  .hv-azu,
  .hv-roj {
    padding-inline: 0.75rem;
  }

  .brand {
    font-size: clamp(1.9rem, 13vw, 2.6rem);
    margin-bottom: 0.4rem;
  }

  .hero h1 {
    font-size: clamp(1.05rem, 5.6vw, 1.35rem);
  }

  .lead {
    white-space: normal;
    font-size: 0.92rem;
    line-height: 1.35;
    max-width: 22rem;
  }

  .click-ora-zone {
    margin-bottom: 1.1rem;
  }

  .click-ora {
    --size: min(168px, 72vw);
  }

  .mapa-panel select,
  .mapa-panel input,
  .manual-loc select,
  .manual-loc input {
    min-height: 3rem;
    font-size: 1rem;
  }

  .tabs button {
    min-height: 2.4rem;
    font-size: 0.75rem;
    padding: 0.2rem;
  }

  .oracion-section-title {
    font-size: clamp(1.45rem, 8vw, 1.9rem);
  }

  .oracion-tools {
    grid-template-columns: 1fr;
  }

  .font-tools {
    grid-column: auto;
  }

  .btn-mostrar-pulse {
    grid-column: auto;
    order: -1;
  }

  .lang-panel {
    position: fixed;
    left: 0.75rem;
    right: 0.75rem;
    top: auto;
    bottom: 0.75rem;
    width: auto;
    max-height: min(70vh, 420px);
    display: flex;
    flex-direction: column;
    z-index: 1200;
  }

  .lang-picker.is-open .lang-panel {
    display: flex;
  }

  .lang-list {
    max-height: none;
    flex: 1;
    overflow: auto;
    -webkit-overflow-scrolling: touch;
  }

  .lang-item {
    min-height: 2.8rem;
    padding: 0.55rem 0.5rem;
  }

  .dept-live {
    grid-template-columns: 1fr;
  }

  .bloque h2 {
    font-size: clamp(1.45rem, 7vw, 1.9rem);
  }

  footer p {
    font-size: 1.05rem;
  }
}

@media (max-width: 360px) {
  .brand {
    font-size: 1.75rem;
  }

  .hero h1 {
    font-size: 1rem;
  }

  .lead {
    font-size: 0.84rem;
  }

  .click-ora {
    --size: 150px;
  }

  .mapa-head h2 {
    font-size: 1.35rem;
  }
}

/* Mejor toque / accesibilidad táctil */
@media (hover: none) and (pointer: coarse) {
  .btn,
  .btn-tool,
  .click-ora,
  .lang-btn,
  .lang-item,
  .top-cta,
  .tabs button {
    min-height: 2.75rem;
  }

  .btn:hover,
  .click-ora:hover {
    transform: none;
  }
}

/* Safe areas (notch / home indicator) */
@supports (padding: max(0px)) {
  .top {
    padding-left: max(0.85rem, env(safe-area-inset-left));
    padding-right: max(0.85rem, env(safe-area-inset-right));
  }

  .mapa-section,
  .pasos,
  footer {
    padding-left: env(safe-area-inset-left);
    padding-right: env(safe-area-inset-right);
  }

  footer {
    padding-bottom: max(1.5rem, env(safe-area-inset-bottom));
  }
}

.bloque h2 {
  margin: 0 0 1.25rem;
  font-family: var(--display);
  font-size: clamp(1.85rem, 4vw, 2.45rem);
  line-height: 1.05;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--azu);
}

.tres {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.9rem;
}

.tres li {
  display: grid;
  gap: 0.2rem;
  padding: 1.15rem 1.2rem;
  background: var(--white);
  border: 1px solid rgba(11, 18, 32, 0.08);
}

.tres .c-ama { border-left: 6px solid var(--ama); }
.tres .c-azu { border-left: 6px solid var(--azu); }
.tres .c-roj { border-left: 6px solid var(--roj); }

.tres strong {
  font-family: var(--display);
  font-size: 1.4rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.tres span { color: var(--soft); }

.pasos {
  background: var(--azu-profundo);
  color: var(--white);
  width: 100%;
  max-width: none;
  padding: 3.25rem 1rem;
  border-top: 6px solid var(--ama);
  border-bottom: 6px solid var(--roj);
}

.pasos > * {
  width: min(920px, 100%);
  margin-inline: auto;
}

.pasos h2 { color: var(--ama); }

.pasos ol {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.75rem;
}

.pasos li {
  display: flex;
  gap: 0.85rem;
  align-items: baseline;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  font-weight: 500;
}

.pasos b {
  color: var(--ama);
  min-width: 4.5rem;
  font-family: var(--display);
  letter-spacing: 0.04em;
}

.unirse form {
  display: grid;
  gap: 0.75rem;
  max-width: 28rem;
}

.unirse input {
  min-height: 3rem;
  padding: 0.7rem 0.95rem;
  border: 2px solid rgba(0, 56, 147, 0.18);
  font: inherit;
  background: var(--white);
}

.unirse input:focus {
  outline: none;
  border-color: var(--azu);
}

#msg,
.form-msg {
  margin: 0;
  min-height: 1.2rem;
  font-weight: 700;
  color: var(--azu);
}

.form-msg.error { color: var(--roj); }

.peticion-unete {
  width: min(1100px, calc(100% - 2rem));
  scroll-margin-top: 6.5rem;
}

.peticion-head {
  margin-bottom: 1.5rem;
  max-width: 40rem;
}

.peticion-head h2 {
  margin: 0 0 0.5rem;
}

.peticion-lead {
  margin: 0;
  color: var(--soft);
  font-size: 1.05rem;
}

.peticion-grid {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) minmax(280px, 1.1fr);
  gap: 1.25rem;
  align-items: start;
}

.peticion-form {
  display: grid;
  gap: 0.75rem;
  padding: 1.2rem;
  background: var(--white);
  border-top: 4px solid var(--ama);
  border-bottom: 4px solid var(--roj);
  box-shadow: inset 4px 0 0 var(--azu);
}

.peticion-form label {
  display: grid;
  gap: 0.35rem;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--soft);
}

.peticion-form input,
.peticion-form textarea {
  width: 100%;
  min-height: 2.9rem;
  padding: 0.7rem 0.85rem;
  border: 2px solid rgba(0, 56, 147, 0.16);
  font: inherit;
  font-weight: 500;
  color: var(--ink);
  background: var(--white);
}

.peticion-form textarea {
  min-height: 8.5rem;
  resize: vertical;
}

.peticion-form input:focus,
.peticion-form textarea:focus {
  outline: none;
  border-color: var(--azu);
}

.peticion-form .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.tipo-fieldset {
  margin: 0;
  padding: 0.75rem;
  border: 1px solid rgba(11, 18, 32, 0.1);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}

.tipo-fieldset legend {
  padding: 0 0.35rem;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--roj);
}

.tipo-option {
  display: flex !important;
  align-items: center;
  gap: 0.45rem;
  padding: 0.65rem 0.7rem;
  border: 1px solid rgba(0, 56, 147, 0.15);
  background: var(--paper);
  cursor: pointer;
  color: var(--ink) !important;
  font-weight: 700 !important;
}

.tipo-option:has(input:checked),
.tipo-option.is-on {
  background: rgba(255, 205, 0, 0.25);
  border-color: var(--ama);
}

.tipo-option input {
  width: auto;
  min-height: auto;
}

.peticion-form .check {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  font-weight: 600;
  color: var(--ink);
}

.peticion-form .check input {
  width: auto;
  min-height: auto;
  margin-top: 0.2rem;
}

.char-count {
  margin: -0.35rem 0 0;
  text-align: right;
  font-size: 0.8rem;
  color: var(--soft);
  font-weight: 600;
}

.btn-block:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
  background: #6b7c93;
}

.muro {
  display: grid;
  gap: 0.75rem;
}

.muro-tabs {
  display: flex;
  gap: 0.4rem;
}

.muro-tabs button {
  flex: 1;
  min-height: 2.6rem;
  border: 1px solid rgba(0, 56, 147, 0.18);
  background: var(--white);
  color: var(--azu);
  font: inherit;
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
}

.muro-tabs button.on {
  background: var(--azu);
  color: var(--white);
  border-color: var(--azu);
}

.muro-lista {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.75rem;
  max-height: 720px;
  overflow: auto;
}

.muro-empty {
  padding: 1.1rem;
  background: var(--white);
  border: 1px dashed rgba(11, 18, 32, 0.18);
  color: var(--soft);
}

.muro-item {
  padding: 1rem 1.05rem;
  background: var(--white);
  border: 1px solid rgba(11, 18, 32, 0.08);
  border-left: 5px solid var(--azu);
}

.muro-item.tipo-testimonio {
  border-left-color: var(--roj);
}

.muro-item.tipo-oracion {
  border-left-color: var(--ama);
  background: linear-gradient(180deg, #fffdf2, #fff);
}

.muro-meta {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.45rem;
  font-size: 0.78rem;
  font-weight: 700;
}

.muro-tipo {
  background: var(--ama);
  color: var(--ink);
  padding: 0.2rem 0.45rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.tipo-testimonio .muro-tipo {
  background: var(--roj);
  color: var(--white);
}

.tipo-oracion .muro-tipo {
  background: var(--azu);
  color: var(--white);
}

.muro-ref {
  margin: 0 0 0.4rem;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--azu);
}

.muro-meta time { color: var(--soft); }

.muro-item h3 {
  margin: 0 0 0.3rem;
  font-family: var(--display);
  font-size: 1.25rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--azu);
}

.muro-autor {
  margin: 0 0 0.55rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--soft);
}

.muro-mensaje {
  margin: 0;
  color: var(--ink);
  line-height: 1.55;
}

.muro-indice-oraciones {
  padding: 0;
  background: linear-gradient(180deg, #fffdf2, #fff);
  border: 1px solid rgba(11, 18, 32, 0.08);
  border-left: 5px solid var(--ama);
}

.muro-indice-cabecera {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.85rem 1.05rem;
  border-bottom: 1px solid rgba(0, 56, 147, 0.12);
}

.muro-indice-titulo {
  margin: 0;
  font-family: var(--display);
  font-size: 1.2rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--azu);
}

.muro-indice-count {
  min-width: 1.6rem;
  height: 1.6rem;
  padding: 0 0.4rem;
  display: inline-grid;
  place-items: center;
  background: var(--azu);
  color: var(--white);
  font-size: 0.8rem;
  font-weight: 700;
}

.muro-indice-lista {
  list-style: none;
  margin: 0;
  padding: 0;
}

.muro-indice-item {
  border-top: 1px solid rgba(11, 18, 32, 0.08);
}

.muro-indice-item:first-child {
  border-top: 0;
}

.muro-indice-fila {
  display: flex;
  align-items: stretch;
  gap: 0;
}

.muro-indice-num {
  flex: 0 0 2.4rem;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 0.85rem;
  color: var(--azu);
  background: rgba(0, 56, 147, 0.06);
}

.muro-indice-toggle {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 0.65rem;
  width: 100%;
  min-height: 3rem;
  padding: 0.7rem 0.9rem 0.7rem 0.75rem;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.muro-indice-toggle:hover {
  background: rgba(252, 209, 22, 0.12);
}

.muro-indice-nombre {
  font-weight: 700;
  color: var(--ink);
  line-height: 1.3;
}

.muro-indice-toggle time {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--soft);
  white-space: nowrap;
}

.muro-indice-accion {
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--azu);
  white-space: nowrap;
}

.muro-indice-item.is-open .muro-indice-toggle {
  background: rgba(0, 56, 147, 0.05);
}

.muro-indice-cuerpo {
  padding: 0 1.05rem 1rem 2.4rem;
}

.muro-indice-cuerpo[hidden] {
  display: none;
}

@media (max-width: 720px) {
  .muro-indice-toggle {
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "nombre accion"
      "fecha accion";
    gap: 0.2rem 0.65rem;
  }

  .muro-indice-nombre { grid-area: nombre; }
  .muro-indice-toggle time { grid-area: fecha; }
  .muro-indice-accion { grid-area: accion; align-self: center; }

  .muro-indice-cuerpo {
    padding-left: 1.05rem;
  }
}

@media (max-width: 900px) {
  .peticion-grid {
    grid-template-columns: 1fr;
  }

  .muro-lista {
    max-height: 480px;
  }
}

@media (max-width: 720px) {
  .peticion-form .form-row,
  .tipo-fieldset {
    grid-template-columns: 1fr;
  }
}

footer {
  padding: 0 0 1.75rem;
  text-align: center;
  background: var(--ink);
  color: rgba(255, 255, 255, 0.85);
}

.footer-flag {
  height: 10px;
  margin-bottom: 1.4rem;
  background: linear-gradient(
    90deg,
    var(--ama) 0 50%,
    var(--azu) 50% 75%,
    var(--roj) 75% 100%
  );
}

footer p {
  margin: 0;
  font-family: var(--display);
  font-size: 1.25rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

footer small {
  display: block;
  margin-top: 0.6rem;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.5);
}

footer small a {
  color: var(--ama);
  text-decoration: underline;
}

/* Botón regresar al inicio (derecha) */
.btn-top {
  position: fixed;
  right: max(0.9rem, env(safe-area-inset-right));
  bottom: max(1.1rem, env(safe-area-inset-bottom));
  z-index: 9500;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.15rem;
  min-width: 3.2rem;
  min-height: 3.2rem;
  padding: 0.55rem 0.55rem 0.45rem;
  border: 0;
  background: var(--azu);
  color: #fff;
  box-shadow: 0 8px 22px rgba(0, 32, 91, 0.35);
  cursor: pointer;
  font: inherit;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: opacity 0.2s var(--ease), transform 0.2s var(--ease);
}

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

.btn-top.is-visible {
  animation: btn-top-in 0.28s var(--ease);
}

.btn-top svg {
  width: 1.25rem;
  height: 1.25rem;
  display: block;
}

.btn-top:hover {
  background: var(--azu-profundo);
  transform: translateY(-2px);
}

.btn-top:focus-visible {
  outline: 2px solid var(--ama);
  outline-offset: 3px;
}

@keyframes btn-top-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

body:has(.pwa-install.is-visible) .btn-top,
body:has(.pwa-install:not([hidden])) .btn-top {
  bottom: max(5.5rem, calc(env(safe-area-inset-bottom) + 4.8rem));
}

@media (max-width: 720px) {
  .btn-top {
    right: max(0.7rem, env(safe-area-inset-right));
    bottom: max(0.9rem, env(safe-area-inset-bottom));
  }
}

.leaflet-container { font: inherit; }
.leaflet-popup-content-wrapper {
  border-radius: 0;
  font-family: var(--body);
}
.pray-dot {
  background: var(--roj);
  border: 2px solid var(--ama);
  border-radius: 50%;
  box-shadow: 0 0 12px rgba(255, 205, 0, 0.8);
}

@keyframes pulse-flag {
  from { filter: saturate(1) brightness(1); }
  to { filter: saturate(1.08) brightness(1.04); }
}

@keyframes subir {
  from { opacity: 0; transform: translateY(22px); }
  to { opacity: 1; transform: none; }
}

@keyframes ping {
  0% { box-shadow: 0 0 0 0 rgba(206, 17, 38, 0.7); }
  70% { box-shadow: 0 0 0 10px rgba(206, 17, 38, 0); }
  100% { box-shadow: 0 0 0 0 rgba(206, 17, 38, 0); }
}

@keyframes glow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(206, 17, 38, 0.45); }
  50% { box-shadow: 0 0 0 10px rgba(206, 17, 38, 0); }
}
