/* RESET */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', sans-serif;
}

/* FONDO TIPO AGUA */
body {
    height: 100vh;
    background: linear-gradient(135deg, #4fc3f7, #0d47a1);
    background-attachment: fixed;
}

/* NAVBAR BLANCO */
.navbar {
    width: 100%;
    height: 80px;
    padding: 0 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;

    background: #ffffff;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}



/* LOGO */
.logo-container {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo {
    width: 45px;
    height: 45px;
    object-fit: contain;
}

/* TITULO CON DEGRADADO */
.title {
    font-size: 20px;
    font-weight: bold;
    letter-spacing: 1px;

    background: linear-gradient(90deg, #4fc3f7, #0d47a1);

    -webkit-background-clip: text;
    background-clip: text;

    -webkit-text-fill-color: transparent;
}

/* MENU */
.menu {
    display: flex;
    gap: 25px;
}

/* LINKS CON DEGRADADO */
.menu a {
    text-decoration: none;
    font-size: 15px;
    position: relative;
    transition: all 0.3s ease;

    background: linear-gradient(90deg, #4fc3f7, #0d47a1);

    -webkit-background-clip: text;
    background-clip: text;

    -webkit-text-fill-color: transparent;
}

/* HOVER (GLOW + ESCALA) */
.menu a:hover {
    transform: scale(1.15);

    text-shadow:
        0 0 5px rgba(79,195,247,0.8),
        0 0 10px rgba(13,71,161,0.8),
        0 0 20px rgba(79,195,247,0.6);
}

/* SUBRAYADO ANIMADO */
.menu a::after {
    content: "";
    position: absolute;
    width: 0%;
    height: 2px;
    left: 0;
    bottom: -5px;
    background: linear-gradient(90deg, #4fc3f7, #0d47a1);
    transition: 0.3s;
}

.menu a:hover::after {
    width: 100%;
}

/* SPLASH PRO */
#splash {
    position: fixed;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, #4fc3f7, #0d47a1);
    overflow: hidden;
    z-index: 9999;
}

/* OLAS */
.waves {
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 200px;
}

.wave {
    fill: rgba(255,255,255,0.2);
    animation: waveMove 6s infinite linear;
}

/* DIFERENTES CAPAS */
.wave1 {
    animation-duration: 6s;
    opacity: 0.5;
}
.wave2 {
    animation-duration: 9s;
    opacity: 0.3;
}
.wave3 {
    animation-duration: 12s;
    opacity: 0.2;
}

/* ANIMACIÓN */
@keyframes waveMove {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-200px);
    }
}

/* CONTENIDO CENTRO */
.splash-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

/* LOGO */
.splash-logo {
    width: 90px;
    margin-bottom: 15px;
    animation: float 3s ease-in-out infinite;
}

/* TEXTO */
.splash-content h1 {
    color: white;
    font-size: 42px;
    letter-spacing: 3px;
    animation: fadeIn 2s ease;
}

/* FLOTAR */
@keyframes float {
    0%,100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* FADE */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* SIDEBAR */
.sidebar {
    position: fixed;
    top: 50%;
    left: 15px;
    transform: translateY(-50%);

    background: #ffffff;
    padding: 15px 10px;
    border-radius: 20px;

    display: flex;
    flex-direction: column;
    gap: 20px;

    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    z-index: 999;
}

/* LINKS */
.sidebar a {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 45px;
    height: 45px;
    border-radius: 12px;

    transition: all 0.3s ease;
}

/* ICONOS */
.sidebar i {
    width: 22px;
    height: 22px;

    stroke: url(#gradientStroke);
    stroke-width: 2;
}

/* HOVER */
.sidebar a:hover {
    transform: scale(1.15);

    box-shadow:
        0 0 10px rgba(79,195,247,0.6),
        0 0 20px rgba(13,71,161,0.5);
}


/* BIBLIA */

/* CONTENEDOR GENERAL */
.section-biblia {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    min-height: 100vh;
    padding: 20px;
}

/* TARJETA CENTRAL */
.biblia-card {
    background: rgba(255,255,255,0.08);
    backdrop-filter: blur(15px);

    padding: 25px;
    border-radius: 20px;

    box-shadow:
        0 0 20px rgba(79,195,247,0.3),
        0 0 40px rgba(13,71,161,0.3);

    width: 320px;
    text-align: center;
}

/* SELECTOR */
.input-libro {
    padding: 14px;
    border-radius: 12px;
    background: linear-gradient(90deg, #4fc3f7, #0d47a1);
    color: white;
    cursor: pointer;
    margin-bottom: 10px;

    transition: 0.3s;
}

.input-libro:hover {
    transform: scale(1.05);
    background: white;
    color: #0d47a1;
}

/* LISTA */
/* FONDO OSCURO */
.lista-libros {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);

    width: 90%;
    max-width: 400px;

    background: white;
    border-radius: 20px;
    padding: 15px;

    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;

    max-height: 400px;
    overflow-y: auto;

    z-index: 9999;

    opacity: 0;
    pointer-events: none;

    transition: all 0.3s ease;
}

/* ACTIVA */
.lista-libros.activa {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
    pointer-events: auto;
}

/* ITEMS */
.item-libro {
    padding: 10px;
    border-radius: 10px;
    background: #f0f0f0;
    cursor: pointer;
    transition: 0.3s;
}

.item-libro:hover {
    background: linear-gradient(90deg, #4fc3f7, #0d47a1);
    color: white;
    transform: scale(1.05);
}

/* INPUT CAPÍTULO */
#capitulo {
    width: 100%;
    padding: 12px;
    border-radius: 10px;
    border: none;
    margin-top: 10px;

    outline: none;
    text-align: center;
    font-size: 16px;
}

/* BOTÓN BUSCAR */
.btn-buscar {
    width: 100%;
    margin-top: 10px;
    padding: 12px;

    border: none;
    border-radius: 12px;

    background: linear-gradient(90deg, #4fc3f7, #0d47a1);
    color: white;

    font-weight: bold;
    cursor: pointer;

    transition: 0.3s;
}

.btn-buscar:hover {
    transform: scale(1.05);

    box-shadow:
        0 0 10px rgba(79,195,247,0.6),
        0 0 20px rgba(13,71,161,0.5);
}

/* 📖 BLOQUE DE LECTURA */
#versiculos {
    max-width: 800px;
    margin-top: 30px;
    padding: 25px;

    background: rgba(0,0,0,0.25);
    backdrop-filter: blur(10px);

    border-radius: 20px;

    color: white;

    box-shadow:
        0 0 20px rgba(79,195,247,0.2);
}

/* TÍTULO */
#versiculos h3 {
    text-align: center;
    margin-bottom: 20px;

    text-shadow:
        0 0 5px rgba(79,195,247,0.6);
}

/* VERSÍCULO */
.versiculo {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;

    padding: 8px;
    border-radius: 8px;

    transition: 0.2s;
}

.versiculo:hover {
    background: rgba(79,195,247,0.1);
}

/* NÚMERO */
.numero {
    color: #4fc3f7;
    font-weight: bold;
}

/* TEXTO */
.texto {
    line-height: 1.6;
}

.lista-libros::-webkit-scrollbar {
    width: 6px;
}

.lista-libros::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #4fc3f7, #0d47a1);
    border-radius: 10px;
}

.lista-libros::-webkit-scrollbar-track {
    background: rgba(0,0,0,0.05);
}

/* ANIMACIÓN ENTRADA */
.animar-entrada {
    animation: fadeInUp 0.4s ease;
}

/* ANIMACIÓN SALIDA */
.animar-salida {
    animation: fadeOut 0.3s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeOut {
    from { opacity: 1; }
    to { opacity: 0; transform: translateY(20px); }
}

.btn-regresar {
    padding: 10px 20px;
    border: none;
    border-radius: 12px;
    cursor: pointer;

    background: linear-gradient(90deg, #4fc3f7, #0d47a1);
    color: white;

    transition: 0.3s;
}

.btn-regresar:hover {
    transform: scale(1.05);
    box-shadow:
        0 0 10px rgba(79,195,247,0.6),
        0 0 20px rgba(13,71,161,0.5);
}

/* =========================
   TRANSICIÓN DE PÁGINA
========================= */

/* SIEMPRE VISIBLE */
body {
    opacity: 1;
    transition: opacity 0.4s ease, transform 0.4s ease;
}

/* SALIDA */
body.fade-out {
    opacity: 0;
    transform: scale(0.98);
}

/* ENTRADA SUAVE */
body {
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* CANVAS FONDO */
#waves {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;

    z-index: -1; /* 👈 detrás de todo */
}

/* HISTORIA */

/* SECCIÓN */
.historia-section {
    display: flex;
    gap: 40px;
    padding: 80px 40px;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
}

/* VIDEO */
.video-container {
    position: relative;
    width: 500px;
    max-width: 100%;
    border-radius: 20px;
    overflow: hidden;
    cursor: pointer;

    transition: 0.4s;
}

.video-container:hover {
    transform: scale(1.05);
}

/* VIDEO */
.video-container video {
    width: 100%;
    display: block;
    border-radius: 20px;
}

/* BOTÓN PLAY */
.overlay-play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);

    font-size: 50px;
    color: white;

    background: rgba(0,0,0,0.4);
    width: 80px;
    height: 80px;
    border-radius: 50%;

    display: flex;
    align-items: center;
    justify-content: center;

    transition: 0.3s;
}

/* HOVER PLAY */
.overlay-play:hover {
    transform: translate(-50%, -50%) scale(1.2);
}

/* TEXTO */
.historia-texto {
    max-width: 500px;

    background: rgba(255,255,255,0.08);
    backdrop-filter: blur(12px);

    padding: 25px;
    border-radius: 20px;

    color: white;

    box-shadow:
        0 0 20px rgba(79,195,247,0.2);
}

/* TITULO */
.historia-texto h2 {
    margin-bottom: 15px;
    font-size: 28px;

    text-shadow:
        0 0 5px rgba(79,195,247,0.6);
}

/* TEXTO */
.historia-texto p {
    margin-bottom: 12px;
    line-height: 1.6;
}

/* TRANSICIÓN */
body {
    animation: fadeIn 0.5s ease;
}

body.fade-out {
    opacity: 0;
    transform: scale(0.98);
    transition: 0.4s;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* REPRODUCTOR */

.video-container {
    position: relative;
    width: 500px;
    border-radius: 20px;
    overflow: hidden;
    cursor: pointer;
    transition: 0.4s;
}

.video-container:hover {
    transform: scale(1.03);
}

/* VIDEO */
video {
    width: 100%;
    display: block;
}

/* BOTÓN CENTRAL */
.overlay-play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);

    font-size: 50px;
    color: white;

    background: rgba(0,0,0,0.4);
    width: 80px;
    height: 80px;
    border-radius: 50%;

    display: flex;
    align-items: center;
    justify-content: center;

    transition: 0.3s;
}

.overlay-play:hover {
    transform: translate(-50%, -50%) scale(1.2);
}

/* CONTROLES */
.video-controls {
    position: absolute;
    bottom: 0;
    width: 100%;

    background: rgba(0,0,0,0.4);
    backdrop-filter: blur(8px);

    padding: 10px;
    display: flex;
    align-items: center;
    gap: 10px;

    color: white;
    font-size: 14px;
}

/* PROGRESS */
.progress-container {
    flex: 1;
    height: 6px;
    background: rgba(255,255,255,0.2);
    border-radius: 10px;
    cursor: pointer;
}

.progress-bar {
    height: 100%;
    width: 0%;

    background: linear-gradient(90deg, #4fc3f7, #0d47a1);
    border-radius: 10px;
}

/* AUX */

/* CONTENEDOR */
.video-container {
    position: relative;
    width: 500px;
    border-radius: 20px;
    overflow: hidden;
}

/* VIDEO */
video {
    width: 100%;
    display: block;
}

/* BOTÓN */
.overlay-play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 50px;
    background: rgba(0,0,0,0.4);
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* CONTROLES */
.video-controls {
    position: absolute;
    bottom: 0;
    width: 100%;
    padding: 10px;

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

    background: rgba(0,0,0,0.4);
    backdrop-filter: blur(10px);

    opacity: 1;
    transition: 0.3s;
}

/* OCULTAR CONTROLES */
.video-container.hide-controls .video-controls {
    opacity: 0;
}

/* PROGRESS */
.progress-container {
    flex: 1;
    height: 6px;
    background: rgba(255,255,255,0.2);
    cursor: pointer;
}

.progress-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #4fc3f7, #0d47a1);
}

/* VOLUMEN */
#volume {
    width: 80px;
}

/* CINEMATIC */
/* 🌫️ FONDO OSCURO */
.cinematic {
    position: fixed;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    top: 0;
    left: 0;

    z-index: 900; /* 👈 base */

    opacity: 0;
    pointer-events: none;
    transition: 0.4s;
}

.cinematic.active {
    opacity: 1;
}

/* 🎥 VIDEO */
.video-container {
    position: relative;
    z-index: 1000;
}

/* 📦 TEXTO HISTORIA */
.historia-texto {
    position: relative;
    z-index: 1000;
}

/* 📂 SIDEBAR */
.sidebar {
    z-index: 1100;
}

/* 📌 NAVBAR */
.navbar {
    z-index: 1100;
}

.historia-texto {
    box-shadow:
        0 0 30px rgba(79,195,247,0.3);
}

/* 🌫️ OVERLAY CON BLUR REAL */
.cinematic {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;

    backdrop-filter: blur(12px); /* 🔥 BLUR REAL */
    background: rgba(0,0,0,0.5);

    z-index: 900;

    opacity: 0;
    pointer-events: none;

    transition: 0.4s ease;
}

.cinematic.active {
    opacity: 1;
}

/* 🎥 VIDEO FOCO */
.video-container {
    position: relative;
    z-index: 1000;

    transition: transform 0.5s ease, box-shadow 0.5s ease;
}

/* 🔥 ZOOM + LUZ */
.video-container.playing {
    transform: scale(1.05);

    box-shadow:
        0 0 30px rgba(255,255,255,0.2),
        0 0 60px rgba(79,195,247,0.4),
        0 0 100px rgba(13,71,161,0.5);
}

/* ✨ TEXTO TAMBIÉN DESTACA */
.historia-texto {
    position: relative;
    z-index: 1000;

    transition: 0.4s;
}

.historia-texto.cinematic-on {
    transform: scale(1.02);
}

/* 📂 SIDEBAR */
.sidebar {
    z-index: 1100;
}

/* 📌 NAVBAR */
.navbar {
    z-index: 1100;
}

/* CARRUSEL */ 

.eventos-section {
    padding: 80px 20px;
    text-align: center;
    color: white;
}

.carousel {
    position: relative;
    max-width: 800px;
    margin: auto;
    overflow: hidden;
    border-radius: 20px;
}

.slides {
    display: flex;
    transition: transform 0.5s ease;
}

.slide {
    min-width: 100%;
    position: relative;
}

.slide img {
    width: 100%;
    height: 400px;
    object-fit: cover;
}

/* INFO */
.info {
    position: absolute;
    bottom: 0;
    width: 100%;
    padding: 20px;

    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(8px);
}

/* BOTONES */
.prev, .next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);

    background: rgba(0,0,0,0.4);
    border: none;
    color: white;
    font-size: 25px;
    padding: 10px;
    cursor: pointer;
}

.prev { left: 10px; }
.next { right: 10px; }

/* VERSICULO */

.versiculo-section {
    padding: 60px 20px;
    text-align: center;
}

.versiculo-box {
    max-width: 700px;
    margin: auto;
    padding: 25px;

    border-radius: 20px;

    background: rgba(255,255,255,0.08);
    backdrop-filter: blur(10px);

    color: white;

    box-shadow:
        0 0 20px rgba(79,195,247,0.3);
}

/* CANALIZACION IGLESIAS */

body {
    margin: 0;
    font-family: 'Segoe UI', sans-serif;
    background: linear-gradient(135deg, #4fc3f7, #1565c0);
}

/* CONTENEDOR */
.canal-section {
    margin-top: 100px;
    text-align: center;
}

/* CARD */
.canal-card {
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(15px);

    padding: 30px;
    border-radius: 20px;

    width: 350px;
    margin: auto;

    color: white;
}

/* SELECTOR */
.input-ciudad {
    padding: 15px;
    border-radius: 10px;
    background: rgba(255,255,255,0.15);
    cursor: pointer;
}

/* LISTA */
.lista-ciudades {
    max-height: 200px;
    overflow-y: auto;
    background: white;
    border-radius: 10px;
    margin-top: 10px;

    display: none;
}

.lista-ciudades.activa {
    display: block;
}

.lista-ciudades div {
    padding: 10px;
    cursor: pointer;
}

.lista-ciudades div:hover {
    background: #e3f2fd;
}

/* MAPA */
#mapa {
    width: 90%;
    height: 250px;
    margin: 20px auto;
    border-radius: 15px;
    background: linear-gradient(45deg, #81d4fa, #0288d1);
}

/* INFO */
.info-iglesia {
    color: white;
    padding: 15px;
}

/* CARDS */
.iglesia-card {
    background: rgba(255,255,255,0.1);
    margin: 10px;
    padding: 15px;
    border-radius: 12px;
    color: white;

    transition: 0.3s;
}

.iglesia-card:hover {
    transform: scale(1.05);
    box-shadow: 0 0 15px #4fc3f7;
}