/* =========================================
   ELIM CARDS · Sistema de tarjetas, grids,
   contadores y liderazgo pastoral.
   Patrones portados del sitio de Olot y
   adaptados a las variables de Costa Brava.
   ========================================= */

/* --- Cabecera de sección reutilizable --- */
.section-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 3rem;
}
.section-eyebrow {
  display: inline-block;
  font-family: var(--fuente-cuerpo);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--teal-claro);
  margin-bottom: 0.75rem;
}
.section-titulo {
  font-family: var(--fuente-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 500;
  line-height: 1.1;
  color: var(--teal-oscuro);
}
.section-titulo em {
  font-style: normal;
  color: var(--lima-suave);
  background: linear-gradient(120deg, var(--teal-claro), var(--cian));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.section-sub {
  margin-top: 1rem;
  color: var(--texto-suave);
  font-size: 1.05rem;
}

/* --- Grids --- */
.elim-grid {
  display: grid;
  gap: 1.5rem;
  max-width: var(--max-w);
  margin: 0 auto;
}
.elim-grid--2 { grid-template-columns: repeat(2, 1fr); }
.elim-grid--3 { grid-template-columns: repeat(3, 1fr); }
.elim-grid--4 { grid-template-columns: repeat(4, 1fr); }

/* --- Tarjeta base --- */
.card {
  background: var(--blanco);
  border: 1px solid rgba(30, 118, 130, 0.12);
  border-radius: 16px;
  padding: 2rem 1.75rem;
  text-align: center;
  box-shadow: var(--sombra-suave);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease),
              border-color 0.3s var(--ease);
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--sombra-media);
  border-color: var(--cian);
}
.card-icono {
  font-size: 2.5rem;
  line-height: 1;
  margin-bottom: 1rem;
}
.card h3 {
  font-family: var(--fuente-display);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--teal-oscuro);
  margin-bottom: 0.5rem;
}
.card p {
  color: var(--texto-suave);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* --- Tarjeta de horarios --- */
.schedule-card {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.schedule-card .schedule-icono {
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  font-size: 1.8rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--teal), var(--teal-claro));
  color: var(--blanco);
  margin-bottom: 1.25rem;
}
.schedule-card .schedule-dia {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--teal-claro);
}
.schedule-card .schedule-hora {
  font-family: var(--fuente-display);
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--lima);
  margin: 0.15rem 0 0.75rem;
}
.schedule-card h3 { margin-bottom: 0.5rem; }

/* --- Banner de estadísticas (contadores) --- */
.stats-banner {
  background: linear-gradient(135deg, var(--teal-oscuro), var(--teal-muy-oscuro));
  padding: 4rem 2rem;
}
.stats-grid {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  text-align: center;
}
.stat-num {
  display: block;
  font-family: var(--fuente-display);
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 700;
  line-height: 1;
  color: var(--lima);
}
.stat-label {
  display: block;
  margin-top: 0.5rem;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.75);
}

/* --- Item de valor (lista con icono) --- */
.value-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  margin-bottom: 1.25rem;
  text-align: left;
}
.value-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  font-size: 1.4rem;
  border-radius: 12px;
  background: var(--fondo-alt);
}
.value-item h4 {
  font-family: var(--fuente-display);
  font-size: 1.15rem;
  color: var(--teal-oscuro);
  margin-bottom: 0.2rem;
}
.value-item p {
  color: var(--texto-suave);
  font-size: 0.95rem;
  margin: 0;
  text-align: left;
}

/* --- Liderazgo pastoral --- */
.pastores-grid {
  max-width: 760px;
  margin: 0 auto;
}
.pastor-card { text-align: center; }
.pastor-foto {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 1.25rem;
  border: 4px solid var(--blanco);
  box-shadow: var(--sombra-media);
  background: linear-gradient(135deg, var(--teal), var(--teal-claro));
}
.pastor-card h3 { margin-bottom: 0.35rem; }
.pastor-card .pastor-rol {
  display: block;
  font-size: 0.85rem;
  color: var(--texto-suave);
  margin-bottom: 1rem;
}
.btn-sm { padding: 0.6rem 1.4rem; font-size: 0.85rem; }
.btn-teal {
  background: var(--teal);
  color: var(--blanco);
}
.btn-teal:hover {
  background: var(--teal-oscuro);
  transform: translateY(-3px);
  box-shadow: var(--sombra-media);
}

/* --- Stagger de animación reveal --- */
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* =========================================
   DARK MODE (autocontenido, no toca dark.css)
   ========================================= */
.tema-oscuro .card {
  background: var(--fondo-alt);
  border-color: rgba(68, 220, 241, 0.12);
}
.tema-oscuro .card:hover { border-color: var(--cian); }
.tema-oscuro .value-icon { background: rgba(68, 220, 241, 0.08); }
.tema-oscuro .pastor-foto { border-color: var(--fondo-alt); }

/* =========================================
   RESPONSIVE
   ========================================= */
@media (max-width: 900px) {
  .elim-grid--4 { grid-template-columns: repeat(2, 1fr); }
  .elim-grid--3 { grid-template-columns: repeat(2, 1fr); }
  .stats-grid   { grid-template-columns: repeat(2, 1fr); gap: 2.5rem 1rem; }
}
@media (max-width: 600px) {
  .elim-grid--2,
  .elim-grid--3,
  .elim-grid--4 { grid-template-columns: 1fr; }
  .pastores-grid { max-width: 360px; }
  /* En móvil desactivamos el delay para que no parezca lento */
  .reveal-delay-1, .reveal-delay-2,
  .reveal-delay-3, .reveal-delay-4 { transition-delay: 0s; }
}



/* =========================================
   REPRODUCTOR OASIS FM
   (integrado aquí para que cargue siempre vía /assets/css/;
    ya no hace falta el antiguo radio-oasis.css en la raíz)
   ========================================= */
/* Sección principal - Sin fondo especial, usa el del body */
.radio-section {
  background: transparent;
  color: var(--texto);
  position: relative;
  overflow: hidden;
}

/* Contenedor del contenido */
.radio-container {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

/* ============ PARTE IZQUIERDA: CONTENIDO INFORMATIVO ============ */

.radio-content {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.radio-eyebrow {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: var(--color-principal);
  color: var(--blanco);
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  width: fit-content;
  box-shadow: var(--sombra-suave);
}

.radio-titulo {
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1.2;
  color: var(--texto);
  margin: 0;
  font-family: var(--fuente-display);
}

.radio-descripcion {
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--texto-suave);
  margin: 0;
  max-width: 90%;
}

/* Lista de características */
.radio-features {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.radio-features li {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem;
  background: var(--fondo-alt);
  border-radius: 12px;
  border: 1px solid rgba(30, 118, 130, 0.1);
  transition: all 0.3s var(--ease);
}

.radio-features li:hover {
  background: rgba(30, 118, 130, 0.05);
  border-color: var(--color-detalle);
  transform: translateX(8px);
  box-shadow: var(--sombra-suave);
}

.radio-features li svg {
  width: 24px;
  height: 24px;
  min-width: 24px;
  color: var(--color-principal);
  opacity: 0.9;
}

.radio-features li span {
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--texto);
}

/* Botón CTA - Usa estilos generales de .btn-primary */
.radio-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 2rem;
  background: var(--color-accion);
  color: var(--teal-muy-oscuro);
  font-weight: 600;
  text-decoration: none;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  transition: all 0.3s var(--ease);
  font-size: 1.05rem;
  margin-top: 0.5rem;
  width: fit-content;
  box-shadow: var(--sombra-lima);
}

.radio-cta:hover {
  background: var(--color-accion-hover);
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(197, 244, 8, 0.5);
}

.radio-cta:active {
  transform: translateY(0);
}

.radio-cta svg {
  width: 18px;
  height: 18px;
}

/* ============ PARTE DERECHA: REPRODUCTOR COMPACTO ============ */

.radio-player-container {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding: 2.5rem;
  background: var(--blanco);
  color: var(--texto);
  border-radius: 16px;
  box-shadow: var(--sombra-media);
  border: 1px solid rgba(30, 118, 130, 0.08);
}

/* Header del reproductor */
.radio-player-header {
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.radio-player-live {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.875rem;
  background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
  color: var(--blanco);
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  box-shadow: var(--sombra-suave);
}

.radio-live-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--blanco);
  animation: pulse-live 2s infinite;
}

@keyframes pulse-live {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.4;
    transform: scale(1.2);
  }
}

/* Reproductor */
.radio-player {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 1.5rem;
  background: var(--fondo-alt);
  border-radius: 12px;
  border: 2px solid rgba(30, 118, 130, 0.15);
  transition: all 0.3s var(--ease);
}

.radio-player:hover {
  border-color: var(--color-detalle);
  background: rgba(42, 155, 170, 0.05);
}

/* Botón play */
.radio-play-btn {
  flex-shrink: 0;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-principal) 0%, var(--color-principal-oscuro) 100%);
  color: var(--blanco);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s var(--ease);
  box-shadow: var(--sombra-suave);
  font-size: 0;
}

.radio-play-btn:hover {
  transform: scale(1.1);
  box-shadow: var(--sombra-media);
}

.radio-play-btn:active {
  transform: scale(0.95);
}

.radio-play-btn svg {
  width: 28px;
  height: 28px;
}

.radio-play-btn .icon-pause {
  display: none;
}

.radio-play-btn.playing .icon-play {
  display: none;
}

.radio-play-btn.playing .icon-pause {
  display: block;
}

/* Info del reproductor */
.radio-player-info {
  flex: 1;
  min-width: 0;
  text-align: left;
}

.radio-player-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-principal);
  margin: 0;
  line-height: 1.2;
  font-family: var(--fuente-display);
}

.radio-player-subtitle {
  font-size: 0.875rem;
  color: var(--texto-suave);
  margin: 0;
  line-height: 1.4;
}

/* Controles del reproductor */
.radio-player-controls {
  flex: 0 0 120px;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding-left: 1rem;
  border-left: 1px solid rgba(30, 118, 130, 0.1);
}

.radio-volume-slider {
  width: 100%;
  height: 5px;
  border-radius: 3px;
  background: rgba(30, 118, 130, 0.1);
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
  outline: none;
  transition: background 0.3s var(--ease);
}

.radio-volume-slider:hover {
  background: rgba(30, 118, 130, 0.2);
}

.radio-volume-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--color-principal);
  cursor: pointer;
  transition: all 0.2s var(--ease);
  box-shadow: var(--sombra-suave);
}

.radio-volume-slider::-webkit-slider-thumb:hover {
  transform: scale(1.2);
  box-shadow: var(--sombra-media);
}

.radio-volume-slider::-moz-range-thumb {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--color-principal);
  cursor: pointer;
  border: none;
  transition: all 0.2s var(--ease);
  box-shadow: var(--sombra-suave);
}

.radio-volume-slider::-moz-range-thumb:hover {
  transform: scale(1.2);
  box-shadow: var(--sombra-media);
}

.radio-volume-icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-principal);
  opacity: 0.8;
}

.radio-volume-icon svg {
  width: 20px;
  height: 20px;
}

/* Hint del reproductor */
.radio-player-hint {
  text-align: center;
  font-size: 0.8rem;
  color: var(--texto-suave);
  margin: 0;
  font-style: italic;
}

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

@media (max-width: 1024px) {
  .radio-container {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .radio-titulo {
    font-size: 2rem;
  }

  .radio-player-container {
    padding: 2rem;
  }
}

@media (max-width: 768px) {
  .radio-titulo {
    font-size: 1.75rem;
  }

  .radio-descripcion {
    font-size: 1rem;
    max-width: 100%;
  }

  .radio-features {
    gap: 0.75rem;
  }

  .radio-features li {
    padding: 0.75rem;
  }

  .radio-player-controls {
    flex: 0 0 100px;
  }

  .radio-player {
    flex-wrap: wrap;
  }

  .radio-player-info {
    flex: 1 1 auto;
  }

  .radio-player-controls {
    flex: 1 1 100%;
    border-left: none;
    border-top: 1px solid rgba(30, 118, 130, 0.1);
    padding-left: 0;
    padding-top: 1rem;
    gap: 1rem;
  }
}

@media (max-width: 480px) {
  .seccion.radio-section {
    padding: 2rem 1rem;
  }

  .radio-eyebrow {
    font-size: 0.75rem;
  }

  .radio-titulo {
    font-size: 1.5rem;
  }

  .radio-descripcion {
    font-size: 0.95rem;
  }

  .radio-features {
    gap: 0.5rem;
  }

  .radio-features li {
    padding: 0.75rem;
    gap: 0.75rem;
  }

  .radio-features li svg {
    width: 20px;
    height: 20px;
  }

  .radio-features li span {
    font-size: 0.875rem;
  }

  .radio-cta {
    width: 100%;
    justify-content: center;
    padding: 0.875rem 1.5rem;
    font-size: 1rem;
  }

  .radio-player-container {
    padding: 1.5rem;
    gap: 1rem;
  }

  .radio-play-btn {
    width: 56px;
    height: 56px;
  }

  .radio-play-btn svg {
    width: 24px;
    height: 24px;
  }

  .radio-player {
    padding: 1rem;
  }

  .radio-player-title {
    font-size: 1.1rem;
  }

  .radio-player-subtitle {
    font-size: 0.8rem;
  }

  .radio-player-controls {
    gap: 0.5rem;
  }
}

/* === Accesibilidad: respeta usuarios que prefieren menos animación === */
@media (prefers-reduced-motion: reduce) {
  .radio-player-live,
  .radio-play-btn,
  .radio-cta,
  .radio-features li,
  .radio-volume-slider::-webkit-slider-thumb,
  .radio-volume-slider::-moz-range-thumb {
    animation: none !important;
    transition: none !important;
  }
}
