/* ============================================
   SERVICIOS PAGE - CSS COMPLETO
   ============================================ */

/* Hero Section con imagen de fondo */
.servicios-hero {
    width: 100%;
    position: relative;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 80px 20px;
    text-align: center;
}

.servicios-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
}

.servicios-hero-content {
    position: relative;
    z-index: 2;
}

.servicios-hero-content h1 {
    font-size: 48px;
    color: #fff;
    position: relative;
    display: inline-block;
    padding-bottom: 15px;
    margin: 0;
}

.servicios-hero-content h1:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: #fff;
}

/* Imagen principal - debajo del título */
.servicios-imagen-container {
    width: 100%;
    max-width: 1200px;
    margin: 50px auto;
    padding: 0 20px;
}

.servicios-imagen-wrapper {
    width: 100%;
    text-align: center;
}

.servicios-imagen-wrapper img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

/* Grid de servicios */
.servicios-grid-container {
    max-width: 1200px;
    margin: 50px auto;
    padding: 0 20px;
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.servicio-card {
    flex: 1;
    min-width: 280px;
    max-width: 500px;
}

.servicio-card a {
    text-decoration: none;
}

.servicio-card-img {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
}

.servicio-card-img img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.4s ease;
}

.servicio-card-img:hover img {
    transform: scale(1.05);
}

.servicio-card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.85), transparent);
    padding: 40px 20px 25px;
    text-align: center;
}

.servicio-card-overlay h2 {
    color: #fff;
    font-size: 24px;
    margin: 0;
    font-weight: 600;
}

/* CTA Section con imagen de fondo */
.servicios-cta {
    width: 100%;
    position: relative;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 80px 20px;
    text-align: center;
    margin-top: 50px;
}

.servicios-cta-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0,132,222,0.85) 0%, rgba(12,113,195,0.85) 100%);
}

.servicios-cta-content {
    position: relative;
    z-index: 2;
}

.servicios-cta-content h2 {
    color: #fff;
    font-size: 42px;
    margin-bottom: 15px;
}

.servicios-cta-content h2 span {
    color: #0ee7c5;
}

.servicios-cta-content p {
    color: #fff;
    font-size: 22px;
    margin: 0;
}

/* Responsive */
@media (max-width: 768px) {
    .servicios-hero {
        padding: 60px 20px;
    }
    
    .servicios-hero-content h1 {
        font-size: 32px;
    }
    
    .servicios-imagen-container {
        margin: 30px auto;
    }
    
    .servicios-grid-container {
        flex-direction: column;
        align-items: center;
        gap: 25px;
    }
    
    .servicio-card {
        max-width: 100%;
        width: 100%;
    }
    
    .servicio-card-overlay h2 {
        font-size: 20px;
    }
    
    .servicios-cta {
        padding: 60px 20px;
    }
    
    .servicios-cta-content h2 {
        font-size: 32px;
    }
    
    .servicios-cta-content p {
        font-size: 18px;
    }
}

@media (max-width: 480px) {
    .servicios-hero {
        padding: 40px 20px;
    }
    
    .servicios-hero-content h1 {
        font-size: 28px;
    }
    
    .servicio-card-overlay h2 {
        font-size: 18px;
    }
    
    .servicios-cta {
        padding: 50px 20px;
    }
    
    .servicios-cta-content h2 {
        font-size: 26px;
    }
    
    .servicios-cta-content p {
        font-size: 16px;
    }
}