/* =========================
   ANIMACIONES GLOBALES
   ========================= */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes pulseGlow {
    0%, 100% { opacity: 0.6; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.05); }
}

.fade-in-up {
    animation: fadeInUp 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
    opacity: 0;
}
.delay-1 { animation-delay: 0.15s; }
.delay-2 { animation-delay: 0.3s; }
.delay-3 { animation-delay: 0.45s; }
.delay-4 { animation-delay: 0.6s; }
.delay-5 { animation-delay: 0.75s; }
.delay-6 { animation-delay: 0.9s; }

/* =========================
   SERVICIOS PAGE
   ========================= */

.sv-page {
    overflow: hidden;
}

/* --- SECCIÓN HERO --- */
.sv-hero {
    position: relative;
    padding: 9rem 5% 5rem;
    text-align: center;
}

.sv-hero__glow {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 50% 20%, rgba(153, 102, 221, 0.2) 0%, transparent 50%),
        radial-gradient(circle at 50% 80%, rgba(0, 38, 255, 0.08) 0%, transparent 45%);
    pointer-events: none;
    animation: pulseGlow 8s infinite alternate ease-in-out;
}

.sv-hero__container {
    position: relative;
    z-index: 1;
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.sv-hero__content {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 3.5rem;
}

.sv-hero__title {
    font-size: clamp(2.6rem, 5.5vw, 4.8rem);
    line-height: 1.15;
    font-weight: 800;
    margin-bottom: 1.2rem;
}

.sv-hero__subtitle {
    color: var(--text-muted, #a1a1aa);
    line-height: 1.8;
    font-size: 1.15rem;
    max-width: 700px;
    margin-bottom: 2.2rem;
}

/* --- LISTA DE INCLUIDOS (PILLS) --- */
.sv-hero__included {
    width: 100%;
    max-width: 1000px;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.sv-hero__included-title {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #e2e8f0;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.sv-hero__included-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
}

.included-pill {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(153, 102, 221, 0.3);
    border-radius: 50px;
    padding: 0.7rem 1.4rem;
    color: #fff;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.included-pill:hover {
    background: rgba(153, 102, 221, 0.1);
    border-color: #c084fc;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(153, 102, 221, 0.2);
}

.included-pill__icon {
    width: 1.2rem;
    height: 1.2rem;
    color: #c084fc;
}

/* --- SECCIÓN SERVICIOS (GRID 2x2) --- */

.sv-services {
    padding: 2rem 5% 6rem;
}

.sv-services__container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.sv-service {
    display: flex;
    flex-direction: column;
    border-radius: 1.5rem;
    border: 1px solid var(--glass-border, rgba(255,255,255,0.05));
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 2.5rem;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    text-align: left;
}

.sv-service:hover {
    transform: translateY(-8px);
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(153, 102, 221, 0.6);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3), 0 0 30px rgba(153, 102, 221, 0.1);
}

.sv-service::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: #c084fc;
    transform: scaleX(0);
    transition: transform 0.4s ease;
    transform-origin: right;
}

.sv-service:hover::before {
    transform: scaleX(1);
    transform-origin: left;
}

.sv-service--primary {
    border-color: rgba(153, 102, 221, 0.3);
}

.sv-service__icon-box {
    width: 3.5rem;
    height: 3.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(153, 102, 221, 0.1);
    border-radius: 1rem;
    color: #c084fc;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
}

.sv-service:hover .sv-service__icon-box {
    transform: scale(1.1) rotate(-5deg);
    background: #c084fc;
    color: #fff;
    box-shadow: 0 10px 20px rgba(153, 102, 221, 0.3);
}

.sv-service__icon-box svg {
    width: 1.8rem;
    height: 1.8rem;
}

.sv-service__title {
    font-size: 1.5rem;
    line-height: 1.3;
    margin-bottom: 1rem;
    transition: color 0.3s ease;
}

.sv-service__text {
    color: var(--text-muted, #a1a1aa);
    font-size: 1.05rem;
    line-height: 1.7;
}

/* --- SECCION PROCESS (TIMELINE) --- */
.s-process {
    padding: 6rem 5%;
    background: var(--bg-darker);
}

.s-process__container {
    max-width: 900px;
    margin: 0 auto;
}

.s-process__intro {
    text-align: center;
    margin-bottom: 5rem;
}

.s-process__title {
    font-size: clamp(2.5rem, 5vw, 3.8rem);
    font-weight: 800;
    margin-bottom: 1rem;
}

.s-process__subtitle {
    color: var(--text-muted);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

.s-process__timeline {
    position: relative;
    padding-left: 2rem;
}

.s-process__step {
    --step-progress: 0;
    display: flex;
    gap: 3rem;
    margin-bottom: 4rem;
    position: relative;
}

.s-process__step:last-child {
    margin-bottom: 0;
}

.s-process__marker {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 2;
}

.s-process__dot {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--bg-dark);
    border: 4px solid var(--primary-color);
    box-shadow: 0 0 15px var(--primary-color);
    flex-shrink: 0;
    transition: border-color 0.12s linear, box-shadow 0.16s linear;
}

.s-process__dot--green {
    border-color: var(--color-success);
    box-shadow: 0 0 15px var(--color-success);
}

.s-process__dot--purple {
    border-color: #c084fc;
    box-shadow: 0 0 15px #c084fc;
}

.s-process__line {
    position: relative;
    overflow: hidden;
    width: 2px;
    height: calc(100% + 4rem - 24px);
    background: linear-gradient(to bottom, var(--primary-color), rgba(153, 102, 221, 0.1));
    margin-top: 10px;
}

.s-process__line::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, var(--color-success), rgba(0, 255, 163, 0.15));
    opacity: var(--step-progress);
    transition: opacity 0.12s linear;
}

.s-process__step:nth-child(2) .s-process__line {
    background: linear-gradient(to bottom, #c084fc, rgba(0, 255, 163, 0.2));
}

.s-process__card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--glass-border);
    padding: 2.5rem;
    border-radius: 1.5rem;
    flex: 1;
    position: relative;
    overflow: visible;
    top: -1.5rem;
    transition: transform 0.3s ease;
}

.s-process__card:hover {
    transform: translateX(10px);
    border-color: rgba(153, 102, 221, 0.3);
    background: rgba(255, 255, 255, 0.04);
}

.s-process__number {
    position: absolute;
    top: -2.25rem;
    right: 1.5rem;
    font-family: 'Poppins', sans-serif;
    font-size: clamp(4.2rem, 7vw, 5.6rem);
    font-weight: 800;
    letter-spacing: -2px;
    color: rgba(255, 255, 255, 0.12);
    -webkit-text-stroke: 1px rgba(153, 102, 221, 0.28);
    text-shadow: 0 8px 22px rgba(0, 0, 0, 0.3);
    line-height: 0.9;
    user-select: none;
    pointer-events: none;
}

.s-process__heading {
    font-size: 1.5rem;
    color: var(--text-white);
    margin-bottom: 1rem;
    position: relative;
    z-index: 2;
}

.s-process__card p {
    color: var(--text-muted);
    line-height: 1.7;
    position: relative;
    z-index: 2;
}



/* =========================
   MEDIA QUERIES (RESPONSIVE)
   ========================= */

@media (max-width: 900px) {
    .sv-services__container {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 860px) {
    .sv-hero {
        padding-top: 9rem;
    }
}

@media (max-width: 480px) {
    .sv-hero__included-grid {
        width: min(100%, 34rem);
        margin: 0 auto;
    }

    .included-pill {
        width: 100%;
        display: grid;
        grid-template-columns: 1.25rem 1fr;
        align-items: center;
        justify-content: start;
        column-gap: 0.9rem;
        text-align: left;
        padding: 0.8rem 1rem;
    }

    .included-pill__icon {
        justify-self: center;
        align-self: center;
        flex-shrink: 0;
    }

    .included-pill span {
        display: block;
        justify-self: start;
        line-height: 1.35;
    }

    .sv-hero__cta {
        width: 100%;
        justify-content: center;
        text-align: center;
    }

    .sv-service {
        padding: 1.8rem;
    }
}

@media (max-width: 768px) {
    .s-process__timeline {
        padding-left: 0;
    }

    .s-process__step {
        flex-direction: column;
        gap: 1.5rem;
    }

    .s-process__marker {
        flex-direction: row;
        align-items: center;
        gap: 1rem;
    }

    .s-process__step:last-child .s-process__marker::after {
        content: '';
        width: 100%;
        height: 2px;
        background: linear-gradient(to right, var(--color-success), transparent);
    }

    .s-process__line {
        width: 100%;
        height: 2px;
        margin-top: 0;
        background: linear-gradient(to right, var(--primary-color), transparent);
    }

    .s-process__step:nth-child(2) .s-process__line {
        background: linear-gradient(to right, #c084fc, transparent);
    }

    .s-process__line::after {
        background: linear-gradient(to right, var(--color-success), transparent);
    }

    .s-process__card {
        top: 0;
        padding-top: 3.4rem;
    }

    .s-process__number {
        top: 0.6rem;
        right: 1rem;
        font-size: clamp(2.8rem, 14vw, 4rem);
        line-height: 0.85;
        letter-spacing: -1px;
    }

    .s-process__card:hover {
        transform: translateY(-5px);
    }
}