/* Kling AI Video Section Styles */
#page3-v2-box {
    width: 100%;
    position: relative;
    z-index: 5;
    color: #ffffff;
    font-family: 'Inter', sans-serif;
    background: #000;
}

#page2-v2-box {
    width: 100%;
    position: relative;
    z-index: 5;
    background: #000;
    padding: 100px 0;
    color: #fff;
    font-family: 'Inter', sans-serif;
}

.page3-v2-content {
    /* Height creates the scroll track */
    height: 300vh;
    position: relative;
}

.kling-sticky-wrapper {
    /* Sticky container */
    position: sticky;
    top: 0;
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    width: 90%;
    /* Ocupa el 90% del ancho disponible */
    max-width: none;
    /* Quita el límite fijo */
    margin: 0 auto;
    /* Centra el 90% */
    padding: 100px 24px 24px 24px;
    overflow: visible;
    /* Prevent overflow if viewport is small */
}

.vertical-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin-bottom: 40px;
}

.page3-v2-content .title {
    font-size: 64px;
    font-weight: 700;
    line-height: 1.1;
    background: linear-gradient(135deg, #fff 0%, #a5a5a5 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.page3-v2-content .subtitle {
    font-size: 24px;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 500;
}

.main-container {
    display: flex;
    gap: 60px;
    width: 100%;
    margin-bottom: 40px;
    margin-bottom: 40px;
    align-items: stretch;
    /* Important for alignment */
}

.left-section {
    flex: 1;
    display: flex;
    gap: 24px;
}

.progress-bar {
    width: 4px;
    /* Height should match the text section roughly */
    height: auto;
    min-height: 300px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    position: relative;
    overflow: hidden;
}

.progress-bar-track {
    width: 100%;
    height: 100%;
    position: relative;
}

.progress-bar-segment {
    width: 100%;
    background: #ffffff;
    position: absolute;
    border-radius: 2px;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
    transition: top 0.1s linear, height 0.3s ease;
}

.text-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0;
    /* Removing gap, relying on padding/margin */
    position: relative;
}

.text-item {
    padding: 24px;
    /* Increased padding for panel look */
    cursor: pointer;
    transition: all 0.5s ease;
    opacity: 0.4;
    border-radius: 12px;
    /* Rounded corners for panel */
    /* Default inactive state */
}

.text-item.active {
    opacity: 1;
    /* Neon Panel Effect */
    background: var(--neon-color);
    color: #050801;
    box-shadow:
        0 0 5px var(--neon-color),
        0 0 25px var(--neon-color),
        0 0 50px var(--neon-color),
        0 0 200px var(--neon-color);
    z-index: 10;
}

.text-title {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 12px;
    color: #ffffff;
    transition: transform 0.5s ease, color 0.5s ease;
}

.text-item:not(.active) .text-title {
    transform: translateY(0);
}

.text-item.active .text-title {
    transform: translateY(0);
    color: #050801 !important;
    /* Force black text on active */
}

.text-description {
    font-size: 16px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.8);
    height: 0;
    overflow: hidden;
    opacity: 0;
    transition: all 0.5s ease, color 0.5s ease;
}

.text-item.active .text-description {
    height: auto;
    /* Allow growth */
    max-height: 200px;
    /* Limit expansion */
    opacity: 1;
    margin-top: 10px;
    color: #050801 !important;
    /* Force black text on active */
}

.video-section {
    flex: 2.5;
    /* Styles now handled by inner .feature-card */
    border-radius: 24px;
    overflow: hidden;
    position: relative;
}

.video-player {
    width: 100%;
    /* Maintain aspect ratio via padding or fixed height, or let video define */
    position: relative;
    /* Context for absolute positioning */
    aspect-ratio: 16 / 9;
    /* Ensure container has size without generic video flow */
}

.video-player video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    position: absolute;
    /* Stack videos */
    top: 0;
    left: 0;
    opacity: 0;
    transition: opacity 0.5s ease;
    /* Smooth fade */
    z-index: 1;
}

.video-player video.active {
    opacity: 1;
    z-index: 2;
}

.go-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    font-weight: 500;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    margin-top: 20px;
}

.go-btn:hover {
    background: #ffffff;
    color: #000000;
}

@media (max-width: 1024px) {
    .main-container {
        flex-direction: column;
        align-items: center;
    }

    .page3-v2-content {
        height: auto;
        /* Disable sticky on mobile usually, or adjust */
    }

    .kling-sticky-wrapper {
        position: relative;
        height: auto;
        padding: 60px 24px;
    }

    .video-section {
        order: -1;
        width: 100%;
    }

    .left-section {
        width: 100%;
    }

    .text-description {
        height: auto;
        opacity: 1;
        max-height: none;
    }

    .text-item {
        opacity: 1;
    }
}

/* Page 2 - Introduction Section Styles */
#page2-v2-box {
    width: 100%;
    position: relative;
    z-index: 5;
    background: #000;
    padding: 100px 0;
    color: #fff;
    font-family: 'Inter', sans-serif;
}

.page2-v2-box-content {
    width: 95%;
    max-width: 1800px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.page2-v2-box-content .header {
    margin-bottom: 60px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.page2-v2-box-content .text1 {
    font-size: 64px;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 24px;
    display: flex;
    gap: 16px;
    justify-content: center;
}

.page2-v2-box-content .text1 span:nth-child(1) {
    color: #fff;
}

.page2-v2-box-content .text1 span:nth-child(2) {
    background: linear-gradient(135deg, #fff 0%, #a5a5a5 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.page2-v2-box-content .text2 {
    font-size: 20px;
    color: rgba(255, 255, 255, 0.7);
    max-width: 800px;
    line-height: 1.6;
}

.page2-v2-box-content .text3 {
    font-size: 20px;
    color: rgba(255, 255, 255, 0.7);
    max-width: 800px;
    line-height: 1.6;
}

.page2-v2-box-content .video {
    width: 100%;
    max-width: none;
    /* overflow: hidden; Removed to show shimmer glow */
    position: relative;
    /* box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5); Removed to use shimmer shadow/glow */
    /* border: 1px solid rgba(255, 255, 255, 0.1); Removed to let shimmer provide border */
}

.page2-v2-box-content .video video {
    width: 100%;
    height: auto;
    display: block;
}

@media (max-width: 768px) {
    .page2-v2-box-content .text1 {
        font-size: 40px;
        flex-direction: column;
        gap: 0;
    }
}