/* =========================================
   HOME HERO CAROUSEL DYNAMICS
   ========================================= */

.inicio-hero-shell {
    position: relative;
    width: 100%;
    margin-top: -80px;
    overflow: hidden;
}

.inicio-hero-frame {
    width: 100%;
    height: clamp(720px, 88vh, 860px);
    min-height: 720px;
    position: relative;
    overflow: hidden;
}

.inicio-hero-carousel,
.inicio-hero-inner,
.inicio-hero-slide,
.carousel-item {
    height: 100%;
    min-height: 720px;
}

.inicio-hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 0;
    transition: transform 6s ease-out;
}

.inicio-hero-carousel .active .inicio-hero-img {
    transform: scale(1.05);
}

.inicio-hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 0;
}

.inicio-hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background:
        linear-gradient(90deg,
            rgba(248, 249, 251, 0.96) 0%,
            rgba(248, 249, 251, 0.88) 14%,
            rgba(248, 249, 251, 0.62) 27%,
            rgba(248, 249, 251, 0.32) 40%,
            rgba(248, 249, 251, 0.10) 54%,
            rgba(248, 249, 251, 0.02) 68%,
            rgba(248, 249, 251, 0) 100%),
        radial-gradient(circle at 10% 78%,
            rgba(255, 255, 255, 0.70) 0%,
            rgba(255, 255, 255, 0.40) 18%,
            rgba(255, 255, 255, 0.15) 38%,
            rgba(255, 255, 255, 0.02) 55%,
            rgba(255, 255, 255, 0) 72%);
}

.inicio-hero-content {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    z-index: 2;
}

.inicio-hero-label {
    color: var(--vi-blue-btn);
    letter-spacing: 2px;
    font-size: 0.85rem;
    text-transform: uppercase;
    font-weight: 700;
    margin-bottom: 1rem;
}

.inicio-hero-content h1 {
    font-family: "Playfair Display", Georgia, "Times New Roman", serif;
    color: var(--vi-teal);
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.inicio-hero-content h1 span {
    color: var(--vi-gold);
}

.inicio-hero-content .lead {
    color: var(--vi-text);
    font-size: 1.1rem;
    max-width: 90%;
    margin-bottom: 2rem;
}

/* =========================================
   HERO CAROUSEL CONTROLS
   ========================================= */

.inicio-hero-control {
    z-index: 5;
    width: 58px;
    height: 58px;
    top: 51%;
    transform: translateY(-50%);
    border-radius: 50%;
    opacity: 1;
    background: rgba(39, 55, 70, 0.28);
    border: 1px solid rgba(80, 105, 126, 0.28);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow:
        0 4px 15px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.18);
    transition:
        transform 0.25s ease,
        background 0.25s ease,
        border-color 0.25s ease,
        box-shadow 0.25s ease;
}

.inicio-hero-control:hover {
    transform: translateY(-50%) scale(1.05);
    background: var(--vi-teal, #008080);
    border-color: var(--vi-teal, #008080);
    opacity: 1;
    box-shadow:
        0 10px 28px rgba(0, 128, 128, 0.28),
        inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

.inicio-hero-control i {
    color: #ffffff !important;
    font-size: 1.7rem;
    line-height: 1;
    transition: color 0.25s ease;
}

.carousel-control-prev.inicio-hero-control {
    left: 34px;
}

.carousel-control-next.inicio-hero-control {
    right: 34px;
}

/* =========================================
   HERO INDICATORS
   ========================================= */

.inicio-hero-indicators {
    bottom: 20px;
    z-index: 5;
}

.inicio-hero-indicators [data-bs-target] {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background-color: rgba(255, 255, 255, 0.55);
    border: none;
    margin: 0 6px;
    opacity: 1;
    transition:
        width 0.3s ease,
        transform 0.3s ease,
        background-color 0.3s ease;
}

.inicio-hero-indicators .active {
    width: 26px;
    background-color: var(--vi-teal);
    transform: scale(1.08);
}

/* =========================================
   HOME CARDS LAYOUT REFINEMENT
   ========================================= */

.vi-home-info-section {
    background-color: var(--vi-soft);
}

.vi-help-grid-home .vi-help-card,
.vi-info-grid-home .vi-info-card {
    height: 100%;
    min-height: 280px;
    padding: 2.8rem 2.2rem;
}

.vi-help-grid-home .vi-help-card,
.vi-info-grid-home .vi-info-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.vi-help-grid-home .vi-help-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.25rem;
}

.vi-info-grid-home .vi-info-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.25rem;
}

.vi-help-grid-home .vi-help-title,
.vi-info-grid-home .vi-info-title {
    margin-bottom: 0.9rem;
}

.vi-help-grid-home .vi-help-text,
.vi-info-grid-home .vi-info-text {
    max-width: 330px;
    margin-left: auto;
    margin-right: auto;
}

/* =========================================
   CHATBOT SECTION
   ========================================= */

.vi-chatbot-section {
    background: linear-gradient(135deg, #1f2829 0%, #006f72 45%, #008080 100%);
}

.vi-chatbot-section h2 {
    color: #ffffff !important;
    text-shadow: 0 8px 24px rgba(0, 0, 0, 0.22);
}

.vi-chatbot-description {
    color: rgba(255, 255, 255, 0.92) !important;
}

.vi-chatbot-kicker {
    color: var(--vi-gold);
    letter-spacing: 2px;
}

.vi-chatbot-icon {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    box-shadow: none;
    overflow: visible;
}

.vi-chatbot-icon--section {
    width: 92px;
    height: 92px;
    padding: 0;
}

.vi-chatbot-icon--mockup {
    width: 68px;
    height: 68px;
    padding: 0;
}

.vi-chatbot-icon__img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    display: block;
    background: transparent;
}

.vi-chatbot-mockup {
    max-width: 450px;
    padding: 1.5rem;
    border-radius: 1.5rem;
    background:
        linear-gradient(135deg,
            rgba(31, 40, 41, 0.96) 0%,
            rgba(47, 55, 61, 0.96) 100%);
    border: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow:
        0 26px 70px rgba(0, 0, 0, 0.28),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.vi-chatbot-mockup h5,
.vi-chatbot-section .vi-chatbot-mockup h5,
.vi-chatbot-section .vi-chatbot-mockup .text-navy-deep {
    color: #ffffff !important;
    text-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
}

.vi-chatbot-mockup small,
.vi-chatbot-section .vi-chatbot-mockup small {
    color: #3ee28a !important;
    font-weight: 600;
}

.vi-chatbot-mockup .border-bottom,
.vi-chatbot-section .border-bottom {
    border-bottom-color: rgba(255, 255, 255, 0.26) !important;
}

.vi-chatbot-question {
    display: inline-block;
    padding: 1rem;
    border-radius: 1.5rem;
    border-bottom-right-radius: 4px;
    background: linear-gradient(135deg, #008080 0%, #006f72 100%);
    color: #ffffff;
    text-align: left;
    box-shadow: 0 10px 26px rgba(0, 128, 128, 0.22);
}

.vi-chatbot-answer {
    display: inline-block;
    padding: 1rem;
    border-radius: 1.5rem;
    border-bottom-left-radius: 4px;
    background-color: #ffffff;
    color: #0f172a;
    text-align: left;
    box-shadow: 0 10px 26px rgba(15, 23, 42, 0.12);
}

.vi-chatbot-answer strong {
    color: #061b2a;
}

/* =========================================
   BUSINESS SECTION
   ========================================= */

.vi-business-email {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    max-width: 100%;
    margin: 0 auto;
    text-align: center;
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.vi-business-section lottie-player {
    display: block;
    margin: 0 auto;
}

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

@media (max-width: 768px) {
    .inicio-hero-shell {
        margin-top: 0;
    }

    .inicio-hero-frame {
        height: clamp(620px, 86svh, 760px);
        min-height: 620px;
    }

    .inicio-hero-carousel,
    .inicio-hero-inner,
    .inicio-hero-slide,
    .carousel-item {
        min-height: 620px;
    }

    .inicio-hero-img,
    .inicio-hero-video {
        transform: none;
        transition: none;
    }

    .inicio-hero-carousel .active .inicio-hero-img {
        transform: none;
    }

    .inicio-hero-overlay {
        background:
            linear-gradient(180deg,
                rgba(248, 249, 251, 0) 0%,
                rgba(248, 249, 251, 0.10) 30%,
                rgba(248, 249, 251, 0.45) 60%,
                rgba(248, 249, 251, 0.85) 85%,
                rgba(248, 249, 251, 0.98) 100%);
    }

    .inicio-hero-content {
        align-items: flex-end;
        padding-bottom: 80px;
    }

    .inicio-hero-content .container {
        text-align: center;
    }

    .inicio-hero-content h1 {
        font-size: clamp(2.2rem, 12vw, 3.4rem);
        line-height: 1.05;
        margin-bottom: 1.2rem;
    }

    .inicio-hero-label {
        font-size: 0.78rem;
        letter-spacing: 0.16em;
    }

    .inicio-hero-content .lead {
        max-width: 95%;
        margin: 0 auto 2rem;
        font-size: clamp(1rem, 4.5vw, 1.25rem);
        line-height: 1.55;
    }

    .inicio-hero-control {
        display: none;
    }

    .vi-help-grid-home .vi-help-card,
    .vi-info-grid-home .vi-info-card {
        min-height: 240px;
        padding: 2.2rem 1.6rem;
    }

    .vi-chatbot-section .row {
        text-align: center;
    }

    .vi-chatbot-section .d-flex.align-items-center.mb-3 {
        justify-content: center;
    }

    .vi-chatbot-icon--section {
        width: 82px;
        height: 82px;
    }

    .vi-chatbot-icon--mockup {
        width: 58px;
        height: 58px;
    }

    .vi-chatbot-mockup {
        max-width: 100%;
        margin-left: auto;
        margin-right: auto;
        padding: 1.25rem;
    }

    .vi-chatbot-question,
    .vi-chatbot-answer {
        font-size: 0.95rem;
        line-height: 1.55;
    }

    .vi-business-email {
        width: 100%;
        padding-left: 14px;
        padding-right: 14px;
    }
}

@media (max-width: 576px) {
    .inicio-hero-frame {
        height: clamp(600px, 84svh, 720px);
        min-height: 600px;
    }

    .inicio-hero-carousel,
    .inicio-hero-inner,
    .inicio-hero-slide,
    .carousel-item {
        min-height: 600px;
    }

    .inicio-hero-content {
        padding-bottom: 72px;
    }

    .inicio-hero-content h1 {
        font-size: clamp(2rem, 11vw, 3rem);
    }

    .inicio-hero-indicators {
        bottom: 22px;
    }

    .vi-help-grid-home .vi-help-card,
    .vi-info-grid-home .vi-info-card {
        min-height: 230px;
        padding: 2rem 1.4rem;
    }

    .vi-chatbot-icon--section {
        width: 76px;
        height: 76px;
    }

    .vi-chatbot-icon--mockup {
        width: 54px;
        height: 54px;
    }

    .vi-chatbot-mockup {
        border-radius: 1.25rem;
    }
}