.banner-principal {
    position: relative;
    width: 100%;
    height: 450px; /* Puedes cambiar esta altura según lo que necesites */
    display: flex;
    align-items: center; /* Centra el texto verticalmente */
    justify-content: center; /* Centra el texto horizontalmente */
    overflow: hidden;
}

/* La imagen se estira para cubrir el fondo y se manda atrás */
.banner-principal img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center; /* Evita que la imagen se deforme, la recorta si es necesario */
    z-index: 1; /* Nivel de profundidad 1 (al fondo) */
    
    /* VITAL: Oscurece la imagen un 50% para que el texto blanco se pueda leer. 
       Si tu imagen es muy oscura de por sí, puedes quitar esto. */
    filter: brightness(0.5); 
}

/* El contenedor del texto se trae al frente */
.banner-contenido {
    position: relative;
    z-index: 2; /* Nivel de profundidad 2 (por encima de la imagen) */
    text-align: center;
    color: #ffffff; /* Texto blanco */
    padding: 0 20px; /* Margen de seguridad para móviles */
}

/* Estilos de la tipografía */
.banner-contenido h1 {
    font-size: 45px;
    margin-bottom: 10px;
    line-height: 1.1;
}

.banner-contenido p {
    font-size: 1.2rem;
    font-weight: 400;
}



/* =========================================
   OVERLAY Y TARJETAS (EFECTO CRISTAL)
   ========================================= */
.services-hero-overlay {
    background-size: cover;
    background-position: center;
    text-align: center;
}

.servicios-overlap {
    padding-top: 40px ;
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    transform: translateY(-75px); 
    z-index: 10;
    position: relative;  
}

.linea-servicios {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
    max-width: 1200px;
    margin: 0 auto;
}

.columna-servicio {
    background: rgba(255, 255, 255, 0.2);
    -webkit-backdrop-filter: blur(15px);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 24px;
    padding: 40px 24px;
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.15);
    color: #003658;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: 0.5s;
}

.columna-servicio:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.icono-tit {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 20px;
}

.icono-tit img {
    width: 60px;
    height: 60px;
    margin-bottom: 15px;
    color: #ffffff;
}

.icono-tit h2 {
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    margin: 0;
    text-transform: uppercase;
}

.desc-servicio {
    font-size: 0.9rem;
    line-height: 1.5;
    margin: 0 0 30px 0;
    opacity: 0.9;
    flex-grow: 1;
}

.btn-servicio {
    background-color: var(--primary);
    color: white;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.85rem;
    padding: 10px 24px;
    border-radius: 50px;
    transition: background-color 0.2s ease, color 0.2s ease;
    margin-top: auto;
}

.btn-servicio:hover {
    background-color: #2fbaea;
}

/* =========================================
   BOTÓN PRE-CTA SECUNDARIO (AMARILLO/AZUL)
   ========================================= */
.btn-yellow {
    background: var(--primary);
    color: white;
    padding: 15px 40px;
    border-radius: 50px;
    font-weight: 700;
    text-transform: uppercase;
    box-shadow: 0 4px 10px rgba(68, 68, 68, 0.3);
    transition: 0.3s;
}

.btn-yellow:hover {
    background-color: #2fbaea;
    transform: translateY(-1px);
}

/* =========================================
   SECCIÓN: POR QUÉ ELEGIRNOS (MODERNA)
   ========================================= */
.trust-section {
    padding: 120px 20px;
    background-color: #ffffff;
    position: relative;
    z-index: 5;
    
    /* VITAL: Si ves un hueco blanco gigante arriba por culpa 
       del translateY de tus tarjetas anteriores, descomenta esta línea 
       y ajusta el número hasta que quede bien pegado: */
    /* margin-top: -80px; */
}

.trust-container {
    display: flex;
    max-width: 1200px;
    margin: 0 auto;
    gap: 60px;
    align-items: flex-start;
}

/* Columna Izquierda: Texto Fijo */
.trust-text {
    flex: 1;
    position: sticky;
    top: 100px; /* Se queda pegado al hacer scroll */
}

.trust-text h2 {
    font-size: 3rem;
    color: var(--primary);
    line-height: 1.1;
    margin: 0 0 20px 0;
}

.trust-text p {
    font-size: 1.1rem;
    color: #555;
    line-height: 1.6;
    margin-bottom: 30px;
}

.trust-text .btn-yellow {
    display: inline-block;
    background: var(--primary); /* Asegúrate de que este botón destaque */
    color: white;
    padding: 15px 35px;
    border-radius: 50px;
    font-weight: 700;
    text-decoration: none;
    text-transform: uppercase;
    box-shadow: 0 4px 10px rgba(0, 54, 88, 0.2);
    transition: 0.3s;
}

.trust-text .btn-yellow:hover {
    background-color: #2fbaea;
    transform: translateY(-2px);
}

/* Columna Derecha: Grid de Tarjetas */
.trust-grid {
    flex: 1.2;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.trust-card {
    background: #f8fbff;
    border-radius: 24px;
    padding: 40px 30px;
    border: 1px solid #e6f0f9;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    position: relative;
    overflow: hidden;
}

/* Tarjetas impares un poco más abajo para dar estilo "escalera" */
.trust-card:nth-child(odd) {
    transform: translateY(30px);
}

.trust-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 54, 88, 0.08);
    border-color: #2fbaea;
}

/* Ajuste del hover para las tarjetas impares (para que no den un salto raro) */
.trust-card:nth-child(odd):hover {
    transform: translateY(20px);
}

.trust-icon {
    font-size: 2.5rem;
    color: #2fbaea;
    margin-bottom: 25px;
}

.trust-card h3 {
    font-family: 'Baloo 2', sans-serif;
    font-size: 1.5rem;
    color: var(--primary);
    margin: 0 0 15px 0;
    line-height: 1.2;
}

.trust-card p {
    font-size: 0.95rem;
    color: #666;
    line-height: 1.6;
    margin: 0;
}

/* =========================================
   RESPONSIVE SECCIÓN CONFIANZA
   ========================================= */
@media (max-width: 992px) {
    .trust-container {
        flex-direction: column;
        gap: 40px;
    }
    .trust-text {
        position: static; /* Quitamos el sticky en tablets */
        text-align: center;
    }
    .trust-card:nth-child(odd), 
    .trust-card:nth-child(odd):hover {
        transform: translateY(0); /* Quitamos el efecto escalera */
    }
    .trust-card:hover {
        transform: translateY(-5px);
    }
}

@media (max-width: 600px) {
    .trust-section {
        padding: 80px 20px;
    }
    .trust-grid {
        grid-template-columns: 1fr; /* 1 sola columna en móviles */
    }
    .trust-text h2 {
        font-size: 2.2rem;
    }
}

/* =========================================
   RESPONSIVE ESPECÍFICO SERVICIOS
   ========================================= */
@media (max-width: 900px) {
    .linea-servicios {
        flex-wrap: wrap;
    }
    .columna-servicio {
        flex: none;
        width: 45%;
    }
}

@media (max-width: 768px) {
    .service-hero-content h1 {
        font-size: 2.5rem;
    }
}

@media (max-width: 600px) {
    .columna-servicio {
        width: 100%;
    }
}