@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700;800&display=swap');

:root {
  /* Paleta seleccionada del manual proporcionado */
  --primary: #452C84;       /* Morado principal */
  --secondary: #6C529C;     /* Morado secundario */
  --accent: #9280B6;        /* Acento / detalles */
  --surface: #E6E5E9;       /* Fondo suave */
  --surface-alt: #C5C2CE;   /* Bordes y fondos alternos */
  --neutral: #514B59;       /* Texto secundario */
  --white: #FFFFFF;
  --text: #302A3A;
  --muted: #514B59;
  --border: #C5C2CE;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding-bottom: 75px;
  font-family: 'Montserrat', sans-serif;
  color: var(--text);
  background: var(--white);
}

/* ================= HEADER ================= */

.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--surface-alt);
}

.navbar {
  min-height: 80px;
}

.navbar-brand {
  width: 150px;
  display: flex;
  align-items: center;
}

.navbar-brand img {
  display: block;
  width: 100%;
  max-width: 145px;
  max-height: 68px;
  object-fit: contain;
}

.nav-link {
  color: var(--primary) !important;
  margin: 0 10px;
  text-transform: uppercase;
  font-size: .82rem;
  font-weight: 800;
}

.nav-link:hover,
.nav-link.active {
  color: var(--secondary) !important;
}

.navbar-toggler {
  color: var(--primary);
  border-color: var(--primary);
}

.navbar-toggler i {
  font-size: 1.5rem;
}

.btn-primary {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--white);
  font-weight: 700;
  text-transform: uppercase;
}

.btn-primary:hover {
  background: var(--secondary);
  border-color: var(--secondary);
  color: var(--white);
}

/* ================= BANNER ================= */

/*
  El video ya contiene:
  - logo
  - micrófono
  - fondo
  - composición original

  Solo coloca:
  assets/banner-microfono.mp4
*/

.radio-banner {
  position: relative;
  width: 100%;
  height: clamp(300px, 39vw, 560px);
  overflow: hidden;
  background: var(--primary);
}

.banner-video {
  position: absolute;
  inset: 0;

  width: 100%;
  height: 100%;

  object-fit: cover;
  object-position: center center;

  display: block;
}

/*
  Se deja transparente por defecto.
  Si luego hace falta oscurecer el video para mejorar
  la lectura de algún elemento, se puede cambiar aquí.
*/

/* Logo independiente sobre el nuevo banner */
.banner-logo {
  position: absolute;
  z-index: 2;
  left: 8%;
  top: 50%;
  transform: translateY(-50%);
  width: min(30vw, 400px);
}

.banner-logo img {
  width: 100%;
  height: auto;
  display: block;
}

.banner-overlay {
  position: absolute;
  inset: 0;
  background: transparent;
  pointer-events: none;
}

/* ================= BIENVENIDA ================= */

.welcome-section {
  padding: 55px 20px 50px;
  text-align: center;
}

.welcome-section h1 {
  max-width: 900px;
  margin: 0 auto 25px;
  color: var(--primary);
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.1;
  font-weight: 800;
}

.welcome-section h1 span {
  color: var(--accent);
  display: block;
}

.welcome-title {
  margin-bottom: 10px;
  font-size: 1.15rem;
  font-weight: 700;
}

.welcome-text {
  max-width: 800px;
  margin: 0 auto 28px;
  color: var(--muted);
  line-height: 1.7;
}

/* ================= SECCIONES ================= */

.section {
  padding-top: 55px;
}

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

.section-heading h2,
.section-title {
  margin: 0;
  color: var(--primary);
  font-size: 1.15rem;
  font-weight: 800;
  text-transform: uppercase;
}

.section-heading a {
  color: var(--primary);
  text-decoration: none;
  font-size: .75rem;
  font-weight: 700;
}

/* ================= PROGRAMAS ================= */

.program-card {
  overflow: hidden;
  border: 1px solid var(--border);
  background: white;
}

.program-image {
  height: 190px;
  background: var(--surface);
}

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

.program-info {
  min-height: 100px;
  padding: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.program-info h3 {
  margin: 0 0 5px;
  font-size: 1rem;
  font-weight: 800;
}

.program-info p {
  margin: 0;
  color: var(--muted);
  font-size: .8rem;
}

.program-info button {
  width: 38px;
  height: 38px;
  border: 1px solid var(--primary);
  border-radius: 50%;
  background: white;
  color: var(--primary);
}

/* ================= ACCESOS ================= */

.quick-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-top: 22px;
}

.quick-card {
  min-height: 145px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;

  border: 1px solid var(--border);
  color: var(--primary);
  text-decoration: none;
  text-transform: uppercase;
  font-size: .68rem;
  font-weight: 700;
  text-align: center;
}

.quick-card i {
  color: var(--accent);
  font-size: 2rem;
}

.quick-card:hover {
  background: var(--secondary);
  color: white;
}

/* ================= VERSÍCULO ================= */

.verse-card {
  padding: 35px;
  background: var(--primary);
  color: white;
  text-align: center;
}

.verse-card i {
  color: var(--accent);
  font-size: 2rem;
}

.verse-card blockquote {
  max-width: 800px;
  margin: 15px auto 8px;
  line-height: 1.6;
  font-size: 1rem;
}

.verse-card cite {
  color: rgba(255,255,255,.65);
  font-size: .75rem;
}

/* ================= REDES ================= */

.social-section {
  padding: 55px 0;
  text-align: center;
}

.social-section h2 {
  margin-bottom: 25px;
  color: var(--primary);
  font-size: 1.1rem;
  text-transform: uppercase;
}

.social-icons {
  display: flex;
  justify-content: center;
  gap: 25px;
}

.social-icons a {
  color: var(--primary);
  font-size: 2rem;
}

.social-icons a:hover {
  color: var(--accent);
}

/* ================= FOOTER ================= */

/*
  Opción 4 aprobada: footer de contacto y comunidad.
  No repite programas ni accesos de la página principal.
*/
.site-footer {
  padding: 50px 0 0;
  background: var(--surface);
  color: var(--text);
  border-top: 1px solid var(--surface-alt);
}

.footer-community {
  display: grid;
  grid-template-columns: 1.15fr 1.25fr 1fr 1.35fr;
  gap: 35px;
  padding-bottom: 45px;
}

.footer-block {
  min-width: 0;
}

.footer-block h3 {
  margin: 0 0 17px;
  color: var(--primary);
  font-size: .82rem;
  font-weight: 800;
  text-transform: uppercase;
}

.footer-block p {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: .78rem;
  line-height: 1.65;
}

.footer-contact-item {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 13px;
  color: var(--muted);
  font-size: .76rem;
}

.footer-contact-item i {
  width: 22px;
  color: var(--primary);
  font-size: 1rem;
  text-align: center;
}

.footer-action {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 16px;
  border-radius: 5px;
  background: var(--primary);
  color: var(--white);
  text-decoration: none;
  font-size: .72rem;
  font-weight: 700;
  transition: background .2s ease;
}

.footer-action:hover {
  background: var(--secondary);
  color: var(--white);
}

.footer-socials {
  display: flex;
  gap: 12px;
}

.footer-socials a {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid var(--primary);
  border-radius: 50%;
  color: var(--primary);
  text-decoration: none;
  font-size: 1.25rem;
  transition: .2s ease;
}

.footer-socials a:hover {
  background: var(--primary);
  color: var(--white);
}

.app-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.app-button {
  min-width: 135px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 9px 12px;
  border: 1px solid var(--primary);
  border-radius: 5px;
  color: var(--primary);
  text-decoration: none;
  transition: .2s ease;
}

.app-button:hover {
  background: var(--primary);
  color: var(--white);
}

.app-button > i {
  font-size: 1.5rem;
}

.app-button span {
  display: flex;
  flex-direction: column;
  font-size: .7rem;
  font-weight: 700;
  line-height: 1.1;
}

.app-button small {
  margin-bottom: 2px;
  font-size: .52rem;
  font-weight: 500;
}

.footer-bottom {
  min-height: 55px;
  padding: 14px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid var(--surface-alt);
  color: var(--muted);
  font-size: .68rem;
}/* ================= REPRODUCTOR ================= */

.bottom-player {
  position: fixed;
  z-index: 1000;
  bottom: 0;
  left: 0;
  width: 100%;
  min-height: 70px;

  display: flex;
  align-items: center;
  gap: 15px;

  padding: 10px max(20px, calc((100% - 1140px) / 2));

  background: var(--primary);
  color: white;

  /* Nuevo borde para diferenciarlo del contenido */
  border: 6px solid var(--accent);
  box-shadow: 0 0 16px rgba(69,44,132,.22);
}

.live-small {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: .7rem;
  font-weight: 700;
}

.live-small span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #d52e2e;
}

.bottom-player button {
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  background: white;
  color: var(--primary);
}

.bottom-player > div:not(.live-small) {
  display: flex;
  flex-direction: column;
  font-size: .72rem;
}

.bottom-player small {
  color: rgba(255,255,255,.72);
}

.volume {
  margin-left: auto;
}

.bottom-player input {
  width: 130px;
  accent-color: var(--accent);
}

/* ================= RESPONSIVE ================= */

@media (max-width: 991px) {

  .banner-logo {
    left: 6%;
    width: min(34vw, 300px);
  }

  .navbar-brand {
    width: 125px;
  }

  .navbar-brand img {
    max-width: 120px;
  }

  .quick-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .footer-community {
    grid-template-columns: 1fr 1fr;
  }

}

@media (max-width: 767px) {

  .banner-logo {
    left: 5%;
    width: min(42vw, 210px);
  }

  .radio-banner {
    height: 280px;
  }

  .banner-video {
    object-fit: cover;
  }

  .welcome-section {
    padding-top: 40px;
  }

  .welcome-section h1 {
    font-size: 2rem;
  }

  .quick-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-community {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }.bottom-player {
    padding: 8px 12px;
  }

  .bottom-player .volume,
  .bottom-player input {
    display: none;
  }

}

/* =========================================================
   MEJORAS DE DISEÑO · PROTOTIPO
   ========================================================= */

/* Navbar: página activa + hover más visible */
.nav-link {
  position: relative;
  padding: 9px 13px !important;
  border: 1px solid transparent;
  border-radius: 10px;
  transition: color .2s ease, background-color .2s ease,
              border-color .2s ease, transform .2s ease;
}

.nav-link:hover {
  color: var(--primary) !important;
  background: rgba(146,128,182,.22);
  border-color: var(--accent);
  transform: translateY(-2px);
}

.nav-link.active {
  color: var(--primary) !important;
  background: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 5px 14px rgba(69,44,132,.16);
}.quick-card {
  transition: transform .25s ease, background-color .25s ease,
              color .25s ease, border-color .25s ease, box-shadow .25s ease;
}

.quick-card:hover {
  background: var(--secondary);
  color: var(--white);
  border-color: var(--secondary);
  transform: translateY(-7px);
  box-shadow: 0 14px 28px rgba(69,44,132,.18);
}

.quick-card:hover i {
  color: var(--white);
}/* Redes con logotipos reconocibles */
.footer-socials a {
  border-radius: 10px;
  transition: transform .22s ease, background-color .22s ease,
              color .22s ease, border-color .22s ease;
}

.footer-socials a:hover {
  background: var(--accent);
  color: var(--primary);
  border-color: var(--accent);
  transform: translateY(-5px) scale(1.06);
}

/* Modal de petición */
.petition-modal .modal-content {
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 25px 70px rgba(31,24,42,.22);
}

.petition-modal .modal-header {
  padding: 25px 28px 18px;
  background: var(--primary);
  color: var(--white);
  border-bottom: 0;
}

.petition-eyebrow {
  display: block;
  margin-bottom: 6px;
  color: var(--accent);
  font-size: .62rem;
  font-weight: 800;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.petition-modal .modal-title {
  font-size: 1.45rem;
  font-weight: 800;
}

.petition-modal .btn-close {
  filter: invert(1);
}

.petition-form .modal-body {
  padding: 25px 28px 10px;
}

.petition-intro {
  margin: 0 0 20px;
  color: var(--muted);
  font-size: .82rem;
  line-height: 1.7;
}

.petition-field {
  margin-bottom: 17px;
}

.petition-field label {
  display: block;
  margin-bottom: 7px;
  color: var(--primary);
  font-size: .72rem;
  font-weight: 800;
}

.petition-field label span {
  color: var(--muted);
  font-weight: 500;
}

.petition-field input,
.petition-field textarea {
  width: 100%;
  padding: 11px 13px;
  border: 1px solid var(--border);
  border-radius: 9px;
  outline: none;
  color: var(--primary);
  background: var(--surface);
  font-size: .8rem;
  transition: border-color .2s ease, box-shadow .2s ease;
}

.petition-field textarea {
  resize: vertical;
  min-height: 120px;
}

.petition-field input:focus,
.petition-field textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(146,128,182,.17);
}

.petition-privacy {
  display: flex;
  gap: 9px;
  align-items: flex-start;
  margin: 5px 0 12px;
  padding: 11px 12px;
  border-radius: 8px;
  background: var(--surface);
  color: var(--muted);
  font-size: .68rem;
  line-height: 1.5;
}

.petition-privacy i {
  color: var(--secondary);
  font-size: 1rem;
}

.petition-success {
  display: none;
  gap: 11px;
  align-items: flex-start;
  margin: 12px 0 5px;
  padding: 13px;
  border: 1px solid #a7d9b4;
  border-radius: 9px;
  background: #eef9f1;
  color: #28633a;
  font-size: .73rem;
}

.petition-success.show {
  display: flex;
}

.petition-success > i {
  font-size: 1.15rem;
}

.petition-success strong {
  display: block;
  margin-bottom: 3px;
}

.petition-success p {
  margin: 0;
  line-height: 1.5;
}

.petition-modal .modal-footer {
  padding: 12px 28px 24px;
  border-top: 0;
}

.petition-cancel {
  color: var(--muted);
  font-weight: 700;
}

.petition-submit {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

@media (max-width: 767px) {
  .nav-link {
    margin: 3px 0;
  }

  .petition-modal .modal-header,
  .petition-form .modal-body,
  .petition-modal .modal-footer {
    padding-left: 20px;
    padding-right: 20px;
  }
}

/* =========================================================
   V4 · REDES CON COLOR DE MARCA
   ========================================================= */

.social-icons a:nth-child(1),
.footer-socials a:nth-child(1) { color: #1877F2; } /* Facebook */

.social-icons a:nth-child(2),
.footer-socials a:nth-child(2) {
  color: #E1306C; /* Instagram */
}

.social-icons a:nth-child(3),
.footer-socials a:nth-child(3) { color: #FF0000; } /* YouTube */

.social-icons a:nth-child(4),
.footer-socials a:nth-child(4) { color: #000000; } /* TikTok */

.social-icons a:hover,
.footer-socials a:hover {
  transform: translateY(-5px) scale(1.08);
  filter: saturate(1.18);
}

/* Mantener el color de marca dentro de los botones circulares del footer */
.footer-socials a:nth-child(1):hover { background: #1877F2; color: #fff; }
.footer-socials a:nth-child(2):hover { background: #E1306C; color: #fff; }
.footer-socials a:nth-child(3):hover { background: #FF0000; color: #fff; }
.footer-socials a:nth-child(4):hover { background: #25D366; color: #fff; }

/* =========================================================
   V4 · TEXTO EN BLOQUES MÁS LIMPIOS
   ========================================================= */

.welcome-text,
.program-info p,
.verse-card blockquote,
.footer-block p {
  text-align: justify;
  text-justify: inter-word;
  hyphens: auto;
}

.welcome-text {
  max-width: 820px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.85;
}

.program-info p {
  max-width: 92%;
  line-height: 1.7;
}

.verse-card blockquote {
  max-width: 850px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.85;
}

/* =========================================================
   V4 · BANNER DE INICIO MÁS DINÁMICO
   ========================================================= */

.radio-banner {
  isolation: isolate;
}

.banner-video {
  transform: scale(1.035);
  transform-origin: center;
  animation: bannerVideoDrift 18s ease-in-out infinite alternate;
  will-change: transform;
}

.banner-overlay {
  background:
    linear-gradient(90deg, rgba(30,22,50,.16), transparent 42%, rgba(69,44,132,.08));
  overflow: hidden;
}

.banner-overlay::after {
  content: "";
  position: absolute;
  top: -20%;
  left: -35%;
  width: 22%;
  height: 140%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255,255,255,.16),
    transparent
  );
  transform: skewX(-18deg);
  animation: bannerShine 9s ease-in-out infinite;
}

.banner-logo {
  animation: bannerLogoFloat 5s ease-in-out infinite;
  will-change: transform;
}

.banner-logo img {
  filter: drop-shadow(0 12px 22px rgba(0,0,0,.20));
}

@keyframes bannerVideoDrift {
  0% { transform: scale(1.035) translate3d(0,0,0); }
  100% { transform: scale(1.075) translate3d(-.7%, -0.4%, 0); }
}

@keyframes bannerLogoFloat {
  0%, 100% { transform: translateY(-50%); }
  50% { transform: translateY(calc(-50% - 7px)); }
}

@keyframes bannerShine {
  0%, 58% { left: -35%; opacity: 0; }
  64% { opacity: 1; }
  78% { left: 115%; opacity: 0; }
  100% { left: 115%; opacity: 0; }
}

/* =========================================================
   V4 · HOVER MÁS EXPRESIVO EN CONTENIDO
   ========================================================= */

.program-card,
.live-card,
.quick-card,
.verse-card {
  transition: transform .28s ease, box-shadow .28s ease,
              border-color .28s ease;
}

.program-card:hover,
.live-card:hover,
.verse-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 32px rgba(48,42,58,.11);
  border-color: var(--accent);
}

.program-card .program-image img {
  transition: transform .5s ease;
}

.program-card:hover .program-image img {
  transform: scale(1.035);
}

@media (prefers-reduced-motion: reduce) {
  .banner-video,
  .banner-logo,
  .banner-overlay::after {
    animation: none;
  }

  .program-card,
  .live-card,
  .quick-card,
  .verse-card,
  .footer-socials a,
  .social-icons a {
    transition: none;
  }
}

/* =========================================================
   NAVBAR · NUEVO ORDEN Y NUEVAS SECCIONES
   ========================================================= */

.navbar-nav .nav-link {
  white-space: nowrap;
}

/* Destinos provisionales de Música, Ofertas y Servicios y Ministerios.
   Se reemplazarán por sus contenidos definitivos cuando esas secciones
   sean desarrolladas. */
.menu-destination-strip {
  padding: 12px 0 0;
}

.menu-destination-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.menu-destination {
  min-height: 105px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: 20px 22px;
  color: var(--primary);
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  text-decoration: none;
  transition: transform .22s ease, border-color .22s ease,
              box-shadow .22s ease, background-color .22s ease;
}

.menu-destination i {
  margin-bottom: 8px;
  color: var(--secondary);
  font-size: 1.25rem;
}

.menu-destination span {
  font-size: .8rem;
  font-weight: 800;
  text-transform: uppercase;
}

.menu-destination small {
  margin-top: 3px;
  color: var(--muted);
  font-size: .65rem;
}

.menu-destination:hover {
  color: var(--primary);
  border-color: var(--accent);
  background: rgba(146,128,182,.08);
  transform: translateY(-4px);
  box-shadow: 0 10px 24px rgba(48,42,58,.08);
}

@media (max-width: 1199px) {
  .navbar-nav {
    gap: .15rem !important;
  }

  .navbar-nav .nav-link {
    padding-left: 8px !important;
    padding-right: 8px !important;
    font-size: .72rem;
  }
}

@media (max-width: 991px) {
  .navbar-nav .nav-link {
    white-space: normal;
  }

  .menu-destination-grid {
    grid-template-columns: 1fr;
  }
}

/* =========================================================
   NAVBAR · CORRECCIÓN DE DISTRIBUCIÓN
   Logo conservado + menú limpio, sin separadores.
   ========================================================= */

.navbar {
  min-height: 92px;
}

.navbar > .container {
  display: flex;
  align-items: center;
}

.navbar-brand {
  flex: 0 0 175px;
  width: 175px;
  margin-right: 28px;
  padding: 0;
}

.navbar-brand img {
  width: 100%;
  max-width: 165px;
  max-height: 72px;
  object-fit: contain;
}

/* Menú principal: distribución compacta y limpia */
.navbar-collapse {
  flex: 1;
}

.navbar-nav {
  margin-left: auto !important;
  margin-right: 12px;
  gap: 2px !important;
  align-items: center !important;
}

.navbar-nav .nav-item {
  margin: 0;
  padding: 0;
}

.navbar-nav .nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  margin: 0;
  padding: 8px 10px !important;
  border: 1px solid transparent;
  border-radius: 9px;
  color: var(--primary) !important;
  font-size: .70rem;
  font-weight: 800;
  letter-spacing: .01em;
  white-space: nowrap;
  transition: color .2s ease, background-color .2s ease,
              border-color .2s ease, transform .2s ease,
              box-shadow .2s ease;
}

/* Página actual: recuadro visible */
.navbar-nav .nav-link.active {
  color: var(--primary) !important;
  background: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 5px 14px rgba(69,44,132,.14);
}

/* Hover: cambio más evidente */
.navbar-nav .nav-link:hover {
  color: var(--primary) !important;
  background: rgba(146,128,182,.20);
  border-color: var(--accent);
  transform: translateY(-2px);
}

/* FUNCAM separado visualmente, pero sin barras */
.navbar-collapse > .btn-primary {
  flex: 0 0 auto;
  margin-left: 4px;
  padding: 9px 14px;
  border-radius: 9px;
  font-size: .70rem;
  white-space: nowrap;
}

/* Eliminamos cualquier sensación de separadores heredada */
.navbar-nav .nav-item::before,
.navbar-nav .nav-item::after,
.navbar-nav .nav-link::before {
  content: none !important;
}

/* Escritorio pequeño: ganar espacio sin eliminar el logo */
@media (max-width: 1250px) and (min-width: 992px) {
  .navbar-brand {
    flex-basis: 150px;
    width: 150px;
    margin-right: 14px;
  }

  .navbar-brand img {
    max-width: 145px;
  }

  .navbar-nav {
    gap: 0 !important;
  }

  .navbar-nav .nav-link {
    padding-left: 7px !important;
    padding-right: 7px !important;
    font-size: .65rem;
  }

  .navbar-collapse > .btn-primary {
    padding-left: 11px;
    padding-right: 11px;
    font-size: .65rem;
  }
}

@media (max-width: 991px) {
  .navbar {
    min-height: 80px;
  }

  .navbar-brand {
    flex-basis: 125px;
    width: 125px;
    margin-right: 0;
  }

  .navbar-brand img {
    max-width: 120px;
  }

  .navbar-collapse {
    padding-top: 12px;
  }

  .navbar-nav {
    margin-right: 0;
    align-items: stretch !important;
  }

  .navbar-nav .nav-link {
    justify-content: flex-start;
    width: 100%;
    margin: 2px 0;
    font-size: .76rem;
  }

  .navbar-collapse > .btn-primary {
    width: 100%;
    margin: 7px 0 0;
  }
}

/* =========================================================
   NAVBAR · V2
   Inicio se representa mediante el logo.
   Se elimina "Recursos y Contacto" para centrar el menú.
   ========================================================= */

.navbar-brand {
  cursor: pointer;
  transition: transform .22s ease, opacity .22s ease;
}

.navbar-brand:hover {
  opacity: .88;
  transform: translateY(-2px);
}

.navbar-nav {
  margin-left: auto !important;
  margin-right: auto !important;
  justify-content: center;
}

@media (min-width: 992px) {
  .navbar-collapse {
    display: flex !important;
    align-items: center;
  }

  .navbar-nav {
    flex: 0 1 auto;
  }

  .navbar-collapse > .btn-primary {
    margin-left: 18px;
  }
}

@media (max-width: 991px) {
  .navbar-nav {
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
}

/* Se eliminó el bloque provisional de destinos del menú. */
.menu-destination-strip {
  display: none !important;
}

/* ================= PROGRAMAS DESTACADOS - CARRUSEL AUTOMATICO ================= */
.programs-featured {
  position: relative;
}

.programs-featured .section-heading {
  align-items: center;
  margin-bottom: 18px;
}

.programs-featured .section-heading a {
  color: var(--primary);
  text-decoration: none;
  font-size: .78rem;
  font-weight: 800;
  white-space: nowrap;
}

.programs-carousel-auto {
  width: 100%;
  overflow: hidden;
  position: relative;
}

/* El tren se desplaza una tarjeta por vez. */
.programs-track {
  display: flex;
  gap: 24px;
  will-change: transform;
  transition: transform .65s cubic-bezier(.22,.75,.25,1);
}

.programs-track .featured-program-card {
  flex: 0 0 calc((100% - 48px) / 3);
  min-width: 0;
  border: 1px solid #b8b0cc;
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 5px 16px rgba(69, 44, 132, .05);
  transition: transform .3s ease, box-shadow .3s ease;
}

.programs-track .featured-program-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 25px rgba(69, 44, 132, .14);
}

.programs-track .program-image {
  height: 245px;
  background: #e6e5e9;
  overflow: hidden;
}

.programs-track .program-image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.programs-track .program-info {
  min-height: 108px;
  padding: 18px 18px 17px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.programs-track .program-info > div {
  min-width: 0;
}

.programs-track .program-info h3 {
  margin: 0 0 5px;
  color: #373343;
  font-size: 1rem;
  line-height: 1.25;
  font-weight: 800;
}

.programs-track .program-info p {
  margin: 0;
  color: #777180;
  font-size: .82rem;
  line-height: 1.4;
}

.programs-track .program-info button {
  flex: 0 0 39px;
  width: 39px;
  height: 39px;
  padding: 0;
  display: grid;
  place-items: center;
  border: 1px solid var(--primary);
  border-radius: 50%;
  background: #fff;
  color: var(--primary);
  font-size: 1rem;
  transition: background .25s ease, color .25s ease, transform .25s ease;
}

.programs-track .program-info button:hover {
  background: var(--primary);
  color: #fff;
  transform: scale(1.06);
}

/* Las copias del final permiten que el carrusel vuelva al inicio sin salto visible. */
.programs-track .program-card-clone {
  pointer-events: none;
}

@media (max-width: 850px) {
  .programs-track .featured-program-card {
    flex-basis: calc((100% - 24px) / 2);
  }
}

@media (max-width: 575px) {
  .programs-featured .section-heading a {
    font-size: .7rem;
  }

  .programs-track .featured-program-card {
    flex-basis: 100%;
  }

  .programs-track .program-image {
    height: 225px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .programs-track {
    transition: none;
  }

  .programs-track .featured-program-card,
  .programs-track .program-info button {
    transition: none;
  }
}


/* Ajustes de legibilidad y referencia bíblica */
:root { --muted: #514B59; }
.verse-card cite {
  display: block;
  margin-top: 22px;
  color: #FFFFFF;
  font-size: 1.05rem;
  font-style: normal;
  letter-spacing: .02em;
}
.verse-card cite strong { font-weight: 800; }


/* Reproductor de radio personalizado conectado al streaming */
.bottom-player {
  min-height: 78px;
  gap: 16px;
  background: linear-gradient(105deg, #352064 0%, #452C84 55%, #51358B 100%);
  border: 1px solid rgba(185,166,216,.72);
  border-top: 3px solid #9280B6;
  box-shadow: 0 -8px 28px rgba(35,22,65,.20);
}
.bottom-player .radio-play-toggle {
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  font-size: 1.35rem;
  transition: transform .2s ease, background .2s ease;
}
.bottom-player .radio-play-toggle:hover { transform: scale(1.06); background: #EEE9F7; }
.bottom-player .player-meta { min-width: 0; }
.bottom-player .player-meta strong { color: #fff; font-size: .83rem; letter-spacing: .02em; }
.bottom-player .player-meta small { color: #D8CDEB; font-size: .7rem; }
.bottom-player .live-small { color: #F8F5FC; letter-spacing: .08em; }
.bottom-player .live-small span { box-shadow: 0 0 0 4px rgba(213,46,46,.15); }
.bottom-player .radio-volume { width: 112px; accent-color: #D7C9EE; cursor: pointer; }
.bottom-player .volume-icon { color: #F4EFFB; }
.bottom-player.is-playing .live-small span { animation: radio-live-pulse 1.6s infinite; }
@keyframes radio-live-pulse {
  0%,100% { box-shadow: 0 0 0 3px rgba(213,46,46,.16); }
  50% { box-shadow: 0 0 0 7px rgba(213,46,46,.04); }
}
@media(max-width:600px) {
  .bottom-player { min-height: 70px; gap: 10px; padding: 8px 12px; }
  .bottom-player .live-small { font-size: .58rem; }
  .bottom-player .radio-play-toggle { width: 38px; height: 38px; flex-basis: 38px; }
  .bottom-player .player-meta strong { font-size: .72rem; }
  .bottom-player .player-meta small { font-size: .62rem; }
  .bottom-player .radio-volume { width: 66px; }
}

/* LOGOTIPO EN LA SECCION NOSOTROS */
.about-logo{min-height:320px;display:flex;align-items:center;justify-content:center;padding:2rem;background:#f5f3f8;border:1px solid #d8d3e2;border-radius:24px}.about-logo img{display:block;width:min(100%,280px);height:auto;object-fit:contain}

/* GALERÍA DE IMÁGENES DE PROGRAMAS */
.program-gallery{padding:3rem 0}
.program-gallery-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1.5rem}
.program-gallery-item{margin:0;overflow:hidden;border-radius:18px;background:#e6e5e9;border:1px solid #c5c2ce}
.program-gallery-item img{display:block;width:100%;height:auto;object-fit:cover}
@media(max-width:768px){.program-gallery-grid{grid-template-columns:1fr}}

/* AJUSTES GLOBALES · REPRODUCTOR Y RADIOS DE ESQUINA */
.bottom-player{min-height:82px;padding-top:12px;padding-bottom:12px;gap:18px}
.bottom-player .radio-play-toggle{flex-basis:50px;width:50px;height:50px;font-size:1.5rem}
.bottom-player .player-meta strong{font-size:.92rem}
.bottom-player .player-meta small{font-size:.76rem}
.bottom-player .radio-volume{width:130px}
@media(max-width:600px){.bottom-player{min-height:76px;gap:9px;padding:8px 11px}.bottom-player .radio-play-toggle{flex-basis:44px;width:44px;height:44px}.bottom-player .player-meta strong{font-size:.78rem}.bottom-player .player-meta small{font-size:.65rem}.bottom-player .radio-volume{width:78px}}
/* Redondeado consistente para componentes con esquinas cuadradas */
:where(.quick-card,.verse-card,.mission-card,.belief-card,.staff-card,.program-card,.program-index-card,.program-description,.ec-description,.horario-card,.schedule-card,.music-card,.musica-category,.category-card,.offer-card,.contact-card,.app-button,.footer-action,.btn,.form-control,.form-select,.form-control,.petition-form input,.petition-form textarea,.petition-form select,.about-logo,.video-card,.resource-card,.service-card,.timeline-content,.modal-content,.accordion-item,.accordion-button,.player-card,.radio-card,.programs-card,.short-card,.gallery-card){border-radius:14px}

/* RESPONSIVE SAFEGUARD · IMAGES AND LAYOUT */
img, video, iframe { max-width:100%; }
html, body { max-width:100%; overflow-x:hidden; }
.container, .row, [class*="grid"] { min-width:0; }
@media(max-width:767px){
  .site-footer .container, .footer-community, .footer-block { min-width:0; max-width:100%; }
  .footer-community { grid-template-columns:minmax(0,1fr) !important; }
  .bottom-player { max-width:100vw; box-sizing:border-box; }
}
