/*
Theme Name: Async Transitions Theme header footer cortina 2
Author: Tu Nombre
Version: 1.0
Description: Tema personalizado para transiciones asíncronas con Elementor, Barba.js y custom code de elementor
*/
/* Estilos generales para el menú principal */
[data-barba="container"] {
    position: relative;
    margin: 0;
    padding: 0;
    top: 0;
    left: 0;
    width: 100%;
    visibility: visible;
    opacity: 1;
    transform: none;
    background-color: #ffffff; /* Fondo de elementor y frontend */
    transition: opacity 0.5s ease-in-out;
}

.main-menu {
    list-style: none; /* Elimina los puntos de la lista */
    display: flex; /* Alinea los elementos en una fila */
    justify-content: center; /* Centra el menú horizontalmente */
    gap: 20px; /* Espaciado entre los elementos del menú */
    margin: 0; /* Elimina márgenes */
    padding: 0; /* Elimina padding */
    background-color: #333; /* Fondo oscuro */
    padding: 10px 20px; /* Espaciado interno */
    border-radius: 5px; /* Bordes redondeados */
}

/* Estilos para los enlaces del menú */
.main-menu li a {
    text-decoration: none; /* Elimina el subrayado */
    color: #fff; /* Color del texto blanco */
    font-size: 16px; /* Tamaño de fuente */
    font-weight: bold; /* Negrita */
    padding: 10px 15px; /* Espaciado interno */
    transition: all 0.3s ease; /* Animación suave al pasar el ratón */
    border-radius: 5px; /* Bordes redondeados */
}

/* Efecto hover para los enlaces */
.main-menu li a:hover {
    background-color: #555; /* Fondo más claro al pasar el ratón */
    color: #ffd700; /* Texto dorado */
}

/* Destacar la página activa */
.main-menu .current-menu-item {
    background-color: #ffd700; /* Fondo dorado para la página activa */
}

.main-menu .current-menu-item a {
    color: #333; /* Texto oscuro */
}

/* Estilo para móviles */
@media (max-width: 768px) {
    .main-menu {
        flex-direction: column; /* Menú en columna */
        align-items: center; /* Centrado */
    }

    .main-menu li a {
        width: 100%; /* Ancho completo */
        text-align: center; /* Centrado del texto */
    }
}

/*PRELOAD CON LINEA DE IZQUIERDA A DERECHA Y PORCENTAJE

#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

#progress-container {
    position: relative;
    width: 100vw;
    height: 10px;
    background-color: #ddd;
    overflow: visible;
}

#progress-bar {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background-color: #333;
    width: 0;
}

#progress-percentage {
    position: absolute;
    top: -20px;
    left: 0;
    font-size: 14px;
    font-weight: bold;
    color: #333;
    transform: translate(0, 0);
    white-space: nowrap;
}
*/





/*PRELOAD CON LINEA DE DERECHA A IZQUIERDA Y PORCENTAJE
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: white; /* Fondo blanco 
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

/* #progress-container {
    position: relative;
    width: 100vw;
    height: 10px; Altura de la barra
    background-color: #ddd; /* Fondo claro
    overflow: visible; /* Asegurar que el número sea visible
}

#progress-bar {
    position: absolute;
    top: 0;
    right: 0; /* Barra comienza desde el borde derecho
    height: 100%;
    background-color: #333;
    width: 0; /* Barra comienza sin ancho 
}

#progress-percentage {
    position: absolute;
    top: -20px; /* Número encima de la barra 
    right: 0; /* Número comienza en el borde derecho 
    font-size: 14px;
    font-weight: bold;
    color: #333; /* Color del texto 
    white-space: nowrap; /* Evitar que el texto se corte 
    transform: translateX(0); /* Sin desplazamiento inicial 
    opacity: 1; /* Número visible desde el inicio 
}
*/

/*PRELOAD CON OVERLAY Y CIRCULO GIRANDO EN EL CENTRO

body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    font-family: Arial, sans-serif;
}

#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #333;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

#loader-circle {
    width: 50px;
    height: 50px;
    border: 4px solid #fff;
    border-radius: 50%;
    border-top: 4px solid transparent;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

#overlay {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 0;
    background-color: #333;
    z-index: 9998;
}
*/


/* 📌 PRELOAD CON CIRCULO - OVERLAY DE ABAJO A ARRIBA  */
body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    font-family: Arial, sans-serif;
}

/* 📌 Overlay de transición */
.transition {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: #333;
    z-index: 9999;
    transform: scaleY(0);
    transform-origin: bottom;
}

/* 📌 Preloader */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #333;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
}

/* 📌 SVG dentro del preloader */
#loader-svg {
    width: 80px;
    height: 80px;
    animation: spin 1s linear infinite;
}

/* 📌 Animación de rotación del SVG */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 📌 Ajuste para ocultar el scroll durante la transición */
html, body {
    overflow: hidden;
}
