/* ESTILOS PARA LAS TARJETAS DE SERVICIOS */
.servicios {
    padding: 80px 0;
    background-color: #f8f9fa;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 36px;
    color: #333;
    margin-bottom: 15px;
}

.section-title p {
    font-size: 18px;
    color: #666;
    max-width: 700px;
    margin: 0 auto;
}

/* Grid de servicios */
.servicios-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

/* Tarjeta de servicio */
.servicio-card {
    position: relative;
    width: 100%;
    height: 400px;
    border-radius: 15px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

/* Imagen de fondo */
.servicio-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 1;
    transition: transform 0.5s ease;
}

/* Overlay oscuro */
.servicio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.3), rgba(0,0,0,0.8));
    z-index: 2;
}

/* Contenido de la tarjeta */
.servicio-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 30px;
    z-index: 3;
    color: #fff;
    transform: translateY(0);
    transition: transform 0.3s ease;
}

.servicio-content h3 {
    font-size: 24px;
    margin-bottom: 15px;
    color: #fff;
    font-weight: 600;
}

.servicio-content p {
    font-size: 15px;
    margin-bottom: 20px;
    color: rgba(255,255,255,0.9);
    line-height: 1.6;
}

.servicio-link {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    display: inline-block;
    padding: 8px 0;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
}

.servicio-link:hover {
    border-bottom-color: #fff;
    transform: translateX(5px);
}

/* Efectos hover */
.servicio-card:hover .servicio-bg {
    transform: scale(1.1);
}

.servicio-card:hover .servicio-content {
    transform: translateY(-5px);
}

/* Tarjeta destacada */
.servicio-card.destacado .servicio-overlay {
      background: linear-gradient(to bottom, rgba(0,0,0,0.3), rgba(0,0,0,0.8));
}

.servicio-card.destacado {
    box-shadow: 0 15px 40px rgba(0,123,255,0.2);
}

/* Responsive */
@media (max-width: 992px) {
    .servicios-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .servicios-grid {
        grid-template-columns: 1fr;
    }
    
    .servicio-card {
        height: 350px;
    }
}