/* --- SERVICIOS HORIZONTALES COMPACTOS Y SIMÉTRICOS --- */

#servicios {
    background-color: #ffffff; /* CAMBIADO A BLANCO */
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.servicios-horizontal-container {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 40px;
    padding: 0 20px;
}

.card-horizontal {
    display: flex;
    align-items: center;
    background: #ffffff; /* antes oscuro → ahora blanco */
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08); /* sombra más suave */
    transition: all 0.4s ease;
    height: 280px;
    border: 1px solid #e5e7eb; /* borde suave para separar */
}

.card-horizontal:nth-child(even) {
    flex-direction: row-reverse;
}

.card-img-container {
    flex: 1;
    height: 100%;
    width: 50%;
    overflow: hidden;
    position: relative;
}

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

.card-content {
    flex: 1;
    padding: 30px 40px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.service-tag {
    color: var(--accent);
    font-weight: 800;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 8px;
}

.card-content h3 {
    font-size: 1.5rem;
    color: #1a1a1c; /* texto oscuro para fondo blanco */
    margin-bottom: 12px;
    font-family: 'Montserrat', sans-serif;
    line-height: 1.2;
}

.card-content p {
    color: #4b5563; /* gris legible */
    line-height: 1.5;
    margin-bottom: 15px;
    font-size: 0.95rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.btn-text {
    color: var(--primary);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* HOVER */
.card-horizontal:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
}

.card-horizontal:hover .card-img-container img {
    transform: scale(1.1);
}

/* --- RESPONSIVE --- */
@media (max-width: 992px) {
    .card-horizontal {
        height: auto;
        flex-direction: column !important;
    }
    
    .card-img-container {
        width: 100%;
        height: 220px;
    }
    
    .card-content {
        padding: 25px;
        text-align: center;
        align-items: center;
    }
}

/* --- TÍTULOS DE SECCIÓN (AJUSTADOS PARA FONDO BLANCO) --- */

#servicios .section-title h2 {
    color: #1a1a1c; /* oscuro para contraste */
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

#servicios .section-subtitle {
    color: #4b5563; /* gris elegante */
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto 50px;
    opacity: 1;
    font-weight: 400;
}

#servicios .section-title::after {
    background-color: var(--accent);
}
