:root {
  --bg-dark: #0b1120;
  --bg-surface: #0f172a;
  --bg-card: #1e293b;
  --primary: #38bdf8;
  --primary-hover: #0284c7;
  --accent-gold: #f59e0b;
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --border-color: #334155;
  --font-serif: "Cinzel", serif;
  --font-sans: "Inter", sans-serif;

  /* Altura proporcional del reproductor */
  --player-height: 86px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: var(--bg-dark);
  color: var(--text-main);
  font-family: var(--font-sans);
  line-height: 1.6;
  padding-bottom: calc(var(--player-height) + 26px);
}

.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header & Logo */
.header {
  background-color: rgba(11, 17, 32, 0.95);
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 90;
  backdrop-filter: blur(10px);
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 16px;
  gap: 16px;
}

.logo-group {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  min-width: 0;
  flex-shrink: 1;
}

.main-logo {
  width: 86px;
  height: 86px;
  object-fit: contain;
  filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.7));
  flex-shrink: 0;
  transition:
    width 0.2s ease,
    height 0.2s ease;
}

.logo-titles {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

/* EN PANTALLA COMPLETA: NOMBRE EXTENDIDO */
.logo-titles h1 {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  letter-spacing: 1.5px;
  color: var(--text-main);
  line-height: 1.2;
  white-space: nowrap;
}

.logo-titles span {
  font-size: 0.72rem;
  color: var(--accent-gold);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-weight: 500;
  white-space: nowrap;
}

/* MENÚ DE ESCRITORIO (PC) */
.nav-desktop {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.nav-desktop a,
.nav-desktop .nav-link-btn {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.88rem;
  font-family: var(--font-sans);
  font-weight: 500;
  background: none;
  border: none;
  padding: 4px 6px;
  cursor: pointer;
  transition: color 0.2s ease;
  white-space: nowrap;
}

.nav-desktop a:hover,
.nav-desktop .nav-link-btn:hover {
  color: var(--primary);
}

.social-links-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: 4px;
  border-left: 1px solid var(--border-color);
  padding-left: 12px;
}

.social-label-header,
.social-links-header span {
  color: var(--text-muted);
  font-size: 0.88rem;
  font-family: var(--font-sans);
  font-weight: 500;
  white-space: nowrap;
  user-select: none;
}

.mobile-only {
  display: none;
}

/* MENÚ MÓVIL DESPLEGABLE */
.dropdown-wrapper {
  position: relative;
  flex-shrink: 0;
}

.menu-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background-color: var(--bg-card);
  color: var(--text-main);
  border: 1px solid var(--border-color);
  padding: 7px 14px;
  border-radius: 8px;
  cursor: pointer;
  font-family: var(--font-sans);
  font-size: 0.88rem;
  font-weight: 500;
  transition:
    background-color 0.2s,
    border-color 0.2s,
    color 0.2s;
}

.menu-toggle:hover {
  background-color: #243248;
  border-color: var(--primary);
  color: var(--primary);
}

.dropdown-arrow {
  width: 16px;
  height: 16px;
  transition: transform 0.25s ease;
}

.menu-toggle.active .dropdown-arrow {
  transform: rotate(180deg);
}

.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 210px;
  background-color: rgba(15, 23, 42, 0.98);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 8px;
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(14px);
  z-index: 120;
  display: flex;
  flex-direction: column;
  gap: 4px;
  animation: dropdownFade 0.2s ease-out;
}

@keyframes dropdownFade {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.nav-dropdown-menu a,
.nav-dropdown-menu .nav-link-btn {
  color: var(--text-main);
  text-decoration: none;
  font-size: 0.92rem;
  font-family: var(--font-sans);
  font-weight: 500;
  padding: 10px 14px;
  text-align: left;
  background: transparent;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  display: block;
  width: 100%;
  transition:
    background-color 0.18s ease,
    color 0.18s ease,
    padding-left 0.18s ease;
}

.nav-dropdown-menu a:hover,
.nav-dropdown-menu .nav-link-btn:hover {
  background-color: rgba(56, 189, 248, 0.12);
  color: var(--primary);
  padding-left: 18px;
}

/* Separador y botones de redes en el menú desplegable */
.dropdown-social-divider {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 6px;
  padding: 8px 10px 4px;
  border-top: 1px solid var(--border-color);
}

.dropdown-social-divider span {
  font-size: 0.82rem;
  color: var(--text-muted);
  font-weight: 500;
}

.dropdown-social-icons {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Botones de Redes Sociales */
.social-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  text-decoration: none;
  cursor: pointer;
  transition:
    transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1),
    background-color 0.25s ease,
    color 0.25s ease,
    box-shadow 0.25s ease;
  will-change: transform;
}

.social-btn svg {
  width: 17px;
  height: 17px;
  transition: transform 0.25s ease;
}

.social-btn:hover {
  transform: translateY(-3px) scale(1.12);
}

.social-btn.instagram:hover {
  color: #ffffff;
  background: radial-gradient(
    circle at 30% 107%,
    #fdf497 0%,
    #fdf497 5%,
    #fd5949 45%,
    #d6249f 60%,
    #285aeb 90%
  );
  border-color: transparent;
  box-shadow: 0 6px 14px rgba(214, 36, 159, 0.35);
}

.social-btn.instagram:hover svg {
  transform: rotate(-8deg);
}

.social-btn.facebook:hover {
  color: #ffffff;
  background-color: #1877f2;
  border-color: #1877f2;
  box-shadow: 0 6px 14px rgba(24, 119, 242, 0.35);
}

.social-btn.facebook:hover svg {
  transform: rotate(8deg);
}

/* Hero y Secciones */
.hero {
  padding: 48px 0 28px;
  text-align: center;
}

.badge-live {
  display: inline-flex;
  align-items: center;
  background-color: rgba(239, 68, 68, 0.15);
  color: #ef4444;
  border: 1px solid #ef4444;
  padding: 4px 14px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 1px;
  margin-bottom: 18px;
}

.live-dot {
  width: 8px;
  height: 8px;
  background-color: #ef4444;
  border-radius: 50%;
  margin-right: 8px;
  animation: pulseDot 1.5s infinite;
}

@keyframes pulseDot {
  0% {
    transform: scale(0.95);
    opacity: 0.8;
  }
  50% {
    transform: scale(1.3);
    opacity: 1;
  }
  100% {
    transform: scale(0.95);
    opacity: 0.8;
  }
}

.hero-title {
  font-size: 2rem;
  font-family: var(--font-serif);
  margin-bottom: 12px;
  line-height: 1.3;
}

.hero-subtitle {
  color: var(--text-muted);
  max-width: 680px;
  margin: 0 auto;
  font-size: 1rem;
}

.section-block {
  padding: 50px 0;
}

.section-block-small {
  padding: 24px 0 36px;
}

.bg-contrast {
  background-color: var(--bg-surface);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.section-heading {
  font-family: var(--font-serif);
  font-size: 1.65rem;
  text-align: center;
  margin-bottom: 12px;
}

.section-subtext {
  text-align: center;
  color: var(--text-muted);
  max-width: 720px;
  margin: 0 auto 30px;
  font-size: 0.95rem;
}

/* Tarjetas */
.grid-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 22px;
}

.info-card {
  background-color: var(--bg-card);
  padding: 24px;
  border-radius: 12px;
  border: 1px solid var(--border-color);
}

.card-icon {
  font-size: 2rem;
  margin-bottom: 12px;
}

.info-card h4 {
  font-size: 1.15rem;
  margin-bottom: 8px;
  color: var(--primary);
}

.info-card p {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* 3 COLUMNAS SIMÉTRICAS PARA LOS 3 RECURSOS */
.grid-colaboradores {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.colab-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 20px;
  border-radius: 10px;
  transition:
    transform 0.2s,
    border-color 0.2s;
}

.colab-card:hover {
  transform: translateY(-3px);
  border-color: var(--primary);
}

.colab-header {
  margin-bottom: 10px;
}

.colab-tag {
  display: inline-block;
  font-size: 0.7rem;
  color: var(--accent-gold);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 4px;
}

.colab-card h4 {
  font-size: 1.15rem;
  color: var(--text-main);
}

.colab-card p {
  font-size: 0.88rem;
  color: var(--text-muted);
}

.notice-box {
  background-color: #0d1527;
  border: 1px dashed #2d4369;
  border-radius: 10px;
  padding: 16px 20px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
  max-width: 820px;
  margin: 0 auto;
}

.notice-icon {
  font-size: 1.4rem;
  flex-shrink: 0;
  line-height: 1;
}

.notice-body h5 {
  font-size: 0.9rem;
  color: var(--text-main);
  margin-bottom: 4px;
  font-weight: 600;
}

.notice-body p {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.45;
}

.notice-body a {
  color: var(--primary);
  text-decoration: underline;
}

/* ========================================================
   ESTILOS DE LAS VENTANAS FLOTANTES (MODALES)
   ======================================================== */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(5, 8, 16, 0.85);
  backdrop-filter: blur(8px);
  z-index: 150;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  overflow-y: auto;
}

.modal-content {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  max-width: 720px;
  width: 100%;
  padding: 34px 28px;
  position: relative;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.85);
  max-height: calc(100vh - var(--player-height) - 30px);
  overflow-y: auto;
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 18px;
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  transition: color 0.2s;
}

.modal-close:hover {
  color: #fff;
}

/* Modal específico de «En qué Creemos» */
.modal-doctrinal {
  max-width: 780px;
}

.verse-lead {
  text-align: center;
  font-style: italic;
  color: var(--accent-gold);
  font-size: 0.95rem;
  margin-bottom: 24px;
  line-height: 1.5;
}

.doctrinal-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-bottom: 22px;
}

.doctrinal-card {
  background-color: #0b1120;
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 18px;
}

.doctrinal-header {
  margin-bottom: 8px;
}

.doctrinal-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.6px;
  margin-bottom: 4px;
}

.doctrinal-card h3 {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  color: var(--text-main);
}

.doctrinal-card p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.subordinate-standard-box {
  background-color: rgba(245, 158, 11, 0.06);
  border: 1px dashed var(--accent-gold);
  border-radius: 10px;
  padding: 16px 20px;
  margin-bottom: 12px;
}

.subordinate-standard-box h4 {
  color: var(--accent-gold);
  font-size: 0.92rem;
  margin-bottom: 6px;
}

.subordinate-standard-box p {
  font-size: 0.85rem;
  color: var(--text-main);
  line-height: 1.5;
}

.subordinate-standard-box strong {
  color: #fff;
}

/* Formulario dentro de los Modales */
.apoyo-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 12px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 0.84rem;
  color: var(--text-muted);
  font-weight: 500;
}

.form-group input,
.form-group textarea {
  background-color: #0b1120;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 10px 14px;
  color: var(--text-main);
  font-family: var(--font-sans);
  font-size: 0.92rem;
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
  outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(56, 189, 248, 0.2);
}

.form-group textarea {
  resize: vertical;
  min-height: 90px;
}

.form-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 6px;
}

.btn-submit-apoyo {
  background-color: var(--primary);
  color: #0b1120;
  padding: 11px 26px;
  border-radius: 8px;
  font-weight: 700;
  letter-spacing: 0.3px;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  font-family: var(--font-sans);
  transition:
    transform 0.15s,
    background-color 0.2s;
}

.btn-submit-apoyo:hover {
  background-color: var(--primary-hover);
  transform: translateY(-2px);
}

.form-success-msg {
  background-color: rgba(34, 197, 94, 0.12);
  border: 1px solid #22c55e;
  color: #4ade80;
  border-radius: 8px;
  padding: 14px 18px;
  font-size: 0.92rem;
  line-height: 1.5;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
  animation: fadeInMsg 0.3s ease-in-out;
}

.form-success-msg span {
  font-size: 1.2rem;
  font-weight: bold;
}

@keyframes fadeInMsg {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.modal-footer-action {
  text-align: center;
  margin-top: 18px;
}

.btn-return {
  background: transparent;
  border: none;
  color: var(--primary);
  font-size: 0.92rem;
  cursor: pointer;
  font-family: var(--font-sans);
}

.btn-return:hover {
  text-decoration: underline;
}

/* Footer */
.footer {
  border-top: 1px solid var(--border-color);
  padding: 24px 0;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-social-group {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.footer-links {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

.link-like-button {
  background: none;
  border: none;
  color: var(--primary);
  font-size: 0.85rem;
  cursor: pointer;
  padding: 0;
  font-family: var(--font-sans);
}

.link-like-button:hover {
  text-decoration: underline;
}

.btn-contacto-footer {
  background-color: var(--bg-card);
  color: var(--primary);
  border: 1px solid var(--border-color);
  padding: 6px 14px;
  border-radius: 6px;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition:
    background-color 0.2s,
    border-color 0.2s,
    color 0.2s;
}

.btn-contacto-footer:hover {
  background-color: var(--primary);
  color: #0b1120;
  border-color: var(--primary);
}

/* REPRODUCTOR FIJO INFERIOR */
.sticky-player {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: var(--player-height);
  background-color: rgba(11, 17, 32, 0.98);
  border-top: 1px solid var(--border-color);
  box-shadow: 0 -10px 28px rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(14px);
  z-index: 200;
  display: flex;
  align-items: center;
}

.player-layout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.player-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 35%;
  min-width: 0;
}

.player-art-img {
  width: 62px;
  height: 62px;
  border-radius: 9px;
  object-fit: cover;
  background-color: #050811;
  border: 1.5px solid var(--border-color);
  flex-shrink: 0;
}

.player-text {
  min-width: 0;
  flex: 1;
}

.player-indicator {
  display: inline-flex;
  align-items: center;
  font-size: 0.68rem;
  color: var(--primary);
  font-weight: 700;
  letter-spacing: 0.8px;
  margin-bottom: 2px;
}

.pulse-mini {
  width: 6px;
  height: 6px;
  background-color: #ef4444;
  border-radius: 50%;
  margin-right: 5px;
}

.track-title-container {
  width: 100%;
  overflow: hidden;
  position: relative;
  white-space: nowrap;
}

.track-title-text {
  display: inline-block;
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--text-main);
  will-change: transform;
}

.track-title-text.marquee {
  display: inline-block;
  padding-left: 100%;
  animation: marqueeScroll 16s linear infinite;
}

.track-title-text.marquee:hover {
  animation-play-state: paused;
}

@keyframes marqueeScroll {
  0% {
    transform: translateX(0%);
  }
  100% {
    transform: translateX(-100%);
  }
}

.track-artist-text {
  font-size: 0.8rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 2px;
}

.player-controls-zone {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  width: 30%;
}

.btn-player-play {
  background-color: var(--primary);
  color: #0b1120;
  border: none;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition:
    transform 0.15s,
    background-color 0.2s;
  box-shadow: 0 4px 12px rgba(56, 189, 248, 0.32);
}

.btn-player-play:hover {
  background-color: var(--primary-hover);
  transform: scale(1.08);
}

.btn-player-play svg {
  width: 22px;
  height: 22px;
}

.track-timer {
  font-size: 0.76rem;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
  display: flex;
  gap: 5px;
}

.timer-slash {
  opacity: 0.5;
}

/* ========================================================
   ZONA DE VOLUMEN (ALINEACIÓN NATURAL A LA DERECHA)
   ======================================================== */
.player-volume-zone {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  width: 25%;
  margin-right: 0;
}

.vol-icon {
  width: 20px;
  height: 20px;
  color: var(--text-muted);
  flex-shrink: 0;
}

.player-volume-zone input[type="range"] {
  width: 95px;
  accent-color: var(--primary);
  cursor: pointer;
}

.netlify-badge,
[data-netlify-badge] {
  bottom: calc(var(--player-height) + 12px) !important;
  right: 16px !important;
  z-index: 250 !important;
}

.hidden {
  display: none !important;
}

/* ========================================================
   RESPONSIVE: PANTALLAS INTERMEDIAS (VENTANA REDUCIDA EN PC)
   ======================================================== */
@media (max-width: 1150px) {
  .logo-titles h1 {
    white-space: normal;
    font-size: 1.05rem;
    line-height: 1.15;
  }

  .main-logo {
    width: 76px;
    height: 76px;
  }

  .nav-desktop {
    gap: 8px;
  }

  .nav-desktop a,
  .nav-desktop .nav-link-btn {
    font-size: 0.85rem;
    padding: 4px 4px;
  }
}

/* ========================================================
   RESPONSIVE: MÓVILES (BOTÓN MENÚ SIEMPRE VISIBLE)
   ======================================================== */
@media (max-width: 820px) {
  .nav-desktop {
    display: none;
  }

  .mobile-only {
    display: block;
    flex-shrink: 0;
  }

  .header-container {
    padding: 8px 14px;
    gap: 10px;
  }

  .logo-group {
    gap: 10px;
    overflow: hidden;
  }

  .main-logo {
    width: 58px;
    height: 58px;
  }

  .logo-titles h1 {
    font-size: 0.95rem;
    white-space: normal;
    line-height: 1.15;
  }

  .logo-titles span {
    font-size: 0.65rem;
  }

  .menu-toggle {
    padding: 6px 12px;
    font-size: 0.84rem;
  }

  .nav-dropdown-menu {
    right: 0;
    width: 200px;
    padding: 10px;
  }

  .form-row,
  .doctrinal-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .player-meta {
    width: 65%;
  }

  .player-art-img {
    width: 50px;
    height: 50px;
  }

  .track-title-text {
    font-size: 0.88rem;
  }

  .player-controls-zone {
    width: 32%;
    align-items: flex-end;
  }

  .btn-player-play {
    width: 44px;
    height: 44px;
  }

  .player-volume-zone {
    display: none;
  }

  .modal-content {
    padding: 24px 18px;
  }

  .footer-content {
    flex-direction: column;
    text-align: center;
    gap: 14px;
  }

  .footer-social-group {
    justify-content: center;
  }
}
