:root {
    --e-bg: rgba(255, 255, 255, 0.10); /* 10% de opacidad en el fondo */
    --e-primary: #008f9a;
    --e-secondary: #00b2b2;
    --e-text: #0f172a;
    --e-font: 'Space Grotesk', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --e-ease: cubic-bezier(0.16, 1, 0.3, 1);
    --e-gradient: linear-gradient(90deg, #008f9a 0%, #00b2b2 100%);
}

#mayar-preloader {
    position: fixed;
    inset: 0;
    background: var(--e-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 99999999;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--e-font);
    overflow: hidden;
    transition: opacity 0.5s var(--e-ease), visibility 0.5s var(--e-ease);
}

/* Desactivar elementos anteriores (neuronas, mesh, palabras rotativas) */
.e-mesh,
#neuron-canvas,
.e-text-outer {
    display: none !important;
}

.e-content {
    position: relative;
    z-index: 10;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 18px;
    padding: 20px;
}

.e-logo-wrap {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    background: transparent;
    border: none;
    box-shadow: none;
}

.e-logo {
    height: 48px;
    width: auto;
    max-width: 220px;
    object-fit: contain;
    opacity: 1;
    filter: drop-shadow(0 3px 12px rgba(0, 143, 154, 0.18));
    transition: transform 0.5s var(--e-ease);
}

.e-indicator-modern {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 190px;
    gap: 8px;
    margin-top: 4px;
}

.e-progress-bar-modern {
    width: 100%;
    height: 3px;
    background: rgba(0, 143, 154, 0.10); /* 10% de opacidad en el fondo de la barra */
    position: relative;
    border-radius: 999px;
    overflow: hidden;
}

.e-progress-fill {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 0%;
    background: var(--e-gradient);
    border-radius: 999px;
    transition: width 0.25s var(--e-ease);
    box-shadow: 0 0 10px rgba(0, 178, 178, 0.45);
}

.e-percentage {
    font-family: var(--e-font);
    font-size: 0.72rem;
    font-weight: 600;
    color: #007780;
    letter-spacing: 0.14em;
    font-variant-numeric: tabular-nums;
}

/* Success / Loaded State */
#mayar-preloader.loaded {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.5s var(--e-ease), visibility 0.5s var(--e-ease);
}

#mayar-preloader.loaded .e-content {
    transform: scale(0.97) translateY(-8px);
    opacity: 0;
    transition: transform 0.4s var(--e-ease), opacity 0.4s var(--e-ease);
}