/* ==========================================================================
   LIBRERIA_CORE - BASE GLOBAL (WPO 100%)
   ========================================================================== */

/* #region VARIABLES TIPOGRAFICAS Y TIPOGRAFIA NATIVA GLOBAL */

:root {
    --fuente-base: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
    --ancho-contenedor: 1200px;
    --radio-borde: 8px;
    --transicion-base: 0.25s ease;
}

body,
button,
input,
select,
textarea,
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--fuente-base) !important;
    color: var(--color-texto);
}

/* #endregion */


/* #region RESETEO ESTRUCTURAL DE LIENZO COMPLETO (GENERATEPRESS) */

.home #page,
.home .site-content,
.home .inside-article,
.home .entry-content,
.lienzo-completo #page,
.lienzo-completo .site-content,
.lienzo-completo .inside-article,
.lienzo-completo .entry-content {
    padding: 0 !important;
    margin: 0 !important;
    max-width: 100% !important;
    width: 100% !important;
}

/* #endregion */


/* #region CLASES UTILITARIAS REUTILIZABLES */

.contenedor-core {
    width: 100%;
    max-width: var(--ancho-contenedor);
    margin-left: auto;
    margin-right: auto;
    padding-left: 20px;
    padding-right: 20px;
}

.fondo-primario {
    background-color: var(--color-primario);
    color: var(--color-blanco);
}

.fondo-oscuro {
    background-color: var(--color-fondo-oscuro);
    color: var(--color-blanco);
}

.fondo-claro {
    background-color: var(--color-fondo-claro);
}

/* #endregion */


/* #region SLIDER */

/* --- SLIDE TIPO LOOP (CAMINATA 3D EN PC / DESVANECIMIENTO EN MÓVIL) --- */
.core-slider-loop-master {
    position: absolute;
    top: 0;
    left: 0;
    width: 100% !important;
    height: 100% !important;
    overflow: hidden !important;
    z-index: 0;
    background-color: var(--color-fondo-oscuro);
}

.core-slider-loop-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--slider-overlay, rgba(0, 0, 0, 0.45));
    z-index: 2;
    pointer-events: none;
}

.core-slider-loop-fuente {
    display: none !important;
}

/* Entorno Móvil (hasta 767px) - Desvanecimiento cruzado (Crossfade) */
@media (max-width: 767px) {
    .core-slider-loop-master {
        background-image: var(--slider-fondo-movil, none);
        background-size: cover;
        background-repeat: no-repeat;
        background-position: center center;
    }

    .core-slider-loop-depth {
        display: none !important;
    }

    .core-slider-loop-fade {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        display: block;
        z-index: 1;
    }

    .core-slider-loop-fade-slide {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        opacity: 0;
        animation-duration: calc(var(--total-slides, 4) * var(--tiempo-slide, 5s));
        animation-timing-function: ease-in-out;
        animation-iteration-count: infinite;
        animation-delay: calc(var(--i, 0) * var(--tiempo-slide, 5s));
        will-change: opacity;
    }

        .core-slider-loop-fade-slide img {
            width: 100%;
            height: 100%;
            display: block;
            object-fit: cover;
            object-position: center center;
        }
}

/* Entorno Escritorio y Tablet (desde 768px) - Intacto */
@media (min-width: 768px) {
    .core-slider-loop-fade {
        display: none !important;
    }

    .core-slider-loop-depth {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        display: block;
        z-index: 1;
    }

    .core-slider-loop-depth-slide {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        opacity: 0;
        animation-duration: calc(var(--total-slides, 4) * var(--tiempo-slide, 4s));
        animation-timing-function: linear;
        animation-iteration-count: infinite;
        animation-delay: calc(var(--i, 0) * var(--tiempo-slide, 4s));
        will-change: transform, opacity;
    }

        .core-slider-loop-depth-slide img {
            width: 100%;
            height: 100%;
            display: block;
            object-fit: cover;
            object-position: center center;
        }
}

/* #endregion */



