/* ========================================================
   ESTILOS PREMIUM - IGLESIA DEL MONTE (LOGROÑO)
   ======================================================== */

:root {
  --bg-main: #060a17;
  --bg-card: rgba(15, 23, 42, 0.85);
  --bg-card-border: rgba(234, 179, 8, 0.25);
  --gold-primary: #facc15;
  --gold-secondary: #ca8a04;
  --gold-glow: rgba(250, 204, 21, 0.35);
  --accent-blue: #0284c7;
  --blue-glow: rgba(56, 189, 248, 0.3);
  --text-primary: #f8fafc;
  --text-muted: #94a3b8;
  --red-live: #ef4444;
  --radius-card: 18px;
  --radius-btn: 9999px;
  --safe-bottom: env(safe-area-inset-bottom, 16px);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}

body {
  background-color: var(--bg-main);
  background-image: 
    radial-gradient(circle at 50% 0%, rgba(2, 132, 199, 0.25) 0%, transparent 60%),
    radial-gradient(circle at 100% 50%, rgba(202, 138, 4, 0.15) 0%, transparent 45%),
    linear-gradient(180deg, #070d1e 0%, #030611 100%);
  background-attachment: fixed;
  color: var(--text-primary);
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  min-height: 100vh;
  padding-bottom: calc(85px + var(--safe-bottom));
  overflow-x: hidden;
}

/* ==========================================
   1. INTRO / SPLASH SCREEN
   ========================================== */
#app-splash {
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at 50% 40%, #0d1b3e 0%, #030611 90%);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}

#app-splash.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.splash-logo-wrap {
  position: relative;
  width: 140px;
  height: 140px;
  margin-bottom: 24px;
}

.splash-halo {
  position: absolute;
  inset: -12px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--gold-glow) 0%, transparent 70%);
  animation: pulseHalo 2.5s infinite alternate ease-in-out;
}

.splash-logo {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 3.5px solid var(--gold-primary);
  box-shadow: 0 0 35px rgba(250, 204, 21, 0.5);
  object-fit: cover;
  animation: zoomLogo 1s ease-out;
}

.splash-title {
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  color: var(--text-primary);
  text-align: center;
  margin-bottom: 4px;
  text-shadow: 0 2px 10px rgba(0,0,0,0.8);
}

.splash-subtitle {
  font-size: 0.9rem;
  color: var(--gold-primary);
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 24px;
  text-align: center;
}

.splash-verse {
  max-width: 320px;
  font-size: 0.85rem;
  color: #cbd5e1;
  font-style: italic;
  line-height: 1.5;
  text-align: center;
  border-left: 3px solid var(--gold-primary);
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 0 12px 12px 0;
}

@keyframes pulseHalo {
  0% { transform: scale(0.95); opacity: 0.5; }
  100% { transform: scale(1.15); opacity: 0.9; }
}

@keyframes zoomLogo {
  0% { transform: scale(0.8); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

/* ==========================================
   2. CABECERA PRINCIPAL (HEADER)
   ========================================== */
.app-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(6, 10, 23, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 0 14px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.header-brand {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.header-brand-link {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: inherit;
}

.header-logo {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 2px solid var(--gold-primary);
  box-shadow: 0 0 10px rgba(250, 204, 21, 0.4);
  object-fit: cover;
  flex-shrink: 0;
}

.header-title-box h1 {
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1.1;
  color: #fff;
  white-space: nowrap;
}

.header-title-box p {
  font-size: 0.70rem;
  color: var(--gold-primary);
  font-weight: 700;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

.btn-download-apk-header {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, rgba(234, 179, 8, 0.22) 0%, rgba(202, 138, 4, 0.35) 100%);
  border: 1px solid rgba(250, 204, 21, 0.5);
  color: #fde047;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 6px 12px;
  border-radius: 999px;
  text-decoration: none;
  transition: all 0.2s ease;
  flex-shrink: 0;
  white-space: nowrap;
}

.btn-download-apk-header:active,
.btn-download-apk-header:hover {
  background: rgba(250, 204, 21, 0.35);
  transform: scale(1.04);
  color: #ffffff;
}

.header-church-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #facc15;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 20px;
  letter-spacing: 0.3px;
}

.badge-live-indicator {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(239, 68, 68, 0.2);
  border: 1px solid rgba(239, 68, 68, 0.6);
  color: #fca5a5;
  font-size: 0.7rem;
  font-weight: 800;
  padding: 5px 12px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--red-live);
  box-shadow: 0 0 8px var(--red-live);
  animation: liveBlink 1.2s infinite ease-in-out;
}

@keyframes liveBlink {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}

/* ==========================================
   3. REPRODUCTOR HERO (DIRECTO / ÚLTIMO)
   ========================================== */
.hero-player-section {
  padding: 14px 16px 8px 16px;
}

.player-card {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  background: #020617;
  border-radius: var(--radius-card);
  overflow: hidden;
  border: 1.5px solid var(--bg-card-border);
  box-shadow: 0 14px 35px rgba(0, 0, 0, 0.7), 0 0 25px rgba(234, 179, 8, 0.15);
  cursor: pointer;
}

.player-card iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.player-overlay-tap {
  position: absolute;
  inset: 0;
  z-index: 10;
  background: transparent;
  cursor: pointer;
  pointer-events: auto;
}

/* ==========================================
   MENÚ DE SECCIONES PRINCIPALES (PORTADA)
   ========================================== */
.home-sections-menu {
  margin: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.home-menu-card {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--bg-card);
  border: 1px solid var(--bg-card-border);
  border-radius: var(--radius-card);
  padding: 14px 16px;
  text-decoration: none;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.home-menu-card:active {
  transform: scale(0.98);
  border-color: var(--gold-primary);
  background: rgba(15, 23, 42, 0.9);
}

.home-menu-thumb-wrap {
  position: relative;
  width: 82px;
  height: 52px;
  border-radius: 10px;
  overflow: hidden;
  background: #0f172a;
  border: 1px solid rgba(255, 255, 255, 0.12);
  flex-shrink: 0;
}

.home-menu-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.home-menu-play-badge {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 0.85rem;
}

/* ==========================================
   ESTILOS DE LISTAS DE REPRODUCCIÓN (PLAYLISTS)
   ========================================== */
.playlist-section-wrapper {
  padding: 0 16px 14px 16px;
}

.study-playlists-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 10px;
}

.study-pl-card {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--bg-card);
  border: 1px solid var(--bg-card-border);
  border-radius: var(--radius-card);
  padding: 12px 14px;
  cursor: pointer;
  transition: transform 0.15s ease, border-color 0.2s ease, background 0.2s ease;
}

.study-pl-card:active {
  transform: scale(0.98);
}

.study-pl-card.active {
  border-color: var(--gold-primary);
  background: rgba(234, 179, 8, 0.08);
}

.study-pl-icon {
  font-size: 1.3rem;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
  flex-shrink: 0;
}

.study-pl-info {
  flex: 1;
}

.study-pl-info h5 {
  font-size: 0.88rem;
  font-weight: 800;
  color: #fff;
  margin: 0 0 2px 0;
}

.study-pl-info p {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin: 0;
}

.study-pl-play {
  font-size: 1.25rem;
  color: #64748b;
  transition: color 0.2s, transform 0.2s;
}

.study-pl-card.active .study-pl-play,
.study-pl-card:active .study-pl-play {
  color: var(--gold-primary);
  transform: scale(1.1);
}

.home-menu-body {
  flex: 1;
}

.home-menu-body h4 {
  font-size: 0.95rem;
  font-weight: 800;
  color: #fff;
  margin: 0 0 2px 0;
}

.home-menu-body p {
  font-size: 0.74rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.3;
}

.home-menu-arrow {
  color: #64748b;
  font-size: 0.85rem;
  transition: transform 0.2s;
}

.home-menu-card:active .home-menu-arrow {
  color: var(--gold-primary);
  transform: translateX(3px);
}


.hero-video-info {
  margin-top: 10px;
  padding: 0 4px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-video-title {
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.35;
  color: #ffffff;
  margin-bottom: 4px;
  text-align: center;
}

.hero-video-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.hero-video-meta span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* ==========================================
   4. MODAL PANTALLA COMPLETA APISADA (HORIZONTAL)
   ========================================== */
#landscape-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: #000;
  display: none;
  align-items: center;
  justify-content: center;
}

#landscape-modal.active {
  display: flex;
}

#landscape-modal iframe {
  width: 100vw;
  height: 100vh;
  border: none;
}

.btn-close-landscape {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 10010;
  background: rgba(0, 0, 0, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #ffffff;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  cursor: pointer;
  backdrop-filter: blur(8px);
}

/* ==========================================
   5. BANNER / DEVOCIONAL DIARIO
   ========================================== */
.devocional-card {
  margin: 12px 16px;
  background: linear-gradient(135deg, rgba(202, 138, 4, 0.15) 0%, rgba(2, 132, 199, 0.15) 100%);
  border: 1px solid rgba(250, 204, 21, 0.3);
  border-radius: 14px;
  padding: 14px 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.devocional-content {
  width: 100%;
  text-align: center;
}

.devocional-verse {
  font-size: 0.88rem;
  font-weight: 700;
  font-style: italic;
  color: var(--gold-primary);
  line-height: 1.4;
  text-align: center;
}

.devocional-ref {
  font-size: 0.76rem;
  font-weight: 700;
  color: #cbd5e1;
  margin-top: 5px;
  text-align: center;
}

/* ==========================================
   6. SECCIONES Y CARRUSELES DE VÍDEO
   ========================================== */
.section-wrapper {
  margin-top: 20px;
  padding: 0 16px;
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.section-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: #f8fafc;
  display: flex;
  align-items: center;
  gap: 8px;
}

.section-title i {
  color: var(--gold-primary);
}

.horizontal-video-scroll {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 8px;
  scrollbar-width: none;
}

.horizontal-video-scroll::-webkit-scrollbar {
  display: none;
}

.video-thumb-card {
  flex: 0 0 200px;
  scroll-snap-align: start;
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.2s, border-color 0.2s;
}

.video-thumb-card:active {
  transform: scale(0.96);
  border-color: var(--gold-primary);
}

.thumb-image-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  background: #0f172a;
}

.thumb-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.play-badge-mini {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: rgba(255, 255, 255, 0.9);
}

.thumb-body {
  padding: 8px 10px;
}

.thumb-title {
  font-size: 0.78rem;
  font-weight: 700;
  color: #f1f5f9;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 4px;
  text-align: center;
}

.thumb-date {
  font-size: 0.68rem;
  color: var(--text-muted);
  text-align: center;
}

/* ==========================================
   7. HORARIOS Y COMUNIDAD
   ========================================== */
.cultos-schedule-card {
  margin: 16px;
  background: var(--bg-card);
  border: 1px solid rgba(234, 179, 8, 0.3);
  border-radius: var(--radius-card);
  padding: 16px;
}

.schedule-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 10px;
}

.schedule-item {
  background: rgba(255, 255, 255, 0.04);
  border-radius: 10px;
  padding: 10px;
  text-align: center;
}

.schedule-day {
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--gold-primary);
  text-transform: uppercase;
}

.schedule-hour {
  font-size: 0.95rem;
  font-weight: 900;
  color: #fff;
  margin: 3px 0;
}

.schedule-desc {
  font-size: 0.68rem;
  color: #94a3b8;
}

/* Botón de Petición de Oración */
.prayer-box {
  margin: 16px;
  background: linear-gradient(135deg, rgba(2, 132, 199, 0.2) 0%, rgba(15, 23, 42, 0.8) 100%);
  border: 1px solid rgba(56, 189, 248, 0.35);
  border-radius: var(--radius-card);
  padding: 16px;
  text-align: center;
}

.prayer-box h3 {
  font-size: 1.05rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 6px;
}

.prayer-box p {
  font-size: 0.8rem;
  color: #cbd5e1;
  margin-bottom: 12px;
}

.btn-prayer-whatsapp {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #22c55e;
  color: #fff;
  font-weight: 800;
  font-size: 0.85rem;
  padding: 10px 20px;
  border-radius: var(--radius-btn);
  text-decoration: none;
  box-shadow: 0 4px 15px rgba(34, 197, 94, 0.4);
}

/* ==========================================
   8. UBICACIÓN Y MAPA
   ========================================== */
.map-card-wrapper {
  margin: 16px;
  background: var(--bg-card);
  border: 1px solid var(--bg-card-border);
  border-radius: var(--radius-card);
  overflow: hidden;
}

.map-container {
  width: 100%;
  height: 200px;
  background: #1e293b;
}

.map-info-box {
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.map-text h4 {
  font-size: 0.95rem;
  font-weight: 800;
  color: #fff;
}

.map-text p {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.btn-como-llegar {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--accent-blue);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 8px 16px;
  border-radius: var(--radius-btn);
  text-decoration: none;
  box-shadow: 0 4px 12px var(--blue-glow);
}

/* ==========================================
   9. BARRA DE NAVEGACIÓN INFERIOR (BOTTOM NAV)
   ========================================== */
.app-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: calc(62px + var(--safe-bottom));
  padding-bottom: var(--safe-bottom);
  background: rgba(6, 10, 23, 0.94);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-around;
  z-index: 990;
}

.nav-tab-btn {
  background: none;
  border: none;
  color: #64748b;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  font-size: 0.74rem;
  font-weight: 700;
  padding: 6px 20px;
  cursor: pointer;
  text-decoration: none;
  transition: color 0.2s, transform 0.15s;
}

.nav-tab-btn i {
  font-size: 1.3rem;
}

.nav-tab-btn.active {
  color: var(--gold-primary);
  transform: translateY(-2px);
}

/* ==========================================
   10. ESTILOS DE SUBPÁGINAS CRISTIANAS
   ========================================== */
.subpage-banner {
  margin: 14px 16px;
  padding: 18px 20px;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.95) 0%, rgba(30, 41, 59, 0.8) 100%);
  border: 1px solid var(--bg-card-border);
  border-radius: var(--radius-card);
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.subpage-banner::before {
  content: '';
  position: absolute;
  top: -20px;
  right: -20px;
  width: 110px;
  height: 110px;
  background: radial-gradient(circle, var(--gold-glow) 0%, transparent 70%);
  pointer-events: none;
}

.subpage-banner-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
}

.subpage-banner-desc {
  font-size: 0.84rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.subpage-verse {
  margin-top: 12px;
  font-style: italic;
  font-size: 0.82rem;
  color: #fde047;
  border-left: 3px solid var(--gold-primary);
  padding-left: 10px;
  line-height: 1.4;
}

.subpage-verse-ref {
  display: block;
  font-style: normal;
  font-weight: 700;
  font-size: 0.72rem;
  color: #94a3b8;
  margin-top: 4px;
}

.subpage-grid-container {
  padding: 8px 16px 24px 16px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

@media (min-width: 540px) {
  .subpage-grid-container {
    grid-template-columns: repeat(2, 1fr);
  }
}

.grid-video-card {
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  overflow: hidden;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.3);
}

.grid-video-card:active {
  transform: scale(0.98);
  border-color: var(--gold-primary);
}

.grid-video-thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  background: #000;
}

.grid-video-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.grid-video-thumb .play-badge-mini {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.35);
  color: #fff;
  font-size: 2.2rem;
  transition: background 0.2s;
}

.grid-video-body {
  padding: 12px;
}

.grid-video-title {
  font-size: 0.86rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-align: center;
}

.grid-video-meta {
  margin-top: 6px;
  font-size: 0.74rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.welcome-church-card {
  margin: 14px 16px;
  padding: 20px;
  background: var(--bg-card);
  border: 1px solid var(--bg-card-border);
  border-radius: var(--radius-card);
}

.welcome-church-card h3 {
  font-size: 1.1rem;
  font-weight: 800;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

.welcome-church-card p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 12px;
}

.pill-feature-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.pill-feature {
  background: rgba(250, 204, 21, 0.1);
  border: 1px solid rgba(250, 204, 21, 0.25);
  color: #fde047;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 20px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* ==========================================
   11. SUBPÁGINA DE RADIO Y REPRODUCTOR TIPO CORRAL FM
   ========================================== */
.radio-page-container {
  padding: 18px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.radio-card {
  width: 100%;
  max-width: 380px;
  background: linear-gradient(145deg, rgba(15, 23, 42, 0.95) 0%, rgba(30, 41, 59, 0.75) 100%);
  border: 1px solid var(--bg-card-border);
  border-radius: 22px;
  padding: 30px 20px 26px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  box-shadow: 0 16px 45px rgba(0, 0, 0, 0.55);
  position: relative;
  overflow: hidden;
}

.radio-cover-wrapper {
  position: relative;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px auto;
}

.radio-halo {
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(234, 179, 8, 0.4) 0%, rgba(234, 179, 8, 0) 70%);
  animation: radioHaloPulse 3s infinite ease-in-out;
  transition: all 0.3s;
}

.radio-card.playing .radio-halo {
  background: radial-gradient(circle, rgba(234, 179, 8, 0.65) 0%, rgba(59, 130, 246, 0.3) 50%, rgba(234, 179, 8, 0) 75%);
  animation: radioHaloPlaying 1.5s infinite ease-in-out;
}

@keyframes radioHaloPulse {
  0%, 100% { transform: scale(0.95); opacity: 0.6; }
  50% { transform: scale(1.1); opacity: 1; }
}

@keyframes radioHaloPlaying {
  0%, 100% { transform: scale(1); opacity: 0.85; }
  50% { transform: scale(1.18); opacity: 1; }
}

.radio-cover-logo {
  width: 120px;
  height: 120px;
  border-radius: 50% !important;
  border: 3px solid var(--gold-primary) !important;
  box-shadow: 0 0 25px rgba(250, 204, 21, 0.45), 0 8px 24px rgba(0, 0, 0, 0.7);
  object-fit: cover !important;
  z-index: 2;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  background: #060a17;
  display: block;
}

.radio-card.playing .radio-cover-logo {
  transform: scale(1.05);
  box-shadow: 0 0 35px rgba(250, 204, 21, 0.7), 0 8px 28px rgba(0, 0, 0, 0.8);
}

.radio-live-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 14px;
  background: rgba(234, 179, 8, 0.12);
  border: 1px solid rgba(234, 179, 8, 0.4);
  color: var(--gold-primary);
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}

.radio-card.playing .radio-live-pill {
  background: rgba(34, 197, 94, 0.15);
  border-color: rgba(34, 197, 94, 0.5);
  color: #4ade80;
}

.radio-song-box {
  width: 100%;
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(250, 204, 21, 0.45);
  border-radius: 14px;
  padding: 10px 14px;
  margin: 6px 0 14px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.15);
  box-sizing: border-box;
  min-height: 58px;
  justify-content: center;
}

.radio-song-tag {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.8px;
  color: #facc15;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.radio-song-title {
  font-size: 0.95rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.35;
  text-align: center;
  word-break: break-word;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.8);
}

.radio-station-title {
  font-size: 1.25rem;
  font-weight: 900;
  color: #ffffff;
  margin: 0 0 4px 0;
  letter-spacing: -0.3px;
}

.radio-station-sub {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin: 0 0 22px 0;
}

.radio-play-btn-wrap {
  margin-bottom: 20px;
}

#radioListenBtn.radio-play-btn {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  padding: 0;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  font-size: 3.8rem;
  background: transparent;
  color: var(--gold-primary);
  border: none;
  cursor: pointer;
  filter: drop-shadow(0 0 22px rgba(234, 179, 8, 0.55));
  animation: listenBtnPulseMonte 3s ease-in-out infinite;
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), filter 0.25s ease;
}

#radioListenBtn.radio-play-btn:active {
  transform: scale(0.92);
}

@keyframes listenBtnPulseMonte {
  0%, 100% {
    transform: scale(1);
    filter: drop-shadow(0 0 18px rgba(234, 179, 8, 0.45));
  }
  50% {
    transform: scale(1.06);
    filter: drop-shadow(0 0 32px rgba(250, 204, 21, 0.85));
  }
}

.radio-play-icon {
  display: flex;
  justify-content: center;
  align-items: center;
}

.radio-soundbars {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  height: 24px;
}

.radio-soundbars .bar {
  width: 4px;
  height: 6px;
  background: #475569;
  border-radius: 4px;
  transition: height 0.2s, background 0.2s;
}

.radio-card.playing .radio-soundbars .bar {
  background: var(--gold-primary);
  animation: soundBarMotion 0.8s infinite ease-in-out alternate;
}

.radio-card.playing .radio-soundbars .bar-1 { animation-delay: 0.1s; }
.radio-card.playing .radio-soundbars .bar-2 { animation-delay: 0.3s; }
.radio-card.playing .radio-soundbars .bar-3 { animation-delay: 0.5s; }
.radio-card.playing .radio-soundbars .bar-4 { animation-delay: 0.2s; }
.radio-card.playing .radio-soundbars .bar-5 { animation-delay: 0.4s; }

@keyframes soundBarMotion {
  0% { height: 6px; }
  100% { height: 22px; }
}

/* ========================================================
   12. ESTILOS WEB IGLESIA (CABECERA, LOGO, 2 COLUMNAS)
   ======================================================== */
.header-container {
  width: 100%;
  max-width: 1200px;
  height: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: nowrap;
}

.header-desktop-nav {
  display: none;
}

.desktop-nav-link {
  color: #cbd5e1;
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 6px 9px;
  border-radius: 8px;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
}

.desktop-nav-link:hover,
.desktop-nav-link.active {
  color: var(--gold-primary);
  background: rgba(234, 179, 8, 0.14);
}

.web-church-main {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

.web-grid-row-2col {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.web-grid-col {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.church-web-footer {
  margin-top: 40px;
  padding: 30px 20px;
  background: rgba(4, 7, 18, 0.95);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

/* ========================================================
   MODO WEB COMPLETO (PC, TABLETS Y MÓVIL HORIZONTAL)
   ======================================================== */
@media (min-width: 700px), (orientation: landscape) and (min-width: 520px) {
  body {
    max-width: 100% !important;
    margin: 0 !important;
    box-shadow: none !important;
    border: none !important;
    padding-bottom: 0 !important;
  }

  .app-header {
    position: sticky;
    top: 0;
    max-width: 100% !important;
    left: 0 !important;
    transform: none !important;
    padding: 0 16px;
    height: 60px;
    background: rgba(6, 10, 23, 0.94);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
  }

  .header-desktop-nav {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .header-desktop-nav::-webkit-scrollbar {
    display: none;
  }

  .desktop-nav-link {
    font-size: 0.76rem;
    padding: 6px 8px;
    white-space: nowrap;
    gap: 4px;
  }

  .app-bottom-nav {
    display: none !important;
  }

  .web-church-main {
    padding: 20px 20px 48px 20px;
  }

  .web-grid-row-2col {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 22px;
    align-items: start;
  }

  .devocional-card {
    margin: 0 0 20px 0 !important;
  }

  .hero-player-section {
    padding: 0 !important;
  }

  .home-sections-menu {
    padding: 0 !important;
    margin-top: 14px;
  }

  .radio-card-web {
    margin: 0 !important;
    max-width: 100% !important;
  }

  .cultos-schedule-card {
    margin: 0 !important;
  }

  .map-card-wrapper {
    margin: 28px 0 0 0 !important;
  }

  .subpage-banner {
    margin: 0 0 20px 0 !important;
  }

  .subpage-grid-container {
    padding: 0 !important;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)) !important;
    gap: 20px !important;
  }

  .playlist-section-wrapper {
    padding: 0 !important;
    margin-bottom: 20px;
  }

  .radio-page-container {
    padding: 20px 0;
  }

  .radio-page-container .radio-card {
    max-width: 460px;
  }
}

/* Pantallas grandes de escritorio (≥ 1024px) */
@media (min-width: 1024px) {
  .app-header {
    padding: 0 28px;
    height: 64px;
  }

  .header-logo {
    width: 42px;
    height: 42px;
  }

  .header-title-box h1 {
    font-size: 1.15rem;
  }

  .header-desktop-nav {
    gap: 8px;
  }

  .desktop-nav-link {
    font-size: 0.84rem;
    padding: 8px 12px;
    gap: 6px;
  }

  .web-church-main {
    padding: 28px 28px 56px 28px;
  }

  .web-grid-row-2col {
    grid-template-columns: 1.25fr 1fr;
    gap: 32px;
  }
}

/* ========================================================
   SOPORTE TV / CONTROL REMOTO D-PAD & ENFOQUE VISUAL
   ======================================================== */
:focus-visible,
.desktop-nav-link:focus-visible,
.home-menu-card:focus-visible,
.btn-como-llegar:focus-visible,
.grid-video-card:focus-visible,
.player-card:focus-within {
  outline: 3.5px solid var(--gold-primary) !important;
  outline-offset: 3px;
  box-shadow: 0 0 22px var(--gold-glow) !important;
  transform: translateY(-2px) scale(1.01);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}


