/* === Carrusel 3D base === */
/* ===== Carrusel 3D (más inclinado) ===== */

.banner {
  display: grid;
  place-items: center;
  padding: 54px 0;
  perspective: 800px;         /* profundidad moderada */
  perspective-origin: 50% 52%; /* mirada ligeramente por arriba del centro */
}

.slider {
  --item-size: 240px;          /* tamaño de miniatura */
  --ring-radius: 460px;        /* separación en el anillo 3D */
  --tilt-x: 6deg;              /* ✅ inclinación global pedida */
  --tilt-z: -2deg;             /* oblicuidad leve (pon 0deg si no la quieres) */
  --spin-speed: 52s;           /* velocidad del giro automático */

  position: relative;
  width: min(92vw, 980px);
  height: clamp(220px, 36vw, 360px);
  transform-style: preserve-3d;
  animation: spin var(--spin-speed) linear infinite;

  /* aplica la inclinación global */
  transform: rotateX(var(--tilt-x)) rotateZ(var(--tilt-z));
}

/* Pausa el giro cuando el usuario pasa el mouse (desktop) */
.slider:hover {
  animation-play-state: paused;
}

.slider .item {
  position: absolute;
  top: 50%;
  left: 50%;
  width: var(--item-size);
  aspect-ratio: 16 / 9;
  transform-style: preserve-3d;
  border-radius: 14px;
  overflow: hidden;
  background: #000;
  box-shadow: 0 14px 36px rgba(15, 23, 42, 0.35);

  /* distribuye los items en el anillo + proyección Z + tilt sutil */
  transform:
    rotateY(calc((360deg / var(--quantity)) * (var(--position) - 1)))
    translateZ(var(--ring-radius))
    rotateX(-2deg);
}



/* Ken-Burns sutil para las miniaturas del carrusel 3D */
.slider .item .video-thumb {
  transform-origin: center center;
  animation: kb 10s ease-in-out infinite alternate;
  backface-visibility: hidden;
  -webkit-font-smoothing: antialiased;
}
.slider .item:hover .video-thumb {
  animation-play-state: paused; /* pausa al hover en desktop */
}

@keyframes kb {
  from { transform: scale(1); }
  to   { transform: scale(1.035); } /* 3.5% es elegante y no “marea” */
}

/* Respeto a accesibilidad: sin animaciones si el usuario lo pide */
@media (prefers-reduced-motion: reduce) {
  .slider .item .video-thumb {
    animation: none !important;
    transform: none !important;
  }
}


/* Brillo diagonal (sheen) periódicamente */
.slider .item {
  position: absolute; /* ya lo tienes, reforzamos por si acaso */
  overflow: hidden;   /* para que el brillo no se salga */
}
.slider .item::after {
  content: "";
  position: absolute;
  inset: -20%; /* extra para cubrir al rotar */
  background: linear-gradient(
    75deg,
    transparent 40%,
    rgba(255,255,255,0.18) 50%,
    transparent 60%
  );
  transform: translateX(-120%) rotate(10deg);
  animation: sheen 6.2s ease-in-out infinite;
  pointer-events: none;
}
@keyframes sheen {
  0%, 20%   { transform: translateX(-120%) rotate(10deg); }
  35%       { transform: translateX(20%) rotate(10deg); }
  100%      { transform: translateX(120%) rotate(10deg); }
}

/* Menos “intenso” en móvil */
@media (max-width: 576px) {
  .slider .item::after {
    background: linear-gradient(
      75deg,
      transparent 42%,
      rgba(255,255,255,0.14) 50%,
      transparent 58%
    );
    animation-duration: 7.5s;
  }
}
/* Ripple click */
.slider .item {
  --ripple-color: rgba(255,255,255,0.45);
}
.slider .item .ripple {
  position: absolute;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  background: radial-gradient(circle, var(--ripple-color) 10%, transparent 11%);
  background-size: 10px 10px;
  opacity: 0.6;
  animation: ripple 500ms ease-out forwards;
}
@keyframes ripple {
  to {
    opacity: 0;
    width: 420px;
    height: 420px;
  }
}
/* Imagen dentro del item */
.slider .item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .25s ease, filter .25s ease;
}
.slider .item:hover img {
  transform: scale(1.03);
  filter: brightness(1.04) saturate(1.03);
}

/* Giro continuo (mantiene la inclinación global) */
@keyframes spin {
  from { transform: rotateX(var(--tilt-x)) rotateZ(var(--tilt-z)) rotateY(0deg); }
  to   { transform: rotateX(var(--tilt-x)) rotateZ(var(--tilt-z)) rotateY(360deg); }
}

/* ===== Responsivo ===== */
@media (max-width: 992px) {
  .slider {
    --item-size: 200px;
    --ring-radius: 330px;
    --tilt-x: 8deg;  /* se mantiene sutil */
  }
}
@media (max-width: 576px) {
  .slider {
    --item-size: 170px;
    --ring-radius: 300px;
    --tilt-x: 8deg;
    --spin-speed: 32s; /* más lento en móvil */
  }
  .slider .item {
    border-radius: 12px;
    box-shadow: 0 10px 26px rgba(15, 23, 42, 0.30);
  }
}


/* (Opcional) Botones flotantes de navegación manual */
.banner .nav-ghost {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.banner .nav-ghost .prev,
.banner .nav-ghost .next {
  pointer-events: auto;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px; height: 44px;
  display: grid; place-items: center;
  border-radius: 999px;
  color: #fff;
  background: rgba(15,23,42,0.55);
  backdrop-filter: blur(2px);
  box-shadow: 0 8px 22px rgba(15,23,42,.35);
  cursor: pointer;
  user-select: none;
}
.banner .nav-ghost .prev { left: 10px; }
.banner .nav-ghost .next { right: 10px; }
.banner .nav-ghost .prev:hover,
.banner .nav-ghost .next:hover { background: rgba(15,23,42,0.75); }
/* Bienvenida */
/* ===== PRESENTACIÓN BONITA SINAI ===== */

.section-presentacion {
  position: relative;
  padding: 4.5rem 1.5rem;
  background: linear-gradient(
      rgba(12, 74, 110, 0.75),
      rgba(12, 74, 110, 0.85)
    ),
    url("imagenes/slider/slider_cultos.png") center / cover no-repeat;
  color: #ffffff;
  overflow: hidden;
}

.presentacion-overlay {
  display: flex;
  justify-content: center;
  align-items: center;
}

.presentacion-content {
  max-width: 820px;
  padding: 2.5rem 2rem;
  background: rgba(15, 23, 42, 0.35);
  backdrop-filter: blur(6px);
  border-radius: 22px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
}

/* Badge */
.badge-sinai {
  background: linear-gradient(135deg, #747d92, #E2E8F0);
  color: #1e293b;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  text-transform: uppercase;
}

/* Título */
.presentacion-title {
  font-family: var(--font-titulos);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: #ffffff;
  text-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
}

/* Texto */
.presentacion-text {
  font-size: clamp(1rem, 1.6vw, 1.2rem);
  color: #e5e7eb;
  line-height: 1.6;
}

/* Responsive */
@media (max-width: 768px) {
  .section-presentacion {
    padding: 3.2rem 1.2rem;
  }

  .presentacion-content {
    padding: 2rem 1.4rem;
    border-radius: 18px;
  }
}

/* Lideres */
.lider-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.lider-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.12);
}

/* Contenedor circular */
.lider-photo-wrap {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid #0d6efd;  /* azul tipo Bootstrap primary */
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f5f7fa;
}

/* Imagen que se adapta al círculo */
.lider-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Tipografía y texto */
.lider-nombre {
    font-size: 1.05rem;
    font-weight: 700;
    color: #222;
}

.lider-cargo {
    font-size: 0.9rem;
    color: #6c757d;
}

/* Opcional: animación leve al pasar por la imagen */
.lider-photo-wrap:hover img {
    transform: scale(1.05);
    transition: transform 0.25s ease;
}





/* ===============================
   BOTÓN FLOTANTE
================================ */


.radio-float-btn:hover {
    transform: scale(1.05);
}

/* ===============================
   MODAL / VENTANA DE RADIO
================================ */
.radio-modal {
    position: fixed;
    bottom: 90px;
    right: 20px;
    width: 380px;
    max-width: 95%;
    background: rgba(0,0,0,0.95);
    border-radius: 18px;
    border: 2px solid #475569;
    box-shadow: 0 20px 50px rgba(0,0,0,0.85);
    display: none;
    z-index: 9999;
}

/* Header */
.radio-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: linear-gradient(135deg, #475569, #475569);
    border-radius: 16px 16px 0 0;
    font-weight: bold;
}

.radio-modal-header button {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
}

/* Body */
.radio-modal-body {
    padding: 16px;
}

/* Indicador */
.live-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #475569;
    font-weight: bold;
    margin-bottom: 12px;
}

/* Punto animado */
.live-dot {
    width: 10px;
    height: 10px;
    background: #e74c3c;
    border-radius: 50%;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(231,76,60,.7); }
    70% { box-shadow: 0 0 0 10px rgba(231,76,60,0); }
    100% { box-shadow: 0 0 0 0 rgba(231,76,60,0); }
}

/* Iframe */
.radio-iframe-wrapper iframe {
    width: 100%;
    height: 220px;
    border-radius: 14px;
    border: none;
}

/* Móvil */
@media (max-width: 600px) {
    .radio-modal {
        left: 10px;
        right: 10px;
        width: auto;
    }

    .radio-iframe-wrapper iframe {
        height: 240px;
    }
}
/* Wrapper */
.radio-iframe-wrapper {
    position: relative;
    width: 100%;
}

/* Iframe */
.radio-iframe-wrapper iframe {
    width: 100%;
    height: 300px;
    min-height: 300px;
    border: none;
    border-radius: 14px;
}

/* Overlay visual */
.radio-play-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.55);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5;
    cursor: pointer;
    border-radius: 14px;
}

/* Contenido del overlay */
.radio-play-content {
    text-align: center;
    color: #fff;
    font-weight: bold;
}

/* Ícono ▶ */
.play-icon {
    font-size: 64px;
    color: #f5b041;
    margin-bottom: 12px;
    animation: pulsePlay 1.6s infinite;
}

/* Texto */
.play-text {
    font-size: 1rem;
    line-height: 1.4;
}

/* Animación */
@keyframes pulsePlay {
    0% { transform: scale(1); }
    70% { transform: scale(1.15); opacity: 0.8; }
    100% { transform: scale(1); }
}

/* Móvil */
@media (max-width: 600px) {
    .radio-iframe-wrapper iframe {
        height: 340px;
        min-height: 340px;
    }

    .play-icon {
        font-size: 56px;
    }
}



/* Wrapper */
/* BOTÓN FLOTANTE */


/* MODAL */
#radio-modal {
    position: fixed;
    bottom: 90px;
    right: 20px;
    width: 390px;
    max-width: 95%;
    background: rgba(0,0,0,0.95);
    border-radius: 18px;
    border: 2px solid #475569;
    box-shadow: 0 20px 50px rgba(0,0,0,0.9);
    display: none;
    z-index: 9999;
}

/* HEADER */
.radio-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 16px;
    background: linear-gradient(135deg, #E2E8F0, #475569);
    font-weight: bold;
    border-radius: 16px 16px 0 0;
}

.radio-modal-header button {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
}

/* BODY */
.radio-modal-body {
    padding: 16px;
    max-height: 75vh;
    overflow-y: auto;
}

/* INDICADOR */
.live-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #f5b041;
    font-weight: bold;
    margin-bottom: 8px;
}

.live-dot {
    width: 10px;
    height: 10px;
    background: #e74c3c;
    border-radius: 50%;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(231,76,60,.7); }
    70% { box-shadow: 0 0 0 10px rgba(231,76,60,0); }
    100% { box-shadow: 0 0 0 0 rgba(231,76,60,0); }
}

/* AYUDA */

/* BOTÓN FLOTANTE RADIO – MUY GRANDE */
.radio-float-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 300px;   /* ⬅️ ICONO MUY GRANDE */
    height: 300px;  /* ⬅️ ICONO MUY GRANDE */
    padding: 0;
    border: none;
    background: transparent;
    cursor: pointer;
    z-index: 9999;
}

.radio-float-btn svg {
    width: 100%;
    height: 100%;
    display: block;
}
@media (max-width: 600px) {
    .radio-float-btn {
        width: 180px;   /* grande pero usable */
        height: 180px;
        bottom: 20px;
        right: 20px;
    }
}

/* BOTÓN FLOTANTE RADIO – EXTRA GRANDE */
.radio-float-btn {
    position: fixed;
    bottom: 40px;
    right: 40px;
    width: 180px;   /* 🔥 EXTRA GRANDE */
    height: 180px;  /* 🔥 EXTRA GRANDE */
    padding: 0;
    border: none;
    background: transparent;
    cursor: pointer;
    z-index: 9999;
}

.radio-float-btn svg {
    width: 100%;
    height: 100%;
    display: block;
}@media (max-width: 600px) {
    .radio-float-btn {
        width: 120px;   /* grande pero usable */
        height: 120px;
        bottom: 20px;
        right: 20px;
    }
}