/* Página Servicios — estética tipo landing gaming (inspiración G HUB): hero oscuro, malla animada, revelado al scroll */

.gf-servicios-page .container-fluid.bg-dark.mb-30 {
    margin-bottom: 0;
}

.gf-svc-main {
    overflow-x: hidden;
}

/* —— Hero —— */
.gf-svc-hero {
    position: relative;
    min-height: 72vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 4rem 1.5rem 5rem;
    color: #f4f4f5;
    background-color: #060608;
    background-image:
        linear-gradient(to bottom, rgba(2, 3, 6, 0.2) 0%, transparent 45%, rgba(2, 3, 6, 0.38) 100%),
        linear-gradient(
            115deg,
            rgba(4, 6, 10, 0.78) 0%,
            rgba(6, 8, 14, 0.42) 38%,
            rgba(4, 6, 10, 0.58) 72%,
            rgba(3, 5, 9, 0.75) 100%
        ),
        url("../img/servicios-hero-bg.png");
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
}

.gf-svc-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    background:
        radial-gradient(ellipse 85% 55% at 50% -15%, rgba(63, 184, 175, 0.12), transparent 52%),
        radial-gradient(ellipse 55% 45% at 100% 45%, rgba(255, 193, 7, 0.04), transparent 48%),
        radial-gradient(ellipse 45% 50% at 0% 85%, rgba(63, 184, 175, 0.06), transparent 42%);
    animation: gfSvcMesh 14s ease-in-out infinite alternate;
    pointer-events: none;
}

.gf-svc-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    background-image: linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px);
    background-size: 100% 4px;
    opacity: 0.18;
    pointer-events: none;
    mask-image: linear-gradient(to bottom, transparent, black 12%, black 88%, transparent);
}

@keyframes gfSvcMesh {
    0% {
        transform: scale(1) translate(0, 0);
        filter: hue-rotate(0deg);
    }
    100% {
        transform: scale(1.08) translate(-2%, 2%);
        filter: hue-rotate(12deg);
    }
}

.gf-svc-hero-glow {
    position: absolute;
    width: min(90vw, 520px);
    height: min(90vw, 520px);
    border-radius: 50%;
    background: radial-gradient(circle, rgba(63, 184, 175, 0.1) 0%, transparent 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    transition: transform 0.35s ease-out;
    z-index: 1;
}

.gf-svc-hero-inner {
    position: relative;
    z-index: 2;
    max-width: 920px;
}

.gf-svc-hero-crumb {
    font-size: 0.8rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    opacity: 0.65;
    margin-bottom: 1.75rem;
    text-shadow: 0 1px 10px rgba(0, 0, 0, 0.9), 0 0 1px rgba(0, 0, 0, 1);
}

.gf-svc-hero-crumb a {
    color: rgba(255, 255, 255, 0.75);
}

.gf-svc-hero-crumb a:hover {
    color: #3fb8af;
    text-decoration: none;
}

.gf-svc-hero-lines {
    margin-bottom: 1.25rem;
}

.gf-svc-hero-line {
    display: block;
    font-weight: 800;
    font-size: clamp(1.65rem, 5vw, 2.85rem);
    line-height: 1.12;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    opacity: 0;
    transform: translateY(28px);
    animation: gfSvcLineIn 0.85s cubic-bezier(0.22, 1, 0.36, 1) forwards;
    color: #4ee4d8;
    text-shadow:
        0 0 12px rgba(78, 228, 216, 0.95),
        0 0 28px rgba(63, 184, 175, 0.65),
        0 0 52px rgba(63, 184, 175, 0.4),
        0 2px 14px rgba(0, 0, 0, 0.88),
        0 1px 3px rgba(0, 0, 0, 0.95);
}

.gf-svc-hero-line:nth-child(1) {
    animation-delay: 0.15s;
}

.gf-svc-hero-line:nth-child(2) {
    animation-delay: 0.32s;
}

.gf-svc-hero-line:nth-child(3) {
    animation-delay: 0.49s;
}

.gf-svc-hero-line:nth-child(4) {
    animation-delay: 0.66s;
}

@keyframes gfSvcLineIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.gf-svc-hero-sub {
    font-size: clamp(1rem, 2.2vw, 1.2rem);
    max-width: 36rem;
    margin: 0 auto 2rem;
    color: rgba(255, 255, 255, 0.72);
    opacity: 0;
    animation: gfSvcFadeUp 0.9s ease 0.85s forwards;
    text-shadow: 0 1px 12px rgba(0, 0, 0, 0.88), 0 0 1px rgba(0, 0, 0, 1);
}

@keyframes gfSvcFadeUp {
    from {
        opacity: 0;
        transform: translateY(16px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.gf-svc-hero-cta {
    opacity: 0;
    animation: gfSvcFadeUp 0.9s ease 1.05s forwards;
}

.gf-svc-hero-cta .btn {
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    font-size: 0.8rem;
    padding: 0.65rem 1.35rem;
}

.gf-svc-btn-outline {
    border: 2px solid rgba(255, 255, 255, 0.35);
    color: #fff;
    background: transparent;
}

.gf-svc-btn-outline:hover {
    border-color: #3fb8af;
    color: #fff;
    background: rgba(63, 184, 175, 0.15);
}

/* —— Bloques de contenido —— */
.gf-svc-body {
    background: #111114;
    color: #e8e8ea;
    padding-bottom: 4rem;
}

.gf-svc-section-title {
    font-size: clamp(1.35rem, 3vw, 1.85rem);
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 2rem;
    padding-left: 1rem;
    border-left: 4px solid #3fb8af;
}

.gf-svc-card {
    background: linear-gradient(145deg, #1a1a20 0%, #141418 100%);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 4px;
    padding: 2rem 1.75rem;
    height: 100%;
    transition: border-color 0.35s ease, box-shadow 0.35s ease, transform 0.35s ease;
}

.gf-svc-card:hover {
    border-color: rgba(63, 184, 175, 0.35);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(63, 184, 175, 0.12);
    transform: translateY(-4px);
}

.gf-svc-card-icon {
    font-size: 2rem;
    color: #3fb8af;
    margin-bottom: 1rem;
    display: inline-block;
    animation: gfSvcIconPulse 3s ease-in-out infinite;
}

.gf-svc-card:nth-child(2) .gf-svc-card-icon {
    animation-delay: 0.5s;
}

.gf-svc-card:nth-child(3) .gf-svc-card-icon {
    animation-delay: 1s;
}

@keyframes gfSvcIconPulse {
    0%,
    100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.06);
        opacity: 0.85;
    }
}

.gf-svc-card h3 {
    font-size: 1.15rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.75rem;
    color: #fff;
}

.gf-svc-card p {
    color: rgba(255, 255, 255, 0.65);
    margin-bottom: 0;
    font-size: 0.95rem;
    line-height: 1.65;
}

a.gf-svc-card--link {
    color: inherit;
    text-decoration: none !important;
}

a.gf-svc-card--link:hover h3,
a.gf-svc-card--link:focus h3 {
    color: #4ee4d8;
}

a.gf-svc-card--link .gf-svc-card-cta {
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #3fb8af;
    transition: color 0.25s ease, transform 0.25s ease;
}

a.gf-svc-card--link:hover .gf-svc-card-cta,
a.gf-svc-card--link:focus .gf-svc-card-cta {
    color: #4ee4d8;
    transform: translateX(3px);
}

a.gf-svc-card--link:focus {
    outline: 2px solid rgba(63, 184, 175, 0.65);
    outline-offset: 3px;
}

/* Revelado al scroll */
.gf-svc-reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.gf-svc-reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.gf-svc-reveal-delay-1 {
    transition-delay: 0.08s;
}

.gf-svc-reveal-delay-2 {
    transition-delay: 0.16s;
}

@media (prefers-reduced-motion: reduce) {
    .gf-svc-hero::before,
    .gf-svc-card-icon {
        animation: none;
    }

    .gf-svc-hero-line,
    .gf-svc-hero-sub,
    .gf-svc-hero-cta {
        animation: none;
        opacity: 1;
        transform: none;
    }

    .gf-svc-reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }

    .gf-svc-card:hover {
        transform: none;
    }
}
