<?php if ( !defined('ABSPATH')) exit;

?>.eclipsi-hero-slider,
.eclipsi-hero-slider-v2,
.eclipsi-hero-swiper,
.eclipsi-hero-swiper .swiper-wrapper {
    width: 100%;
    background: #01013d !important;
    background-color: #01013d !important;
}

.eclipsi-hero-slider,
.eclipsi-hero-slider-v2 {
    height: calc(100vh - var(--eclipsi-hero-offset, 148px));
    overflow: hidden;
}

.eclipsi-hero-swiper,
.eclipsi-hero-swiper .swiper-wrapper {
    height: 100%;
}

@media screen and (max-width:1190px) {
    /* Height will still be controlled by the JS variable if possible, 
       but we can add a different fallback if needed. */
}



.eclipsi-hero-slider .swiper-slide,
.eclipsi-hero-slider-v2 .swiper-slide {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    position: relative;
    background-size: cover;
    background-position: center;
    background-color: #01013d;
    height: 100%;
}

/* Row-like container for alignment */
.slide-inner {
    width: 80%;
    max-width: 1080px;
    /* Divi et_pb_row standard */
    margin: 0 auto;
    padding: 0;
    display: flex;
    align-items: center;
    height: 100%;
    z-index: 10;
}

/* Split content logic */
.slide-text-side {
    width: 50%;
    text-align: left;
    padding-right: 0;
    opacity: 0;
    transition: opacity 0.6s ease;
}

.swiper-slide-active .slide-text-side {
    opacity: 1;
}

.slide-image-side {
    width: 50%;
    height: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slide-image-side img.slide-img {
    max-width: 100%;
    height: auto;
    object-fit: contain;
}

/* Image background logic for non-center images */
.slide-bg-half {
    position: absolute;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    width: 50%;
    height: 90%;
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    background-image: var(--bg-url);
    z-index: 1;
}

/* Mask Effect Slide */
.slide-mask-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    height: 80%;
    -webkit-mask-image: var(--mask-url);
    mask-image: var(--mask-url);
    -webkit-mask-size: contain;
    mask-size: contain;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;
    overflow: hidden;
}

.slide-mask-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slide-centered {
    flex-direction: column;
    text-align: center;
}

.slide-centered .slide-text-side,
.slide-centered .slide-image-side {
    width: 100%;
    padding: 0;
}

/* Typography Adjustments */
.slide-logo img {
    margin-bottom: 2rem;
}

.slide-text-side h2,
.slide-overlay-text h2 {
    font-size: 3.5rem;
    line-height: 1.1;
    font-weight: 800;
    margin-bottom: 1.5rem;
}

/* Specific style for Slide 1 text logo */
.swiper-slide[data-id="1"] .slide-text-side h2 {
    font-size: 6rem;
    letter-spacing: -2px;
    text-transform: none;
    margin-bottom: 2rem;
    background: linear-gradient(135deg, #fff 0%, #e0e0e0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 4px 4px rgba(0, 0, 0, 0.2));
    font-weight: 700;
}



.slide-text-side p {
    font-size: 2.2rem;
    line-height: 1.3;
    font-weight: 700;
}





/* Scroll Down Button */
.scroll-down-btn {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 100;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s ease;
    opacity: 0.6;
    /* Transparente por defecto */
}

.scroll-down-btn:hover {
    opacity: 1;
    /* Opaco en hover */
}

.scroll-down-btn .et-pb-icon {
    font-size: 46px !important;
    font-weight: 400 !important;
    color: #fff !important;
}

.scroll-down-btn:hover .et-pb-icon {
    color: #fff !important;
    /* Mantener blanco sólido en hover */
}

.slide-text-side h2,
.slide-text-side p,
.slide-overlay-text h2 {
    color: #fff !important;
}

/* Tablet/Small Desktop Adjustment */
@media (min-width: 981px) and (max-width: 1200px) {
    .swiper-slide[data-id="1"] .slide-text-side h2 {
        font-size: 5rem;
    }
}

/* MOBILE */
@media (max-width: 980px) {

    .eclipsi-hero-slider,
    .eclipsi-hero-slider-v2 {
        height: calc(100vh - var(--eclipsi-hero-offset, 120px));
        min-height: 400px;
    }

    .eclipsi-hero-slider .swiper-slide {
        flex-direction: column;
        justify-content: center;
        /* Centrar todo el grupo */
        padding: 40px 0;
        background-image: none !important;
    }

    .slide-inner {
        flex-direction: column;
        height: auto;
        flex: none;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 0 20px;
        order: 1;
        margin-bottom: 40px;
        /* Más margen inferior según lo solicitado */
    }

    .slide-text-side {
        width: 100% !important;
        padding: 0;
        text-align: center;
        order: 1;
    }

    .slide-bg-half {
        position: relative !important;
        width: 100% !important;
        height: 55% !important;
        /* Más presencia visual */
        max-height: 400px;
        flex-shrink: 0;
        right: auto !important;
        top: auto !important;
        transform: none !important;
        order: 2;
    }

    .scroll-down-btn {
        position: relative !important;
        bottom: auto !important;
        left: auto !important;
        transform: none !important;
        order: 4;
        margin-top: 40px;
        /* Misma separación que texto-imagen */
        display: block;
    }

    .scroll-down-btn .et-pb-icon {
        font-size: 46px !important;
        font-weight: 400 !important;
    }

    /* Reducción de fuentes para móvil */
    .slide-text-side h2 {
        font-size: 2rem !important;
        margin-bottom: 1rem;
    }

    .swiper-slide[data-id="1"] .slide-text-side h2 {
        font-size: 3rem !important;
        letter-spacing: -1px;
    }


    .slide-text-side p {
        font-size: 1.2rem !important;
        line-height: 1.4;
    }

    .slide-logo img {
        max-width: 180px;
    }

    .slide-image-side {
        width: 100%;
        order: 3;
    }
}