/* =========================================
   BALDER - ANIMACIONES DE SERVICIOS
========================================= */

/* Entrada de las tarjetas */
.service-card {
    position: relative;
    transform-style: preserve-3d;
    will-change: transform, opacity;
}

/* Línea superior animada */
.service-card::before {
    transition: width 0.6s cubic-bezier(.2,.8,.2,1);
}

/* Movimiento del número */
.service-number {
    transition:
        transform 0.5s ease,
        background 0.5s ease,
        color 0.5s ease;
}

.service-card:hover .service-number {
    transform: rotate(-8deg) scale(1.12);
    background: #0D4C7C;
    color: #FFFFFF;
}

/* Brillo sutil al interactuar */
.service-card::after {
    content: "";
    position: absolute;
    top: -100%;
    left: -60%;
    width: 45%;
    height: 300%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(13, 76, 124, 0.06),
        transparent
    );
    transform: rotate(25deg);
    transition: left 0.8s ease;
    pointer-events: none;
}

.service-card:hover::after {
    left: 130%;
}

/* Animación de la sección de experiencia */
.services-experience {
    transition:
        transform 0.5s ease,
        box-shadow 0.5s ease;
}

.services-experience:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(14, 54, 79, 0.08);
}

/* Accesibilidad */
@media (prefers-reduced-motion: reduce) {
    .service-card,
    .service-card::before,
    .service-card::after,
    .service-number,
    .services-experience {
        animation: none !important;
        transition: none !important;
        transform: none !important;
    }
}

/* =========================================
   BALDER - ICONOGRAFÍA TECNOLÓGICA
========================================= */

.service-visual {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 28px;
}

.service-visual .service-number {
    margin-bottom: 0;
}

.service-visual svg {
    width: 62px;
    height: 62px;
    padding: 12px;
    overflow: visible;
    fill: none;
    stroke: #0D4C7C;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    background: #F0F6FA;
    border-radius: 16px;
    animation: balderIconFloat 4s ease-in-out infinite;
    transition: background .4s ease, transform .4s ease;
}

.service-card:nth-child(2) .service-visual svg {
    animation-delay: .4s;
}

.service-card:nth-child(3) .service-visual svg {
    animation-delay: .8s;
}

.service-card:nth-child(4) .service-visual svg {
    animation-delay: 1.2s;
}

.service-card:nth-child(5) .service-visual svg {
    animation-delay: 1.6s;
}

.service-card:nth-child(6) .service-visual svg {
    animation-delay: 2s;
}

@keyframes balderIconFloat {
    0%, 100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-7px);
    }
}

.service-card:hover .service-visual svg {
    background: #E0EDF6;
    transform: translateY(-5px) scale(1.08);
}

/* Movimiento de las tarjetas */

.service-card {
    transition:
        transform .5s cubic-bezier(.2,.8,.2,1),
        box-shadow .5s ease,
        border-color .5s ease;
}

@media (prefers-reduced-motion: reduce) {
    .service-visual svg {
        animation: none !important;
    }
}

/* =====================================
   BALDER TERMINAL - CAMBIO DE SERVICIO
===================================== */

.contact-section {
    transition: --terminal-accent 0.5s ease;
}

.terminal-window {
    transition:
        border-color .5s ease,
        box-shadow .5s ease,
        background .5s ease;
}

.terminal-window::before {
    content: "";
    position: absolute;
    inset: -2px;
    pointer-events: none;
    opacity: .12;
    background: radial-gradient(
        ellipse at 50% 45%,
        var(--terminal-accent),
        transparent 65%
    );
    transition: opacity .6s ease;
}

.contact-section.service-selected .terminal-window::before {
    opacity: .24;
}

.contact-section.service-selected .terminal-window {
    box-shadow:
        0 0 35px color-mix(in srgb, var(--terminal-accent) 18%, transparent),
        0 0 100px color-mix(in srgb, var(--terminal-accent) 12%, transparent),
        0 30px 100px rgba(0, 0, 0, .5);
}

.terminal-service-panel.service-confirmed {
    animation: serviceConfirmation .65s ease;
}

@keyframes serviceConfirmation {
    0% {
        transform: scale(.98);
        filter: brightness(1);
    }

    45% {
        transform: scale(1.015);
        filter: brightness(1.7);
    }

    100% {
        transform: scale(1);
        filter: brightness(1);
    }
}

.terminal-selection-message {
    margin-top: 12px;
    color: var(--terminal-accent);
    font-size: 11px;
    letter-spacing: 1px;
    opacity: 0;
    transform: translateY(5px);
    transition: .3s ease;
}

.terminal-selection-message.visible {
    opacity: 1;
    transform: translateY(0);
}




