/* ============================================
   IGLESIA MARANATHA AD – Hoja de Estilos
   ============================================ */

:root {
  --navy:    #0b0f2e;
  --navy2:   #111638;
  --blue:    #1a237e;
  --gold:    #c9a227;
  --gold2:   #f0c040;
  --white:   #ffffff;
  --gray:    #f4f6fb;
  --text:    #1a1a2e;
  --muted:   #6b7280;
  --radius:  14px;
  --shadow:  0 8px 32px rgba(0,0,0,0.12);
  --trans:   all 0.3s ease;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  color: var(--text);
  background: var(--white);
  overflow-x: hidden;
}

h1, h2, h3, h4 { font-family: 'Playfair Display', serif; line-height: 1.2; }

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

img { max-width: 100%; display: block; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

.gold { color: var(--gold); }

/* ── ANIMATIONS ── */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes popIn {
  from { opacity: 0; transform: scale(0.93); }
  to   { opacity: 1; transform: scale(1); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes pulse {
  0%,100% { transform: scale(1); }
  50%      { transform: scale(1.08); }
}
@keyframes scrollBounce {
  0%,100% { transform: translateY(0); opacity: 1; }
  50%      { transform: translateY(12px); opacity: 0.4; }
}

.reveal { opacity: 0; }

/* ── BUTTONS ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 50px;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: var(--trans);
  border: 2px solid transparent;
}
.btn-primary {
  background: var(--gold);
  color: var(--navy);
}
.btn-primary:hover {
  background: var(--gold2);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(201,162,39,0.4);
}
.btn-outline {
  background: transparent;
  border-color: rgba(255,255,255,0.7);
  color: var(--white);
}
.btn-outline:hover {
  background: rgba(255,255,255,0.12);
  border-color: var(--white);
}
.btn-small {
  padding: 8px 20px;
  font-size: 0.85rem;
  background: var(--gold);
  color: var(--navy);
  border-radius: 50px;
  font-weight: 600;
  transition: var(--trans);
}
.btn-small:hover { background: var(--gold2); }
.btn-full { width: 100%; justify-content: center; }
.btn-paypal { font-size: 1rem; padding: 16px 40px; margin-top: 8px; }
.btn-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--gold);
  font-weight: 600;
  font-size: 0.9rem;
  transition: var(--trans);
}
.btn-link:hover { gap: 10px; color: var(--gold2); }

/* ── SECTION HEADER ── */
.section-header {
  text-align: center;
  margin-bottom: 60px;
}
.section-header h2 { font-size: clamp(2rem, 4vw, 2.8rem); margin-bottom: 16px; }
.section-header p  { color: var(--muted); font-size: 1.05rem; max-width: 600px; margin: 0 auto; }
.section-header.light h2 { color: var(--white); }
.section-header.light p  { color: rgba(255,255,255,0.75); }
.section-tag {
  display: inline-block;
  background: rgba(201,162,39,0.12);
  color: var(--gold);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: 50px;
  margin-bottom: 16px;
  border: 1px solid rgba(201,162,39,0.3);
}

/* ── NAVBAR ── */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 18px 0;
  transition: var(--trans);
}
.navbar.scrolled {
  background: rgba(11,15,46,0.95);
  backdrop-filter: blur(20px);
  padding: 12px 0;
  box-shadow: 0 4px 30px rgba(0,0,0,0.3);
}
.nav-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--white);
  text-decoration: none;
}
.logo-img   { height: 46px; width: auto; filter: drop-shadow(0 0 4px rgba(255,255,255,0.6)) contrast(1.2); }
.logo-text  { font-family: 'Playfair Display', serif; font-size: 1.5rem; font-weight: 700; }
.logo-sub   { color: var(--gold); }
.nav-links {
  display: flex;
  list-style: none;
  gap: clamp(1px, 0.3vw, 6px);
  margin-left: auto;
}
.nav-links a {
  color: rgba(255,255,255,0.85);
  font-size: clamp(0.72rem, 0.85vw, 0.88rem);
  font-weight: 500;
  padding: 6px clamp(4px, 0.7vw, 11px);
  border-radius: 7px;
  transition: var(--trans);
  white-space: nowrap;
}
.nav-links a:hover { color: var(--gold); background: rgba(255,255,255,0.08); }

/* Separador | entre nav principal y Peticiones */
.nav-sep {
  display: flex;
  align-items: center;
  color: rgba(255,255,255,0.25);
  font-size: 1.1rem;
  padding: 0 4px;
  user-select: none;
  pointer-events: none;
}
.nav-sep::before { content: '|'; }

/* Página activa en navbar */
.nav-active { color: var(--gold) !important; }

/* Líderes — icono + texto, tono discreto */
.nav-lideres {
  opacity: 0.65;
  font-size: 0.85rem !important;
}
.nav-lideres:hover { opacity: 1; }
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
  padding: 11px 13px;
  margin-left: auto;
  border-radius: 10px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.15);
  transition: var(--trans);
}
.nav-toggle:hover { background: rgba(255,255,255,0.18); }
.nav-toggle span {
  width: 24px; height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: var(--trans);
  display: block;
}
.nav-toggle span:first-child { width: 20px; }
.nav-toggle span:last-child  { width: 16px; }

/* ── HERO ── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, #0b0f2e 0%, #1a237e 50%, #0d1b5e 100%);
}
.hero-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 50%, rgba(201,162,39,0.15) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(26,35,126,0.4) 0%, transparent 40%);
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: var(--white);
  padding: 24px;
  max-width: 800px;
}
.hero-verse {
  font-size: 0.95rem;
  color: var(--gold);
  letter-spacing: 1px;
  margin-bottom: 20px;
  font-style: italic;
}
.hero-title {
  font-size: clamp(3rem, 8vw, 6rem);
  font-weight: 900;
  line-height: 1;
  margin-bottom: 24px;
  text-shadow: 0 4px 30px rgba(0,0,0,0.4);
}
.hero-iglesia {
  display: block;
  font-size: 0.45em;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.75);
  margin-bottom: 4px;
}
.hero-subtitle {
  font-size: clamp(1rem, 2.5vw, 1.3rem);
  color: rgba(255,255,255,0.8);
  margin-bottom: 40px;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}
.hero-buttons { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
/* ── HERO CROSS CANVAS ── */
.cross-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

/* ── WELCOME ── */
.welcome {
  padding: 80px 0;
  background: var(--gray);
}
.welcome-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.welcome-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 40px 32px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: var(--trans);
  border-bottom: 3px solid transparent;
}
.welcome-card:hover {
  transform: translateY(-6px);
  border-bottom-color: var(--gold);
  box-shadow: 0 16px 48px rgba(0,0,0,0.14);
}
.welcome-card i {
  font-size: 2.4rem;
  color: var(--gold);
  margin-bottom: 20px;
}
.welcome-card h3 { font-size: 1.3rem; margin-bottom: 12px; }
.welcome-card p  { color: var(--muted); line-height: 1.7; }

/* ── ABOUT ── */
.about { padding: 100px 0; background: #f2f3f7; }
.beliefs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.belief-card {
  background: #ffffff;
  box-shadow: 0 2px 12px rgba(0,0,0,0.07);
  border-radius: var(--radius);
  padding: 36px 28px;
  transition: var(--trans);
  position: relative;
  overflow: hidden;
}
.belief-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--gold2));
  transform: scaleX(0);
  transition: var(--trans);
}
.belief-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.belief-card:hover::before { transform: scaleX(1); }
.belief-icon {
  width: 52px; height: 52px;
  background: linear-gradient(135deg, var(--navy), var(--blue));
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}
.belief-icon i { color: var(--gold); font-size: 1.3rem; }
.belief-card h4 { font-size: 1.1rem; margin-bottom: 10px; }
.belief-card p  { color: var(--muted); font-size: 0.92rem; line-height: 1.7; }

/* ── MINISTERIOS ── */
.ministerios {
  padding: 100px 0;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy2) 100%);
}
.ministerios-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.ministerio-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius);
  overflow: hidden;
  transition: var(--trans);
  backdrop-filter: blur(10px);
}
.ministerio-card:hover {
  transform: translateY(-6px);
  border-color: rgba(201,162,39,0.4);
  box-shadow: 0 16px 48px rgba(0,0,0,0.3);
}
.ministerio-img {
  height: 200px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  flex-shrink: 0;
}
.ministerio-body { padding: 28px; }
.ministerio-body h3 { color: var(--white); font-size: 1.3rem; margin-bottom: 10px; }
.ministerio-body p  { color: rgba(255,255,255,0.65); font-size: 0.9rem; line-height: 1.7; margin-bottom: 20px; }

/* ── SCHEDULE ── */
.schedule { padding: 100px 0; background: var(--gray); }
.schedule-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 40px;
}
.schedule-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 36px 24px;
  text-align: center;
  box-shadow: var(--shadow);
  position: relative;
  transition: var(--trans);
  border: 2px solid transparent;
}
.schedule-card:hover {
  transform: translateY(-4px);
  border-color: var(--gold);
}
.schedule-card.featured {
  background: linear-gradient(135deg, var(--navy), var(--blue));
  color: var(--white);
}
.schedule-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gold);
  color: var(--navy);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 4px 14px;
  border-radius: 50px;
  white-space: nowrap;
}
.schedule-day {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
}
.schedule-icon { font-size: 2rem; margin-bottom: 14px; color: var(--gold); }
.schedule-name { font-family: 'Playfair Display', serif; font-size: 1.1rem; font-weight: 700; margin-bottom: 10px; }
.schedule-card.featured .schedule-name { color: var(--white); }
.schedule-time {
  font-size: 0.9rem;
  color: var(--muted);
  font-weight: 600;
  background: var(--gray);
  padding: 6px 14px;
  border-radius: 50px;
  display: inline-block;
}
.schedule-card.featured .schedule-time {
  background: rgba(255,255,255,0.15);
  color: rgba(255,255,255,0.9);
}
.schedule-address {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: var(--white);
  border-radius: var(--radius);
  padding: 20px 28px;
  box-shadow: var(--shadow);
  flex-wrap: wrap;
}
.schedule-address > i { color: var(--gold); font-size: 1.2rem; }
.schedule-address span { font-weight: 500; color: var(--text); }

/* ── DONATIONS ── */
.donations {
  padding: 100px 0;
  background: linear-gradient(135deg, var(--navy) 0%, #0d1b5e 100%);
}
.donations-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.donations-text .section-tag { margin-bottom: 20px; }
.donations-text h2 { font-size: clamp(2rem, 4vw, 2.8rem); color: var(--white); margin-bottom: 20px; }
.donations-text p  { color: rgba(255,255,255,0.75); line-height: 1.8; margin-bottom: 16px; }
.verse-donate {
  font-style: italic;
  color: rgba(255,255,255,0.6) !important;
  border-left: 3px solid var(--gold);
  padding-left: 16px;
  margin: 24px 0 !important;
  font-size: 0.95rem;
}
.donate-icon-box {
  width: 260px;
  height: 260px;
  background: linear-gradient(135deg, rgba(201,162,39,0.2), rgba(201,162,39,0.05));
  border: 2px solid rgba(201,162,39,0.3);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
}
.donate-icon-box i { font-size: 6rem; color: var(--gold); }

/* ── CONTACT ── */
.contact { padding: 100px 0; background: var(--white); }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 60px;
}
.contact-info { display: flex; flex-direction: column; gap: 28px; }
.contact-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.contact-item i {
  width: 44px; height: 44px;
  background: linear-gradient(135deg, var(--navy), var(--blue));
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  font-size: 1rem;
  flex-shrink: 0;
}
.contact-item h4 { font-size: 1rem; margin-bottom: 4px; font-family: 'Inter', sans-serif; }
.contact-item a  { color: var(--blue); font-size: 0.95rem; }
.contact-item a:hover { color: var(--gold); }
.contact-item p  { color: var(--muted); font-size: 0.95rem; line-height: 1.6; }
.contact-map    { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }

/* ── FORM ── */
.contact-form { display: flex; flex-direction: column; gap: 20px; }
.form-group { display: flex; flex-direction: column; gap: 8px; }
.form-group label { font-size: 0.88rem; font-weight: 600; color: var(--text); }
.form-group input,
.form-group textarea {
  padding: 14px 18px;
  border: 2px solid #e5e7eb;
  border-radius: 10px;
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  color: var(--text);
  transition: var(--trans);
  background: var(--gray);
  resize: none;
}
.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--gold);
  background: var(--white);
  box-shadow: 0 0 0 4px rgba(201,162,39,0.12);
}
.form-success {
  display: none;
  color: #16a34a;
  font-size: 0.95rem;
  font-weight: 600;
  text-align: center;
  padding: 12px;
  background: #f0fdf4;
  border-radius: 10px;
  border: 1px solid #bbf7d0;
}

/* ── FOOTER ── */
.footer {
  background: var(--navy);
  color: rgba(255,255,255,0.75);
  padding: 70px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-brand .nav-logo { margin-bottom: 16px; }
.footer-brand p { font-size: 0.92rem; line-height: 1.7; max-width: 280px; }
.footer-verse {
  margin-top: 16px;
  font-style: italic;
  color: var(--gold) !important;
  font-size: 0.88rem;
}
.footer-links h4,
.footer-contact h4 {
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 20px;
}
.footer-links ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-links a { font-size: 0.9rem; transition: var(--trans); }
.footer-links a:hover { color: var(--gold); padding-left: 6px; }

/* Navegación footer con separador */
.footer-nav-wrap {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.footer-main-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
/* Separador horizontal en desktop */
.footer-nav-sep {
  height: 1px;
  background: rgba(255,255,255,0.15);
  margin: 14px 0;
  width: 70%;
}
.footer-peticiones {
  font-size: 0.9rem;
  transition: var(--trans);
}
.footer-peticiones:hover { color: var(--gold); padding-left: 6px; }

.footer-pages-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-lideres {
  opacity: 0.55;
  font-size: 0.85rem;
}
.footer-lideres:hover { opacity: 1; padding-left: 6px; }
.footer-contact p {
  font-size: 0.9rem;
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-bottom: 10px;
}
.footer-contact i { color: var(--gold); margin-top: 3px; }
.footer-social { display: flex; gap: 12px; margin-top: 20px; }
.footer-social a {
  width: 40px; height: 40px;
  border-radius: 10px;
  background: rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  transition: var(--trans);
}
.footer-social a:hover { background: var(--gold); color: var(--navy); }
.footer-bottom {
  padding: 16px 0 20px;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.4);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.footer-credits {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
}
.credits-row {
  display: flex;
  align-items: center;
  gap: 7px;
}
.credits-by {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.45);
  font-weight: 500;
}
.workbook-logo {
  height: 26px;
  width: auto;
  filter: invert(1);
  opacity: 0.75;
  transition: opacity 0.3s;
}
.workbook-logo:hover { opacity: 1; }
.credits-line {
  font-size: 0.65rem;
  color: rgba(255,255,255,0.22);
  display: block;
  text-align: right;
}

/* ── FLOATING BUTTONS ── */
/* rotate(θ) translateX(r) rotate(-θ): orbita sin rotar el elemento */
@keyframes orbit-phone {
  from { transform: rotate(0deg)   translateX(34px) rotate(0deg); }
  to   { transform: rotate(360deg) translateX(34px) rotate(-360deg); }
}
@keyframes orbit-whatsapp {
  from { transform: rotate(180deg) translateX(34px) rotate(-180deg); }
  to   { transform: rotate(540deg) translateX(34px) rotate(-540deg); }
}

.fab-container {
  position: fixed;
  bottom: 45px;
  right: 45px;
  z-index: 999;
  width: 54px;
  height: 54px;
}
.fab-container:hover .fab { animation-play-state: paused; }

.fab {
  position: absolute;
  top: 0; left: 0;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  box-shadow: 0 8px 24px rgba(0,0,0,0.25);
  transition: box-shadow 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}
.fab i {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 1.4rem;
  line-height: 1;
  pointer-events: none;
}
.fab:hover { box-shadow: 0 12px 36px rgba(0,0,0,0.4); }

.fab-phone {
  background: linear-gradient(135deg, var(--gold), var(--gold2));
  color: var(--navy);
  box-shadow: 0 8px 24px rgba(201,162,39,0.5);
  animation: orbit-phone 9s linear infinite;
}
.fab-whatsapp {
  background: linear-gradient(135deg, #25d366, #128c4e);
  color: #fff;
  box-shadow: 0 8px 24px rgba(37,211,102,0.5);
  animation: orbit-whatsapp 9s linear infinite;
}

/* ── FAB OPTIONS MENU ── */
@keyframes fabOptionsIn {
  from { opacity: 0; transform: scale(0.85) translateY(6px); }
  to   { opacity: 1; transform: scale(1)    translateY(0); }
}
.fab-options {
  position: fixed;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  gap: 8px;
  animation: fabOptionsIn 0.18s ease forwards;
}
.fab-option-btn {
  display: flex;
  align-items: center;
  gap: 9px;
  background: var(--navy);
  color: var(--gold);
  border: 1px solid rgba(201,162,39,0.45);
  border-radius: 24px;
  padding: 9px 18px;
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  white-space: nowrap;
  cursor: pointer;
  text-decoration: none;
  box-shadow: 0 4px 18px rgba(0,0,0,0.35);
  transition: background 0.2s, border-color 0.2s;
}
.fab-option-btn:hover {
  background: rgba(201,162,39,0.15);
  border-color: var(--gold);
}
.fab-option-btn i { font-size: 0.9rem; }

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .beliefs-grid,
  .ministerios-grid { grid-template-columns: repeat(2, 1fr); }
  .schedule-grid    { grid-template-columns: repeat(2, 1fr); }
  .donations-inner  { gap: 40px; }
}

@media (max-width: 1100px) {
  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 70px; left: 0; right: 0;
    background: rgba(8,12,38,0.98);
    backdrop-filter: blur(20px);
    padding: 28px 24px 32px;
    gap: 2px;
    box-shadow: 0 12px 40px rgba(0,0,0,0.4);
    border-top: 1px solid rgba(255,255,255,0.07);
    flex: none;
    justify-content: flex-start;
    padding-left: 24px;
  }
  .nav-links.open { display: flex; }
  .nav-links a {
    font-size: 1rem !important;
    padding: 12px 16px !important;
    border-radius: 10px;
  }
  .nav-toggle { display: flex; }
  .nav-sep { padding: 8px 16px 4px; pointer-events: none; }
  .nav-sep::before { content: ''; display: block; height: 1px; background: rgba(255,255,255,0.12); width: 100%; }
  .nav-lideres { opacity: 0.8 !important; font-size: 1rem !important; }
  .hero-buttons { flex-direction: column; align-items: center; }

  /* ── WELCOME: ícono izq, título+texto der alineados ── */
  .welcome-grid { grid-template-columns: 1fr; gap: 12px; }
  .welcome-card { display: flex; flex-direction: row; align-items: center; text-align: left; padding: 18px 20px; gap: 16px; }
  .welcome-card i  { font-size: 2rem; margin-bottom: 0; flex-shrink: 0; }
  .welcome-text { flex: 1; min-width: 0; }
  .welcome-card h3 { font-size: 1.05rem; margin-bottom: 4px; }
  .welcome-card p  { font-size: 0.88rem; line-height: 1.6; margin: 0; }

  /* ── BELIEFS: ícono izq, título+texto der alineados ── */
  .beliefs-grid { grid-template-columns: 1fr; gap: 8px; }
  .belief-card  { display: flex; flex-direction: row; align-items: flex-start; gap: 12px; padding: 14px; }
  .belief-icon  { width: 40px; height: 40px; min-width: 40px; background: linear-gradient(135deg, var(--navy), var(--blue)); border-radius: 10px; display: flex; align-items: center; justify-content: center; margin-bottom: 0; }
  .belief-icon i   { font-size: 0.95rem; color: var(--gold); }
  .belief-text  { flex: 1; min-width: 0; }
  .belief-card h4  { font-size: 0.9rem; margin-bottom: 4px; }
  .belief-card p   { font-size: 0.8rem; line-height: 1.55; }
  .belief-card::before { display: none; }

  /* ── MINISTERIOS: imagen full + gradiente, apiladas ── */
  .ministerios-grid { grid-template-columns: 1fr; gap: 14px; }
  .ministerio-card  { position: relative; height: 220px; overflow: hidden; }
  .ministerio-img   { position: absolute; inset: 0; width: 100%; height: 100%; background-size: cover; background-position: center; border-radius: 0; }
  .ministerio-card::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(5,8,28,0.92) 40%, rgba(5,8,28,0.1) 100%); border-radius: var(--radius); }
  .ministerio-body  { position: absolute; bottom: 0; left: 0; right: 0; z-index: 2; padding: 18px 20px; }
  .ministerio-body h3 { color: #fff; font-size: 1.15rem; margin-bottom: 5px; }
  .ministerio-body p  { color: rgba(255,255,255,0.82); font-size: 0.84rem; line-height: 1.55; margin-bottom: 10px; }
  .ministerio-body .btn-link { color: var(--gold); font-size: 0.84rem; }

  /* ── HORARIOS: lista vertical, todos siempre visibles ── */
  .schedule-grid {
    display: flex; flex-direction: column; gap: 10px;
    padding: 14px 0 0; overflow: visible;
  }
  .schedule-card {
    display: grid;
    grid-template-columns: auto 1fr auto;
    grid-template-rows: auto auto;
    column-gap: 10px;
    row-gap: 10px;
    padding: 14px 16px;
    min-width: unset;
    scroll-snap-align: unset;
    flex-shrink: unset;
    text-align: left;
  }
  .schedule-badge {
    position: absolute; top: -11px; left: 14px;
    transform: none; font-size: 0.64rem;
  }
  /* fila 1: día completo (ancho total) */
  .schedule-day {
    grid-column: 1 / -1; grid-row: 1;
    font-size: 0.72rem; font-weight: 700;
    letter-spacing: 2px; margin-bottom: 0;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(201,162,39,0.25);
  }
  .schedule-card.featured .schedule-day {
    border-bottom-color: rgba(201,162,39,0.5);
  }
  /* fila 2: ícono | nombre | hora */
  .schedule-icon {
    grid-column: 1; grid-row: 2;
    font-size: 1.4rem; margin-bottom: 0;
    align-self: center;
  }
  .schedule-name {
    grid-column: 2; grid-row: 2;
    font-size: 0.95rem; margin-bottom: 0;
    line-height: 1.3; align-self: center;
  }
  .schedule-card.featured .schedule-name { color: var(--white); }
  .schedule-time {
    grid-column: 3; grid-row: 2;
    font-size: 0.74rem; padding: 4px 9px;
    white-space: nowrap; align-self: center;
  }

  /* ── CONTACTO: igual que desktop, 1 columna ── */
  .contact-grid { grid-template-columns: 1fr; gap: 32px; }
  .contact-map  { display: none; }

  /* ── FOOTER: 1 columna con separadores ── */
  .footer-grid { grid-template-columns: 1fr; gap: 0; }
  .footer-brand { padding-bottom: 28px; border-bottom: 1px solid rgba(255,255,255,0.1); margin-bottom: 28px; }
  .footer-brand p { font-size: 0.88rem; line-height: 1.7; }
  .footer-verse   { font-size: 0.84rem; }
  .footer-links   { padding-bottom: 24px; border-bottom: 1px solid rgba(255,255,255,0.08); margin-bottom: 24px; }
  .footer-links ul { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px 20px; }

  /* Footer móvil: todo en columna, sin overflow */
  .footer-nav-wrap {
    flex-direction: column;
    gap: 0;
  }
  .footer-main-links {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px 20px;
  }
  .footer-pages-links {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px 20px;
  }
  .footer-nav-sep {
    width: 60%;
    height: 1px;
    background: rgba(255,255,255,0.15);
    margin: 14px 0;
  }
  .footer-peticiones {
    white-space: nowrap;
  }
  .footer-contact { padding-bottom: 8px; }

  .donations-inner { grid-template-columns: 1fr; }
  .donations-image { display: none; }
}

@media (max-width: 480px) {
  .hero-title  { font-size: 2.4rem; }
}

/* ── MURO DE ORACIÓN ── */

/* ── MINI BANNER ORACIÓN ── */
.prayer-banner {
  position: relative;
  padding: 100px 24px 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  text-align: center;
}

.prayer-banner-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #0b0f2e 0%, #1a237e 55%, #0d1b5e 100%);
}

.prayer-banner-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 15% 60%, rgba(201,162,39,0.18) 0%, transparent 45%),
    radial-gradient(circle at 85% 25%, rgba(26,35,126,0.35) 0%, transparent 40%);
}

.prayer-banner-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.prayer-banner-content {
  position: relative;
  z-index: 2;
  color: var(--white);
  max-width: 600px;
}

.prayer-banner-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 20px;
}

.prayer-banner-logo {
  width: 44px;
  height: 44px;
  object-fit: contain;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,0.4));
}

.prayer-banner-name {
  font-family: 'Playfair Display', serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.04em;
}

.prayer-banner-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.8rem, 5vw, 2.6rem);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 14px;
}

.prayer-banner-gold {
  color: var(--gold);
}

.prayer-banner-verse {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.65);
  font-style: italic;
  line-height: 1.6;
  max-width: 480px;
  margin: 0 auto;
}

/* El banner oscuro hace legibles los links — navbar transparente al inicio igual que en index */
.prayer-page main {
  padding-top: 0;
}

/* Sección principal */
.prayer-section {
  min-height: calc(100vh - 80px);
  padding: 60px 0 80px;
  background: #f0f2f8;
}

/* Fila encabezado: botón "+" alineado a la derecha */
.prayer-page-header {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 28px;
}

/* Botón "+" — dorado con pulso suave */
@keyframes prayerPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(201,162,39,0.5), 0 4px 14px rgba(201,162,39,0.3); }
  50%       { box-shadow: 0 0 0 8px rgba(201,162,39,0),  0 4px 20px rgba(201,162,39,0.5); }
}

.btn-add-prayer {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--white);
  border: none;
  cursor: pointer;
  font-size: 1.6rem;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: prayerPulse 2.4s ease-in-out infinite;
  transition: background 0.2s, transform 0.2s;
  flex-shrink: 0;
}
.btn-add-prayer:hover {
  background: var(--gold2);
  transform: scale(1.1);
  animation: none;
}

/* ── MODAL ── */
.prayer-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(11,15,46,0.45);
  backdrop-filter: blur(5px);
  z-index: 2000;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.prayer-modal-overlay.open {
  display: flex;
}

.prayer-modal {
  background: var(--white);
  border-radius: 20px;
  width: 100%;
  max-width: 440px;
  padding: 32px 28px 24px;
  box-shadow: 0 24px 64px rgba(0,0,0,0.22);
  position: relative;
  animation: popIn 0.2s ease;
}

.prayer-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  background: none;
  border: none;
  font-size: 1.1rem;
  color: var(--muted);
  cursor: pointer;
  padding: 5px 9px;
  border-radius: 6px;
  transition: var(--trans);
  line-height: 1;
}
.prayer-modal-close:hover {
  background: var(--gray);
  color: var(--text);
}

/* Input de nombre: sin línea, sin borde, tipografía destacada — el nombre aparece estilado al escribir */
.prayer-modal-name-input {
  width: 100%;
  border: none;
  padding: 4px 0 4px;
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--navy);
  background: transparent;
  margin-bottom: 8px;
}
.prayer-modal-name-input::placeholder {
  color: #d4d8e2;
  font-weight: 400;
  font-size: 1rem;
  font-family: 'Inter', sans-serif;
}
.prayer-modal-name-input:focus { outline: none; }

/* Preview oculto — el propio input ya luce estilado */
.prayer-modal-preview { display: none !important; }

/* Textarea auto-creciente: sin bordes, letra más pequeña */
.prayer-modal-textarea {
  width: 100%;
  border: none;
  padding: 0;
  font-family: 'Inter', sans-serif;
  font-size: 0.88rem;
  color: var(--text);
  background: transparent;
  resize: none;
  overflow: hidden;
  min-height: 72px;
  line-height: 1.65;
  margin-bottom: 24px;
}
.prayer-modal-textarea:focus { outline: none; }
.prayer-modal-textarea::placeholder { color: #b0b8c9; }


/* Estado de envío */
.prayer-status {
  margin-bottom: 12px;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 0.9rem;
  display: none;
}
.prayer-status.success {
  background: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}
.prayer-status.error {
  background: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}
.prayer-status.info {
  background: #d1ecf1;
  color: #0c5460;
  border: 1px solid #bee5eb;
}

/* Botón submit: compacto, alineado a la derecha */
.prayer-modal-footer {
  display: flex;
  justify-content: flex-end;
}
.prayer-modal-submit {
  padding: 9px 22px;
  background: var(--navy);
  color: var(--white);
  border: none;
  border-radius: 8px;
  font-family: 'Inter', sans-serif;
  font-size: 0.87rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--trans);
  display: inline-flex;
  align-items: center;
  gap: 7px;
  letter-spacing: 0.01em;
}
.prayer-modal-submit:hover:not(:disabled) { background: var(--blue); }
.prayer-modal-submit:disabled { opacity: 0.6; cursor: not-allowed; }

/* Contador de caracteres */
.prayer-char-count {
  text-align: right;
  font-size: 0.71rem;
  color: var(--muted);
  margin: 3px 0 0;
  transition: color 0.2s;
}
.prayer-char-count.warn   { color: #e67e22; }
.prayer-char-count.danger { color: #e74c3c; font-weight: 600; }

/* Honeypot anti-bots */
.honeypot {
  position: absolute;
  left: -9999px;
  top: -9999px;
  opacity: 0;
  pointer-events: none;
}

/* ── Muro de peticiones ── */
.prayer-wall {
  columns: 3;
  column-gap: 18px;
}

.prayer-item {
  background: var(--white);
  border-radius: var(--radius);
  padding: 22px 18px 36px;
  box-shadow: var(--shadow);
  border-left: 4px solid var(--gold);
  transition: filter 0.2s, box-shadow 0.2s;
  position: relative;
  break-inside: avoid;
  display: inline-block;
  width: 100%;
  margin-bottom: 18px;
  box-sizing: border-box;
}
.prayer-item:hover {
  filter: brightness(1.03);
  box-shadow: 0 14px 40px rgba(0,0,0,0.18);
}

.prayer-item-icon {
  position: absolute;
  bottom: 10px;
  right: 14px;
  font-size: 1.5rem;
  opacity: 0.18;
  color: inherit;
}

.prayer-item-name {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 1rem;
  color: var(--navy);
  margin-bottom: 8px;
}

.prayer-item-msg {
  font-size: 0.90rem;
  color: var(--text);
  line-height: 1.65;
  margin-bottom: 12px;
  word-break: break-word;
}

.prayer-item-date {
  font-size: 0.76rem;
  color: var(--muted);
  margin-bottom: 10px;
}

/* Botón "Oré por ti" */
.pray-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 12px 4px 10px;
  background: transparent;
  border: 1.5px solid currentColor;
  border-radius: 20px;
  font-size: 0.73rem;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  opacity: 0.5;
  transition: opacity 0.2s, transform 0.15s;
  color: inherit;
}
.pray-btn:hover:not(.prayed) {
  opacity: 0.9;
  transform: scale(1.06);
}
.pray-btn.prayed {
  opacity: 0.3;
  cursor: default;
}
.pray-count { font-weight: 700; }

/* ── VARIANTES CÓMIC ── */
/* burbuja de diálogo: triángulo en la esquina superior izquierda */
.prayer-item::before {
  content: '';
  position: absolute;
  top: -10px;
  left: 22px;
  border: 10px solid transparent;
  border-bottom-width: 0;
  border-top-width: 12px;
}

/* A — nota amarilla */
.pitem-a {
  background: #fffbe6;
  border-left: 4px solid #f5a623;
  transform: rotate(0.6deg);
  box-shadow: 4px 5px 0 #f5a62330, var(--shadow);
}
.pitem-a::before { border-top-color: #f5a623; }
.pitem-a .prayer-item-icon { color: #f5a623; }

/* B — rosado */
.pitem-b {
  background: #fff0f6;
  border-left: 4px solid #e91e8c;
  transform: rotate(-0.7deg);
  box-shadow: -4px 5px 0 #e91e8c25, var(--shadow);
}
.pitem-b::before { border-top-color: #e91e8c; }
.pitem-b .prayer-item-icon { color: #e91e8c; }

/* C — azul cielo */
.pitem-c {
  background: #eef7ff;
  border-left: 4px solid #1976d2;
  transform: rotate(0deg);
  box-shadow: 4px 4px 0 #1976d220, var(--shadow);
}
.pitem-c::before { border-top-color: #1976d2; }
.pitem-c .prayer-item-icon { color: #1976d2; }

/* D — menta verde */
.pitem-d {
  background: #edfff5;
  border-left: 4px solid #2e7d32;
  transform: rotate(0.5deg);
  box-shadow: 4px 5px 0 #2e7d3225, var(--shadow);
}
.pitem-d::before { border-top-color: #2e7d32; }
.pitem-d .prayer-item-icon { color: #2e7d32; }

/* E — lavanda */
.pitem-e {
  background: #f5f0ff;
  border-left: 4px solid #7b1fa2;
  transform: rotate(-0.5deg);
  box-shadow: -3px 5px 0 #7b1fa220, var(--shadow);
}
.pitem-e::before { border-top-color: #7b1fa2; }
.pitem-e .prayer-item-icon { color: #7b1fa2; }

/* F — durazno */
.pitem-f {
  background: #fff4ee;
  border-left: 4px solid #e64a19;
  transform: rotate(-0.4deg);
  box-shadow: -4px 4px 0 #e64a1920, var(--shadow);
}
.pitem-f::before { border-top-color: #e64a19; }
.pitem-f .prayer-item-icon { color: #e64a19; }

/* Breadcrumb — solo escritorio */
.prayer-breadcrumb {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
}
.breadcrumb-home {
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  transition: color 0.2s;
}
.breadcrumb-home:hover { color: var(--white); }
.breadcrumb-sep {
  color: rgba(255,255,255,0.3);
  font-size: 0.8rem;
}
.breadcrumb-current {
  color: var(--gold);
  font-weight: 600;
  margin-left: 6px;
}

/* Footer nav simplificado en página de oración */
.footer-prayer-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
}
.footer-prayer-link {
  color: rgba(255,255,255,0.55);
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  font-weight: 400;
  padding: 6px 0;
  text-decoration: none;
  transition: color 0.2s;
}
.footer-prayer-link:hover { color: var(--white); }
.footer-prayer-vsep { display: none; }
.footer-prayer-pages { display: contents; }

/* En escritorio sigue siendo vertical (columna normal) con separador horizontal */
.footer-prayer-nav::after {
  content: '';
  display: block;
  border-top: 1px solid rgba(255,255,255,0.12);
  width: 70%;
  order: 1;
  margin: 6px 0 12px;
}
.footer-prayer-home { order: 0; }
.footer-prayer-pages { order: 2; display: flex; flex-direction: column; }

@media (max-width: 640px) {
  .footer-prayer-nav {
    flex-direction: row;
    align-items: flex-start;
    gap: 0;
  }
  /* Ocultar el separador horizontal en móvil */
  .footer-prayer-nav::after { display: none; }

  .footer-prayer-home {
    order: 0;
    padding-right: 18px;
  }
  .footer-prayer-vsep {
    display: block;
    width: 1px;
    align-self: stretch;
    background: rgba(255,255,255,0.15);
    margin: 4px 18px 4px 0;
    order: 1;
  }
  .footer-prayer-pages {
    order: 2;
    display: flex;
    flex-direction: column;
  }
}

/* Menú móvil desplegable */
.prayer-mobile-menu {
  display: none;
  flex-direction: column;
  background: rgba(11,15,46,0.98);
  backdrop-filter: blur(20px);
  padding: 16px 24px 24px;
  border-top: 1px solid rgba(255,255,255,0.07);
}
.prayer-mobile-menu.open {
  display: flex;
}
.prayer-mobile-link {
  color: rgba(255,255,255,0.75);
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  font-weight: 500;
  padding: 10px 0;
  text-decoration: none;
  transition: color 0.2s;
}
.prayer-mobile-link:hover { color: var(--white); }
.prayer-mobile-sep {
  border: none;
  border-top: 1px solid rgba(255,255,255,0.1);
  margin: 4px 0 14px;
}
.prayer-mobile-active {
  color: var(--gold);
  font-weight: 600;
  padding-top: 18px;
}

@media (min-width: 641px) {
  .prayer-breadcrumb { display: flex; }
  .prayer-mobile-menu { display: none !important; }
}
@media (max-width: 640px) {
  .prayer-breadcrumb { display: none; }
}

@media (max-width: 900px) and (min-width: 641px) {
  .prayer-wall { columns: 2; }
}

/* Estado vacío: ocupa la pantalla, centrado */
.prayer-empty {
  column-span: all;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 50vh;
  text-align: center;
  padding: 20px 24px 40px;
}
.prayer-empty-icon {
  font-size: 3.5rem;
  color: var(--gold);
  opacity: 0.25;
  margin-bottom: 24px;
}
.prayer-empty-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.5rem, 4vw, 2.2rem);
  font-weight: 700;
  color: #c8cdd8;
  margin-bottom: 14px;
}
.prayer-empty-sub {
  font-size: 0.95rem;
  color: #d8dce6;
  line-height: 1.7;
}
.prayer-empty-sub strong {
  color: var(--gold);
  font-size: 1.1rem;
}

/* Aviso cuando Firebase no está configurado */
.prayer-config-notice {
  grid-column: 1 / -1;
  text-align: center;
  padding: 48px 24px;
  color: var(--muted);
  background: var(--gray);
  border-radius: var(--radius);
  border: 2px dashed #e2e8f0;
}
.prayer-config-notice i {
  font-size: 2rem;
  margin-bottom: 12px;
  display: block;
  color: var(--gold);
  opacity: 0.4;
}
.prayer-config-notice code {
  background: #e2e8f0;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.83rem;
}

/* ── Responsive ── */
@media (max-width: 640px) {
  .prayer-wall {
    columns: 1;
  }

  .prayer-section {
    padding: 40px 0 60px;
  }

  .prayer-page-header {
    margin-bottom: 32px;
  }

  /* Modal centrado en móvil */
  .prayer-modal-overlay {
    align-items: center;
    justify-content: center;
    padding: 16px;
  }

  .prayer-modal {
    border-radius: 20px;
    max-width: 100%;
    padding: 24px 20px 24px;
    max-height: 80vh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .prayer-modal-name-input {
    font-size: 1.1rem;
  }

  .btn-add-prayer {
    width: 60px;
    height: 60px;
    font-size: 1.5rem;
  }

  .prayer-empty {
    min-height: 38vh;
    padding: 8px 24px 32px;
  }

  .prayer-section {
    padding-top: 24px;
  }
}

/* ══════════════════════════════════════════════════════════
   EVENTOS — tarjetas y página de detalle
══════════════════════════════════════════════════════════ */

/* Grid de tarjetas */
.eventos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 28px;
  padding-bottom: 60px;
}

/* Tarjeta */
.ev-card {
  background: var(--white);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.07), 0 8px 28px rgba(0,0,0,0.10);
  cursor: pointer;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
  display: flex;
  flex-direction: column;
}
.ev-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.09), 0 18px 48px rgba(0,0,0,0.16);
}

/* Foto de la tarjeta */
.ev-card-img {
  width: 100%;
  aspect-ratio: 16 / 9;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  flex-shrink: 0;
}

/* Cuerpo de la tarjeta */
.ev-card-body {
  padding: 22px 22px 18px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.ev-card-titulo {
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 10px;
  line-height: 1.3;
}
.ev-card-desc {
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.65;
  flex: 1;
  margin-bottom: 18px;
}

/* Footer de la tarjeta: lugar izquierda, fecha derecha */
.ev-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 10px;
  flex-wrap: wrap;
  border-top: 1px solid rgba(0,0,0,0.06);
  padding-top: 14px;
}
.ev-card-lugar,
.ev-card-fecha {
  font-size: 0.78rem;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 5px;
}
.ev-card-lugar i { color: var(--gold); }
.ev-card-fecha i { color: var(--navy); opacity: 0.5; }

/* ── PÁGINA DE DETALLE evento.html ── */

.evento-page .navbar { background: transparent; }

/* Hero con foto a ancho completo */
.ev-hero {
  position: relative;
  height: 70vh;
  min-height: 380px;
  max-height: 600px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}
.ev-hero-img {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.ev-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(8,12,38,0.92) 0%, rgba(8,12,38,0.35) 55%, transparent 100%);
}
.ev-hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 0 40px 44px;
  max-width: 900px;
  margin: 0 auto;
}
.ev-back {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: rgba(255,255,255,0.7);
  font-size: 0.85rem;
  margin-bottom: 18px;
  transition: color 0.2s;
}
.ev-back:hover { color: var(--gold); }
.ev-hero-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 900;
  color: var(--white);
  line-height: 1.15;
  margin-bottom: 16px;
}
.ev-hero-meta {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  color: rgba(255,255,255,0.8);
  font-size: 0.92rem;
}
.ev-hero-meta span {
  display: flex;
  align-items: center;
  gap: 7px;
}
.ev-hero-meta i { color: var(--gold); }

/* Cuerpo del evento */
.ev-body {
  padding: 56px 0 80px;
}
.ev-content { max-width: 720px; }

.ev-descripcion {
  font-size: 1.05rem;
  line-height: 1.85;
  color: var(--text);
  margin-bottom: 40px;
}

/* Links/botones del evento */
.ev-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 32px;
  padding-top: 28px;
  border-top: 1px solid rgba(0,0,0,0.07);
}
.ev-link-btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 13px 24px;
  border-radius: 12px;
  background: var(--navy);
  color: var(--white);
  font-size: 0.92rem;
  font-weight: 600;
  transition: var(--trans);
}
.ev-link-btn:hover {
  background: var(--gold);
  color: var(--navy);
  transform: translateY(-2px);
}
.ev-link-btn i { font-size: 0.95rem; }

/* ── RESPONSIVE ── */
@media (max-width: 640px) {
  .ev-hero      { height: 105vw; min-height: 320px; max-height: 580px; }
  .ev-hero-img  { background-position: center; }
  .ev-hero-content { padding: 0 20px 28px; }
  .ev-hero-meta { gap: 14px; font-size: 0.82rem; }
  .ev-body      { padding: 36px 0 60px; }
  .ev-descripcion { font-size: 0.97rem; }
  .ev-link-btn  { width: 100%; justify-content: center; }
  .eventos-grid { grid-template-columns: 1fr; gap: 20px; }
}

/* Botones utilidad evento (compartir / calendario) */
.ev-util-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
  padding-top: 28px;
  border-top: 1px solid rgba(0,0,0,0.07);
}
.ev-util-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: 10px;
  font-size: 0.88rem;
  font-weight: 600;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  transition: var(--trans);
  border: 1.5px solid rgba(0,0,0,0.12);
  background: transparent;
  color: var(--text);
  text-decoration: none;
}
.ev-util-btn:hover {
  border-color: var(--gold);
  color: var(--gold);
  background: rgba(201,162,39,0.06);
}
@media (max-width: 640px) {
  .ev-util-btn { width: 100%; justify-content: center; }
}

/* ── MODO LÍDER — elementos ocultos para usuarios normales ─────────────────── */

/* Nav/footer: "Líderes" activo cuando hay sesión */
.nav-lideres.lider-activo,
.footer-lideres.lider-activo { color: var(--gold) !important; opacity: 1 !important; }

/* Popover de sesión activa */
.lider-popover {
  position: absolute; z-index: 4000;
  background: var(--navy);
  border: 1px solid rgba(201,162,39,0.3);
  border-radius: 10px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.35);
  padding: 10px 14px;
  min-width: 170px;
  display: flex; flex-direction: column; gap: 8px;
}
.lider-popover-status {
  color: var(--gold); font-size: 0.82rem; font-weight: 600;
  display: flex; align-items: center; gap: 6px;
}
.lider-popover-logout {
  background: none; border: 1px solid rgba(248,113,113,0.4);
  color: #f87171; border-radius: 6px; padding: 6px 10px;
  font-size: 0.82rem; cursor: pointer; text-align: left;
  display: flex; align-items: center; gap: 6px;
  transition: background 0.18s;
}
.lider-popover-logout:hover { background: rgba(248,113,113,0.1); }

/* Elementos de gestión: ocultos por defecto, visibles solo en modo líder */
.lider-del-btn,
.lider-create-wrap,
.lider-edit-bar { display: none; }

body.lider-mode .lider-del-btn  { display: flex; }
body.lider-mode .lider-create-wrap { display: flex; }
body.lider-mode .lider-edit-bar { display: flex; }

/* Botón X en esquina de tarjetas de petición */
.lider-del-btn {
  position: absolute; top: 8px; right: 8px; z-index: 10;
  background: rgba(248,113,113,0.15);
  border: 1px solid rgba(248,113,113,0.35);
  color: #f87171; border-radius: 50%;
  width: 26px; height: 26px;
  align-items: center; justify-content: center;
  font-size: 0.75rem; cursor: pointer;
  transition: background 0.18s, color 0.18s;
}
.lider-del-btn:hover { background: rgba(248,113,113,0.35); }

/* Ensure prayer-item has relative positioning for the del button */
.prayer-item { position: relative; }

/* Barra "Crear evento" sobre el grid */
.lider-create-wrap {
  justify-content: flex-end;
  margin-bottom: 20px;
}
.lider-create-btn {
  display: flex; align-items: center; gap: 8px;
  background: var(--gold); color: var(--navy);
  border: none; border-radius: 8px;
  font-weight: 700; font-size: 0.9rem; font-family: 'Inter', sans-serif;
  padding: 10px 20px; cursor: pointer;
  transition: background 0.2s;
}
.lider-create-btn:hover { background: var(--gold2); }

/* Barra editar/eliminar en detalle del evento */
.lider-edit-bar {
  align-items: center; gap: 12px;
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.lider-edit-accion {
  display: flex; align-items: center; gap: 7px;
  border-radius: 8px; padding: 10px 18px;
  font-weight: 600; font-size: 0.88rem; font-family: 'Inter', sans-serif;
  cursor: pointer; transition: var(--trans);
}
.lider-edit-accion--edit {
  background: transparent;
  border: 1px solid rgba(201,162,39,0.4);
  color: var(--gold);
}
.lider-edit-accion--edit:hover { background: rgba(201,162,39,0.1); }
.lider-edit-accion--del {
  background: transparent;
  border: 1px solid rgba(248,113,113,0.35);
  color: #f87171;
}
.lider-edit-accion--del:hover { background: rgba(248,113,113,0.1); }

/* Modal de éxito (bienvenida) */
.lideres-modal-success { text-align: center; padding: 16px 0; }
.lideres-success-icon {
  font-size: 3rem; color: var(--gold); display: block; margin-bottom: 16px;
  animation: pop-in 0.4s cubic-bezier(0.175,0.885,0.32,1.275) both;
}
@keyframes pop-in {
  from { transform: scale(0.4); opacity: 0; }
  to   { transform: scale(1);   opacity: 1; }
}
.lideres-success-title { color: var(--white); font-family: 'Playfair Display', serif; font-size: 1.4rem; margin-bottom: 8px; }
.lideres-success-sub   { color: var(--muted); font-size: 0.9rem; }

/* ── MODAL LÍDERES ─────────────────────────────────────────────────────────── */
.lideres-modal-overlay {
  position: fixed; inset: 0; z-index: 3000;
  background: rgba(0,0,0,0.72);
  backdrop-filter: blur(5px);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none;
  transition: opacity 0.22s ease;
}
.lideres-modal-overlay.open { opacity: 1; pointer-events: all; }
.lideres-modal {
  background: var(--navy);
  border: 1px solid rgba(201,162,39,0.22);
  border-radius: var(--radius);
  box-shadow: 0 24px 72px rgba(0,0,0,0.55);
  padding: 44px 36px 34px;
  width: 100%; max-width: 390px;
  margin: 0 16px;
  position: relative;
  transform: translateY(22px);
  transition: transform 0.26s ease;
}
.lideres-modal-overlay.open .lideres-modal { transform: translateY(0); }
.lideres-modal-close {
  position: absolute; top: 14px; right: 16px;
  background: none; border: none; cursor: pointer;
  color: var(--muted); font-size: 1.15rem;
  transition: color 0.2s;
}
.lideres-modal-close:hover { color: var(--white); }
.lideres-modal-header { text-align: center; margin-bottom: 30px; }
.lideres-modal-icon {
  font-size: 2.4rem; color: var(--gold);
  display: block; margin-bottom: 12px;
}
.lideres-modal-header h2 {
  color: var(--white); font-family: 'Playfair Display', serif;
  font-size: 1.35rem; margin: 0 0 6px;
}
.lideres-modal-header p { color: var(--muted); font-size: 0.9rem; margin: 0; }
.lideres-modal-input {
  width: 100%; background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.13);
  border-radius: 8px; color: var(--white);
  font-size: 1rem; padding: 13px 16px;
  outline: none; transition: border-color 0.2s;
  letter-spacing: 0.12em;
}
.lideres-modal-input::placeholder { letter-spacing: 0; color: var(--muted); }
.lideres-modal-input:focus { border-color: var(--gold); }
.lideres-modal-error {
  color: #f87171; font-size: 0.84rem;
  min-height: 1.3em; margin: 10px 0 0;
  text-align: center;
}
.lideres-modal-btn {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; margin-top: 18px;
  background: var(--gold); color: var(--navy);
  border: none; border-radius: 8px;
  font-weight: 700; font-size: 1rem; font-family: 'Inter', sans-serif;
  padding: 14px 0; cursor: pointer;
  transition: background 0.2s, opacity 0.2s;
}
.lideres-modal-btn:hover:not(:disabled) { background: var(--gold2); }
.lideres-modal-btn:disabled { opacity: 0.55; cursor: not-allowed; }

/* ── PANEL LÍDERES ─────────────────────────────────────────────────────────── */
.lideres-page { background: var(--navy); min-height: 100vh; }
.lideres-topbar {
  position: sticky; top: 0; z-index: 100;
  background: rgba(11,15,46,0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(201,162,39,0.18);
  padding: 0 40px;
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.lideres-topbar-brand { display: flex; align-items: center; gap: 10px; color: var(--white); font-weight: 600; }
.lideres-topbar-brand i { color: var(--gold); }
.lideres-logout-btn {
  background: transparent; border: 1px solid rgba(255,255,255,0.2);
  color: var(--muted); border-radius: 7px; padding: 7px 16px;
  font-size: 0.85rem; cursor: pointer; transition: var(--trans);
  display: flex; align-items: center; gap: 7px;
}
.lideres-logout-btn:hover { border-color: #f87171; color: #f87171; }
.lideres-main { padding: 48px 40px; max-width: 900px; margin: 0 auto; }
.lideres-welcome { margin-bottom: 40px; }
.lideres-welcome h1 { color: var(--white); font-family: 'Playfair Display', serif; font-size: 1.9rem; margin-bottom: 8px; }
.lideres-welcome p  { color: var(--muted); font-size: 0.97rem; }
.lideres-section-title {
  color: var(--gold); font-size: 0.78rem; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
  margin-bottom: 18px; display: flex; align-items: center; gap: 10px;
}
.lideres-section-title::after {
  content: ''; flex: 1; height: 1px; background: rgba(201,162,39,0.2);
}
.lideres-action-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; margin-bottom: 48px; }
.lideres-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.09);
  border-radius: var(--radius); padding: 28px 24px;
  cursor: pointer; transition: var(--trans);
  text-decoration: none; display: block;
}
.lideres-card:hover { border-color: var(--gold); background: rgba(201,162,39,0.06); }
.lideres-card-icon { font-size: 1.6rem; color: var(--gold); margin-bottom: 14px; }
.lideres-card-title { color: var(--white); font-weight: 600; font-size: 1rem; margin-bottom: 6px; }
.lideres-card-desc  { color: var(--muted); font-size: 0.87rem; line-height: 1.5; }
@media (max-width: 640px) {
  .lideres-topbar { padding: 0 20px; }
  .lideres-main   { padding: 32px 20px; }
  .lideres-welcome h1 { font-size: 1.5rem; }
}

/* ── TARJETA PLACEHOLDER "AGREGAR EVENTO" ──────────────────────────────────── */
/* La tarjeta placeholder la muestra el selector body.lider-mode;
   el display:none viene de .lider-create-wrap — NO usar !important aquí */
.ev-card--ph {
  border: 3px dashed rgba(107,114,128,0.38) !important;
  background: transparent !important;
  box-shadow: none !important;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  min-height: 260px;
  transition: border-color 0.22s !important;
}
body.lider-mode .ev-card--ph { display: flex; }
.ev-card--ph:hover { border-color: rgba(107,114,128,0.7) !important; }
.ev-ph-inner { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.ev-ph-plus {
  width: 64px; height: 64px; border-radius: 50%;
  background: rgba(107,114,128,0.12);
  border: 2px solid rgba(107,114,128,0.4);
  display: flex; align-items: center; justify-content: center;
  color: rgba(107,114,128,0.65); font-size: 1.5rem;
  transition: background 0.22s, border-color 0.22s, color 0.22s;
}
.ev-card--ph:hover .ev-ph-plus {
  background: rgba(107,114,128,0.22);
  border-color: rgba(107,114,128,0.65);
  color: rgba(107,114,128,0.9);
}
.ev-ph-label { color: var(--muted); font-size: 0.9rem; letter-spacing: 0.02em; }

/* ── MODAL CREADOR DE EVENTOS ───────────────────────────────────────────────── */

/* Overlay oscuro */
.evf-overlay {
  position: fixed; inset: 0; z-index: 3500;
  background: rgba(0,0,0,0.72); backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  opacity: 0; pointer-events: none;
  transition: opacity 0.22s;
}
.evf-overlay.open { opacity: 1; pointer-events: all; }

/* Contenedor — sin fondo propio, la tarjeta lo ocupa todo */
.evf-wrap {
  width: 100%; max-width: 400px;
  max-height: 90vh; overflow-y: auto;
  border-radius: var(--radius);
  position: relative;
}

/* Botón X flotante sobre la foto */
.evf-close {
  position: absolute; top: 10px; right: 10px; z-index: 10;
  background: rgba(0,0,0,0.45); backdrop-filter: blur(4px);
  border: none; cursor: pointer;
  width: 34px; height: 34px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.85); font-size: 0.95rem;
  transition: background 0.18s;
}
.evf-close:hover { background: rgba(0,0,0,0.65); }

/* La tarjeta — sin sombra propia, overflow hidden para que el botón quede clippeado */
.evf-card { cursor: default !important; box-shadow: none !important; transform: none !important; border-radius: var(--radius) !important; overflow: hidden; }
.evf-card:hover { transform: none !important; box-shadow: none !important; }

/* Foto editable */
.evf-img {
  cursor: pointer;
  aspect-ratio: 16/9;
  height: auto;
  background-color: #dde1ef;
  background-size: cover; background-position: center;
  position: relative;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--radius) var(--radius) 0 0;
  overflow: hidden; transition: filter 0.18s;
}
.evf-img:hover { filter: brightness(0.93); }

.evf-img-ph {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  color: rgba(0,0,0,0.32); font-size: 0.84rem;
  pointer-events: none; text-align: center;
}
.evf-img-ph i { font-size: 2.2rem; }

/* Inputs dentro del cuerpo de la tarjeta — misma tipografía que el contenido real */
.evf-titulo {
  display: block; width: 100%;
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem; font-weight: 700; color: var(--navy);
  background: transparent; border: none; outline: none;
  border-bottom: 1.5px solid rgba(0,0,0,0.07);
  padding: 0 0 4px; margin-bottom: 10px; line-height: 1.3;
}
.evf-titulo::placeholder { color: rgba(0,0,0,0.22); font-weight: 400; }
.evf-titulo:focus { border-bottom-color: var(--gold); }

.evf-desc {
  display: block; width: 100%;
  font-family: 'Inter', sans-serif;
  font-size: 0.88rem; color: var(--muted); line-height: 1.65;
  background: transparent; border: none; outline: none; resize: none;
  padding: 0; margin-bottom: 14px; min-height: 54px;
}
.evf-desc::placeholder { color: rgba(0,0,0,0.22); }

/* Footer de la tarjeta: reutiliza .ev-card-footer, .ev-card-lugar, .ev-card-fecha */
.evf-card .ev-card-footer { border-top: 1px solid rgba(0,0,0,0.07); padding-top: 12px; }
.evf-lugar-wrap { display: flex; align-items: center; gap: 5px; min-width: 0; flex: 1; }

.evf-inline {
  background: transparent; border: none; outline: none;
  font-family: 'Inter', sans-serif;
  font-size: 0.78rem; color: var(--text); min-width: 0; flex: 1;
}
.evf-inline::placeholder { color: rgba(0,0,0,0.28); }

.evf-fecha-btn {
  display: flex; align-items: center; gap: 5px;
  background: none; border: none; cursor: pointer;
  font-family: 'Inter', sans-serif;
  font-size: 0.78rem; color: var(--muted);
  white-space: nowrap; flex-shrink: 0; transition: color 0.18s;
}
.evf-fecha-btn:hover, .evf-fecha-btn.active { color: var(--gold); }

/* Panel Maps — flotante sobre el modal, no expande la tarjeta */
.evf-loc-extra {
  position: absolute; z-index: 3800;
  background: var(--white);
  border-radius: 14px;
  box-shadow: 0 8px 28px rgba(0,0,0,0.16), 0 2px 8px rgba(0,0,0,0.08);
  border: 1px solid rgba(0,0,0,0.07);
  padding: 12px 14px 10px;
  opacity: 0; pointer-events: none; transform: translateY(-5px) scale(0.97);
  transition: opacity 0.18s, transform 0.18s;
}
.evf-loc-extra.open { opacity: 1; pointer-events: all; transform: translateY(0) scale(1); }
.evf-loc-title {
  font-size: 0.72rem; font-weight: 700; color: var(--muted);
  text-transform: uppercase; letter-spacing: 0.07em;
  margin-bottom: 8px;
}
.evf-maps-row {
  display: flex; align-items: center; gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}
.evf-maps-row:last-child { margin-bottom: 0; }
.evf-loc-icon {
  font-size: 0.84rem; flex-shrink: 0;
  color: rgba(0,0,0,0.35); width: 16px; text-align: center;
}
.evf-loc-icon--g { color: #4285f4; }
.evf-maps-url {
  flex: 1; min-width: 0; background: transparent; border: none; outline: none;
  border-bottom: 1.5px solid rgba(0,0,0,0.1);
  font-family: 'Inter', sans-serif; font-size: 0.76rem; color: var(--text);
  padding: 2px 0 4px;
  transition: border-color 0.15s;
}
.evf-maps-url::placeholder { color: rgba(0,0,0,0.25); }
.evf-maps-url:focus { border-bottom-color: var(--gold); outline: none; }
/* Error pill bajo el input */
.evf-maps-hint {
  display: none;
  width: calc(100% - 24px); margin-left: 24px;
  align-items: center; gap: 5px;
  font-size: 0.71rem; font-weight: 600; color: #c0392b;
  background: rgba(192,57,43,0.09);
  border-radius: 20px; padding: 3px 10px 3px 8px;
  margin-top: 2px;
}
.evf-maps-hint:not(:empty) { display: flex; }
.evf-maps-hint i { font-size: 0.65rem; flex-shrink: 0; }

/* Calendario — flotante sobre la tarjeta, dentro del overlay */
.evf-cal-wrap {
  position: absolute; z-index: 4000;
  background: var(--white);
  border-radius: 16px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.22), 0 2px 8px rgba(0,0,0,0.10);
  border: 1px solid rgba(0,0,0,0.07);
  width: 310px;
  opacity: 0; pointer-events: none; transform: translateY(-6px) scale(0.97);
  transition: opacity 0.18s, transform 0.18s;
}
.evf-cal-wrap.open { opacity: 1; pointer-events: all; transform: translateY(0) scale(1); }

.evf-cal { padding: 14px 14px 16px; }

.evf-cal-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 10px;
}
.evf-cal-mes { color: var(--navy); font-weight: 700; font-size: 0.92rem; }
.evf-cal-arr {
  background: transparent; border: none; cursor: pointer;
  color: var(--muted); font-size: 1.4rem; line-height: 1;
  width: 28px; height: 28px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.15s, color 0.15s;
}
.evf-cal-arr:hover { background: #f0f2f8; color: var(--navy); }

.evf-cal-grid { display: grid; grid-template-columns: repeat(7,1fr); gap: 2px; }
.evf-cal-dow {
  text-align: center; font-size: 0.65rem; font-weight: 700;
  color: rgba(0,0,0,0.3); padding: 2px 0 6px;
  text-transform: uppercase; letter-spacing: 0.04em;
}
.evf-cal-d {
  background: transparent; border: none; cursor: pointer;
  text-align: center; font-size: 0.82rem;
  color: var(--text);
  padding: 6px 2px; border-radius: 7px;
  transition: background 0.12s, color 0.12s;
}
.evf-cal-d:hover { background: #f0f2f8; color: var(--navy); }
.evf-cal-d.s, .evf-cal-d.e { background: var(--gold); color: var(--navy); font-weight: 700; }
.evf-cal-d.r { background: #fef9c3; color: #92700a; }

.evf-cal-info {
  margin-top: 10px; padding-top: 10px;
  border-top: 1px solid rgba(0,0,0,0.06);
  text-align: center;
}
.evf-cal-hint { color: var(--muted); font-size: 0.79rem; font-style: italic; }
.evf-cal-hint--b { color: var(--gold); font-style: normal; font-weight: 600; }
.evf-cal-rango {
  color: var(--text); font-size: 0.8rem;
  display: flex; align-items: center; justify-content: center; gap: 6px;
}
.evf-cal-rango i { color: var(--gold); }

/* Error — dentro de la tarjeta, encima de la barra dorada */
.evf-err {
  display: block; color: #c0392b; font-size: 0.83rem;
  padding: 0 20px; margin: 10px 0 0; min-height: 0;
}
/* Botón guardar — barra dorada pegada al fondo de la tarjeta */
.evf-save {
  display: flex; align-items: center; justify-content: center; gap: 9px;
  width: 100%; border: none; border-radius: 0;
  background: linear-gradient(135deg, #f0c040 0%, #c89409 100%);
  color: var(--navy);
  padding: 18px; margin-top: 16px;
  font-family: 'Inter', sans-serif;
  font-size: 1.02rem; font-weight: 800; letter-spacing: 0.03em;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.22);
  cursor: pointer;
  transition: filter 0.18s, transform 0.12s;
}
.evf-save i { font-size: 0.9rem; }
.evf-save:hover { filter: brightness(1.08); }
.evf-save:active { transform: scale(0.99); }

/* Días pasados en el calendario */
.evf-cal-d.past {
  color: rgba(0,0,0,0.18); cursor: not-allowed;
  text-decoration: line-through; text-decoration-color: rgba(0,0,0,0.12);
}
.evf-cal-d.past:hover { background: transparent; }
.evf-cal-err {
  color: #e74c3c; font-size: 0.79rem; font-style: normal;
  display: flex; align-items: center; justify-content: center; gap: 5px;
}

/* ── Confirmación de eliminación ──────────────────────────────────────────── */
.evf-confirm-overlay {
  position: fixed; inset: 0; z-index: 5000;
  background: rgba(0,0,0,0.6); backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
  opacity: 0; transition: opacity 0.2s;
}
.evf-confirm-overlay.open { opacity: 1; }

.evf-confirm {
  background: var(--white); border-radius: 18px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.35);
  padding: 32px 28px 24px;
  width: 100%; max-width: 340px;
  text-align: center;
  transform: scale(0.94); transition: transform 0.2s;
}
.evf-confirm-overlay.open .evf-confirm { transform: scale(1); }

.evf-confirm-icon {
  font-size: 2rem; color: #e74c3c;
  margin-bottom: 14px;
}
.evf-confirm-titulo {
  font-family: 'Playfair Display', serif;
  font-size: 1.15rem; font-weight: 700;
  color: var(--navy); margin: 0 0 10px;
}
.evf-confirm-msg {
  font-size: 0.88rem; color: var(--muted);
  line-height: 1.55; margin: 0 0 24px;
}
.evf-confirm-msg strong { color: var(--text); font-weight: 600; }

.evf-confirm-btns {
  display: flex; gap: 10px; justify-content: center;
}
.evf-confirm-cancel {
  flex: 1; background: #f0f2f8; border: none;
  border-radius: 10px; padding: 11px 0;
  font-family: 'Inter', sans-serif; font-size: 0.9rem;
  font-weight: 600; color: var(--muted); cursor: pointer;
  transition: background 0.16s;
}
.evf-confirm-cancel:hover { background: #e2e6f0; }
.evf-confirm-ok {
  flex: 1; background: #e74c3c; border: none;
  border-radius: 10px; padding: 11px 0;
  font-family: 'Inter', sans-serif; font-size: 0.9rem;
  font-weight: 700; color: #fff; cursor: pointer;
  transition: background 0.16s;
}
.evf-confirm-ok:hover { background: #c0392b; }

/* ── Modo edición inline (evento.html) ───────────────────────────────────── */
.ev-hero-edit-wrap {
  position: absolute; inset: 0;
  pointer-events: none; z-index: 4;
}
.ev-hero-photo-btn {
  position: absolute; bottom: 20px; right: 20px;
  pointer-events: all;
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  border: 1.5px solid rgba(255,255,255,0.28);
  color: #fff; border-radius: 20px;
  padding: 8px 14px; font-family: 'Inter', sans-serif;
  font-size: 0.82rem; font-weight: 500;
  cursor: pointer; display: flex; align-items: center; gap: 6px;
  transition: background 0.15s;
}
.ev-hero-photo-btn:hover { background: rgba(255,255,255,0.26); }
.ev-hero-edit-wrap .evf-foto-picker { pointer-events: none; }
.ev-hero-edit-wrap .evf-foto-picker.open { pointer-events: all; }

/* Título y descripción editables — sin decoración visible, igual al publicado */
#evTitulo[contenteditable="true"],
.ev-descripcion[contenteditable="true"] { outline: none; cursor: text; }
#evTitulo[contenteditable="true"]:focus { text-decoration-line: underline; text-decoration-style: dotted; text-decoration-color: rgba(255,255,255,0.45); }
.ev-descripcion[contenteditable="true"]:focus { text-decoration-line: underline; text-decoration-style: dotted; text-decoration-color: rgba(0,0,0,0.2); }

/* Meta: inputs de fechas + ubicación (misma fuente y color del hero) */
.ev-meta-in {
  background: transparent; border: none;
  border-bottom: 1px solid rgba(255,255,255,0.38);
  color: inherit; font-size: inherit; font-family: inherit;
  font-weight: inherit; outline: none; padding: 0 2px;
  width: 108px; /* suficiente para YYYY-MM-DD */
  transition: border-bottom-color 0.15s;
}
.ev-meta-in:focus { border-bottom-color: var(--gold); }
.ev-meta-in--loc { width: 145px; }

/* Enlace en modo edición: wrapper con botón × */
.ev-link-edit-wrap { position: relative; display: inline-block; margin-bottom: 4px; }
.ev-link-del-btn {
  position: absolute; top: -7px; right: -7px;
  width: 20px; height: 20px;
  background: #e74c3c; border: none; border-radius: 50%;
  color: #fff; font-size: 0.65rem; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  padding: 0; line-height: 1;
}

/* Botón agregar enlace — misma familia que los link buttons */
.ev-link-add-btn {
  display: inline-flex; align-items: center; gap: 6px;
  background: none; border: 1.5px dashed rgba(30,45,92,0.25);
  border-radius: 20px; padding: 8px 16px;
  font-family: 'Inter', sans-serif; font-size: 0.88rem;
  color: var(--muted); cursor: pointer; margin-bottom: 4px;
  transition: border-color 0.15s, color 0.15s;
}
.ev-link-add-btn:hover { border-color: var(--navy); color: var(--navy); }

/* Formulario inline para nuevo enlace */
.ev-add-link-form {
  display: flex; gap: 8px; align-items: center; flex-wrap: wrap;
  padding: 10px 0;
}
.ev-add-lk-label, .ev-add-lk-url {
  flex: 1; min-width: 100px;
  border: none; border-bottom: 1.5px solid #dde2ef;
  background: transparent; font-family: 'Inter', sans-serif;
  font-size: 0.88rem; color: var(--text); padding: 5px 0; outline: none;
  transition: border-bottom-color 0.16s;
}
.ev-add-lk-label:focus, .ev-add-lk-url:focus { border-bottom-color: var(--gold); }
.ev-add-lk-ok {
  width: 30px; height: 30px; background: var(--gold); border: none;
  border-radius: 50%; color: var(--navy); font-size: 0.82rem;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
}
.ev-add-lk-x {
  width: 30px; height: 30px; background: #f0f2f8; border: none;
  border-radius: 50%; color: var(--muted); font-size: 0.82rem;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
}

/* Sección discreta de Maps URLs */
.ev-edit-maps-section { margin: 16px 0 8px; }
.ev-edit-maps-row {
  display: flex; align-items: center; gap: 10px; margin-top: 10px;
}
.ev-edit-maps-icon { font-size: 1.05rem; color: var(--muted); flex-shrink: 0; width: 20px; }
.ev-edit-maps-icon--g { color: #4285f4; }
.ev-edit-maps-url {
  flex: 1; border: none; border-bottom: 1.5px solid #dde2ef;
  background: transparent; font-family: 'Inter', sans-serif;
  font-size: 0.88rem; color: var(--text); padding: 6px 0; outline: none;
  transition: border-bottom-color 0.16s;
}
.ev-edit-maps-url:focus { border-bottom-color: var(--gold); }

/* Barra fija inferior */
.ev-edit-bar {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 500;
  background: var(--white); border-top: 1px solid rgba(0,0,0,0.08);
  padding: 10px 20px 14px;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.1);
}
.ev-edit-bar-err { color: #c0392b; font-size: 0.82rem; margin: 0 0 8px; min-height: 0; }
.ev-edit-bar-btns { display: flex; gap: 12px; }
.ev-edit-cancel {
  flex: 1; background: #f0f2f8; border: none;
  border-radius: var(--radius); padding: 12px;
  font-family: 'Inter', sans-serif; font-size: 0.9rem;
  font-weight: 600; color: var(--muted); cursor: pointer;
  transition: background 0.14s;
}
.ev-edit-cancel:hover { background: #e2e6f0; }
.ev-edit-save {
  flex: 2; background: var(--gold); border: none;
  border-radius: var(--radius); padding: 12px;
  font-family: 'Inter', sans-serif; font-size: 0.9rem;
  font-weight: 700; color: var(--navy); cursor: pointer;
  transition: background 0.14s, transform 0.12s;
}
.ev-edit-save:hover  { background: var(--gold2); }
.ev-edit-save:active { transform: scale(0.98); }

/* ── Selector de fotos ────────────────────────────────────────────────────── */
.evf-img { position: relative; overflow: hidden; cursor: pointer; }

.evf-foto-picker {
  position: absolute; inset: 0;
  background: rgba(0,0,0,0.52);
  backdrop-filter: blur(2px);
  display: flex; align-items: flex-end;
  opacity: 0; pointer-events: none;
  transition: opacity 0.18s;
}
.evf-foto-picker.open { opacity: 1; pointer-events: all; }

.evf-foto-opts {
  display: flex; gap: 10px;
  padding: 12px 14px;
  overflow-x: auto; width: 100%;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.evf-foto-opts::-webkit-scrollbar { display: none; }

.evf-foto-opt {
  flex-shrink: 0;
  width: 62px; height: 62px;
  border-radius: 10px;
  border: 3px solid transparent;
  background-size: cover; background-position: center;
  cursor: pointer;
  transition: border-color 0.15s, transform 0.15s;
}
.evf-foto-opt:hover  { transform: scale(1.07); }
.evf-foto-opt.sel    { border-color: var(--gold); transform: scale(1.07); }

.evf-foto-subir {
  flex-shrink: 0;
  width: 62px; height: 62px;
  border-radius: 10px;
  border: 2.5px dashed rgba(255,255,255,0.42);
  background: rgba(255,255,255,0.1);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 4px; color: rgba(255,255,255,0.8);
  font-size: 0.68rem; font-family: 'Inter', sans-serif;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}
.evf-foto-subir:hover {
  background: rgba(255,255,255,0.2);
  border-color: rgba(255,255,255,0.7);
}
.evf-foto-subir i { font-size: 1.25rem; }

@media (max-width: 640px) {
  .evf-overlay { align-items: center; padding: 14px; }
  .evf-wrap    { border-radius: var(--radius); max-height: 84vh; }
  .evf-card    { border-radius: var(--radius); }
}


/* ════════════════════════════════════════════════════════════════════════════
   GALERÍA — álbumes y muro de recuerdos
   ════════════════════════════════════════════════════════════════════════════ */

.lideres-topbar-logo { height: 30px; width: auto; }
.lideres-topbar-modo {
  margin-left: 12px;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(201,162,39,0.14);
  border: 1px solid rgba(201,162,39,0.3);
  color: var(--gold2);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.lideres-logout-btn:hover { border-color: var(--gold); color: var(--gold2); }

/* ── Botones de acción del líder ── */
.gal-header {
  display: flex;                     /* subir está abierto a toda la iglesia */
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 34px;
}
.gal-btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 12px 22px;
  border-radius: 999px;
  border: 1px solid rgba(11,15,46,0.16);
  background: #fff;
  color: var(--text);
  font-family: inherit;
  font-size: 0.94rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
  transition: var(--trans);
}
.gal-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 22px rgba(0,0,0,0.13); }
.gal-btn--oro {
  background: var(--gold);
  border-color: var(--gold);
  color: #fff;
}
.gal-btn--oro:hover { background: var(--gold2); border-color: var(--gold2); }

/* ── Avisos de subida ── */
.gal-avisos { display: flex; flex-direction: column; gap: 8px; margin-bottom: 18px; }
.gal-aviso {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 12px;
  font-size: 0.93rem;
  line-height: 1.45;
  background: #fff;
  border: 1px solid rgba(0,0,0,0.07);
  box-shadow: 0 4px 16px rgba(0,0,0,0.07);
  animation: fadeInUp 0.3s ease;
}
.gal-aviso i { margin-top: 2px; }
.gal-aviso--error { border-left: 3px solid #f87171; color: #b91c1c; }
.gal-aviso--error i { color: #f87171; }
.gal-aviso--info  { border-left: 3px solid var(--gold); color: var(--text); }
.gal-aviso--info i { color: var(--gold); }
.gal-aviso--out { opacity: 0; transform: translateY(-6px); transition: all 0.4s ease; }

/* ── Secciones ── */
.gal-seccion { margin-bottom: 44px; }
.gal-seccion-titulo[hidden] { display: none; }
.gal-seccion-titulo {
  font-family: 'Playfair Display', serif;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(11,15,46,0.09);
}
.gal-seccion-titulo i { color: var(--gold); font-size: 1.05rem; }

/* ── Cabecera de un álbum abierto ── */
.gal-album-head[hidden] { display: none; }   /* display:flex gana al atributo hidden */
.gal-album-head {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 28px;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(11,15,46,0.09);
}
.gal-volver {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid rgba(11,15,46,0.16);
  background: #fff;
  color: var(--text);
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--trans);
  flex-shrink: 0;
}
.gal-volver:hover { border-color: var(--gold); color: var(--gold); }
.gal-album-nombre {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.4rem, 3.4vw, 2rem);
  font-weight: 700;
  color: var(--text);
  line-height: 1.2;
}
.gal-album-meta { font-size: 0.88rem; color: var(--muted); margin-top: 4px; }

/* ── Rejilla de álbumes ── */
.gal-albumes {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 20px;
}
.gal-album {
  position: relative;
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  box-shadow: 0 4px 18px rgba(0,0,0,0.09);
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}
.gal-album:hover,
.gal-album:focus-visible {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.16);
  outline: none;
}
.gal-album-portada {
  position: relative;
  aspect-ratio: 4 / 3;
  background: linear-gradient(145deg, var(--navy), var(--blue));
  overflow: hidden;
}
.gal-album-portada img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gal-album-portada .gal-album-logo {
  width: 58%; height: 58%;
  object-fit: contain;
  margin: 21% auto;
  opacity: 0.55;
}
.gal-album-cinta {
  position: absolute;
  left: 10px; bottom: 10px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(0,0,0,0.6);
  color: #fff;
  font-size: 0.76rem;
  font-weight: 600;
  backdrop-filter: blur(3px);
}
.gal-album-body { padding: 14px 16px 18px; }
.gal-album-titulo {
  font-family: 'Playfair Display', serif;
  font-size: 1.12rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.3;
}
.gal-album-fecha {
  font-size: 0.82rem;
  color: var(--muted);
  margin-top: 5px;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* ── El muro ── */
.gal-wall { columns: 4; column-gap: 14px; }
.gal-wall--vacio { columns: 1; }

.gal-item {
  position: relative;
  break-inside: avoid;
  margin: 0 0 14px;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  background: var(--navy);
  box-shadow: 0 4px 18px rgba(0,0,0,0.10);
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}
.gal-item:hover,
.gal-item:focus-visible {
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(0,0,0,0.18);
  outline: none;
}
.gal-item img { display: block; width: 100%; height: 100%; object-fit: cover; }

/* Vídeo sin portada: el códec del móvil no dejó capturar el fotograma */
.gal-item--sinposter {
  min-height: 180px;
  background: linear-gradient(145deg, var(--navy), var(--blue));
}

/* ── Marcas del vídeo ── */
.gal-play {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 52px; height: 52px;
  border-radius: 50%;
  background: rgba(11,15,46,0.55);
  border: 2px solid rgba(255,255,255,0.85);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  padding-left: 4px;             /* centra ópticamente el triángulo */
  backdrop-filter: blur(3px);
  transition: var(--trans);
  pointer-events: none;
}
.gal-item:hover .gal-play { background: var(--gold); border-color: var(--gold2); }
.gal-dur {
  position: absolute;
  bottom: 8px; right: 8px;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(0,0,0,0.68);
  color: #fff;
  font-size: 0.76rem;
  font-weight: 600;
  pointer-events: none;
}

/* ── Botón de mover (junto a la X, solo en modo líderes) ── */
.gal-mover-btn {
  right: 40px !important;
  background: rgba(201,162,39,0.16) !important;
  border-color: rgba(201,162,39,0.4) !important;
  color: var(--gold) !important;
}
.gal-mover-btn:hover { background: var(--gold) !important; color: #fff !important; }

.gal-mover-menu {
  position: absolute;
  z-index: 12000;
  min-width: 212px;
  padding: 8px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid rgba(0,0,0,0.08);
  box-shadow: 0 16px 44px rgba(0,0,0,0.22);
  animation: fadeInUp 0.18s ease;
}
.gal-mover-titulo {
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 6px 10px 8px;
}
.gal-mover-opt {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 12px;
  border: none;
  border-radius: 9px;
  background: transparent;
  color: var(--text);
  font-family: inherit;
  font-size: 0.9rem;
  text-align: left;
  cursor: pointer;
  transition: background 0.18s;
}
.gal-mover-opt i { color: var(--gold); width: 16px; }
.gal-mover-opt:hover { background: var(--gray); }
.gal-mover-opt--actual { color: var(--muted); cursor: default; }
.gal-mover-check { margin-left: auto; color: var(--gold) !important; }

/* ── Modal de nuevo álbum ── */
.gal-modal-titulo {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  color: var(--text);
  margin-bottom: 18px;
}
.gal-modal-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 16px 0 7px;
}
.gal-modal-fecha {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid rgba(11,15,46,0.16);
  border-radius: 10px;
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--text);
  background: #fff;
}
.gal-modal-fecha:focus { outline: none; border-color: var(--gold); }

/* ── Visor a pantalla completa ── */
.gal-viewer {
  position: fixed;
  inset: 0;
  z-index: 11000;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(6,8,22,0.96);
  backdrop-filter: blur(6px);
}
.gal-viewer.abierto { display: flex; animation: fadeInUp 0.25s ease; }
.gal-viewer-stage {
  max-width: 92vw;
  max-height: 86vh;
  display: flex;
  align-items: center;
  justify-content: center;
}
.gal-viewer-media {
  max-width: 92vw;
  max-height: 86vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 10px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.6);
}
.gal-viewer-close,
.gal-viewer-nav {
  position: absolute;
  background: rgba(255,255,255,0.10);
  border: 1px solid rgba(255,255,255,0.22);
  color: #fff;
  border-radius: 50%;
  width: 46px; height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.1rem;
  transition: var(--trans);
}
.gal-viewer-close:hover,
.gal-viewer-nav:hover { background: var(--gold); border-color: var(--gold2); }
.gal-viewer-close { top: 20px; right: 20px; }
.gal-viewer-prev  { left: 20px;  top: 50%; transform: translateY(-50%); }
.gal-viewer-next  { right: 20px; top: 50%; transform: translateY(-50%); }
.gal-viewer-count {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,0.75);
  font-size: 0.86rem;
  letter-spacing: 0.06em;
}

/* ── Tablet ── */
@media (max-width: 1024px) {
  .gal-wall { columns: 3; }
  .gal-albumes { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; }
}

/* ── Móvil ── */
@media (max-width: 640px) {
  .gal-wall { columns: 2; column-gap: 10px; }
  .gal-item { margin-bottom: 10px; border-radius: 12px; }
  .gal-play { width: 42px; height: 42px; font-size: 0.85rem; }
  .gal-header { margin-bottom: 24px; gap: 10px; }
  .gal-btn { padding: 11px 18px; font-size: 0.88rem; }

  .gal-albumes { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .gal-album-body { padding: 11px 12px 14px; }
  .gal-album-titulo { font-size: 0.98rem; }
  .gal-album-head { gap: 12px; }

  .gal-viewer-close { top: 14px; right: 14px; width: 42px; height: 42px; }
  .gal-viewer-prev  { left: 10px;  width: 40px; height: 40px; }
  .gal-viewer-next  { right: 10px; width: 40px; height: 40px; }
  .gal-viewer-stage,
  .gal-viewer-media { max-width: 96vw; max-height: 80vh; }
}

/* ════════════════════════════════════════════════════════════════════════════
   ZONA DE LÍDERES — puerta, bienvenida y estado del panel
   ════════════════════════════════════════════════════════════════════════════ */

/* Una clase con display:flex gana al atributo hidden */
.lid-puerta[hidden],
.lid-bienvenida[hidden] { display: none; }

/* ── Puerta ── */
.lid-puerta {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 20px;
  background:
    radial-gradient(1100px 520px at 50% -10%, rgba(26,35,126,0.55), transparent 70%),
    var(--navy);
}
.lid-puerta-caja {
  width: 100%;
  max-width: 430px;
  text-align: center;
  padding: 44px 34px 34px;
  border-radius: 20px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.09);
  box-shadow: 0 30px 80px rgba(0,0,0,0.45);
  animation: fadeInUp 0.5s ease;
}
.lid-puerta-logo { height: 68px; width: auto; margin-bottom: 22px; }
.lid-puerta-titulo {
  font-family: 'Playfair Display', serif;
  font-size: 1.85rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 10px;
}
.lid-puerta-sub {
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.6;
  margin-bottom: 28px;
}

.lid-google-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 14px 20px;
  border-radius: 12px;
  border: none;
  background: #fff;
  color: #3c4043;
  font-family: inherit;
  font-size: 0.97rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(0,0,0,0.3);
  transition: var(--trans);
}
.lid-google-btn:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(0,0,0,0.4); }
.lid-google-btn svg { flex-shrink: 0; }

.lid-puerta-error {
  display: none;
  margin-top: 20px;
  padding: 13px 16px;
  border-radius: 11px;
  background: rgba(248,113,113,0.12);
  border: 1px solid rgba(248,113,113,0.32);
  color: #fca5a5;
  font-size: 0.89rem;
  line-height: 1.55;
  text-align: left;
}
.lid-puerta-aviso {
  margin-top: 18px;
  color: rgba(255,255,255,0.38);
  font-size: 0.8rem;
  line-height: 1.5;
}
.lid-puerta-volver {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 26px;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.87rem;
  transition: var(--trans);
}
.lid-puerta-volver:hover { color: var(--gold); }

/* ── Bienvenida ── */
.lid-bienvenida {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 20px;
  background:
    radial-gradient(900px 480px at 50% 0%, rgba(201,162,39,0.14), transparent 70%),
    var(--navy);
}
.lid-bienvenida-caja { text-align: center; animation: fadeInUp 0.55s ease; }
.lid-avatar {
  width: 92px; height: 92px;
  margin: 0 auto 22px;
  border-radius: 50%;
  overflow: hidden;
  background: linear-gradient(145deg, var(--blue), var(--navy2));
  border: 2px solid rgba(201,162,39,0.5);
  color: var(--gold2);
  font-size: 1.9rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 12px 34px rgba(0,0,0,0.4);
}
.lid-avatar img { width: 100%; height: 100%; object-fit: cover; }
.lid-bienvenida-titulo {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.6rem, 5vw, 2.3rem);
  font-weight: 700;
  color: var(--white);
  margin-bottom: 10px;
}
.lid-bienvenida-sub { color: var(--muted); font-size: 0.98rem; }
.lid-cargando { display: flex; justify-content: center; gap: 7px; margin-top: 30px; }
.lid-cargando span {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--gold);
  opacity: 0.35;
  animation: lidPulso 1.2s ease-in-out infinite;
}
.lid-cargando span:nth-child(2) { animation-delay: 0.16s; }
.lid-cargando span:nth-child(3) { animation-delay: 0.32s; }
@keyframes lidPulso {
  0%, 100% { opacity: 0.25; transform: scale(0.85); }
  50%      { opacity: 1;    transform: scale(1.15); }
}

/* ── Estado del panel ── */
.lid-estado { display: flex; flex-direction: column; gap: 12px; }
.lid-estado-fila {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 18px;
  border-radius: var(--radius);
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
}
.lid-estado-fila i { margin-top: 3px; font-size: 1rem; }
.lid-estado-fila--ok i        { color: #4ade80; }
.lid-estado-fila--aviso i     { color: var(--gold2); }
.lid-estado-fila--error i     { color: #f87171; }
.lid-estado-fila--pendiente i { color: var(--muted); }
.lid-estado-titulo { color: var(--white); font-weight: 600; font-size: 0.95rem; margin-bottom: 4px; }
.lid-estado-desc   { color: var(--muted); font-size: 0.87rem; line-height: 1.55; }

/* Las tarjetas del panel, que estaban sin usar */
.lideres-card:hover {
  background: rgba(255,255,255,0.07);
  border-color: rgba(201,162,39,0.35);
  transform: translateY(-3px);
}

@media (max-width: 640px) {
  .lid-puerta-caja { padding: 34px 22px 26px; }
  .lid-puerta-logo { height: 56px; }
  .lid-avatar { width: 78px; height: 78px; }
}

/* Enlace al panel dentro del globo de sesión del botón "Líderes" */
.lider-popover-panel {
  display: flex; align-items: center; gap: 6px;
  padding: 6px 10px;
  border: 1px solid rgba(201,162,39,0.35);
  border-radius: 6px;
  color: var(--gold2);
  font-size: 0.82rem;
  text-decoration: none;
  transition: background 0.18s;
}
.lider-popover-panel:hover { background: rgba(201,162,39,0.12); }

/* ── Panel de líderes: horarios y moderación ── */
.lid-vacio {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  padding: 18px 20px;
  border-radius: var(--radius);
  background: rgba(255,255,255,0.03);
  border: 1px dashed rgba(255,255,255,0.14);
  color: var(--muted);
  font-size: 0.89rem;
  line-height: 1.6;
}
.lid-vacio i { color: var(--gold); opacity: 0.6; margin-top: 3px; }
.lid-cargando-txt { color: var(--muted); font-size: 0.88rem; padding: 6px 2px; }
.lid-conteo {
  color: var(--muted);
  font-size: 0.82rem;
  margin-bottom: 12px;
  letter-spacing: 0.02em;
}

/* Horarios */
.lid-horarios { display: flex; flex-direction: column; gap: 12px; margin-bottom: 48px; }
.lid-horario {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-radius: var(--radius);
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  flex-wrap: wrap;
}
.lid-horario-campos { display: flex; gap: 10px; flex: 1; min-width: 260px; flex-wrap: wrap; }
.lid-input {
  padding: 10px 13px;
  border-radius: 9px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(0,0,0,0.25);
  color: var(--white);
  font-family: inherit;
  font-size: 0.9rem;
  min-width: 0;
}
.lid-input:focus { outline: none; border-color: var(--gold); }
.lid-input--dia    { flex: 0 0 120px; }
.lid-input--nombre { flex: 1 1 180px; }
.lid-input--hora   { flex: 0 0 170px; }

.lid-guardar {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 10px 17px;
  border-radius: 9px;
  border: 1px solid rgba(201,162,39,0.4);
  background: rgba(201,162,39,0.14);
  color: var(--gold2);
  font-family: inherit;
  font-size: 0.86rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--trans);
}
.lid-guardar:hover:not(:disabled) { background: var(--gold); color: #fff; border-color: var(--gold); }
.lid-guardar:disabled { opacity: 0.32; cursor: default; }
.lid-guardado { color: #4ade80; font-size: 0.83rem; display: flex; align-items: center; gap: 6px; }
.lid-guardado[hidden] { display: none; }

/* Peticiones */
.lid-peticiones { display: flex; flex-direction: column; gap: 10px; margin-bottom: 48px; }
.lid-peticion {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 15px 17px;
  border-radius: var(--radius);
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
}
.lid-peticion-txt { flex: 1; min-width: 0; }
.lid-peticion-cab {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 0.81rem;
  margin-bottom: 6px;
}
.lid-peticion-cab strong { color: var(--white); font-size: 0.92rem; font-weight: 600; }
.lid-peticion-oraciones {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--gold);
  font-size: 0.79rem;
}
.lid-peticion-msg { color: #d8dce6; font-size: 0.92rem; line-height: 1.55; word-break: break-word; }
.lid-retirar {
  flex-shrink: 0;
  width: 32px; height: 32px;
  border-radius: 50%;
  background: rgba(248,113,113,0.13);
  border: 1px solid rgba(248,113,113,0.32);
  color: #f87171;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--trans);
}
.lid-retirar:hover { background: #f87171; color: #fff; }

@media (max-width: 640px) {
  .lid-horario { gap: 10px; }
  .lid-horario-campos { min-width: 100%; }
  .lid-input--dia, .lid-input--hora { flex: 1 1 100%; }
}

/* Foto de evento subiendo al almacén */
.evf-subiendo { position: relative; }
.evf-subiendo::after {
  content: 'Subiendo…';
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(11,15,46,0.55);
  color: #fff;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  backdrop-filter: blur(2px);
}

/* El botón de crear álbum es solo para líderes. Va aquí, al final, porque
   `.gal-btn { display: inline-flex }` gana al `.lider-create-wrap { display: none }`
   que está más arriba en este archivo. */
.gal-btn.lider-create-wrap { display: none; }
body.lider-mode .gal-btn.lider-create-wrap { display: inline-flex; }

/* ── Quién está dentro (sustituye al botón "Líderes" con la sesión abierta) ── */
.usuario-sesion {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 5px 6px 5px 5px;
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(201,162,39,0.35);
}
.usuario-foto {
  width: 30px; height: 30px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  background: linear-gradient(145deg, var(--blue), var(--navy2));
  color: var(--gold2);
  font-size: 0.8rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}
.usuario-foto img { width: 100%; height: 100%; object-fit: cover; display: block; }
.usuario-nombre {
  color: var(--white);
  font-size: 0.88rem;
  font-weight: 600;
  max-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.usuario-salir {
  width: 28px; height: 28px;
  border-radius: 50%;
  border: none;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  transition: var(--trans);
}
.usuario-salir:hover { background: rgba(248,113,113,0.18); color: #f87171; }

/* En el pie, sobre fondo oscuro, el mismo bloque pero más discreto */
.footer .usuario-sesion { background: rgba(255,255,255,0.05); }

/* ════════════════════════════════════════════════════════════════════════════
   EDITAR LOS HORARIOS EN LA PORTADA (solo líderes)
   ════════════════════════════════════════════════════════════════════════════ */

.hor-barra {
  display: none;                       /* solo con la sesión de líder abierta */
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 22px;
}
body.lider-mode .hor-barra { display: flex; }

.hor-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 999px;
  border: 1px solid rgba(11,15,46,0.16);
  background: #fff;
  color: var(--text);
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0,0,0,0.08);
  transition: var(--trans);
}
.hor-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(0,0,0,0.12); }
.hor-btn:disabled { opacity: 0.5; cursor: default; transform: none; }
.hor-btn--editar i { color: var(--gold); }
.hor-btn--guardar {
  background: var(--gold);
  border-color: var(--gold);
  color: #fff;
}
.hor-btn--guardar:hover { background: var(--gold2); border-color: var(--gold2); }
.hor-btn--cancelar { color: var(--muted); }
.hor-pista {
  font-size: 0.8rem;
  color: var(--muted);
  flex-basis: 100%;
  text-align: center;
}
.hor-aviso {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #16a34a;
  font-size: 0.85rem;
  font-weight: 600;
}

/* Lo que se puede tocar y escribir encima */
.hor-editable {
  outline: 2px dashed rgba(201,162,39,0.55);
  outline-offset: 4px;
  border-radius: 6px;
  cursor: text;
  transition: outline-color 0.2s, background 0.2s;
}
.hor-editable:hover  { outline-color: var(--gold); background: rgba(201,162,39,0.06); }
.hor-editable:focus  { outline: 2px solid var(--gold); background: rgba(201,162,39,0.10); }

.hor-editable-icono {
  cursor: pointer;
  border-radius: 10px;
  outline: 2px dashed rgba(201,162,39,0.55);
  outline-offset: 6px;
  transition: var(--trans);
}
.hor-editable-icono:hover { outline-color: var(--gold); transform: scale(1.06); }

/* Los dos relojes */
.schedule-time .hor-hora {
  border: 1px solid rgba(11,15,46,0.2);
  border-radius: 8px;
  padding: 5px 8px;
  font-family: inherit;
  font-size: 0.85rem;
  color: var(--text);
  background: #fff;
  max-width: 116px;
}
.schedule-card.featured .hor-hora { color: var(--text); }
.schedule-time .hor-hora:focus { outline: none; border-color: var(--gold); }
.hor-guion { margin: 0 6px; color: var(--muted); }

/* El selector de iconos */
.hor-iconos {
  position: absolute;
  z-index: 12000;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  padding: 10px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid rgba(0,0,0,0.08);
  box-shadow: 0 16px 44px rgba(0,0,0,0.22);
  animation: fadeInUp 0.18s ease;
}
.hor-icono {
  width: 42px; height: 42px;
  border-radius: 10px;
  border: 1px solid transparent;
  background: var(--gray);
  color: var(--navy);
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--trans);
}
.hor-icono:hover { background: var(--gold); color: #fff; }
.hor-icono--actual { border-color: var(--gold); color: var(--gold); }

@media (max-width: 640px) {
  .hor-btn { padding: 9px 16px; font-size: 0.83rem; }
  .schedule-time .hor-hora { max-width: 96px; font-size: 0.8rem; }
}

/* En edición, la píldora de la hora se abre para que los dos relojes quepan en línea */
body.horarios-editando .schedule-time {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: nowrap;
  gap: 2px;
  background: transparent;
  padding: 0;
  max-width: none;
  width: 100%;
}
body.horarios-editando .schedule-time .hor-hora { flex: 1 1 0; min-width: 0; max-width: 108px; }
