/* =========================================================
   GoWebix Hero Slider Premium
   Clean Premium CSS v4.0
   ========================================================= */

/* =========================================================
   1. WRAPPER / FULL WIDTH
   ========================================================= */
.gowebix-hero-wrapper,
.gowebix-hero-wrapper.gowebix-hero-swiper,
section.gowebix-hero-wrapper,
header.gowebix-hero-wrapper,
div.gowebix-hero-wrapper {
    position: relative;
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(-50vw + 50%);
    margin-right: 0;
    left: 0;
    right: 0;
    overflow: hidden;
    z-index: 1;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    margin-top: 0 !important;
}

.gowebix-hero-swiper {
    position: relative;
    overflow: hidden;
}

/* Evitar efectos colaterales horizontales */
body {
    overflow-x: hidden;
}

/* =========================================================
   2. HERO CONTAINER
   ========================================================= */
.gowebix-hero-container {
    position: relative;
    width: 100%;
    height: 100svh;
    min-height: 620px;
    overflow: hidden;
    z-index: 1;
}

.admin-bar .gowebix-hero-container {
    min-height: calc(100svh - 32px);
}

/* =========================================================
   3. SWIPER STRUCTURE
   ========================================================= */
.gowebix-hero-container .swiper-wrapper,
.gowebix-hero-container .swiper-slide {
    height: 100%;
}

.swiper-slide.gowebix-hero-slide {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    isolation: isolate;
}

/* =========================================================
   4. BACKGROUND IMAGE
   ========================================================= */
.gowebix-slide-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    z-index: 1;
    transform: scale(1);
}

/* =========================================================
   5. OVERLAY
   ========================================================= */
.gowebix-hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
}

/* =========================================================
   6. CONTENT LAYER
   ========================================================= */
.gowebix-hero-content {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: min(1200px, calc(100% - 64px));
    height: 100%;
    margin: 0 auto;
    padding: 80px 0;
    box-sizing: border-box;
    color: #ffffff;
}

/* ---------------------------------------------------------
   Alignment system
   --------------------------------------------------------- */
.gowebix-hero-content.align-left {
    align-items: flex-start;
    text-align: left;
}

.gowebix-hero-content.align-center {
    align-items: center;
    text-align: center;
}

.gowebix-hero-content.align-right {
    align-items: flex-end;
    text-align: right;
}

/* =========================================================
   7. TYPOGRAPHY
   ========================================================= */
.hero-title {
    position: relative;
    display: block;
    width: 100%;
    max-width: 600px;
    margin: 0 0 18px;
    padding-left: 24px;
    font-size: clamp(2.5rem, 5.2vw, 4.6rem);
    font-weight: 700;
    line-height: 1.06;
    letter-spacing: -0.025em;
    color: #ffffff;
    text-shadow: 0 3px 18px rgba(0, 0, 0, 0.32);
    padding-top: 30px !important;
}

.hero-title::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.12em;
    width: 4px;
    height: calc(100% - 0.24em);
    border-radius: 10px;
    background: #00C2E5;
    box-shadow: 0 0 18px rgba(0, 194, 229, 0.35);
}

/* Centro y derecha: sin barra lateral */
.gowebix-hero-content.align-center .hero-title,
.gowebix-hero-content.align-right .hero-title {
    padding-left: 0;
}

.gowebix-hero-content.align-center .hero-title::before,
.gowebix-hero-content.align-right .hero-title::before {
    display: none;
}

.hero-desc {
    margin-top: 6px;
    width: 100%;
    max-width: 540px;
    margin: 0 0 32px;
    font-size: clamp(1.05rem, 1.65vw, 1.45rem);
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.96);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.28);
}

.hero-desc p:last-child {
    margin-bottom: 0;
}

/* Control de ancho según alineación */
.gowebix-hero-content.align-center .hero-title,
.gowebix-hero-content.align-center .hero-desc {
    margin-left: auto;
    margin-right: auto;
}

.gowebix-hero-content.align-right .hero-title,
.gowebix-hero-content.align-right .hero-desc {
    margin-left: auto;
    margin-right: 0;
}

/* =========================================================
   8. BUTTON
   ========================================================= */
.hero-btn {
    margin-top: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 54px;
    padding: 14px 34px;
    background: #00C2E5;
    border: 2px solid #00C2E5;
    border-radius: 999px;
    color: #ffffff !important;
    text-decoration: none !important;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1;
    letter-spacing: 0.01em;
    box-shadow: 0 10px 30px rgba(0, 194, 229, 0.22);
    transition:
        transform 0.25s ease,
        background-color 0.25s ease,
        color 0.25s ease,
        border-color 0.25s ease,
        box-shadow 0.25s ease;
}

.hero-btn:hover,
.hero-btn:focus {
    background: transparent;
    border-color: #00C2E5;
    color: #00C2E5 !important;
    transform: translateY(-2px);
    box-shadow: 0 16px 34px rgba(0, 194, 229, 0.22);
}

.hero-btn:focus-visible {
    outline: 2px solid #ffffff;
    outline-offset: 3px;
}

/* =========================================================
   9. NAVIGATION ARROWS
   ========================================================= */
.gowebix-hero-arrow {
    position: absolute;
    top: 50%;
    z-index: 20;
    width: 56px;
    height: 56px;
    margin-top: -28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.26);
    color: #ffffff;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    user-select: none;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition:
        transform 0.25s ease,
        background-color 0.25s ease,
        border-color 0.25s ease,
        opacity 0.25s ease;
}

.gowebix-hero-arrow:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
    transform: scale(1.06);
}

.gowebix-hero-arrow:focus-visible {
    outline: 2px solid #ffffff;
    outline-offset: 3px;
}

.gowebix-hero-prev {
    left: 28px;
}

.gowebix-hero-next {
    right: 28px;
}

/* =========================================================
   10. PAGINATION
   ========================================================= */
.gowebix-hero-container .swiper-pagination {
    bottom: 30px !important;
    z-index: 20;
}

.gowebix-hero-container .swiper-pagination-bullet {
    width: 11px;
    height: 11px;
    margin: 0 5px !important;
    background: rgba(255, 255, 255, 0.72) !important;
    opacity: 0.45;
    transition:
        transform 0.25s ease,
        opacity 0.25s ease,
        background-color 0.25s ease;
}

.gowebix-hero-container .swiper-pagination-bullet-active {
    background: #00C2E5 !important;
    opacity: 1;
    transform: scale(1.12);
}

/* =========================================================
   11. SCROLL BUTTON
   ========================================================= */
.gowebix-hero-scroll-btn {
    position: absolute;
    left: 50%;
    bottom: 76px;
    transform: translateX(-50%);
    z-index: 20;
    width: 40px;
    height: 62px;
    display: flex;
    justify-content: center;
    padding-top: 10px;
    border: 2px solid rgba(255, 255, 255, 0.45);
    border-radius: 999px;
    cursor: pointer;
    transition:
        transform 0.25s ease,
        border-color 0.25s ease,
        opacity 0.25s ease;
}

.gowebix-hero-scroll-btn:hover {
    border-color: #00C2E5;
    transform: translateX(-50%) scale(1.06);
}

.gowebix-hero-scroll-btn:focus-visible {
    outline: 2px solid #ffffff;
    outline-offset: 3px;
}

.gowebix-hero-scroll-btn span {
    display: block;
    width: 7px;
    height: 18px;
    border-radius: 999px;
    background: #ffffff;
    animation: gowebixScrollDown 1.8s ease-in-out infinite;
}

@keyframes gowebixScrollDown {
    0% {
        transform: translateY(0);
        opacity: 1;
    }
    50% {
        transform: translateY(12px);
        opacity: 0.55;
    }
    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

/* =========================================================
   12. READY STATE
   ========================================================= */
.gowebix-hero-wrapper:not(.slider-ready) .gowebix-hero-arrow,
.gowebix-hero-wrapper:not(.slider-ready) .swiper-pagination {
    opacity: 0;
    visibility: hidden;
}

.gowebix-hero-wrapper.slider-ready .gowebix-hero-arrow,
.gowebix-hero-wrapper.slider-ready .swiper-pagination {
    opacity: 1;
    visibility: visible;
}

/* Single slide */
.gowebix-hero-wrapper.gowebix-hero-single-slide .gowebix-hero-arrow,
.gowebix-hero-wrapper.gowebix-hero-single-slide .swiper-pagination {
    display: none !important;
}

/* =========================================================
   13. LARGE TABLET / SMALL DESKTOP
   ========================================================= */
@media (max-width: 1199px) {
    .gowebix-hero-content {
        width: min(1000px, calc(100% - 56px));
    }

    .hero-title {
        max-width: 820px;
        font-size: clamp(2.3rem, 5vw, 4.1rem);
    }

    .hero-desc {
        max-width: 680px;
    }
}

/* =========================================================
   14. TABLET
   ========================================================= */
@media (max-width: 991px) {
    .gowebix-hero-container {
        height: 78svh;
        min-height: 560px;
    }

    .gowebix-hero-content {
        width: calc(100% - 44px);
        padding: 64px 0;
    }

    .hero-title {
        font-size: clamp(2rem, 5vw, 3.4rem);
        margin-bottom: 16px;
    }

    .hero-desc {
        font-size: clamp(1rem, 2vw, 1.2rem);
        margin-bottom: 26px;
    }

    .gowebix-hero-arrow {
        width: 50px;
        height: 50px;
        margin-top: -25px;
        font-size: 20px;
    }

    .gowebix-hero-prev {
        left: 18px;
    }

    .gowebix-hero-next {
        right: 18px;
    }

    .gowebix-hero-scroll-btn {
        bottom: 64px;
    }
}

/* =========================================================
   15. MOBILE
   ========================================================= */
@media (max-width: 767px) {
    .gowebix-hero-container {
        height: 68svh;
        min-height: 500px;
    }

    .gowebix-hero-content {
        width: calc(100% - 40px);
        padding: 110px 0 80px;
        align-items: center !important;
        justify-content: flex-start !important;
        text-align: center !important;
    }

    .hero-title,
    .gowebix-hero-content.align-right .hero-title,
    .gowebix-hero-content.align-center .hero-title,
    .gowebix-hero-content.align-left .hero-title {
        max-width: 100%;
        margin-left: auto;
        margin-right: auto;
        margin-bottom: 16px;
        padding-left: 0;
        font-size: clamp(1.9rem, 8vw, 2.6rem) !important;
        line-height: 1.12;
        text-align: center;
    }

    .hero-title::before {
        display: none;
    }

    .hero-desc,
    .gowebix-hero-content.align-right .hero-desc,
    .gowebix-hero-content.align-center .hero-desc,
    .gowebix-hero-content.align-left .hero-desc {
        max-width: 90%;
        margin-left: auto;
        margin-right: auto;
        margin-bottom: 24px;
        font-size: clamp(0.95rem, 3.6vw, 1.1rem);
        line-height: 1.5;
        text-align: center;
    }

    .hero-btn {
        min-height: 48px;
        padding: 12px 24px;
        font-size: 0.95rem;
    }

    .gowebix-hero-arrow {
        display: none;
    }

    .gowebix-hero-container .swiper-pagination {
        bottom: 18px !important;
    }

    .gowebix-hero-container .swiper-pagination-bullet {
        width: 8px;
        height: 8px;
        margin: 0 4px !important;
    }

    .gowebix-hero-scroll-btn {
        display: none;
    }
}

/* =========================================================
   16. SMALL MOBILE
   ========================================================= */
@media (max-width: 480px) {
    .gowebix-hero-container {
        height: 62svh;
        min-height: 440px;
    }

    .gowebix-hero-content {
        width: calc(100% - 24px);
        padding: 100px 0 58px;
        justify-content: flex-start !important;
    }

    .hero-title {
        font-size: clamp(1.75rem, 8vw, 2.3rem);
        margin-bottom: 12px;
    }

    .hero-desc {
        font-size: 0.95rem;
        line-height: 1.45;
        margin-bottom: 20px;
    }

    .hero-btn {
        padding: 11px 22px;
        font-size: 0.92rem;
    }
}

/* =========================================================
   17. MOBILE LANDSCAPE – FULL WIDTH FIX
   ========================================================= */
@media (max-width: 932px) and (orientation: landscape) and (max-height: 500px) {
    .gowebix-hero-wrapper,
    .gowebix-hero-swiper {
        position: relative;
        width: 100vw !important;
        max-width: 100vw !important;
        left: 50% !important;
        right: auto !important;
        margin-left: -50vw !important;
        margin-right: 0 !important;
        transform: none !important;
        overflow: hidden !important;
    }

    .gowebix-hero-container {
        width: 100vw !important;
        max-width: 100vw !important;
        height: 100vh !important;
        min-height: 320px !important;
        margin: 0 !important;
    }

    .gowebix-hero-container .swiper-wrapper,
    .gowebix-hero-container .swiper-slide,
    .swiper-slide.gowebix-hero-slide {
        width: 100% !important;
        height: 100% !important;
    }

    .gowebix-slide-image {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
        object-position: center center !important;
    }

    .gowebix-hero-content {
        width: calc(100% - 36px) !important;
        max-width: none !important;
        height: 100% !important;
        padding: 22px 0 34px !important;
        box-sizing: border-box !important;
        align-items: center !important;
        justify-content: center !important;
        text-align: center !important;
        left: 0 !important;
        right: 0 !important;
        margin: 0 auto !important;
    }

    .hero-title,
    .gowebix-hero-content.align-left .hero-title,
    .gowebix-hero-content.align-center .hero-title,
    .gowebix-hero-content.align-right .hero-title {
        max-width: 82% !important;
        margin: 0 auto 8px !important;
        padding-left: 0 !important;
        font-size: clamp(1.15rem, 3vw, 1.8rem) !important;
        line-height: 1.08 !important;
        text-align: center !important;
    }

    .hero-title::before {
        display: none !important;
    }

    .hero-desc,
    .gowebix-hero-content.align-left .hero-desc,
    .gowebix-hero-content.align-center .hero-desc,
    .gowebix-hero-content.align-right .hero-desc {
        max-width: 72% !important;
        margin: 0 auto 12px !important;
        font-size: clamp(0.72rem, 1.45vw, 0.92rem) !important;
        line-height: 1.3 !important;
        text-align: center !important;
    }

    .hero-btn {
        min-height: 38px !important;
        padding: 8px 16px !important;
        font-size: 0.8rem !important;
    }

    .gowebix-hero-arrow,
    .gowebix-hero-scroll-btn {
        display: none !important;
    }

    .gowebix-hero-container .swiper-pagination {
        bottom: 10px !important;
    }

    .gowebix-hero-container .swiper-pagination-bullet {
        width: 7px !important;
        height: 7px !important;
    }

    .vc_row .gowebix-hero-wrapper,
    .wpb_row .gowebix-hero-wrapper,
    .vc_column_container .gowebix-hero-wrapper,
    .vc_column-inner .gowebix-hero-wrapper,
    .wpb_content_element .gowebix-hero-wrapper {
        width: 100vw !important;
        max-width: 100vw !important;
        left: 50% !important;
        margin-left: -50vw !important;
        margin-right: 0 !important;
    }

    .vc_row .gowebix-hero-swiper,
    .wpb_row .gowebix-hero-swiper,
    .vc_column_container .gowebix-hero-swiper,
    .vc_column-inner .gowebix-hero-swiper,
    .wpb_content_element .gowebix-hero-swiper {
        width: 100vw !important;
        max-width: 100vw !important;
    }
}

/* =========================================================
   18. REDUCED MOTION
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
    .hero-btn,
    .gowebix-hero-arrow,
    .gowebix-hero-scroll-btn,
    .gowebix-hero-container .swiper-pagination-bullet {
        transition: none;
    }

    .gowebix-hero-scroll-btn span {
        animation: none;
    }
}

/* =========================================================
   19. BAKERY / ROW FIX
   Evita la franja blanca superior cuando el hero va en row full width
   ========================================================= */
.gwx-hero-row,
.gwx-hero-row.vc_row,
.gwx-hero-row .vc_column_container,
.gwx-hero-row .vc_column-inner,
.gwx-hero-row .wpb_wrapper {
    padding-top: 0 !important;
    margin-top: 0 !important;
}
/* =========================================================
   HERO MOBILE HEADER OFFSET FIX
   ========================================================= */
@media (max-width: 767px) {
    .gowebix-hero-wrapper,
    .gowebix-hero-wrapper.gowebix-hero-swiper,
    section.gowebix-hero-wrapper,
    header.gowebix-hero-wrapper,
    div.gowebix-hero-wrapper {
        margin-top: 72px !important;
    }

    .gowebix-hero-container {
        min-height: calc(68svh + 72px);
    }
}

@media (max-width: 480px) {
    .gowebix-hero-wrapper,
    .gowebix-hero-wrapper.gowebix-hero-swiper,
    section.gowebix-hero-wrapper,
    header.gowebix-hero-wrapper,
    div.gowebix-hero-wrapper {
        margin-top: 72px !important;
    }

    .gowebix-hero-container {
        min-height: calc(62svh + 72px);
    }
}