/* Services Spectacular - High End Experience */
:root {
    --spec-bg-dark: #050505;
    --spec-accent: #28a745;
    --spec-primary: #0056b3;
    --spec-text-light: #f0f0f0;
    --spec-glass: rgba(255, 255, 255, 0.05);
    --spec-glass-border: rgba(255, 255, 255, 0.1);
}

body.servicios-page {
    background-color: var(--spec-bg-dark);
    color: var(--spec-text-light);
    overflow-x: hidden;
}

/* Header overrides removed for global consistency */

/* --- Hero Section --- */
.hero-spectacular {
    position: relative;
    height: 100vh;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    background: radial-gradient(circle at center, #111 0%, #000 100%);
    perspective: 1000px;
}

.hero-spectacular::before {
    content: '';
    position: absolute;
    width: 200%;
    height: 200%;
    /* Subtle animated grid */
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    transform: perspective(500px) rotateX(60deg) translateY(-100px) translateZ(-200px);
    animation: gridMove 20s linear infinite;
    pointer-events: none;
}

@keyframes gridMove {
    0% {
        transform: perspective(500px) rotateX(60deg) translateY(0) translateZ(-200px);
    }

    100% {
        transform: perspective(500px) rotateX(60deg) translateY(50px) translateZ(-200px);
    }
}

.hero-content-layer {
    position: relative;
    z-index: 10;
    text-align: center;
    mix-blend-mode: screen;
}

.hero-title-main {
    font-size: clamp(4rem, 15vw, 12rem);
    font-weight: 900;
    text-transform: uppercase;
    line-height: 0.9;
    background: linear-gradient(to bottom, #fff, #666);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    opacity: 0;
    animation: fadeInUp 1s cubic-bezier(0.2, 1, 0.3, 1) forwards 0.5s;
    letter-spacing: -5px;
}

.hero-subtitle-main {
    font-size: clamp(1rem, 2vw, 1.5rem);
    font-weight: 300;
    letter-spacing: 10px;
    text-transform: uppercase;
    color: var(--spec-accent);
    margin-top: 20px;
    opacity: 0;
    animation: fadeInUp 1s cubic-bezier(0.2, 1, 0.3, 1) forwards 1s;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
        filter: blur(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
        filter: blur(0);
    }
}

/* Spotlights */
.spotlight {
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.2;
    animation: floatSpotlight 10s infinite ease-in-out alternate;
}

.spotlight-1 {
    background: var(--spec-primary);
    top: -20%;
    left: -10%;
}

.spotlight-2 {
    background: var(--spec-accent);
    bottom: -20%;
    right: -10%;
    animation-delay: -5s;
}

@keyframes floatSpotlight {
    0% {
        transform: translate(0, 0) scale(1);
    }

    100% {
        transform: translate(50px, 50px) scale(1.2);
    }
}

/* --- End Hero --- */


/* --- Stacking Cards Section --- */
.stacking-cards-section {
    padding: 100px 0;
    background: #050505;
}

.stacking-cards-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

.sticky-card {
    position: sticky;
    top: 100px;
    /* Offset from top */
    height: 700px;
    /* Fixed height for card content */
    margin-bottom: 50px;
    /* Space between start of next card */
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    perspective: 1000px;
}

.card-inner {
    width: 100%;
    height: 100%;
    background: #111;
    border-radius: 40px;
    border: 1px solid var(--spec-glass-border);
    overflow: hidden;
    position: relative;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    display: flex;
    transform-origin: top center;
    transition: transform 0.5s ease, filter 0.5s ease;
}

/* Image Side */
.card-visual {
    flex: 1;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.card-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1s cubic-bezier(0.2, 1, 0.3, 1);
}

.card-inner:hover .card-visual img {
    transform: scale(1.1);
}

.card-visual::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.8) 0%, transparent 100%);
}

/* Content Side */
.card-content-stack {
    flex: 1;
    padding: 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: linear-gradient(135deg, rgba(20, 20, 20, 0.95), rgba(10, 10, 10, 0.98));
    border-left: 1px solid rgba(255, 255, 255, 0.05);
    z-index: 2;
}

.card-number {
    font-size: 8rem;
    font-weight: 900;
    color: rgba(255, 255, 255, 0.03);
    position: absolute;
    top: 20px;
    right: 40px;
    line-height: 1;
    user-select: none;
}

.card-icon-box {
    width: 80px;
    height: 80px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 30px;
    font-size: 2rem;
    color: var(--spec-accent);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.card-title-stack {
    font-family: 'Montserrat', sans-serif;
    font-size: 3rem;
    font-weight: 800;
    color: white;
    margin-bottom: 20px;
    line-height: 1.1;
}

.card-desc-stack {
    font-size: 1.1rem;
    color: #aaa;
    margin-bottom: 40px;
    line-height: 1.8;
}

.feature-list-stack {
    list-style: none;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.feature-list-stack li {
    display: flex;
    align-items: center;
    gap: 15px;
    color: #ddd;
    font-weight: 500;
}

.feature-list-stack li i {
    color: var(--spec-primary);
}

/* Responsive Stacking */
@media (max-width: 992px) {
    .sticky-card {
        height: auto;
        min-height: 600px;
        top: 80px;
    }

    .card-inner {
        flex-direction: column;
    }

    .card-visual {
        height: 300px;
        flex: none;
    }

    .card-visual::after {
        background: linear-gradient(0deg, rgba(0, 0, 0, 0.9) 0%, transparent 100%);
    }

    .card-content-stack {
        padding: 40px;
    }

    .card-title-stack {
        font-size: 2rem;
    }
}

/* --- Process Timeline Spectacular --- */
.process-spectacular {
    padding: 150px 0;
    background: #080808;
    position: relative;
    overflow: hidden;
}

.process-grid-spec {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    position: relative;
    z-index: 2;
}

.process-card-spec {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 40px;
    border-radius: 20px;
    transition: all 0.4s ease;
    cursor: default;
    position: relative;
    overflow: hidden;
}

.process-card-spec:hover {
    background: rgba(255, 255, 255, 0.07);
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    border-color: var(--spec-primary);
}

.step-num-big {
    font-size: 5rem;
    font-weight: 900;
    color: rgba(255, 255, 255, 0.05);
    position: absolute;
    top: 0;
    right: 20px;
    transition: color 0.3s;
}

.process-card-spec:hover .step-num-big {
    color: rgba(0, 86, 179, 0.2);
}

.process-icon-box {
    font-size: 2.5rem;
    color: white;
    margin-bottom: 20px;
    background: linear-gradient(135deg, var(--spec-primary), #00aeff);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.process-card-spec h3 {
    font-size: 1.8rem;
    font-weight: 700;
    color: white;
    margin-bottom: 15px;
}

.process-card-spec p {
    color: #999;
}

/* --- Call to Action Spectacular --- */
.cta-spectacular {
    padding: 150px 0;
    background: #000;
    text-align: center;
    position: relative;
}

.cta-content-box {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 5;
}

.cta-title-spec {
    font-size: 4rem;
    font-weight: 800;
    color: white;
    margin-bottom: 30px;
    line-height: 1.1;
}

.cta-btn-spec {
    padding: 20px 50px;
    background: white;
    color: black;
    font-weight: 800;
    text-transform: uppercase;
    font-size: 1.2rem;
    border-radius: 50px;
    transition: all 0.3s ease;
    display: inline-block;
    position: relative;
    overflow: hidden;
}

.cta-btn-spec::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--spec-accent);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.4s ease;
    z-index: 0;
}

.cta-btn-spec:hover::before {
    transform: scaleX(1);
    transform-origin: left;
}

.cta-btn-spec span {
    position: relative;
    z-index: 1;
    transition: color 0.4s;
}

.cta-btn-spec:hover span {
    color: white;
}