/* ESTILOS PÁGINA DESARROLLOS (PAGE-DESARROLLOS) */

.desarrollos-page-wrapper {
    padding-bottom: 60px;
}

/* Hero */
.desarrollos-hero {
    background-color: var(--color-blue);
    color: var(--color-white);
    padding: 80px 20px;
    margin-bottom: 60px;
}

.badge-hero {
    background-color: var(--color-yellow);
    color: var(--color-blue);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    padding: 5px 15px;
    border-radius: 50px;
    letter-spacing: 1px;
}

.hero-actions {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.btn-primary {
    background-color: var(--color-yellow);
    color: var(--color-blue);
    padding: 12px 25px;
    border-radius: 6px;
    font-weight: bold;
    text-decoration: none;
}

.btn-whatsapp {
    background-color: var(--color-whatsapp);
    color: var(--color-white);
    padding: 12px 25px;
    border-radius: 6px;
    font-weight: bold;
    text-decoration: none;
}

/* Grilla de 6 Servicios B2B */
.desarrollos-servicios {
    margin-bottom: 80px;
}

.section-header {
    margin-bottom: 40px;
}

.section-header h2 {
    font-size: 2rem;
    color: var(--color-blue);
    margin-bottom: 10px;
}

.grid-servicios-b2b {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 25px;
}

.card-servicio-b2b {
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    padding: 30px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card-servicio-b2b:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.06);
    border-color: var(--color-yellow);
}

.servicio-icon {
    font-size: 2.2rem;
    margin-bottom: 15px;
}

.card-servicio-b2b h3 {
    font-size: 1.25rem;
    color: var(--color-blue);
    margin-bottom: 10px;
}

.card-servicio-b2b p {
    color: var(--color-text-dark);
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
}

/* 1. ESTRUCTURA DE CONTENEDORES (RESPETA TEXTO ARRIBA Y FOOTER ABAJO) */

/* Asegurar que las secciones respeten su propio espacio vertical */
.desarrollos-marcas,
.seccion-equipo {
    display: block;
    width: 100%;
    margin-top: 40px !important;
    margin-bottom: 40px !important;
    clear: both;
}

/* 2. GRILLA CENTRADA PARA LOGOS DE ALIANZAS / DESARROLLOS */

.grid-marcas-desarrollos {
    display: flex;
    flex-wrap: wrap;
    justify-content: center; /* Centra horizontalmente: 1 o varios */
    align-items: center;
    gap: 20px;
    width: 100%;
    max-width: 1200px;
    margin: 25px auto 0 auto; /* Empuja hacia abajo respetando la cabecera */
}

.grid-marcas-desarrollos .card-marca {
    flex: 0 1 200px; /* Ancho base de cada caja */
    max-width: 220px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px;
    background: var(--color-white);
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.grid-marcas-desarrollos .card-marca img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
}

/* 3. GRILLA CENTRADA PARA ASESORES Y EQUIPO */

.grid-equipo,
.grid-equipo-socios,
.grid-equipo-compacto,
.grid-equipo-alianzas {
    display: flex;
    flex-wrap: wrap;
    justify-content: center; /* Centra 1 sola tarjeta o varias */
    gap: 30px;
    width: 100%;
    max-width: 1200px;
    margin: 25px auto 0 auto;
}

.card-asesor {
    flex: 0 1 300px; /* Ancho cómodo por tarjeta */
    max-width: 320px;
    width: 100%;
    margin: 0; /* Evita que márgenes antiguos desalineen el centro */
}

/* Imagen con alto parejo y recorte limpio */
.card-asesor-media {
    width: 100%;
    height: 260px;
    overflow: hidden;
    background-color: var(--color-blue);
}

.card-asesor-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}