/* services.css - Numeraconex S.A. de C.V. (NMC S.A. de C.V.) */
/* Sección de Servicios - Cohesión visual con hero y branding teal/naranja */

.services-section {
    position: relative;
    background: linear-gradient(
        to bottom,
        rgba(97, 156, 186, 0.09) 0%,      /* conexión sutil con el teal del hero */
        #ffffff 35%,                          /* transición limpia a blanco */
        #f9fcff 100%                          /* fondo muy claro con hint teal */
    );
    padding: 140px 20px 100px;
    color: #1e293b;
}

/* Contenedor principal */
.services-container {
    max-width: 1400px;
    margin: 0 auto;
}

/* Header de la sección */
.services-header {
    text-align: center;
    max-width: 820px;
    margin: 0 auto 70px;
}

.services-title {
    font-family: var(--title-font-family);
    font-size: clamp(2.6rem, 6.5vw, 4.5rem);
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 1.4rem;
    line-height: 1.1;
}

.services-subtitle {
    font-size: 1.35rem;
    line-height: 1.6;
    color: #475569;
    font-weight: 500;
    text-align: center;
}

/* Grid de tarjetas */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 32px 28px;
}

/* Tarjeta individual */
.service-card {
    background: white;
    border-radius: 20px;
    padding: 48px 32px 40px;
    box-shadow: 0 10px 38px rgba(97, 156, 186, 0.10);
    border: 1px solid rgba(97, 156, 186, 0.14);
    transition: all 0.38s cubic-bezier(0.165, 0.84, 0.44, 1);
    position: relative;
    overflow: hidden;
    text-align: center;
}

/* Barra superior de color (teal → naranja) */
.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, var(--primary-color) 0%, var(--accent-color) 100%);
    opacity: 0.9;
    transition: height 0.35s ease;
}

/* Hover states */
.service-card:hover {
    transform: translateY(-14px);
    box-shadow: 0 22px 58px rgba(97, 156, 186, 0.20);
    border-color: var(--accent-color);
}

.service-card:hover::before {
    height: 7px;
}

/* Icono */
.service-card i {
    font-size: 3.6rem;
    margin-bottom: 1.8rem;
    color: var(--primary-color);
    background: linear-gradient(135deg, var(--primary-color) 0%, rgba(97,156,186,0.25) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: block;
}

/* Título de cada servicio */
.service-card h3 {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 1.1rem;
    color: var(--secondary-color);
    line-height: 1.3;
    text-align: center;
}

/* Descripción */
.service-card p {
    font-size: 1.1rem;
    line-height: 1.65;
    color: #64748b;
    text-align: center;
}

/* Responsive */
@media (max-width: 992px) {
    .services-section {
        padding: 110px 20px 80px;
    }

    .services-grid {
        gap: 28px;
    }
}

@media (max-width: 768px) {
    .services-section {
        padding: 90px 16px 70px;
    }

    .services-title {
        font-size: 2.9rem;
    }

    .services-subtitle {
        font-size: 1.25rem;
    }

    .service-card {
        padding: 40px 24px 32px;
    }
}

@media (max-width: 576px) {
    .services-grid {
        grid-template-columns: 1fr;
    }

    .service-card {
        padding: 36px 20px 28px;
    }
}