/* ========== TÍTULO DE SECCIÓN - ESTILO CONSISTENTE ========== */
.services-section .section-title,
.services-section h2 {
    font-family: var(--font-heading);
    font-size: 2.8rem;
    font-weight: 300;
    letter-spacing: 0.5px;
    margin: 0 0 1rem;
    position: relative;
    color: var(--tacmex-white);
    text-transform: uppercase;
    text-align: center;
    margin-bottom: 3rem;
}

.services-section .section-title::after,
.services-section h2::after {
    content: '';
    position: absolute;
    width: 40px;
    height: 2px;
    background-color: var(--tacmex-white);
    bottom: -6px;
    left: 50%;
    transform: translateX(-50%);
}

/* Service Cards con estilo consistente de TACMEX */

.service-card h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 300; 
    letter-spacing: 0.5px; 
    text-transform: uppercase; 
    color: var(--tacmex-white); 
    padding: 1.5rem 1.5rem 0.5rem;
    margin: 0;
    position: relative;
}

.service-card h3::after {
    content: '';
    position: absolute;
    width: 40px;
    height: 2px; 
    background-color: var(--tacmex-white); 
    bottom: -6px; 
    left: 1.5rem;
}

.service-card p {
    padding: 1rem 1.5rem 1.5rem;
    margin: 0;
    font-size: 1rem;
    font-weight: 300; 
    line-height: 1.6; 
    color: var(--tacmex-white); 
}

/* Animaciones mantenidas */
.service-card:nth-child(1) h3 { animation-delay: 0.3s; }
.service-card:nth-child(1) p { animation-delay: 0.5s; }
.service-card:nth-child(1) h3::after { animation-delay: 0.7s; }
.service-card:nth-child(2) h3 { animation-delay: 0.5s; }
.service-card:nth-child(2) p { animation-delay: 0.7s; }
.service-card:nth-child(2) h3::after { animation-delay: 0.9s; }
.service-card:nth-child(3) h3 { animation-delay: 0.7s; }
.service-card:nth-child(3) p { animation-delay: 0.9s; }
.service-card:nth-child(3) h3::after { animation-delay: 1.1s; }
.service-card:nth-child(4) h3 { animation-delay: 0.9s; }
.service-card:nth-child(4) p { animation-delay: 1.1s; }
.service-card:nth-child(4) h3::after { animation-delay: 1.3s; }

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes expandLine {
    from {
        width: 0;
        opacity: 0;
    }
    to {
        width: 40px; 
        opacity: 1;
    }
}


/* Container de la imagen del service card */
.service-image-container {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    width: 100%;
    height: 425px;
}

.service-image-container:hover {
    transform: translateY(-8px);
    /*  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);  */
}

.service-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top; 
    transition: transform 0.6s ease;
}

.service-image-container:hover img {
    transform: scale(1.05);
}

/* Estilos alternativos si usas clase directa en img */
.service-card .service-image,
.service-card img {
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    border-radius: 12px;
    width: 100%;
    height: 425px; /* Imagen más grande */
    object-fit: cover;
    object-position: top; /* Mostrar desde abajo */
}

.service-card:hover .service-image,
.service-card:hover img {
    transform: scale(1.05) translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2); /* SIN color tacmex */
}

/* TOTALMENTE removidos overlays y gradientes */
.service-card .service-image::before,
.service-image-container::before,
.service-card::before {
    display: none !important;
}

/* Responsive para imágenes más grandes */
@media (max-width: 768px) {
    .services-section .section-title,
    .services-section h2 {
        font-size: 2.2rem;
        letter-spacing: 0.3px;
    }
    
    .service-image-container,
    .service-card .service-image,
    .service-card img {
        height: 250px; /* Ajuste responsive */
    }
}

@media (max-width: 480px) {
    .services-section .section-title,
    .services-section h2 {
        font-size: 1.8rem;
        letter-spacing: 0.2px;
    }
    
    .service-image-container,
    .service-card .service-image,
    .service-card img {
        height: 200px; /* Ajuste para móvil */
    }
}

/* Responsive mantenido y mejorado */
@media (max-width: 768px) {
    .service-card h3 {
        font-size: 1.2rem;
        letter-spacing: 0.5px;
        padding: 1.2rem 1.2rem 0.4rem;
        font-weight: 300; /* Consistencia */
    }
    
    .service-card h3::after {
        width: 40px;
        left: 1.2rem;
        height: 2px; /* Consistencia */
    }
    
    .service-card p {
        font-size: 0.9rem;
        padding: 0.8rem 1.2rem 1.2rem;
        line-height: 1.6;
        font-weight: 300; /* Consistencia */
    }
}

@media (max-width: 480px) {
    .service-card h3 {
        font-size: 1.1rem;
        text-align: center;
        font-weight: 300; /* Consistencia */
    }
    
    .service-card h3::after {
        width: 35px;
        left: 50%;
        transform: translateX(-50%);
        height: 2px; /* Consistencia */
    }
    
    .service-card p {
        font-size: 0.85rem;
        text-align: center;
        font-weight: 300; /* Consistencia */
    }
}