/* styles.css — VISITACIÓN DE DIOS · Ministerio Shekinah (tema oscuro) */
:root {
  color-scheme: dark;
  --bg: #061832;
  --panel: #102d4f;
  --panel2: #103354;
  --line: rgba(155,211,245,.22);
  --ink: #f0f8ff;
  --muted: #b5cadd;
  --cyan: #7cdaff;
  --blue: #058fd2;
  --gold: #d4af37;
  --gold2: #e8c86a;
  --radius: 22px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  background: radial-gradient(ellipse at 80% 0%, #0d4173 0%, transparent 45%), var(--bg);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
img { max-width: 100%; display: block; }
[hidden] { display: none !important; }

/* ===== Header ===== */
.site-header {
  width: min(1160px, 100%);
  margin: auto;
  padding: 16px clamp(18px, 4vw, 36px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.identity { display: flex; align-items: center; gap: 10px; text-decoration: none; color: #ffd98a; font-size: .8rem; font-weight: 900; letter-spacing: .08em; line-height: 1.1; white-space: nowrap; }
.identity img { width: 40px; height: 40px; object-fit: contain; border-radius: 7px; background: #fff; padding: 2px; }
.identity .id-name { display: flex; flex-direction: column; }
.identity .id-name b { color: #fff; font-size: .95rem; letter-spacing: .03em; }
.identity .id-name span { color: var(--gold2); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; }
.site-header nav { display: flex; gap: clamp(12px, 2.5vw, 28px); align-items: center; flex-wrap: wrap; justify-content: flex-end; }
.site-header nav a { text-decoration: none; color: #c9e5f6; font-weight: 700; font-size: .89rem; }
.site-header nav a:hover, .site-header nav a.active { color: #fff; }
.site-header nav a.nav-adoradores {
  background: linear-gradient(180deg, var(--gold2), var(--gold));
  color: #12304f;
  padding: 9px 16px;
  border-radius: 999px;
  font-weight: 900;
  letter-spacing: .02em;
}
.site-header nav a.nav-adoradores:hover { color: #081d33; filter: brightness(1.06); }

/* ===== Hero ===== */
.hero {
  position: relative;
  width: min(1160px, calc(100% - 32px));
  margin: 5px auto 0;
  min-height: 480px;
  border: 1px solid #326086;
  border-radius: 27px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  background: linear-gradient(150deg, #0a355b, #082442);
}
.hero-art {
  position: absolute; inset: 0;
  background: url('assets/pastores.png') center 30% / cover no-repeat;
  opacity: .32;
}
.hero:after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(2,20,45,.92) 0%, rgba(3,27,57,.7) 44%, rgba(2,22,47,.1) 100%),
              linear-gradient(0deg, rgba(2,17,40,.78), transparent 70%);
}
.hero-content { z-index: 1; position: relative; padding: clamp(24px, 5vw, 62px); width: min(750px, 100%); }
.eyebrow { display: block; color: var(--gold2); font-size: .77rem; font-weight: 850; letter-spacing: .17em; text-transform: uppercase; }
.hero h1 { font-size: clamp(2.3rem, 5.7vw, 4.1rem); line-height: 1.05; letter-spacing: -.04em; margin: 14px 0; }
.hero h1 .gold { color: var(--gold2); }
.hero p { font-size: 1.14rem; color: #d7eafd; margin: 0 0 27px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 11px; }

/* ===== En vivo / Próxima transmisión ===== */
.live-banner-wrap { width: min(1160px, calc(100% - 32px)); margin: 20px auto 0; }
.live-card { border: 1px solid rgba(255,107,107,.4); border-radius: var(--radius); background: linear-gradient(180deg, #3a1020, #0c2c4d); padding: clamp(20px, 3.5vw, 34px); }
.live-head { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; flex-wrap: wrap; }
.live-dot { width: 15px; height: 15px; border-radius: 50%; background: #ff4d4d; animation: livePulse 1.6s infinite; }
@keyframes livePulse { 0% { box-shadow: 0 0 0 0 rgba(255,77,77,.55); } 70% { box-shadow: 0 0 0 14px rgba(255,77,77,0); } 100% { box-shadow: 0 0 0 0 rgba(255,77,77,0); } }
.live-badge { background: #e11; color: #fff; font-weight: 900; font-size: 1rem; letter-spacing: .08em; padding: 7px 16px; border-radius: 8px; }
.live-title { font-weight: 800; font-size: 1.45rem; color: #fff; }
.live-player { position: relative; width: 100%; aspect-ratio: 16 / 9; background: #000; border-radius: 16px; overflow: hidden; border: 1px solid #5482a2; }
.live-player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.live-player.no-live { display: flex; align-items: center; justify-content: center; }
.live-player.no-live::before { content: ''; position: absolute; inset: 0; background: url('assets/logo.jfif') center / contain no-repeat; opacity: .22; }
.live-player.no-live .live-msg { position: relative; z-index: 1; text-align: center; padding: 0 24px; }
.live-player.no-live .live-msg strong { font-size: 1.7rem; color: #fff; font-weight: 800; text-shadow: 0 2px 10px rgba(0,0,0,.7); }
.next-live { display: flex; align-items: center; gap: 18px; border: 1px solid var(--line); border-radius: 18px; background: #0b2949; padding: 24px 26px; }
.next-live .icon { font-size: 2.2rem; }
.next-live .txt { line-height: 1.35; }
.next-live .lbl { display: block; color: var(--muted); font-size: .85rem; text-transform: uppercase; letter-spacing: .08em; }
.next-live strong { font-size: 1.6rem; color: var(--gold2); }

/* ===== Botones ===== */
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 47px; border-radius: 12px; padding: 11px 19px; text-decoration: none; font-weight: 800; cursor: pointer;
}
.button-primary { background: var(--blue); color: #fff; box-shadow: 0 8px 20px #001b3990; border: none; }
.button-secondary { border: 1px solid #8ed6ff; background: #10385cba; color: #eaf8ff; }
.button-gold { background: var(--gold); color: #221a05; box-shadow: 0 8px 20px rgba(212,175,55,.3); border: none; }
.button:hover { filter: brightness(1.13); }

/* ===== Info grid (cultos + ubicación) ===== */
.info-grid, .news-section, .quick-links, .pastors-story, .facebook-section {
  width: min(1160px, calc(100% - 32px));
  margin: 24px auto 0;
}
.info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.info-card {
  min-height: 275px; border: 1px solid var(--line); border-radius: var(--radius);
  background: linear-gradient(145deg, #123c65, #0b2a4c); padding: clamp(22px, 3vw, 34px);
}
.info-card h2, .news-heading h2 { font-size: clamp(1.55rem, 3vw, 2.05rem); line-height: 1.2; margin: 10px 0 24px; letter-spacing: -.025em; }
.day-list { display: grid; gap: 11px; }
.day-list div {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 13px 16px; background: #071e3e; border: 1px solid #2e5475; border-radius: 11px;
}
.day-list strong { font-size: 1.06rem; }
.day-list span { color: var(--muted); font-size: .89rem; }
.address-block { margin-top: 21px; padding-top: 20px; border-top: 1px solid var(--line); }
.address-block .eyebrow { font-size: .7rem; }
.address-block address { margin: 7px 0 9px; font-style: normal; font-weight: 800; font-size: 1.04rem; line-height: 1.35; }
.address-block a { color: #92dfff; font-weight: 800; text-underline-offset: 3px; }

/* ===== Novedades ===== */
.news-section { padding: 28px 0 0; }
.news-heading p { margin: -6px 0 21px; color: var(--muted); }
.news-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 13px; }
.news-empty {
  grid-column: 1 / -1; display: flex; gap: 16px; align-items: center; min-height: 110px;
  border: 1px solid var(--line); border-radius: 18px; background: #0b2949; padding: 20px; color: #c3dcf0;
}
.news-empty span { font-size: 2rem; color: var(--cyan); }
.news-empty p { margin: 0; }
.news-card { border: 1px solid var(--line); border-radius: 18px; background: #0b2949; padding: 18px 20px; display: flex; flex-direction: column; gap: 7px; }
.news-card time { color: var(--gold2); font-size: .78rem; font-weight: 800; letter-spacing: .03em; }
.news-card strong { font-size: 1.05rem; color: #fff; }
.news-card p { margin: 0; color: var(--muted); font-size: .92rem; }

/* ===== Quick links ===== */
.quick-links {
  display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 24px;
  padding: 30px 34px; border: 1px solid #3b7ca6; border-radius: var(--radius);
  background: linear-gradient(110deg, #094779, #087bb1);
}
.quick-links h2 { margin: 6px 0; font-size: 1.6rem; }
.quick-links p { margin: 0; color: #d6f0fd; }
.quick-links .button-primary { white-space: nowrap; background: #e1f6ff; color: #063e65; }

/* ===== Pastores ===== */
.pastors-story { display: grid; grid-template-columns: .75fr 1.25fr; gap: 24px; align-items: center; border: 1px solid var(--line); border-radius: var(--radius); background: #0c2c4d; padding: clamp(22px, 3vw, 34px); }
.pastors-story h2 { font-size: clamp(1.55rem, 3vw, 2.05rem); margin: 10px 0 18px; }
.pastors-story p { color: var(--muted); }
.pastors-photo { margin: 0; position: relative; overflow: hidden; border-radius: 14px; }
.pastors-photo img { display: block; width: 100%; height: auto; }
.pastors-photo figcaption {
  position: absolute; bottom: 0; left: 0; right: 0; padding: 24px 12px 12px;
  background: linear-gradient(transparent, #061832df); font-weight: 800;
}

/* ===== Facebook ===== */
.facebook-section { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: center; border: 1px solid var(--line); border-radius: var(--radius); background: #0c2c4d; padding: clamp(22px, 3vw, 34px); }
.facebook-section h2 { font-size: clamp(1.55rem, 3vw, 2.05rem); margin: 10px 0 18px; }
.facebook-section p { color: var(--muted); }
.facebook-section .button { margin-top: 12px; }
.facebook-visual { position: relative; display: block; overflow: hidden; border-radius: 16px; text-decoration: none; border: 1px solid #5482a2; justify-self: center; width: 100%; max-width: 420px; }
.facebook-visual img { display: block; width: 100%; height: auto; }
.facebook-visual span {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 45px 20px 18px;
  background: linear-gradient(transparent, #051c35); font-weight: 800; font-size: 1.1rem;
}

/* ===== Testimonios (video) ===== */
.video-section { display: grid; grid-template-columns: 1fr 1.1fr; gap: 26px; align-items: center; border: 1px solid var(--line); border-radius: var(--radius); background: #0c2c4d; padding: clamp(22px, 3vw, 34px); }
.video-section h2 { font-size: clamp(1.55rem, 3vw, 2.05rem); margin: 10px 0 14px; }
.video-section p { color: var(--muted); margin: 0 0 10px; }
.video-quote { color: var(--gold2) !important; font-size: 1.22rem; font-weight: 800; line-height: 1.3; }
.video-credits { font-size: .92rem; line-height: 1.6; }
.video-player { position: relative; width: 100%; max-width: 380px; margin: 0 auto; }
.video-player video { display: block; width: 100%; aspect-ratio: 9 / 16; object-fit: contain; background: #000; border-radius: 16px; }
.video-sound-btn { position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); border: none; cursor: pointer; font-family: inherit; color: #12304f; background: linear-gradient(180deg, var(--gold2), var(--gold)); padding: 9px 16px; border-radius: 999px; font-weight: 800; font-size: .85rem; white-space: nowrap; box-shadow: 0 4px 14px rgba(0,0,0,.45); }

/* ===== Footer ===== */
footer {
  width: min(1160px, 100%); margin: 50px auto 0; padding: 25px 28px 42px;
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap; border-top: 1px solid var(--line); color: #93bed8; font-size: .85rem;
}
footer img { width: 34px; height: 34px; object-fit: contain; border-radius: 6px; background: #fff; padding: 2px; }
.footer-brand { display: flex; align-items: center; gap: 10px; line-height: 1.2; }
.footer-brand b { color: #fff; display: block; }
.footer-mid { margin: 0 auto; color: #95bbd0; font-size: .78rem; text-align: center; }
.panel-btn { border: none; cursor: pointer; font-family: inherit; color: #12304f; background: linear-gradient(180deg, var(--gold2), var(--gold)); padding: 7px 13px; border-radius: 999px; font-weight: 800; font-size: .8rem; white-space: nowrap; }
.panel-btn:hover { filter: brightness(1.07); color: #081d33; }

/* ===== Cancionero ===== */
.lyrics-app { width: min(870px, calc(100% - 32px)); margin: 12px auto 60px; }
.lyrics-heading { padding: 24px 0 21px; }
.lyrics-heading h1 { font-size: clamp(2.3rem, 6vw, 3.5rem); margin: 6px 0 0; line-height: 1.1; }
.lyrics-heading p { color: var(--muted); margin: 7px 0 0; }
.lyrics-heading .button { margin-top: 16px; }
.search-label { display: block; font-weight: 800; margin: 4px 0 9px; }
#songSearch {
  width: 100%; min-height: 56px; background: #e9f5fd; border: 2px solid #7ac9ec; border-radius: 13px;
  padding: 12px 17px; font: inherit; color: #16354f; outline: none;
}
#songSearch:focus { box-shadow: 0 0 0 4px #39a9e041; }
.alphabet-heading, .results-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.alphabet-heading { margin: 22px 0 10px; }
.alphabet-heading strong { font-weight: 800; }
.alphabet-heading button { background: none; border: 0; color: var(--cyan); font: 700 .86rem inherit; cursor: pointer; }
.alphabet { display: flex; flex-wrap: wrap; gap: 8px; }
.alphabet button {
  min-width: 42px; height: 42px; border-radius: 10px; border: 1px solid #567f9d;
  background: #10395d; color: #e9f7ff; font: 800 .9rem inherit; cursor: pointer;
}
.alphabet button.active { background: var(--blue); border-color: #8adfff; }
.results-head { margin: 27px 0 12px; }
.results-head h2 { font-size: 1.13rem; margin: 0; }
.results-head span { color: var(--muted); font-size: .88rem; }
.lyrics-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
.lyric-card {
  display: flex; align-items: center; justify-content: space-between; gap: 10px; text-decoration: none;
  min-height: 66px; border: 1px solid var(--line); border-radius: 13px; padding: 12px 17px; background: #103354;
}
.lyric-card:hover { border-color: #77cbed; background: #154266; }
.lyric-card strong { font-size: 1rem; line-height: 1.25; }
.lyric-card .arrow { color: #80d6ff; font-size: 1.3rem; }
.lyric-card .badge { font-size: .68rem; font-weight: 800; color: var(--gold2); border: 1px solid var(--gold); padding: 2px 8px; border-radius: 12px; }
.no-results { padding: 20px; border: 1px dashed var(--line); border-radius: 13px; color: var(--muted); }

/* Detalle */
.back-link { border: 0; background: none; color: #9cddff; font: 800 .95rem inherit; padding: 8px 0 17px; cursor: pointer; }
.lyric-paper { border: 1px solid #456581; border-radius: 20px; background: #15334f; padding: clamp(22px, 4.7vw, 42px); min-height: 50vh; }
.lyric-paper h2 { font-size: clamp(1.7rem, 4vw, 2.6rem); border-bottom: 1px solid #4b718d; padding-bottom: 15px; margin: 8px 0 22px; }
.chord-strip { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 0 0 20px; }
.tono-pill { background: #0e4a7a; color: #cfeaff; font-weight: 700; padding: 5px 13px; border-radius: 8px; font-size: .85rem; }
.chord-pill { background: #071e3e; color: var(--gold2); font-weight: 800; padding: 5px 13px; border-radius: 8px; font-size: .92rem; border: 1px solid #2e5475; }
.lyric-text { white-space: pre-wrap; overflow-wrap: anywhere; font-size: clamp(1.05rem, 2.4vw, 1.2rem); line-height: 1.65; color: #eef8ff; }

/* Login */
.login-wrap { width: min(430px, calc(100% - 32px)); margin: 30px auto; }
.login-card { max-width: 430px; margin: 0 auto; border: 1px solid var(--line); border-radius: var(--radius); background: #102d4f; padding: 28px; }
.login-card h2 { margin: 0 0 4px; }
.login-card p { color: var(--muted); margin: 0 0 18px; font-size: .9rem; }
.field { margin-bottom: 14px; }
.field label { display: block; font-weight: 700; margin-bottom: 6px; font-size: .9rem; }
.field input {
  width: 100%; padding: 12px; border: 1.5px solid #7ac9ec; border-radius: 10px; font-size: 1rem;
  background: #e9f5fd; color: #16354f;
}
.field input:focus { outline: none; box-shadow: 0 0 0 4px #39a9e041; }
.error { background: #613547; border: 1px solid #d58792; color: #fff; padding: 11px 13px; border-radius: 9px; font-size: .88rem; margin-bottom: 14px; }
code { background: rgba(255,255,255,.1); padding: 1px 6px; border-radius: 5px; }

/* ===== Afinador ===== */
.tuner-app { width: min(720px, calc(100% - 32px)); margin: 20px auto 60px; text-align: center; }
.tuner-card { border: 1px solid var(--line); border-radius: var(--radius); background: #0c2c4d; padding: clamp(22px, 4vw, 40px); }
.tuner-settings { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-bottom: 22px; }
.tuner-settings label { display: flex; flex-direction: column; gap: 6px; font-weight: 700; font-size: .85rem; text-align: left; }
.tuner-settings select {
  min-height: 44px; padding: 8px 12px; border-radius: 10px; border: 1px solid #7ac9ec;
  background: #e9f5fd; color: #16354f; font: inherit; font-weight: 600;
}
.tuner-note { font-size: clamp(4rem, 18vw, 7rem); font-weight: 900; line-height: 1; letter-spacing: -.02em; color: #fff; }
.tuner-freq { color: var(--muted); margin: 6px 0 4px; }
.tuner-status { color: var(--cyan); font-weight: 700; min-height: 1.4em; }
.tuner-meter { position: relative; height: 46px; margin: 26px auto 8px; max-width: 480px; }
.tuner-meter .track { position: absolute; inset: 0; border-radius: 23px; background: linear-gradient(90deg, #e25a5a, #f4c14a 50%, #3fbf6f); opacity: .28; }
.tuner-meter .sweet { position: absolute; left: 50%; top: -6px; bottom: -6px; width: 6px; background: #fff; border-radius: 3px; transform: translateX(-50%); }
.tuner-meter .needle { position: absolute; top: -8px; bottom: -8px; width: 5px; background: var(--gold2); border-radius: 3px; left: 50%; transition: left .08s linear; box-shadow: 0 0 12px var(--gold); }
.tuner-cents { font-size: 1.2rem; font-weight: 800; color: var(--gold2); margin-top: 14px; }
.tuner-hint { color: var(--muted); font-size: .85rem; margin-top: 18px; }

/* responsive */
@media (max-width: 800px) {
  .info-grid { grid-template-columns: 1fr; }
  .news-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pastors-story, .facebook-section, .video-section { grid-template-columns: 1fr; }
  .lyrics-list { grid-template-columns: 1fr; }
}
@media (max-width: 580px) {
  .site-header { padding: 10px 16px; flex-wrap: wrap; }
  .site-header nav { justify-content: flex-start; gap: 10px; }
  .site-header nav a { font-size: .78rem; }
  .hero { min-height: 440px; }
  .hero h1 { font-size: clamp(2.1rem, 9vw, 3rem); }
  .quick-links { display: block; padding: 25px; }
  .quick-links .button { margin-top: 20px; }
  .news-list { grid-template-columns: 1fr; }
  .preaching-photos { grid-template-columns: 1fr; }
  footer { flex-wrap: wrap; }
  .footer-admin { width: 100%; margin-left: 44px; }
}

/* ===== Tarjeta de ubicación / Maps (réplica de la referencia) ===== */
.schedule-intro { color: var(--muted); margin: -6px 0 21px; }
.location-heading h2 { margin-bottom: 18px; }
.map-photo {
  position: relative; display: flex; align-items: center; justify-content: center; overflow: hidden;
  border-radius: 16px; border: 1px solid #5482a2; text-decoration: none; min-height: 215px;
  background: linear-gradient(150deg, #0e4a7a, #0a2c4d);
}
.map-photo img { width: 100%; height: 230px; object-fit: cover; filter: brightness(.78); }
.map-photo .pin {
  font-size: 3.4rem; line-height: 1; text-shadow: 0 4px 18px rgba(0,0,0,.5);
}
.map-photo-badge {
  position: absolute; left: 14px; bottom: 14px; background: rgba(4,20,40,.88); border: 1px solid #7ac9ec;
  color: #cfeaff; font-weight: 800; font-size: .82rem; padding: 7px 13px; border-radius: 9px;
}
.location-footer {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line);
}
.location-place { display: flex; align-items: center; gap: 11px; }
.location-dot { width: 11px; height: 11px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 4px rgba(212,175,55,.2); flex: none; }
.location-place address { font-style: normal; line-height: 1.3; margin: 0; }
.location-place address strong { display: block; font-size: 1.02rem; }
.location-place address span { color: var(--muted); font-size: .9rem; }
.location-link { color: #92dfff; font-weight: 800; text-decoration: none; white-space: nowrap; text-underline-offset: 3px; }
.location-link:hover { text-decoration: underline; }
.facebook-heading h2 { margin-bottom: 14px; }
.footer-credit { font-size: .78rem; color: #7fa7bf; }
