/* ============================================================
   EL SHADDAY — SITE.CSS
   Diseño: Luxury Spiritual | Glassmorphism + Parallax Motion
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;600;700&family=Inter:wght@300;400;500;600&display=swap');

/* ─── VARIABLES ─── */
:root {
    --azul: #01529E;
    --azul-oscuro: #002D58;
    --azul-profundo: #001830;
    --dorado: #E2B753;
    --dorado-claro: #F5D48A;
    --blanco: #FFFFFF;
    --crema: #F8F6F0;
    --gris-suave: #F0F4FA;
    --texto: #1A1A2E;
    --texto-suave: #556080;
    --radio: 16px;
    --sombra: 0 20px 60px rgba(0, 45, 88, 0.12);
    --sombra-hover: 0 30px 80px rgba(1, 82, 158, 0.22);
    --trans: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ─── RESET & BASE ─── */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--texto);
    background: var(--crema);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5 {
    font-family: 'Cinzel', serif;
    letter-spacing: 0.02em;
}

/* ─── SCROLLBAR ─── */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: var(--azul-profundo);
}

::-webkit-scrollbar-thumb {
    background: var(--dorado);
    border-radius: 3px;
}

/* ══════════════════════════════════════════════
   PRELOADER
══════════════════════════════════════════════ */
#preloader {
    position: fixed;
    inset: 0;
    background: var(--azul-profundo);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 28px;
    transition: opacity 0.9s ease, visibility 0.9s ease;
}

    #preloader.oculto {
        opacity: 0;
        visibility: hidden;
    }

.loader-logo {
    width: 120px;
    animation: floatLogo 2.5s ease-in-out infinite;
    filter: drop-shadow(0 0 20px rgba(226,183,83,0.5));
}

.loader-barra {
    width: 200px;
    height: 3px;
    background: rgba(255,255,255,0.1);
    border-radius: 2px;
    overflow: hidden;
}

.loader-progreso {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--dorado), var(--dorado-claro));
    border-radius: 2px;
    animation: cargarBarra 1.8s ease-in-out forwards;
}

.loader-texto {
    font-family: 'Cinzel', serif;
    color: rgba(255,255,255,0.5);
    font-size: 0.75rem;
    letter-spacing: 4px;
    text-transform: uppercase;
}

@keyframes floatLogo {
    0%, 100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

@keyframes cargarBarra {
    0% {
        width: 0%;
    }

    60% {
        width: 70%;
    }

    100% {
        width: 100%;
    }
}

/* ══════════════════════════════════════════════
   NAVBAR
══════════════════════════════════════════════ */
#navbar {
    padding: 1.4rem 0;
    transition: var(--trans);
    background: transparent;
}

    #navbar.nav-scrolled {
        padding: 0.7rem 0;
        background: rgba(0, 24, 48, 0.85);
        backdrop-filter: blur(20px) saturate(180%);
        -webkit-backdrop-filter: blur(20px) saturate(180%);
        border-bottom: 1px solid rgba(226, 183, 83, 0.2);
        box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
    }

.navbar-brand img {
    height: 48px;
    transition: height 0.4s ease;
    filter: brightness(0) invert(1);
}

#navbar.nav-scrolled .navbar-brand img {
    height: 38px;
}

/* Links */
.nav-link {
    color: rgba(255,255,255,0.9) !important;
    font-weight: 500;
    font-size: 0.82rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding: 0.5rem 1rem !important;
    position: relative;
    transition: color 0.3s ease;
}

    .nav-link::after {
        content: '';
        position: absolute;
        bottom: -2px;
        left: 50%;
        transform: translateX(-50%);
        width: 0;
        height: 2px;
        background: linear-gradient(90deg, var(--dorado), var(--dorado-claro));
        border-radius: 1px;
        transition: width 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .nav-link:hover,
    .nav-link.active {
        color: var(--dorado) !important;
    }

        .nav-link:hover::after,
        .nav-link.active::after {
            width: 70%;
        }

/* Botón Portal */
.btn-portal {
    background: transparent;
    color: var(--dorado) !important;
    border: 1.5px solid var(--dorado);
    border-radius: 50px;
    padding: 9px 26px;
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: var(--trans);
    white-space: nowrap;
}

    .btn-portal:hover {
        background: var(--dorado);
        color: var(--azul-profundo) !important;
        box-shadow: 0 0 25px rgba(226, 183, 83, 0.45);
        transform: translateY(-2px);
    }

/* Toggler */
.navbar-toggler {
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
}

    .navbar-toggler:focus {
        box-shadow: none;
    }

/* ══════════════════════════════════════════════
   HERO
══════════════════════════════════════════════ */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background: linear-gradient( 160deg, rgba(0, 24, 48, 0.88) 0%, rgba(1, 82, 158, 0.75) 50%, rgba(0, 24, 48, 0.92) 100% ), url('/images/portada.png') center / cover no-repeat;
    text-align: center;
    overflow: hidden;
}

    /* Partículas de fondo decorativas */
    .hero::before {
        content: '';
        position: absolute;
        inset: 0;
        background-image: radial-gradient(circle at 20% 30%, rgba(226,183,83,0.08) 0%, transparent 50%), radial-gradient(circle at 80% 70%, rgba(1,82,158,0.15) 0%, transparent 50%);
        z-index: 1;
    }

    /* Líneas decorativas de luz */
    .hero::after {
        content: '';
        position: absolute;
        top: -50%;
        left: -50%;
        width: 200%;
        height: 200%;
        background: repeating-linear-gradient( 45deg, transparent, transparent 80px, rgba(226,183,83,0.015) 80px, rgba(226,183,83,0.015) 82px );
        z-index: 1;
        animation: moverLineas 25s linear infinite;
    }

@keyframes moverLineas {
    from {
        transform: translateX(0) translateY(0);
    }

    to {
        transform: translateX(82px) translateY(82px);
    }
}

.hero-content {
    position: relative;
    z-index: 3;
    max-width: 900px;
    padding: 0 1.5rem;
    animation: heroEntrada 1.2s cubic-bezier(0.22, 1, 0.36, 1) 0.4s both;
}

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--dorado);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 4px;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    opacity: 0;
    animation: fadeSlideUp 0.8s ease 0.7s both;
}

    .hero-eyebrow::before,
    .hero-eyebrow::after {
        content: '';
        display: block;
        width: 30px;
        height: 1px;
        background: var(--dorado);
        opacity: 0.6;
    }

.hero h1 {
    font-size: clamp(2.8rem, 6vw, 5.5rem);
    font-weight: 700;
    line-height: 1.1;
    color: var(--blanco);
    text-shadow: 0 4px 30px rgba(0,0,0,0.4);
    margin-bottom: 1.5rem;
    opacity: 0;
    animation: fadeSlideUp 0.9s ease 0.9s both;
}

    .hero h1 em {
        font-style: normal;
        color: var(--dorado);
        display: block;
    }

.hero-descripcion {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: rgba(255,255,255,0.8);
    font-weight: 300;
    line-height: 1.8;
    max-width: 620px;
    margin: 0 auto 2.5rem;
    opacity: 0;
    animation: fadeSlideUp 0.9s ease 1.1s both;
}

.hero-botones {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    opacity: 0;
    animation: fadeSlideUp 0.9s ease 1.3s both;
}

.btn-hero-primario {
    background: linear-gradient(135deg, var(--dorado), var(--dorado-claro));
    color: var(--azul-profundo);
    border: none;
    border-radius: 50px;
    padding: 14px 36px;
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: var(--trans);
    box-shadow: 0 8px 30px rgba(226,183,83,0.4);
}

    .btn-hero-primario:hover {
        transform: translateY(-3px) scale(1.02);
        box-shadow: 0 15px 40px rgba(226,183,83,0.55);
        color: var(--azul-profundo);
    }

.btn-hero-secundario {
    background: rgba(255,255,255,0.08);
    color: var(--blanco);
    border: 1.5px solid rgba(255,255,255,0.3);
    border-radius: 50px;
    padding: 14px 36px;
    font-weight: 500;
    font-size: 0.9rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: var(--trans);
    backdrop-filter: blur(8px);
}

    .btn-hero-secundario:hover {
        background: rgba(255,255,255,0.15);
        border-color: rgba(255,255,255,0.6);
        color: var(--blanco);
        transform: translateY(-3px);
    }

/* Indicador scroll */
.hero-scroll {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: rgba(255,255,255,0.4);
    font-size: 0.7rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    opacity: 0;
    animation: fadeSlideUp 0.9s ease 1.8s both;
}

.scroll-mouse {
    width: 22px;
    height: 36px;
    border: 1.5px solid rgba(255,255,255,0.3);
    border-radius: 11px;
    display: flex;
    justify-content: center;
    padding-top: 6px;
}

    .scroll-mouse::after {
        content: '';
        width: 3px;
        height: 8px;
        background: var(--dorado);
        border-radius: 2px;
        animation: scrollBola 2s ease infinite;
    }

@keyframes scrollBola {
    0% {
        transform: translateY(0);
        opacity: 1;
    }

    100% {
        transform: translateY(12px);
        opacity: 0;
    }
}

/* Divisor ola */
.hero-ola {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    line-height: 0;
    z-index: 2;
}

    .hero-ola svg {
        display: block;
        width: 100%;
        height: 80px;
    }

/* ══════════════════════════════════════════════
   SECCIONES GENERALES
══════════════════════════════════════════════ */
.sec-padding {
    padding: 110px 0;
}

.sec-titulo {
    font-size: clamp(1.8rem, 3.5vw, 2.8rem);
    font-weight: 700;
    color: var(--azul-oscuro);
    margin-bottom: 1rem;
    text-align: center;
}

.sec-linea {
    display: block;
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg, var(--dorado), var(--dorado-claro));
    border-radius: 2px;
    margin: 0 auto 1.5rem;
}

.sec-subtitulo {
    text-align: center;
    color: var(--texto-suave);
    font-size: 1.05rem;
    font-weight: 300;
    max-width: 560px;
    margin: 0 auto 4rem;
    line-height: 1.8;
}

/* ══════════════════════════════════════════════
   SECCIÓN CONÓCENOS
══════════════════════════════════════════════ */
.bg-conocenos {
    background: var(--crema);
}

.img-historia-wrap {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
}

    .img-historia-wrap img {
        width: 100%;
        height: 420px;
        object-fit: cover;
        display: block;
        transition: transform 0.7s ease;
    }

    .img-historia-wrap:hover img {
        transform: scale(1.04);
    }

/* Badge flotante sobre imagen */
.img-badge {
    position: absolute;
    bottom: 20px;
    left: 20px;
    background: linear-gradient(135deg, var(--dorado), var(--dorado-claro));
    color: var(--azul-profundo);
    border-radius: 14px;
    padding: 14px 22px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
    box-shadow: 0 8px 25px rgba(226,183,83,0.5);
}

.img-badge-num {
    font-family: 'Cinzel', serif;
    font-size: 1.8rem;
    line-height: 1;
}

.img-badge-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    line-height: 1.3;
}

/* Texto lado */
.conocenos-texto h3 {
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    color: var(--azul-oscuro);
    margin-bottom: 1.2rem;
}

.conocenos-texto .lead {
    font-size: 1.05rem;
    color: var(--azul);
    font-weight: 500;
    line-height: 1.8;
    margin-bottom: 1rem;
}

.conocenos-texto p {
    color: var(--texto-suave);
    line-height: 1.9;
    font-size: 0.98rem;
}

/* Cards ministerios */
.card-ministerio {
    background: var(--blanco);
    border: 1px solid rgba(1,82,158,0.08);
    border-radius: var(--radio);
    padding: 2.2rem 1.8rem;
    text-align: center;
    transition: var(--trans);
    position: relative;
    overflow: hidden;
}

    .card-ministerio::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 3px;
        background: linear-gradient(90deg, var(--azul), var(--dorado));
        transform: scaleX(0);
        transition: transform 0.4s ease;
    }

    .card-ministerio:hover {
        transform: translateY(-8px);
        box-shadow: var(--sombra-hover);
        border-color: transparent;
    }

        .card-ministerio:hover::before {
            transform: scaleX(1);
        }


.card-min-icono {
    width: 64px;
    height: 64px;
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(1,82,158,0.08), rgba(1,82,158,0.15));
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.2rem;
    font-size: 1.6rem;
    color: var(--azul);
    transition: var(--trans);
}

.card-ministerio:hover .card-min-icono {
    background: linear-gradient(135deg, var(--azul), var(--azul-oscuro));
    color: var(--blanco);
    transform: rotate(-6deg) scale(1.1);
}

.card-ministerio h4 {
    font-size: 1rem;
    color: var(--azul-oscuro);
    margin-bottom: 0.8rem;
}

.card-ministerio p {
    font-size: 0.9rem;
    color: var(--texto-suave);
    line-height: 1.7;
    margin: 0;
}

/* ══════════════════════════════════════════════
   BAND ESTADÍSTICAS
══════════════════════════════════════════════ */
.band-stats {
    background: linear-gradient(135deg, var(--azul-oscuro), var(--azul-profundo));
    padding: 70px 0;
    position: relative;
    overflow: hidden;
}

    .band-stats::before {
        content: '';
        position: absolute;
        inset: 0;
        background: radial-gradient(ellipse at 30% 50%, rgba(226,183,83,0.07) 0%, transparent 60%);
    }

.stat-item {
    text-align: center;
}

.stat-num {
    font-family: 'Cinzel', serif;
    font-size: clamp(2.2rem, 5vw, 3.5rem);
    font-weight: 700;
    color: var(--dorado);
    line-height: 1;
    display: block;
}

.stat-label {
    color: rgba(255,255,255,0.6);
    font-size: 0.82rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-top: 8px;
    display: block;
}

.stat-divider {
    width: 1px;
    height: 60px;
    background: rgba(255,255,255,0.12);
    align-self: center;
}

/* ══════════════════════════════════════════════
   SECCIÓN UBICACIÓN
══════════════════════════════════════════════ */
.bg-ubicacion {
    background: var(--blanco);
}

.mapa-contenedor {
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--sombra);
    height: 460px;
}

    .mapa-contenedor iframe {
        width: 100%;
        height: 100%;
        border: none;
        display: block;
    }

.info-ubicacion {
    background: linear-gradient(160deg, var(--azul-oscuro), var(--azul-profundo));
    color: var(--blanco);
    border-radius: 24px;
    padding: 2.5rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

    .info-ubicacion::before {
        content: '';
        position: absolute;
        top: -40px;
        right: -40px;
        width: 180px;
        height: 180px;
        border-radius: 50%;
        background: rgba(226,183,83,0.07);
    }

    .info-ubicacion h3 {
        font-size: 1.5rem;
        margin-bottom: 1.8rem;
        color: var(--blanco);
    }

.ub-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 1.4rem;
}

.ub-icono {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(226,183,83,0.15);
    border: 1px solid rgba(226,183,83,0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--dorado);
    font-size: 0.95rem;
    flex-shrink: 0;
}

.ub-texto p {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.7;
    color: rgba(255,255,255,0.85);
}

.ub-texto strong {
    color: var(--dorado-claro);
    font-weight: 600;
}

.btn-mapa {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 13px;
    background: linear-gradient(135deg, var(--dorado), var(--dorado-claro));
    color: var(--azul-profundo);
    border: none;
    border-radius: 12px;
    font-weight: 700;
    font-size: 0.88rem;
    letter-spacing: 0.5px;
    text-decoration: none;
    transition: var(--trans);
    margin-top: 1rem;
}

    .btn-mapa:hover {
        transform: translateY(-2px);
        box-shadow: 0 10px 30px rgba(226,183,83,0.45);
        color: var(--azul-profundo);
    }

/* ══════════════════════════════════════════════
   FOOTER
══════════════════════════════════════════════ */
footer {
    background: var(--azul-profundo);
    color: rgba(255,255,255,0.7);
    padding: 80px 0 32px;
    position: relative;
}

    footer::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 1px;
        background: linear-gradient(90deg, transparent, var(--dorado), transparent);
        opacity: 0.4;
    }

    footer h4 {
        font-family: 'Cinzel', serif;
        font-size: 0.95rem;
        color: var(--blanco);
        letter-spacing: 2px;
        text-transform: uppercase;
        margin-bottom: 1.5rem;
    }

    footer p {
        font-size: 0.9rem;
        line-height: 1.8;
    }

    footer a.pie-link {
        display: block;
        color: rgba(255,255,255,0.65);
        text-decoration: none;
        font-size: 0.88rem;
        padding: 4px 0;
        transition: color 0.3s ease;
    }

        footer a.pie-link:hover {
            color: var(--dorado);
        }

.social-icons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

    .social-icons a {
        width: 42px;
        height: 42px;
        border-radius: 12px;
        background: rgba(255,255,255,0.06);
        border: 1px solid rgba(255,255,255,0.08);
        display: flex;
        align-items: center;
        justify-content: center;
        color: rgba(255,255,255,0.7);
        text-decoration: none;
        transition: var(--trans);
        font-size: 0.95rem;
    }

        .social-icons a:hover {
            background: var(--dorado);
            color: var(--azul-profundo);
            border-color: var(--dorado);
            transform: translateY(-4px);
            box-shadow: 0 8px 20px rgba(226,183,83,0.35);
        }

.footer-divider {
    border: none;
    border-top: 1px solid rgba(255,255,255,0.07);
    margin: 3rem 0 1.5rem;
}

.footer-copy {
    font-size: 0.82rem;
    color: rgba(255,255,255,0.35);
    text-align: center;
}

/* ══════════════════════════════════════════════
   ANIMACIONES DE ENTRADA (SCROLL)
══════════════════════════════════════════════ */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

    .reveal.visible {
        opacity: 1;
        transform: translateY(0);
    }

.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;
}

@keyframes fadeSlideUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes heroEntrada {
    from {
        opacity: 0;
        transform: scale(0.97) translateY(20px);
    }

    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* ══════════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════════ */
@media (max-width: 991px) {
    #navbar .navbar-collapse {
        background: rgba(0, 24, 48, 0.97);
        backdrop-filter: blur(20px);
        padding: 1.5rem;
        border-radius: 16px;
        margin-top: 1rem;
        border: 1px solid rgba(226,183,83,0.15);
    }

    .hero-botones {
        flex-direction: column;
        align-items: center;
    }

        .hero-botones a {
            width: 260px;
            justify-content: center;
        }

    .stat-divider {
        display: none;
    }

    .info-ubicacion {
        margin-top: 1.5rem;
    }
}

@media (max-width: 576px) {
    .sec-padding {
        padding: 70px 0;
    }

    .hero {
        min-height: 100svh;
    }

    .mapa-contenedor {
        height: 320px;
    }
}
