/* CSS específico para la página de servicios */

/* Hero Section */
.servicios-hero {
    background: linear-gradient(135deg, #C93742 0%, #8B252F 100%);
    padding: 120px 0 80px;
    position: relative;
    overflow: hidden;
}

.servicios-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('../img/edificio.jpg') center/cover no-repeat;
    opacity: 0.1;
    z-index: 0;
}

.servicios-hero .container {
    position: relative;
    z-index: 1;
}

/* Filtros de Servicios */
.servicios-filtros {
    margin-bottom: 3rem;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
}

.filter-btn {
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid #C93742;
    color: #C93742;
}

.filter-btn:hover,
.filter-btn.active {
    background-color: #C93742;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(201, 55, 66, 0.3);
}

/* Grid de Servicios */
.servicio-item {
    transition: all 0.3s ease;
    opacity: 1;
    transform: scale(1);
}

.servicio-item.hidden {
    opacity: 0;
    transform: scale(0.8);
    pointer-events: none;
    position: absolute;
    z-index: -1;
}

.servicio-card {
    background: white;
    border-radius: 20px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    overflow: hidden;
    border: 1px solid #f0f0f0;
}

.servicio-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

/* Header del Servicio */
.servicio-header {
    background: linear-gradient(135deg, #C93742 0%, #8B252F 100%);
    color: white;
    padding: 2rem;
    text-align: center;
    position: relative;
}

.servicio-icon {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 2rem;
    backdrop-filter: blur(10px);
}

.servicio-header h3 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 700;
}

/* Cuerpo del Servicio */
.servicio-body {
    padding: 2rem;
}

.servicio-descripcion {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.servicio-caracteristicas {
    margin-bottom: 2rem;
}

.servicio-caracteristicas h5 {
    color: #C93742;
    font-weight: 700;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.servicio-caracteristicas ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.servicio-caracteristicas li {
    padding: 0.5rem 0;
    display: flex;
    align-items: center;
    color: #555;
}

.servicio-caracteristicas li i {
    color: #C93742;
    margin-right: 0.75rem;
    width: 16px;
}

/* Ventajas Competitivas */
.servicio-ventajas h5 {
    color: #C93742;
    font-weight: 700;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.ventaja-item {
    display: flex;
    align-items: center;
    margin-bottom: 0.75rem;
    padding: 0.5rem;
    background: #f8f9fa;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.ventaja-item:hover {
    background: #e9ecef;
    transform: translateX(5px);
}

.ventaja-item i {
    color: #C93742;
    margin-right: 0.75rem;
    width: 20px;
    text-align: center;
}

.ventaja-item span {
    font-size: 0.95rem;
    color: #555;
    font-weight: 500;
}

/* Proceso de Trabajo */
.proceso-section {
    background: #f8f9fa;
}

.proceso-step {
    position: relative;
    padding: 2rem 1rem;
    transition: all 0.3s ease;
}

.proceso-step:hover {
    transform: translateY(-5px);
}

.proceso-numero {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 40px;
    background: #C93742;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2rem;
    box-shadow: 0 4px 15px rgba(201, 55, 66, 0.3);
}

.proceso-icon {
    background: white;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 1rem auto;
    font-size: 2rem;
    color: #C93742;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.proceso-step:hover .proceso-icon {
    transform: scale(1.1);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

.proceso-step h4 {
    color: #333;
    font-weight: 700;
    margin: 1rem 0;
}

.proceso-step p {
    color: #666;
    line-height: 1.6;
    font-size: 0.95rem;
}

/* Call to Action */
.cta-section {
    background: linear-gradient(135deg, #C93742 0%, #8B252F 100%);
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('../img/carretera.jpg') center/cover no-repeat;
    opacity: 0.1;
    z-index: 0;
}

.cta-section .container {
    position: relative;
    z-index: 1;
}

.cta-section .btn {
    padding: 1rem 2rem;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.cta-section .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

/* Animaciones */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.servicio-item {
    animation: fadeInUp 0.6s ease forwards;
}

.servicio-item:nth-child(2) {
    animation-delay: 0.1s;
}

.servicio-item:nth-child(3) {
    animation-delay: 0.2s;
}

.servicio-item:nth-child(4) {
    animation-delay: 0.3s;
}

.servicio-item:nth-child(5) {
    animation-delay: 0.4s;
}

.servicio-item:nth-child(6) {
    animation-delay: 0.5s;
}

/* Responsive Design */
@media (max-width: 768px) {
    .servicios-hero {
        padding: 100px 0 60px;
    }
    
    .servicios-filtros {
        flex-direction: column;
        align-items: center;
    }
    
    .filter-btn {
        width: 200px;
    }
    
    .servicio-header {
        padding: 1.5rem;
    }
    
    .servicio-body {
        padding: 1.5rem;
    }
    
    .proceso-step {
        margin-bottom: 2rem;
    }
    
    .cta-section .d-flex {
        flex-direction: column;
        gap: 1rem;
    }
    
    .cta-section .btn {
        width: 100%;
        max-width: 300px;
    }
}

@media (max-width: 576px) {
    .servicio-header h3 {
        font-size: 1.3rem;
    }
    
    .servicio-descripcion {
        font-size: 1rem;
    }
    
    .proceso-numero {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
    
    .proceso-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
}