/* =============================================
   SCROLLBAR
   ============================================= */

html {
    overflow-y: scroll !important;
    scrollbar-gutter: stable;
}

html {
    scrollbar-width: thin;
    scrollbar-color: #888 transparent;
}

::-webkit-scrollbar {
    width: 8px;
    background: transparent;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #666;
}

/* =============================================
   HERO SECTION - STICKY, NUNCA SE MUEVE
   ============================================= */

.hero-scroll-section {
    position: sticky !important;
    position: -webkit-sticky !important;
    top: 0 !important;
    z-index: 1 !important;
    height: 100vh !important;
    height: 100dvh !important;
    width: 100%;
    overflow: hidden !important;
    background: #E8E8E8;
    margin: 0 !important;
}

.hero-scroll-section.e-con {
    --margin-top: 0px !important;
    --margin-bottom: 0px !important;
    --min-height: 100vh !important;
    margin: 0 !important;
}

.hero-scroll-section > .e-con-inner {
    position: relative;
    height: 100% !important;
    width: 100%;
    display: flex;
    align-items: center;
    overflow: hidden !important;
    margin: 0 !important;
}

.hero-scroll-section .e-con > .e-con-inner {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

/* =============================================
   COLUMNA DE TEXTO
   ============================================= */

.hero-text-column {
    position: relative;
    z-index: 10;
    height: 100vh !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.hero-text-column.e-con {
    --padding-inline-start: 80px !important;
    padding-left: 80px !important;
    min-height: unset !important;
}

.hero-text-column > .e-con-inner {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    height: auto !important;
}

.hero-text-column .elementor-widget-wrap {
    display: flex !important;
    align-items: center !important;
    height: auto !important;
}

/* =============================================
   FRASES
   ============================================= */

.phrase-1 {
    position: relative !important;
    opacity: 1;
    will-change: opacity, filter;
}

.phrase-1.elementor-widget {
    margin: 0 !important;
    width: 100% !important;
}

.phrase-2 {
    position: absolute !important;
    top: 50% !important;
    left: 80px !important;
    transform: translateY(-50%) !important;
    opacity: 0;
    will-change: opacity, filter;
}

.phrase-2.elementor-widget {
    margin: 0 !important;
    width: calc(100% - 80px) !important;
    left: 80px !important;
}

.phrase-1 span,
.phrase-2 span {
    color: #FF6B6B !important;
}

/* =============================================
   COLUMNA DE IMAGENES
   ============================================= */

.hero-images-column {
    position: relative;
    height: 100% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.hero-images-column.e-con {
    min-height: unset !important;
}

.hero-images-column > .e-con-inner {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-img-1 {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.hero-img-1 img {
    width: 100%;
    height: auto;
    max-width: 680px;
}

/* SVG Logo Animado */
.hero-svg-container {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 600px !important;
    min-width: 600px !important;
    max-width: 600px !important;
}

.hero-svg-container svg,
.hero-svg-container object {
    width: 600px !important;
    min-width: 600px !important;
    height: auto !important;
}

.hero-svg-container .hero-logo-svg {
    width: 600px !important;
    min-width: 600px !important;
}

/* =============================================
   LOGO PARTICLES CANVAS
   ============================================= */

.hero-particles-container {
    position: relative;
    z-index: 1;
    width: 600px !important;
    height: 645px !important;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-particles-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100% !important;
    height: 100% !important;
    pointer-events: auto;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-particles-container {
        width: 350px !important;
        height: 376px !important;
    }
}

@media (max-width: 480px) {
    .hero-particles-container {
        width: 280px !important;
        height: 301px !important;
    }
}

.hero-img-2 {
    position: absolute !important;
    top: 50% !important;
    left: calc(50% + 15px) !important;
    z-index: 5;
    opacity: 0;
    width: 100%;
    max-width: 500px;
    will-change: transform, opacity;
}

.hero-img-2 img {
    width: 100%;
    height: auto;
}

/* =============================================
   SECTION 2 - PASA POR ENCIMA DEL HERO
   ============================================= */

.section-index-2 {
    position: relative !important;
    z-index: 100 !important;
    min-height: 100vh !important;
    background: #ffffff;
}

.section-index-2.e-con {
    --min-height: 100vh !important;
}

/* =============================================
   RESPONSIVE
   ============================================= */

@media (max-width: 1024px) {
    .hero-img-1 img {
        max-width: 450px;
    }

    .hero-img-2 {
        max-width: 400px;
    }

    .hero-text-column.e-con {
        --padding-inline-start: 40px !important;
        padding-left: 40px !important;
    }

    .phrase-2,
    .phrase-2.elementor-widget {
        left: 40px !important;
        width: calc(100% - 40px) !important;
    }
}

@media (max-width: 768px) {
    .hero-img-1 img {
        max-width: 320px;
    }

    .hero-img-2 {
        max-width: 300px;
    }

    .hero-text-column.e-con {
        --padding-inline-start: 20px !important;
        padding-left: 20px !important;
    }

    .phrase-2,
    .phrase-2.elementor-widget {
        left: 20px !important;
        width: calc(100% - 20px) !important;
    }
}
