.services-interactive-container {
    width: 95%;
    max-width: 1300px;
    margin: 0 auto;
    padding: 130px 0 100px 0;
}

.services-header-light {
    text-align: center;
    margin-bottom: 50px;
}

.title-dynamic {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--white-color);
    letter-spacing: -1px;
    margin-bottom: 15px;
}

.title-dynamic .text-gold {
    color: var(--primary-gold);
}

.services-header-light p {
    color: #cbd5e1;
    font-size: 1.15rem;
    max-width: 600px;
    margin: 0 auto;
}

.dashboard-wrapper {
    display: flex;
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
    overflow: hidden;
    min-height: 600px;
    position: relative; /* <-- Único ajuste añadido aquí */
}

/* Estilo base del indicador (oculto en pantallas grandes) */
.scroll-indicator {
    display: none; 
}

/* 1. Menú Lateral (Sidebar) */
.dashboard-sidebar {
    width: 350px;
    background-color: var(--primary-gold);
    padding: 30px 0;
    display: flex;
    flex-direction: column;
}

.tab-btn {
    background: transparent;
    border: none;
    text-align: left;
    padding: 20px 30px;
    font-size: 1.05rem;
    font-weight: 600;
    color: rgba(19, 44, 74, 0.7); 
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 15px;
    transition: all 0.3s ease;
    border-left: 4px solid transparent;
    font-family: inherit;
}

.btn-icon {
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.8);
    border-radius: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: rgba(19, 44, 74, 0.7);
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.tab-btn:hover {
    background-color: rgba(255,255,255,0.2);
    color: var(--primary-blue);
}

.tab-btn.active {
    background-color: #ffffff;
    color: var(--primary-blue);
    border-left: 4px solid var(--primary-gold);
    box-shadow: -5px 0 15px rgba(0,0,0,0.02) inset;
}

.tab-btn.active .btn-icon {
    background-color: var(--primary-gold);
    color: #ffffff;
    transform: scale(1.1);
    box-shadow: 0 5px 15px rgba(220, 160, 41, 0.4);
}

.dashboard-display {
    flex: 1;
    padding: 50px;
    position: relative;
    background-color: #f1f5f9;
}

.service-panel {
    display: none; 
}

.service-panel.active {
    display: block;
    animation: fadeSlideUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes fadeSlideUp {
    0% { opacity: 0; transform: translateY(15px); }
    100% { opacity: 1; transform: translateY(0); }
}

.panel-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #e2e8f0;
}

.panel-header h2 {
    color: var(--primary-blue);
    font-size: 1.8rem;
    font-weight: 800;
    line-height: 1.2;
}

.panel-body-grid {
    display: grid;
    grid-template-columns: 1fr 1fr; 
    gap: 40px;
    align-items: start;
}

.animated-list {
    list-style: none;
    padding: 0;
}

.animated-list li {
    font-size: 1.05rem;
    color: #475569;
    padding: 15px 20px;
    margin-bottom: 12px;
    background-color: #ffffff;
    border-radius: 10px;
    display: flex;
    align-items: flex-start;
    gap: 15px;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #e2e8f0;
}

.animated-list li i {
    color: var(--primary-gold);
    font-size: 1.2rem;
    margin-top: 2px;
}

.animated-list li:hover {
    border-color: rgba(220, 160, 41, 0.4);
    transform: translateX(5px);
    box-shadow: 0 8px 15px rgba(0,0,0,0.05);
}

.panel-image {
    width: 100%;
    height: 100%;
    min-height: 350px;
    border-radius: 15px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.panel-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; 
    transition: transform 0.6s ease;
}

.panel-image:hover img {
    transform: scale(1.05);
}

@media (max-width: 991px) {
    .dashboard-wrapper {
        flex-direction: column; 
    }
    .dashboard-sidebar {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid #e2e8f0;
        flex-direction: row;
        overflow-x: auto; 
        padding: 10px;
        scrollbar-width: none; 
    }
    .dashboard-sidebar::-webkit-scrollbar {
        display: none;
    }
    .tab-btn {
        padding: 15px;
        white-space: nowrap; 
        border-left: none;
        border-bottom: 4px solid transparent;
    }
    .tab-btn.active {
        border-left: none;
        border-bottom: 4px solid var(--primary-gold);
    }
    
    .panel-body-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .panel-image {
        min-height: 250px;
    }

    .modern-swipe-hint {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 80px; /* Altura aproximada del menú móvil */
        pointer-events: none; /* Crucial: permite dar clic a los botones a través de él */
        display: flex;
        align-items: center;
        justify-content: flex-end;
        padding-right: 20px;
        /* Un degradado sutil para dar la ilusión de que hay más contenido oculto */
        background: linear-gradient(90deg, rgba(255,255,255,0) 60%, rgba(255,255,255,0.6) 100%);
        z-index: 50;
        transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    }

    /* PÍLDORA FLOTANTE (Glassmorphism + Pseudo 3D) */
    .hint-pill {
        display: flex;
        align-items: center;
        gap: 12px;
        background: rgba(19, 44, 74, 0.85); /* Azul institucional semitransparente */
        backdrop-filter: blur(8px); /* Efecto de vidrio esmerilado */
        -webkit-backdrop-filter: blur(8px);
        padding: 10px 20px;
        border-radius: 40px;
        border: 1px solid rgba(255, 255, 255, 0.15);
        color: #ffffff;
        font-size: 0.9rem;
        font-weight: 600;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
        animation: float3D 2.5s infinite ease-in-out;
    }

    /* PISTA DEL PUNTO ANIMADO */
    .dot-track {
        width: 35px;
        height: 6px;
        background: rgba(255, 255, 255, 0.2);
        border-radius: 10px;
        position: relative;
        overflow: hidden;
    }

    /* PUNTO QUE SIMULA EL DEDO DESLIZANDO */
    .animated-dot {
        position: absolute;
        top: 0;
        left: 0;
        width: 15px;
        height: 100%;
        background-color: var(--primary-gold);
        border-radius: 10px;
        box-shadow: 0 0 8px var(--primary-gold);
        animation: swipeFinger 1.5s infinite ease-in-out;
    }

    /* ANIMACIONES */
    @keyframes float3D {
        0%, 100% { 
            transform: perspective(500px) translateZ(0) translateY(0); 
        }
        50% { 
            transform: perspective(500px) translateZ(25px) translateY(-4px); 
            box-shadow: 0 15px 35px rgba(0, 0, 0, 0.35); 
        }
    }

    @keyframes swipeFinger {
        0% { transform: translateX(-5px); opacity: 0.5; }
        50% { transform: translateX(25px); opacity: 1; }
        100% { transform: translateX(25px); opacity: 0; }
    }
}

@media (max-width: 580px) {
    .title-dynamic { font-size: 2.2rem; }
    .dashboard-display { padding: 30px 20px; }
    .panel-header h2 { font-size: 1.5rem; }
    .animated-list li { font-size: 0.95rem; padding: 12px; }
}