/* ── Entrance Animation System ── */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeUpSlow {
    from {
        opacity: 0;
        transform: translateY(70px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeLeft {
    from {
        opacity: 0;
        transform: translateX(-55px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeRight {
    from {
        opacity: 0;
        transform: translateX(55px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes zoomIn {
    from {
        opacity: 0;
        transform: scale(0.88);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Pre-hidden state — invisible until observed */
.va-reveal {
    opacity: 0;
}

/* Animated states */
.va-reveal.is-visible[data-anim="fade-up"] {
    animation: fadeUp 0.75s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.va-reveal.is-visible[data-anim="fade-up-slow"] {
    animation: fadeUpSlow 1s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.va-reveal.is-visible[data-anim="fade-left"] {
    animation: fadeLeft 0.8s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.va-reveal.is-visible[data-anim="fade-right"] {
    animation: fadeRight 0.8s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.va-reveal.is-visible[data-anim="zoom"] {
    animation: zoomIn 0.75s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

/* Stagger delays */
.va-reveal[data-delay="100"] {
    animation-delay: 0.1s;
}

.va-reveal[data-delay="200"] {
    animation-delay: 0.2s;
}

.va-reveal[data-delay="300"] {
    animation-delay: 0.3s;
}

.va-reveal[data-delay="400"] {
    animation-delay: 0.4s;
}

.va-reveal[data-delay="500"] {
    animation-delay: 0.5s;
}

.va-reveal[data-delay="600"] {
    animation-delay: 0.6s;
}

.va-reveal[data-delay="700"] {
    animation-delay: 0.7s;
}

.va-reveal[data-delay="800"] {
    animation-delay: 0.8s;
}

/* Hero elements start hidden, animated immediately on load */
.hero-entrance {
    opacity: 0;
}

.hero-glow {
    background: transparent;
}

@keyframes gradientWave {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

.gradient-text {
    background: linear-gradient(135deg, #009bdd, #00C853, #009bdd, #00C853);
    background-size: 300% 300%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradientWave 5s ease-in-out infinite;
    padding-bottom: 0.15em;
    margin-bottom: -0.15em;
}

.glass-panel {
    background: rgba(10, 37, 64, 0.7);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(0, 155, 221, 0.15);
}

/* ── Dark Select / Option cross-browser fix ── */
/* Forces the native select dropdown to use dark OS color scheme */
select {
    color-scheme: dark;
}

/* Styles option elements in browsers that support it (Firefox, some Chromium) */
select option {
    background-color: #001a2e;
    color: #e6f4ff;
}

select option:disabled {
    color: rgba(230, 244, 255, 0.4);
}

select option:hover,
select option:checked {
    background-color: #003460;
    color: #ffffff;
}


/* Navbar scroll styles */
#main-nav {
    transition: background 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    padding: 0;
}

/* Pill wrapper — sits inside the full-width nav */
#nav-pill {
    transition:
        max-width 0.4s cubic-bezier(0.16, 1, 0.3, 1),
        border-radius 0.4s cubic-bezier(0.16, 1, 0.3, 1),
        background 0.4s cubic-bezier(0.16, 1, 0.3, 1),
        box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1),
        border-color 0.4s cubic-bezier(0.16, 1, 0.3, 1),
        margin-top 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    max-width: 100%;
    width: 100%;
    margin: 0 auto;
    border-radius: 0;
    border: 1px solid transparent;
    background: transparent;
    will-change: max-width, border-radius, margin-top;
}

/* Scrolled state — pill shrinks and floats */
#main-nav.nav-scrolled #nav-pill {
    max-width: min(72rem, calc(100% - 3rem));
    margin: 0 auto;
    border-radius: 14px;
    margin-top: 0.6rem;
    background: rgba(0, 26, 46, 0.95);
    border: 1px solid rgba(0, 155, 221, 0.2);
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.55), 0 1px 0 rgba(0, 155, 221, 0.1);
}

/* Full page overlay on navbar hover */
.page-blur-overlay {
    position: fixed;
    inset: 0;
    z-index: 45;
    /* Below nav (50) */
    background: rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.page-blur-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

@media (hover: hover) {
    body:has(#main-nav:hover) .page-blur-overlay {
        opacity: 1;
    }
}

/* Inner padding shrinks on scroll */
.nav-inner {
    transition: padding 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

#main-nav.nav-scrolled .nav-inner {
    padding-top: 1rem;
    padding-bottom: 1rem;
}

/* ── Marquee ── */
.marquee-wrapper {
    overflow: hidden;
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 12%, black 88%, transparent 100%);
    mask-image: linear-gradient(to right, transparent 0%, black 12%, black 88%, transparent 100%);
}

.marquee-track {
    display: flex;
    width: max-content;
    animation: marquee-scroll 60s linear infinite;
}

.marquee-track:hover {
    animation-play-state: paused;
}

@keyframes marquee-scroll {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}

/* ── Light sections ── */
.light-section {
    /* background: #f8f7ff; */
    color: #111;
}

.light-section h2,
.light-section h3 {
    color: #0f0f0f;
}

.light-section p {
    color: #555;
}

.stat-number {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1;
    background: linear-gradient(135deg, #009bdd, #2476bc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.feature-cta-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    background: #00C853;
    border-radius: 50%;
    margin-left: 0.5rem;
    transition: transform 0.2s ease, background 0.2s ease;
}

.feature-cta-btn:hover {
    transform: scale(1.12);
    background: #00e676;
}

.feature-cta-btn svg {
    width: 1rem;
    height: 1rem;
    stroke: #00345f;
    fill: none;
    stroke-width: 2.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* ── Solution image cards ── */
.solution-card {
    position: relative;
    border-radius: 2.5rem;
    overflow: hidden;
    min-height: 500px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding: 2.5rem 2rem;
    text-align: center;
    cursor: pointer;
    transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.5s ease, border-color 0.4s ease;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.solution-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 3px;
    border-radius: 2px 2px 0 0;
    background: linear-gradient(90deg, #009bdd, #00C853);
    transform: translateX(-50%);
    transition: width 0.5s cubic-bezier(0.22, 1, 0.36, 1);
    z-index: 10;
}

.solution-card:hover::after {
    width: 70%;
}

.solution-card:hover {
    transform: translateY(-10px) scale(1.015);
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(0, 155, 221, 0.2);
    border-color: rgba(0, 155, 221, 0.15);
}

.solution-card .sc-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center center;
    transform: scale(1.12);
    /* Pre-zoomed: ensures no edge gaps at rest */
    transform-origin: center center;
    transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.solution-card .sc-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(300deg, rgba(255, 255, 255, 0.05), rgba(0, 155, 221, 0.1), transparent);
    background-size: 200% 200%;
    animation: sc-glimmer 15s ease infinite;
    z-index: 1;
}

@keyframes sc-glimmer {
    0% {
        background-position: 0% 0%;
    }

    50% {
        background-position: 100% 100%;
    }

    100% {
        background-position: 0% 0%;
    }
}

.solution-card:hover .sc-bg {
    transform: scale(1.22) translateY(-3px);
    /* More zoom on hover */
}

/* Overlay */
.solution-card .sc-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom,
            rgba(0, 0, 0, .88) 0%,
            rgba(0, 0, 0, .70) 28%,
            rgba(0, 0, 0, .30) 55%,
            rgba(0, 0, 0, .05) 75%,
            transparent 100%);
    transition: opacity 0.4s ease;
}

.solution-card:hover .sc-overlay {
    opacity: 0.92;
}

/* Content lift on hover */
.solution-card .sc-content {
    position: relative;
    z-index: 2;
    transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.solution-card:hover .sc-content {
    transform: translateY(-6px);
}

/* Icon glow ring */
@keyframes icon-pulse {

    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(0, 155, 221, 0.3);
    }

    50% {
        box-shadow: 0 0 0 8px rgba(0, 155, 221, 0);
    }
}

.solution-card .sc-icon {
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), background 0.3s ease;
}

.solution-card:hover .sc-icon {
    transform: scale(1.15) rotate(-5deg);
    background: rgba(0, 155, 221, 0.25) !important;
    animation: icon-pulse 1.5s ease-in-out infinite;
}

/* ── Mini feature cards ── */
.mini-feat-card {
    background: rgba(0, 155, 221, .06);
    border: 1px solid rgba(0, 155, 221, .12);
    border-radius: 1rem;
    padding: 2rem;
    transition: background 0.25s ease, border-color 0.25s ease;
}

.mini-feat-card:hover {
    background: rgba(0, 155, 221, .12);
    border-color: rgba(0, 155, 221, .3);
}

.mini-feat-icon {
    width: 2.5rem;
    height: 2.5rem;
    stroke: rgba(0, 155, 221, .8);
    fill: none;
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;
    margin-bottom: 1.25rem;
}

/* ── Mobile menu ── */
#mobile-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
    opacity: 0;
}

#mobile-menu.menu-open {
    max-height: 450px;
    opacity: 1;
}

/* Hamburger lines → X animation */
#hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    background: #e6f4ff;
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease;
    transform-origin: center;
}

#hamburger.is-open span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}

#hamburger.is-open span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

#hamburger.is-open span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
}

/* ── Mega Menu ── */
.desktop-nav-link {
    position: relative;
    padding: 0.5rem 0;
    display: flex;
    align-items: center;
    gap: 4px;
}

.desktop-nav-link.active-link {
    color: #00C853 !important;
}

.desktop-nav-link::after {
    content: "";
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background: #00C853;
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.desktop-nav-link.active-link::after {
    transform: scaleX(1);
}

#mega-menu-wrapper {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    opacity: 0;
    pointer-events: none;
    background: #001a2e;
    border: 1px solid rgba(0, 155, 221, 0.15);
    border-radius: 16px;
    box-shadow: 0 50px 100px -20px rgba(0, 0, 0, 0.8), 0 0 40px rgba(0, 0, 0, 0.3);
    width: 880px;
    overflow: hidden;
    transition: opacity 0.3s ease, transform 0.3s ease, height 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 60;
    display: block;
}

#mega-menu-wrapper.mega-open {
    opacity: 1;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
}

.mega-panels-container {
    position: relative;
    width: 100%;
}

.mega-panel {
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
    transform: translateX(40px);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.4s ease;
    display: flex;
    height: auto;
}

.mega-panel.active-panel {
    position: relative;
    opacity: 1;
    pointer-events: auto;
    transform: translateX(0);
}

.mega-panel.slide-out-left {
    transform: translateX(-40px);
    opacity: 0;
    pointer-events: none;
}

.mega-panel.slide-out-right {
    transform: translateX(40px);
    opacity: 0;
    pointer-events: none;
}

.mega-panel.slide-in-left {
    transform: translateX(-40px);
}

/* Platform panel layout */
.mega-left {
    flex: 1.4;
    padding: 2.2rem 2.5rem;
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.mega-right {
    width: 320px;
    background: #0a2540;
    padding: 2.2rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    border-left: 1px solid rgba(0, 155, 221, 0.12);
}

.mega-section-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.45);
    margin-bottom: 1.2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 0.6rem;
}

.mega-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    cursor: pointer;
    border-radius: 8px;
    transition: opacity 0.2s, background 0.2s;
    padding: 0.6rem;
    margin: -0.6rem;
    text-decoration: none;
    color: inherit;
}

.mega-item:hover {
    background: rgba(255, 255, 255, 0.05);
}

.mega-item.mega-item-active {
    background: rgba(255, 255, 255, 0.08);
}

.mega-item.mega-item-active .mega-item-txt h4 {
    color: #00C853;
}

.mega-item.mega-item-active .mega-item-icon {
    color: #00C853;
}

.mega-item-icon {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
    color: rgba(255, 255, 255, 0.8);
    margin-top: 2px;
}

.mega-item-txt h4 {
    font-size: 0.9rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 0.2rem;
}

.mega-item-txt p {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.55);
    line-height: 1.35;
}

.mega-badge {
    font-size: 0.55rem;
    background: #009bdd;
    color: white;
    padding: 2px 6px;
    border-radius: 12px;
    font-weight: 800;
    letter-spacing: 0.05em;
    margin-left: 6px;
    vertical-align: middle;
}

/* Feature grid specifically */
.mega-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem 1.5rem;
}

.mega-integrations-row {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 0.75rem;
}

.integration-box {
    background: #0d3556;
    border-radius: 6px;
    padding: 0.75rem 0.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
    cursor: pointer;
    transition: transform 0.2s, background 0.2s;
}

.integration-box:hover {
    transform: translateY(-2px);
    background: #1a4a72;
}

.integration-box svg,
.integration-box img {
    width: 20px;
    height: 20px;
}

.integration-box span {
    font-size: 0.65rem;
    color: #fff;
    font-weight: 500;
    text-align: center;
}

/* ═══════════════════════════════════════════
           LIQUID GLASS SYSTEM — VA FINANCIERA
           ═══════════════════════════════════════════ */

/* Base liquid glass */
.lg-base {
    position: relative;
    background: rgba(0, 155, 221, 0.06);
    backdrop-filter: blur(24px) saturate(180%) brightness(1.05);
    -webkit-backdrop-filter: blur(24px) saturate(180%) brightness(1.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.15),
        inset 0 -1px 0 rgba(0, 155, 221, 0.08);
    overflow: hidden;
}

/* Specular highlight (top-left glare like real glass) */
.lg-base::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg,
            rgba(255, 255, 255, 0.14) 0%,
            rgba(255, 255, 255, 0.04) 40%,
            transparent 60%);
    pointer-events: none;
    z-index: 0;
    border-radius: inherit;
}

/* Animated shimmer sweep */
.lg-base::after {
    content: '';
    position: absolute;
    top: -60%;
    left: -60%;
    width: 60%;
    height: 200%;
    background: linear-gradient(105deg,
            transparent 30%,
            rgba(255, 255, 255, 0.08) 50%,
            transparent 70%);
    transform: rotate(15deg);
    pointer-events: none;
    z-index: 1;
    animation: lg-shimmer 6s ease-in-out infinite;
}

@keyframes lg-shimmer {
    0% {
        left: -60%;
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    50% {
        left: 120%;
        opacity: 1;
    }

    60% {
        opacity: 0;
    }

    100% {
        left: 120%;
        opacity: 0;
    }
}

/* Stronger glass for featured elements */
.lg-strong {
    position: relative;
    background: rgba(0, 155, 221, 0.10);
    backdrop-filter: blur(32px) saturate(200%) brightness(1.08);
    -webkit-backdrop-filter: blur(32px) saturate(200%) brightness(1.08);
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow:
        0 16px 48px rgba(0, 0, 0, 0.45),
        0 1px 0 rgba(255, 255, 255, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.2),
        inset 0 -1px 0 rgba(0, 155, 221, 0.1),
        0 0 0 1px rgba(0, 155, 221, 0.06);
    overflow: hidden;
}

.lg-strong::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 30% 20%,
            rgba(255, 255, 255, 0.18) 0%,
            rgba(255, 255, 255, 0.04) 40%,
            transparent 70%);
    pointer-events: none;
    z-index: 0;
    border-radius: inherit;
}

/* Liquid glass card (for feature cards, stat cards, etc.) */
.lg-card {
    position: relative;
    background: linear-gradient(145deg,
            rgba(0, 155, 221, 0.1) 0%,
            rgba(0, 52, 95, 0.15) 100%);
    backdrop-filter: blur(20px) saturate(160%);
    -webkit-backdrop-filter: blur(20px) saturate(160%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-top-color: rgba(255, 255, 255, 0.2);
    box-shadow:
        0 4px 24px rgba(0, 0, 0, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.15),
        inset 0 0 40px rgba(0, 155, 221, 0.04);
    transition: box-shadow 0.3s ease, transform 0.3s ease, border-color 0.3s ease;
    overflow: hidden;
}

.lg-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    pointer-events: none;
}

.lg-card:hover {
    transform: translateY(-4px);
    box-shadow:
        0 12px 40px rgba(0, 0, 0, 0.4),
        0 0 0 1px rgba(0, 155, 221, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    border-color: rgba(0, 155, 221, 0.25);
}

/* Liquid glass button — primary */
.lg-btn-primary {
    position: relative;
    background: linear-gradient(135deg,
            rgba(0, 200, 83, 0.85) 0%,
            rgba(0, 155, 83, 0.9) 100%);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    box-shadow:
        0 4px 20px rgba(0, 200, 83, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.3),
        inset 0 -1px 0 rgba(0, 0, 0, 0.1);
    color: #fff;
    font-weight: 700;
    transition: all 0.25s ease;
    overflow: hidden;
}

.lg-btn-primary::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2) 0%, transparent 60%);
    border-radius: inherit;
    pointer-events: none;
}

.lg-btn-primary:hover {
    box-shadow:
        0 8px 32px rgba(0, 200, 83, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.4);
    transform: translateY(-1px);
}

/* Liquid glass button — secondary/outline */
.lg-btn-outline {
    position: relative;
    background: rgba(0, 155, 221, 0.08);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(0, 155, 221, 0.4);
    box-shadow:
        0 2px 12px rgba(0, 155, 221, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    color: #009bdd;
    font-weight: 700;
    transition: all 0.25s ease;
}

.lg-btn-outline:hover {
    background: rgba(0, 155, 221, 0.15);
    border-color: rgba(0, 155, 221, 0.7);
    box-shadow:
        0 4px 20px rgba(0, 155, 221, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
    color: #fff;
}

/* Liquid navbar pill override */
#nav-pill.lg-nav {
    background: rgba(0, 26, 46, 0.55);
    backdrop-filter: blur(28px) saturate(180%);
    -webkit-backdrop-filter: blur(28px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-top-color: rgba(255, 255, 255, 0.18);
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

/* Ambient glow blobs */
.lg-ambient {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.35;
    pointer-events: none;
    animation: lg-float 8s ease-in-out infinite;
}

@keyframes move {
    100% {
        transform: translate3d(0, 0, 1px) rotate(360deg);
    }
}

.hero-background {
    position: absolute;
    inset: 0;
    background: #001a2e;
    overflow: hidden;
    z-index: -1;
}

/* Photo variant — only used in index.html */
.hero-bg-photo {
    background-image: url('../img/header-va.webp');
    background-size: cover;
    background-position: center;
}

@media (min-width: 1024px) {
    .hero-bg-photo {
        background-size: cover;
        background-position: center;
    }
}

/* Dark overlay — only active when there's a photo */
.hero-bg-photo::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(0, 10, 22, 0.45) 0%,
        rgba(0, 18, 36, 0.30) 55%,
        rgba(0, 26, 46, 0.50) 100%
    );
    z-index: 0;
}


.hero-background span {
    width: 20vmin;
    height: 20vmin;
    border-radius: 20vmin;
    backface-visibility: hidden;
    position: absolute;
    animation: move;
    animation-duration: 45s;
    animation-timing-function: linear;
    animation-iteration-count: infinite;
    /* Default: fully visible orbs for the dark animated background */
    filter: blur(60px);
    opacity: 0.65;
    z-index: 1;
}

/* When there's a photo, reduce orbs to subtle light reflections */
.hero-background.hero-bg-photo span {
    filter: blur(120px);
    opacity: 0.28;
}

.hero-background span:nth-child(0) {
    color: #00345f;
    top: 92%;
    left: 76%;
    animation-duration: 32s;
    animation-delay: -15s;
    transform-origin: -19vw 8vh;
    box-shadow: -40vmin 0 5.8vmin currentColor;
}

.hero-background span:nth-child(1) {
    color: #009bdd;
    top: 9%;
    left: 16%;
    animation-duration: 43s;
    animation-delay: -36s;
    transform-origin: 10vw -24vh;
    box-shadow: 40vmin 0 5.0vmin currentColor;
}

.hero-background span:nth-child(2) {
    color: #009bdd;
    top: 2%;
    left: 73%;
    animation-duration: 53s;
    animation-delay: -2s;
    transform-origin: -5vw 2vh;
    box-shadow: 40vmin 0 5.4vmin currentColor;
}

.hero-background span:nth-child(3) {
    color: #00345f;
    top: 15%;
    left: 46%;
    animation-duration: 48s;
    animation-delay: -17s;
    transform-origin: -22vw -4vh;
    box-shadow: 40vmin 0 5.5vmin currentColor;
}

.hero-background span:nth-child(4) {
    color: #00C853;
    top: 35%;
    left: 92%;
    animation-duration: 17s;
    animation-delay: -1s;
    transform-origin: 4vw 3vh;
    box-shadow: 40vmin 0 5.7vmin currentColor;
}

.hero-background span:nth-child(5) {
    color: #00C853;
    top: 19%;
    left: 30%;
    animation-duration: 53s;
    animation-delay: -26s;
    transform-origin: 6vw 25vh;
    box-shadow: 40vmin 0 5.7vmin currentColor;
}

.hero-background span:nth-child(6) {
    color: #00345f;
    top: 31%;
    left: 70%;
    animation-duration: 7s;
    animation-delay: -49s;
    transform-origin: -21vw -2vh;
    box-shadow: -40vmin 0 5.4vmin currentColor;
}

.hero-background span:nth-child(7) {
    color: #009bdd;
    top: 46%;
    left: 64%;
    animation-duration: 37s;
    animation-delay: -6s;
    transform-origin: -20vw -2vh;
    box-shadow: -40vmin 0 5.9vmin currentColor;
}

.hero-background span:nth-child(8) {
    color: #00345f;
    top: 14%;
    left: 88%;
    animation-duration: 6s;
    animation-delay: -23s;
    transform-origin: -8vw 0vh;
    box-shadow: -40vmin 0 5.9vmin currentColor;
}

.hero-background span:nth-child(9) {
    color: #009bdd;
    top: 90%;
    left: 68%;
    animation-duration: 17s;
    animation-delay: -11s;
    transform-origin: -16vw -5vh;
    box-shadow: -40vmin 0 5.1vmin currentColor;
}

.hero-background span:nth-child(10) {
    color: #00345f;
    top: 93%;
    left: 55%;
    animation-duration: 47s;
    animation-delay: -33s;
    transform-origin: -4vw -18vh;
    box-shadow: -40vmin 0 5.6vmin currentColor;
}

.hero-background span:nth-child(11) {
    color: #00345f;
    top: 88%;
    left: 65%;
    animation-duration: 52s;
    animation-delay: -36s;
    transform-origin: -3vw 5vh;
    box-shadow: -40vmin 0 5.7vmin currentColor;
}

.hero-background span:nth-child(12) {
    color: #009bdd;
    top: 7%;
    left: 5%;
    animation-duration: 8s;
    animation-delay: -21s;
    transform-origin: -17vw -6vh;
    box-shadow: -40vmin 0 5.1vmin currentColor;
}

.hero-background span:nth-child(13) {
    color: #00345f;
    top: 44%;
    left: 59%;
    animation-duration: 15s;
    animation-delay: -11s;
    transform-origin: -22vw -12vh;
    box-shadow: 40vmin 0 5.9vmin currentColor;
}

.hero-background span:nth-child(14) {
    color: #00C853;
    top: 85%;
    left: 55%;
    animation-duration: 34s;
    animation-delay: -11s;
    transform-origin: 16vw 22vh;
    box-shadow: 40vmin 0 5.3vmin currentColor;
}

.hero-background span:nth-child(15) {
    color: #00345f;
    top: 10%;
    left: 47%;
    animation-duration: 26s;
    animation-delay: -2s;
    transform-origin: 5vw -8vh;
    box-shadow: 40vmin 0 5.8vmin currentColor;
}

.hero-background span:nth-child(16) {
    color: #00345f;
    top: 71%;
    left: 94%;
    animation-duration: 31s;
    animation-delay: -31s;
    transform-origin: 22vw 0vh;
    box-shadow: -40vmin 0 5.3vmin currentColor;
}

.hero-background span:nth-child(17) {
    color: #00345f;
    top: 60%;
    left: 91%;
    animation-duration: 47s;
    animation-delay: -41s;
    transform-origin: -19vw -23vh;
    box-shadow: -40vmin 0 5.1vmin currentColor;
}

.hero-background span:nth-child(18) {
    color: #009bdd;
    top: 4%;
    left: 6%;
    animation-duration: 22s;
    animation-delay: -29s;
    transform-origin: -23vw 3vh;
    box-shadow: 40vmin 0 5.8vmin currentColor;
}

.hero-background span:nth-child(19) {
    color: #00C853;
    top: 48%;
    left: 93%;
    animation-duration: 46s;
    animation-delay: -15s;
    transform-origin: -21vw 7vh;
    box-shadow: -40vmin 0 5.8vmin currentColor;
}

/* Testimonials liquid glass tweaks */
.testi-card {
    backdrop-filter: blur(20px) saturate(160%);
    -webkit-backdrop-filter: blur(20px) saturate(160%);
}

.testi-row .testi-card:hover {
    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(0, 155, 221, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1) !important;
}

/* ══════════════════════════════════════════════
           SECTION ALIVE EFFECTS
           ══════════════════════════════════════════════ */

/* ── Shared: floating glow orb keyframe ── */
@keyframes orb-breathe {

    0%,
    100% {
        transform: scale(1) translateY(0);
        opacity: 0.25;
    }

    50% {
        transform: scale(1.15) translateY(-20px);
        opacity: 0.45;
    }
}

@keyframes float-slow {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    33% {
        transform: translateY(-14px) rotate(1deg);
    }

    66% {
        transform: translateY(-6px) rotate(-1deg);
    }
}

@keyframes shimmer-scan {
    0% {
        transform: translateX(-100%) skewX(-15deg);
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    90% {
        opacity: 1;
    }

    100% {
        transform: translateX(350%) skewX(-15deg);
        opacity: 0;
    }
}

@keyframes pulse-glow {

    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(0, 155, 221, 0);
    }

    50% {
        box-shadow: 0 0 20px 6px rgba(0, 155, 221, 0.22);
    }
}

@keyframes badge-breathe {

    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(0, 155, 221, 0.15);
    }

    50% {
        box-shadow: 0 0 0 6px rgba(0, 155, 221, 0.25);
    }
}

@keyframes li-fadein {
    from {
        opacity: 0;
        transform: translateX(-18px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes img-hover-float {

    0%,
    100% {
        transform: translateY(0) scale(1);
        filter: drop-shadow(0 16px 32px rgba(0, 155, 221, 0.0));
    }

    50% {
        transform: translateY(-8px) scale(1.01);
        filter: drop-shadow(0 24px 40px rgba(0, 155, 221, 0.18));
    }
}

/* ── Crédito / Arrendamiento: feature section background orbs ── */
.light-section.py-25 {
    position: relative;
    /* No overflow:hidden — it clips shadows and causes jump */
}

.light-section.py-25::before {
    content: '';
    position: absolute;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 155, 221, 0.08) 0%, transparent 70%);
    top: -120px;
    right: -80px;
    animation: orb-breathe 10s ease-in-out infinite;
    pointer-events: none;
    z-index: 0;
}

.light-section.py-25::after {
    content: '';
    position: absolute;
    width: 380px;
    height: 380px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 200, 83, 0.07) 0%, transparent 70%);
    bottom: 100px;
    left: -60px;
    animation: orb-breathe 14s ease-in-out infinite;
    animation-delay: -6s;
    pointer-events: none;
    z-index: 0;
}

/* ── Feature badges: breathing glow ── */
.light-section .inline-flex.px-4.py-1.rounded-full {
    animation: badge-breathe 4s ease-in-out infinite;
    transition: transform 0.2s ease;
}

.light-section .inline-flex.px-4.py-1.rounded-full:hover {
    transform: scale(1.06) !important;
}

/* ── Feature images: float starts AFTER entrance, not during ── */
.light-section .animate-on-scroll img {
    transition: filter 0.5s ease, transform 0.5s cubic-bezier(0.22, 1, 0.36, 1) !important;
}

/* Float only activates once the entrance animation is done */
.light-section .animate-on-scroll.is-visible img {
    animation: float-slow 8s ease-in-out 0.9s infinite;
}

.light-section .animate-on-scroll.delay-200.is-visible img {
    animation: float-slow 8s ease-in-out 1.1s infinite;
}

.light-section .animate-on-scroll.delay-200:hover img,
.light-section .animate-on-scroll:not(.no-img-hover):hover img {
    animation-play-state: paused;
    transform: translateY(-10px) scale(1.03) rotate(-0.8deg) !important;
    filter: drop-shadow(0 28px 48px rgba(0, 155, 221, 0.22)) !important;
}

/* ── Feature list items: staggered fade from left on scroll ── */
.light-section ul.space-y-2 li {
    opacity: 0;
    transform: translateX(-18px);
    transition: opacity 0.5s ease, transform 0.5s cubic-bezier(0.22, 1, 0.36, 1), background 0.3s, box-shadow 0.3s;
}

/* Trigger when parent's section is visible — use JS-added class */
.light-section ul.space-y-2.li-visible li:nth-child(1) {
    opacity: 1;
    transform: none;
    transition-delay: 0.05s;
}

.light-section ul.space-y-2.li-visible li:nth-child(2) {
    opacity: 1;
    transform: none;
    transition-delay: 0.15s;
}

.light-section ul.space-y-2.li-visible li:nth-child(3) {
    opacity: 1;
    transform: none;
    transition-delay: 0.25s;
}

.light-section ul.space-y-2.li-visible li:nth-child(4) {
    opacity: 1;
    transform: none;
    transition-delay: 0.35s;
}

.light-section ul.space-y-2.li-visible li:nth-child(5) {
    opacity: 1;
    transform: none;
    transition-delay: 0.45s;
}

/* ── Feature list items: hover lift with shimmer ── */
.light-section ul li {
    position: relative;
    overflow: hidden;
}

.light-section ul li::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, 0.18) 50%, transparent 65%);
    transform: translateX(-100%) skewX(-15deg);
    pointer-events: none;
}

.light-section ul li:hover::after {
    animation: shimmer-scan 0.55s ease forwards;
}

.light-section ul li:hover {
    transform: translateX(4px);
}

/* ── Crédito / Arrendamiento: section headers h3 animated underline ── */
.light-section h3.font-headline {
    position: relative;
    display: block;
    /* Keep block flow, no reflow jump */
    width: fit-content;
    /* Underline only spans the text width */
}

.light-section h3.font-headline::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 3px;
    border-radius: 2px;
    background: linear-gradient(90deg, #009bdd, #00C853);
    transition: width 1s cubic-bezier(0.22, 1, 0.36, 1) 0.3s;
}

.light-section h3.font-headline.h3-visible:not(.no-after-underline)::after {
    width: 100%;
}

/* ── Impulso rocket: float animation on container ── */
#impulso-rocket {
    animation: rocket-float 6s ease-in-out infinite;
    will-change: transform;
}

@keyframes rocket-float {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-15px) rotate(2deg);
    }
}

/* ── Impulso section: live animated particles + scan line ── */
.py-6.px-6 .rounded-2xl {
    position: relative;
    overflow: hidden;
}

.py-6.px-6 .rounded-2xl::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 60px;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(56, 189, 248, 0.12), transparent);
    animation: shimmer-scan 6s linear infinite;
    pointer-events: none;
    z-index: 1;
}

/* Pulsing green glow orb behind rocket */
#impulso-rocket {
    position: relative;
}

#impulso-rocket::before {
    content: '';
    position: absolute;
    width: 260px;
    height: 260px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.3) 0%, transparent 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: orb-breathe 5s ease-in-out infinite;
    pointer-events: none;
    z-index: 0;
}

/* Impulso: floating particles dots */
@keyframes particle-drift {
    0% {
        transform: translateY(0) translateX(0);
        opacity: 0;
    }

    10% {
        opacity: 0.6;
    }

    90% {
        opacity: 0.4;
    }

    100% {
        transform: translateY(-80px) translateX(20px);
        opacity: 0;
    }
}

#impulso-text::before {
    content: '';
    position: absolute;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #38bdf8;
    top: 20%;
    left: -20px;
    animation: particle-drift 4s ease-in-out infinite;
    pointer-events: none;
}

#impulso-text::after {
    content: '';
    position: absolute;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: #00C853;
    top: 60%;
    left: -30px;
    animation: particle-drift 5.5s ease-in-out infinite;
    animation-delay: -2s;
    pointer-events: none;
}



/* ── Feature section images: decorative floating ring ── */
.light-section .animate-on-scroll.delay-200,
.light-section .animate-on-scroll:has(img) {
    position: relative;
}

.light-section .animate-on-scroll.delay-200::before {
    content: '';
    position: absolute;
    inset: -20px;
    border-radius: 3rem;
    border: 1.5px solid rgba(0, 155, 221, 0.0);
    transition: border-color 0.6s ease;
    pointer-events: none;
    z-index: 2;
}

.light-section .animate-on-scroll.delay-200:hover::before {
    border-color: rgba(0, 155, 221, 0.2);
    animation: pulse-glow 2s ease-in-out infinite;
}


.testi-row {
    display: flex;
    gap: 18px;
    height: auto;
}

.testi-card {
    flex: 1;
    border-radius: 1.25rem;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    min-width: 0;
    background: transparent;
    padding: 0;
    transition: flex 0.5s cubic-bezier(0.4, 0, 0.2, 1),
        background 0.4s ease,
        padding 0.4s ease;
}

.testi-row:hover .testi-card {
    flex: 0.65;
}

.testi-row .testi-card:hover {
    flex: 2.2;
    background: #1e1e22;
    padding: 1.1rem;
}

/* ── Photo wrapper ── */
.tc-photo-area {
    position: relative;
    overflow: visible;
    border-radius: 1rem;
    aspect-ratio: auto;
    height: 320px;
    flex-shrink: 0;
    margin-bottom: 1.6rem;
}

.tc-portrait {
    position: absolute;
    inset: 0;
    border-radius: 1rem;
    overflow: hidden;
}

.tc-portrait img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 25%;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.testi-card:hover .tc-portrait img {
    transform: scale(1.04);
}

/* Dark gradient on photo */
.tc-photo-overlay {
    position: absolute;
    inset: 0;
    border-radius: 1rem;
    background: linear-gradient(to top, rgba(0, 0, 0, .5) 0%, rgba(0, 0, 0, .15) 30%, transparent 55%);
    pointer-events: none;
}

/* ── Square badge ── */
.tc-badge {
    position: absolute;
    bottom: -18px;
    left: 1.1rem;
    z-index: 5;
    width: 52px;
    height: 52px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
    overflow: hidden;
}

.tc-badge span {
    font-weight: 800;
    font-size: .65rem;
    color: white;
    letter-spacing: .03em;
    text-align: center;
    line-height: 1.1;
}

/* ── Stars (always visible) ── */
.tc-stars {
    color: #8bc34a;
    font-size: .95rem;
    letter-spacing: 3px;
    padding-left: 0.2rem;
    flex-shrink: 0;
}

/* ── Quote area (hidden, revealed on hover) ── */
.tc-quote-area {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    display: flex;
    flex-direction: column;
    gap: .55rem;
    transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1),
        opacity 0.35s ease 0.1s,
        padding 0.4s ease;
    padding: 0;
}

.testi-card:hover .tc-quote-area {
    max-height: 300px;
    opacity: 1;
    padding-top: 0.65rem;
}

.tc-quote-text {
    color: rgba(255, 255, 255, .82);
    font-size: .8rem;
    line-height: 1.7;
}

.tc-quote-author {
    border-top: 1px solid rgba(255, 255, 255, .1);
    padding-top: .7rem;
    margin-top: .2rem;
}

.tc-quote-author-name {
    font-size: .62rem;
    font-weight: 700;
    color: rgba(255, 255, 255, .5);
    letter-spacing: .15em;
    text-transform: uppercase;
}

.tc-quote-author-role {
    font-size: .62rem;
    color: rgba(255, 255, 255, .35);
    letter-spacing: .1em;
    text-transform: uppercase;
    margin-top: 2px;
}

/* ── Mobile carousel ── */
@media(max-width:767px) {
    .testi-carousel-wrap {
        overflow: hidden;
        position: relative;
    }

    .testi-row {
        display: flex;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        gap: 16px;
        padding-bottom: 8px;
        scrollbar-width: none;
    }

    .testi-row::-webkit-scrollbar {
        display: none;
    }

    .testi-card {
        flex: 0 0 85% !important;
        scroll-snap-align: center;
        background: #1e1e22 !important;
        padding: 1rem !important;
    }

    .testi-card .tc-quote-area {
        max-height: 300px !important;
        opacity: 1 !important;
        padding-top: 0.65rem !important;
    }

    .tc-photo-area {
        height: 260px;
    }

    .testi-row:hover .testi-card {
        flex: 0 0 85% !important;
    }

    /* Dots */
    .testi-dots {
        display: flex;
        justify-content: center;
        gap: 8px;
        margin-top: 1.25rem;
    }

    .testi-dot {
        width: 8px;
        height: 8px;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.25);
        cursor: pointer;
        transition: background 0.3s ease, transform 0.3s ease;
        border: none;
        padding: 0;
    }

    .testi-dot.active {
        background: #CEFF66;
        transform: scale(1.3);
    }
}

@media(min-width:768px) {
    .testi-dots {
        display: none;
    }
}

/* ═══════════════════════════════════════════
   FOOTER — VA FINANCIERA
   ═══════════════════════════════════════════ */

.va-footer {
    background: linear-gradient(180deg, #000000 0%, #00345F 100%);
    color: #ffffff;
    padding: 40px 0 30px;
    font-family: 'Montserrat', sans-serif;
}

.va-footer .footer-container {
    max-width: 1266px;
    margin: 0 auto;
    padding: 0 24px;
}

.va-footer .footer-divider {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    margin: 30px 0;
}

.va-footer .footer-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 24px;
    color: #ffffff;
}

.va-footer .footer-text {
    font-size: 16px;
    line-height: 1.6;
    color: #ffffff;
    font-weight: 400;
}

.va-footer .footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.va-footer .footer-links li {
    margin-bottom: 12px;
}

.va-footer .footer-links a {
    color: #ffffff;
    text-decoration: none;
    font-size: 16px;
    font-weight: 400;
    transition: opacity 0.2s;
}

.va-footer .footer-links a:hover {
    opacity: 0.7;
}

.va-footer .footer-social {
    display: flex;
    gap: 15px;
    align-items: center;
}

.va-footer .social-icon,
.va-footer .glass-icon-wrapper {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(12px) saturate(180%);
    -webkit-backdrop-filter: blur(12px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    color: white;
    text-decoration: none;
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.va-footer .social-icon::before,
.va-footer .glass-icon-wrapper::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.18) 0%, transparent 50%);
    pointer-events: none;
    z-index: 1;
}

.va-footer .social-icon svg,
.va-footer .glass-icon-wrapper svg {
    position: relative;
    z-index: 2;
    width: 20px;
    height: 20px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.va-footer .social-icon:hover,
.va-footer .glass-icon-wrapper:hover {
    transform: translateY(-4px) scale(1.05);
    border-color: rgba(255, 255, 255, 0.35);
    background: rgba(255, 255, 255, 0.08);
    box-shadow:
        0 12px 40px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.va-footer .contact-item {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 15px;
    text-decoration: none;
    color: #ffffff;
}

.va-footer .contact-item:hover .glass-icon-wrapper {
    transform: translateY(-4px) scale(1.05);
    border-color: rgba(255, 255, 255, 0.35);
    background: rgba(255, 255, 255, 0.08);
}

.va-footer .legal-text {
    font-size: 10px;
    line-height: 1.6;
    color: #ffffff;
    margin-top: 40px;
    text-align: justify;
    font-weight: 400;
}

.va-footer .footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 30px;
    margin-top: 30px;
    border-top: none;
    font-size: 14px;
    font-weight: 400;
}

.va-footer .bottom-links {
    display: flex;
    gap: 30px;
}

.va-footer .bottom-links a {
    color: #ffffff;
    text-decoration: none;
    transition: opacity 0.2s;
}

.va-footer .bottom-links a:hover {
    opacity: 0.7;
}

@media (max-width: 1024px) {
    .va-footer .footer-bottom {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }

    .va-footer .bottom-links {
        flex-direction: column;
        gap: 15px;
    }

    .va-footer .legal-text {
        text-align: left;
    }
}

/* ── Form Validation Feedback ── */
.form-input-container {
    position: relative;
    width: 100%;
}
.validation-icon {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    font-size: 20px !important;
    display: none;
    align-items: center;
    justify-content: center;
}
.is-valid {
    border-color: #00C853 !important; /* Green */
    box-shadow: 0 0 0 1px rgba(0, 200, 83, 0.4) !important;
}
.is-valid ~ .check-icon {
    display: inline-flex !important;
}
.is-valid ~ .error-icon {
    display: none !important;
}

.is-invalid {
    border-color: #ff5252 !important; /* Red */
    box-shadow: 0 0 0 1px rgba(255, 82, 82, 0.4) !important;
}
.is-invalid ~ .error-icon {
    display: inline-flex !important;
}
.is-invalid ~ .check-icon {
    display: none !important;
}

/* ═══════════════════════════════════════════
   PREMIUM CALCULATOR RANGE SLIDER STYLING
   ═══════════════════════════════════════════ */
input[type=range] {
    -webkit-appearance: none;
    width: 100%;
    background: transparent;
}

input[type=range]::-webkit-slider-thumb {
    -webkit-appearance: none;
    height: 24px;
    width: 24px;
    border-radius: 50%;
    background: #00C853;
    cursor: pointer;
    margin-top: -10px;
    box-shadow: 0 0 15px rgba(0, 200, 83, 0.4);
    border: 2px solid white;
    transition: transform 0.2s ease;
}

input[type=range]::-webkit-slider-thumb:hover {
    transform: scale(1.1);
}

input[type=range]::-webkit-slider-runnable-track {
    width: 100%;
    height: 4px;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
}

input[type=range]:focus {
    outline: none;
}

/* ═══════════════════════════════════════════
   VUE TRANSITION EFFECTS (GALLERY & SYSTEM)
   ═══════════════════════════════════════════ */
/* Vue standard fade transition */
.fade-enter-active,
.fade-leave-active {
    transition: opacity 0.35s cubic-bezier(0.25, 1, 0.5, 1);
}
.fade-enter-from,
.fade-leave-to {
    opacity: 0;
}

/* Vue slide-fade (premium gallery zoom/scale transition) */
.slide-fade-enter-active,
.slide-fade-leave-active {
    transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}
.slide-fade-enter-from {
    opacity: 0;
    transform: scale(0.96) translateY(4px);
}
.slide-fade-leave-to {
    opacity: 0;
    transform: scale(1.04) translateY(-4px);
}

/* Vue fade-slide (calculator form toggle transition) */
.fade-slide-enter-active,
.fade-slide-leave-active {
    transition: opacity 0.4s ease, transform 0.4s ease;
}
.fade-slide-enter-from {
    opacity: 0;
    transform: translateY(15px);
}
.fade-slide-leave-to {
    opacity: 0;
    transform: translateY(-15px);
}

/* ── Custom Hero Homepage 1366x768 Display Optimization ── */
.va-hero-homepage {
    height: auto;
    min-height: 480px;
}

.va-hero-content {
    height: auto;
    min-height: calc(480px - 96px);
    margin-top: 96px;
    padding-top: 0;
    padding-bottom: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.homepage-rounded-wrapper {
    border-radius: 2rem 2rem 0 0;
    overflow: hidden;
    margin: 0 1.5rem;
    position: relative;
    z-index: 20;
    margin-top: 0;
}

@media (min-width: 768px) {
    .va-hero-homepage {
        height: 768px;
    }
    
    .va-hero-content {
        height: calc(768px - 96px - 160px);
        margin-top: 96px;
        padding-top: 0;
        padding-bottom: 0;
    }
    
    .homepage-rounded-wrapper {
        margin-top: -160px; /* Pull it up to overlap the 768px hero background */
    }
}

/* ── Mobile: overlay oscuro para legibilidad del título (solo index) ── */
@media (max-width: 767px) {
    .hero-bg-photo::before {
        background: linear-gradient(
            180deg,
            rgba(0, 5, 15, 0.82) 0%,
            rgba(0, 10, 25, 0.75) 50%,
            rgba(0, 15, 35, 0.88) 100%
        );
    }
}