/* =============================================
   services.css - Estilos para la sección de servicios
   Compatible con services.js y variables globales
   ============================================= */

.services-section {
    padding: 80px 20px;
    background-color: #f9fafb;
    position: relative;
}

.services-wrapper {
    max-width: 1200px;
    margin: 0 auto;
}

.services-title {
    font-family: var(--title-font-family);
    font-size: clamp(2.2rem, 5vw, 3.2rem);
    font-weight: 800;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 60px;
    line-height: 1.2;
}

/* Grid de tarjetas */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

/* Tarjeta individual */
.service-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    transition: all 0.35s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

/* Imagen */
.service-image-box {
    position: relative;
    height: 270px;
    overflow: hidden;
}

.service-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.6s ease;
}

.service-card:hover .service-image {
    transform: scale(1.08);
}

/* Contenido */
.service-content {
    padding: 28px 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    text-align: center;
}

.service-title {
    font-family: var(--title-font-family);
    font-size: 1.5rem;
    letter-spacing: 2px;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 16px;
    line-height: 1.3;
}

.service-description {
    font-family: var(--base-font-family);
    font-size: 1.05rem;
    line-height: 1.65;
    color: #4b5563;
    margin-bottom: 24px;
    flex-grow: 1;
}

/* Botón CTA */
.service-cta-wrapper {
    margin-top: auto;
    padding-top: 12px;
}

.service-card .btn-primary {
    display: inline-block;
    width: 100%;
    max-width: 260px;
    margin: 0 auto;
    padding: 14px 32px;
    font-size: 1.05rem;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.service-card .btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(var(--accent-color), 0.25);
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .services-section {
        padding: 60px 16px;
    }

    .services-title {
        margin-bottom: 50px;
    }

    .service-content {
        padding: 24px 20px;
    }
}

@media (max-width: 640px) {
    .services-title {
        font-size: 2.4rem;
    }

    .service-image-box {
        height: 200px;
    }

    .service-title {
        font-size: 1.4rem;

    }

    .service-description {
        font-size: 1rem;
    }

    .service-card .btn-primary {
        padding: 12px 28px;
        font-size: 1rem;
    }
}