/* ==========================================
   PANTALLA DE PRECARGA (PRELOADER)
   ========================================== */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: #243529; /* El color verde oscuro corporativo de tu preloader */
    z-index: 99999; /* Máxima prioridad sobre cualquier menú o slider */
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.6s ease, vertical-align 0.6s ease, visibility 0.6s;
    opacity: 1;
    visibility: visible;
}

/* Contenedor centralizado */
.preloader-content {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* El círculo del logo */
.loader-logo-circle {
    width: 90px;
    height: 90px;
    border: 1px solid rgba(130, 142, 101, 0.4);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    margin-bottom: 25px;
}

/* Efecto de doble aro sutil del mockup */
.loader-logo-circle::after {
    content: '';
    position: absolute;
    top: 4px;
    left: 4px;
    right: 4px;
    bottom: 4px;
    border: 1px solid #828E65; /* Color verde oliva */
    border-radius: 50%;
}

.loader-logo-circle span {
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem;
    color: #828E65;
    font-weight: 600;
    letter-spacing: 1px;
    z-index: 2;
}

/* Textos informativos de marca */
.loader-brand-title {
    font-family: 'Playfair Display', serif;
    color: #828E65;
    font-size: 1.6rem;
    font-weight: 600;
    letter-spacing: 4px;
    margin: 0 0 8px 0;
}

.loader-brand-subtitle {
    font-family: 'Inter', sans-serif;
    color: #828E65;
    font-size: 0.65rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    opacity: 0.8;
    margin: 0;
}

/* Línea divisoria minimalista */
.loader-divider {
    border: none;
    height: 1px;
    background: linear-gradient(to right, transparent, #828E65, transparent);
    width: 60px;
    margin: 20px 0;
    opacity: 0.5;
}

/* ANIMACIÓN DE LOS 3 PUNTOS */
.loader-dots {
    display: flex;
    gap: 8px;
}

.loader-dots span {
    width: 6px;
    height: 6px;
    background-color: #828E65; /* Color oliva para los puntos */
    border-radius: 50%;
    opacity: 0.3;
    animation: blinkDots 1.4s infinite ease-in-out both;
}

/* Desfase de tiempo para que se muevan de forma consecutiva */
.loader-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.loader-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes blinkDots {
    0%, 80%, 100% { 
        transform: scale(0.8);
        opacity: 0.3;
    } 
    40% { 
        transform: scale(1.2);
        opacity: 1; /* El punto se ilumina y crece cuando está activo */
    }
}

/* Clase para ocultar suavemente con JavaScript */
#preloader.fade-out {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}
