/* --- SECCIÓN SERVICIOS --- */
.services-section {
    position: relative;
    padding: 120px 5%;
    background: linear-gradient(to bottom, rgba(4, 31, 38, 0) 0%, rgba(4, 31, 38, 0.8) 15%, rgba(4, 31, 38, 0.95) 100%);
    z-index: 10;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 2.2rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: 2px;
}

.bracket {
    color: var(--cyan-glow);
    opacity: 0.7;
    font-weight: 400;
}

.title-underline {
    width: 60px;
    height: 3px;
    background: var(--purple-glow);
    margin: 15px auto 0;
    box-shadow: 0 0 10px var(--purple-glow);
    border-radius: 2px;
}

/* Grid de Tarjetas */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    /* Necesario para el efecto 3D */
    perspective: 1000px; 
}

/* Tarjeta Individual */
.service-card {
    background: linear-gradient(135deg, rgba(4, 31, 38, 0.6) 0%, rgba(4, 31, 38, 0.2) 100%);
    /* Patrón de cuadrícula tecnológica de fondo */
    background-image: 
        linear-gradient(rgba(0, 240, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 240, 255, 0.03) 1px, transparent 1px);
    background-size: 20px 20px;
    backdrop-filter: blur(12px);
    border: 1px solid rgba(0, 240, 255, 0.15);
    border-radius: 12px;
    padding: 40px 30px;
    text-align: center;
    position: relative;
    overflow: hidden;
    /* Preparamos la tarjeta para el movimiento 3D con JS */
    transform-style: preserve-3d;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

/* Línea de escáner estilo holograma */
.service-card::after {
    content: '';
    position: absolute;
    top: -100%;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--cyan-glow);
    box-shadow: 0 0 15px 5px rgba(0, 240, 255, 0.4);
    opacity: 0;
    transition: opacity 0.3s;
    z-index: 5;
    pointer-events: none;
}

.service-card:hover {
    border-color: var(--cyan-glow);
    box-shadow: 0 10px 30px rgba(0, 240, 255, 0.1), inset 0 0 20px rgba(157, 78, 221, 0.1);
}

.service-card:hover::after {
    opacity: 1;
    animation: scanline 2s linear infinite;
}

@keyframes scanline {
    0% { top: -10%; }
    100% { top: 110%; }
}

/* Efecto de resplandor dinámico (Ahora controlado por el ratón) */
.card-glow {
    position: absolute;
    top: 0;
    left: 0;
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, var(--cyan-glow) 0%, transparent 60%);
    filter: blur(40px);
    opacity: 0;
    pointer-events: none; /* Evita que bloquee el hover */
    z-index: 0;
}

.service-icon-wrapper {
    position: relative;
    z-index: 10;
    margin-bottom: 25px;
    transform: translateZ(30px); /* Empuja el ícono hacia adelante en el 3D */
}

.service-icon {
    font-size: 3rem;
    color: var(--cyan-glow);
    filter: drop-shadow(0 0 8px rgba(0, 240, 255, 0.6));
    transition: color 0.3s ease, filter 0.3s ease;
}

.service-card:hover .service-icon {
    color: var(--purple-glow);
    filter: drop-shadow(0 0 15px rgba(157, 78, 221, 0.8));
}

.service-title {
    position: relative;
    z-index: 10;
    font-family: 'Orbitron', sans-serif;
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: #fff;
    transform: translateZ(20px); /* Efecto 3D */
}

.service-desc {
    position: relative;
    z-index: 10;
    font-size: 1.1rem;
    color: #a0aec0;
    line-height: 1.6;
    margin-bottom: 25px;
    flex-grow: 1;
    transform: translateZ(10px);
}

.service-link {
    position: relative;
    z-index: 10;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: var(--cyan-glow);
    text-decoration: none;
    font-weight: 600;
    font-family: 'Orbitron', sans-serif;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: color 0.3s ease;
    transform: translateZ(20px);
}

.service-link:hover {
    color: var(--purple-glow);
}

@media (max-width: 768px) {
    .services-section { padding: 80px 5%; }
    .section-title { font-size: 1.8rem; }
    /* Desactivamos el efecto 3D en móviles para no causar mareos en scroll táctil */
    .service-card { transform: none !important; } 
}