/* ==========================================================================
   CTA SECTION (Con soporte opcional para Mapa de Google)
   ========================================================================== */

/* Wrapper principal que contendrá el contenido y el mapa */
.realyvax-navid-cta-wrapper {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    align-items: center;
}

/* Cuando hay mapa, cambiamos a layout de 2 columnas en desktop */
.realyvax-navid-cta-section.realyvax-navid-cta-layout--split .realyvax-navid-cta-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

/* Contenedor del contenido (Texto + Botones) */
.realyvax-navid-cta-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start; /* Alineado a la izquierda cuando hay mapa */
    text-align: left;
    width: 100%;
}

/* Por defecto (sin mapa), centramos todo */
.realyvax-navid-cta-section:not(.realyvax-navid-cta-layout--split) .realyvax-navid-cta-content {
    align-items: center;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.realyvax-navid-cta-section .realyvax-navid-section-header {
    max-width: 700px;
    margin-bottom: 2rem;
}

/* Ajuste específico cuando hay mapa para que el texto no se estire demasiado */
.realyvax-navid-cta-section.realyvax-navid-cta-layout--split .realyvax-navid-section-header {
    max-width: 100%;
    margin-bottom: 1.5rem;
}

.realyvax-navid-cta-section .realyvax-navid-section-header h2 {
    margin-top: 0;
    margin-bottom: 0.5rem;
    font-size: 2.25rem;
    line-height: 1.2;
}

.realyvax-navid-cta-section .realyvax-navid-section-header p {
    margin: 0;
    font-size: 1.1rem;
    line-height: 1.6;
}

/* Contenedor de los botones */
.realyvax-navid-cta-buttons {
    display: flex;
    justify-content: flex-start; /* Alineado a la izquierda cuando hay mapa */
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 0.5rem;
}

/* Por defecto (sin mapa), centramos los botones */
.realyvax-navid-cta-section:not(.realyvax-navid-cta-layout--split) .realyvax-navid-cta-buttons {
    justify-content: center;
}

/* Contenedor del Mapa */
.realyvax-navid-cta-map {
    width: 100%;
    height: 100%;
    min-height: 350px;
    border-radius: var(--realyvax-radius, 8px);
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 87, 184, 0.08);
    border: 1px solid rgba(0, 87, 184, 0.08);
}

.realyvax-navid-cta-map iframe {
    width: 100%;
    height: 100%;
    min-height: 350px;
    display: block;
}

/* ==========================================================================
   RESPONSIVE CTA SECTION
   ========================================================================== */
@media (max-width: 992px) {
    /* En tablets y móviles, volvemos a una sola columna aunque haya mapa */
    .realyvax-navid-cta-section.realyvax-navid-cta-layout--split .realyvax-navid-cta-wrapper {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .realyvax-navid-cta-section.realyvax-navid-cta-layout--split .realyvax-navid-cta-content {
        align-items: center;
        text-align: center;
    }
    
    .realyvax-navid-cta-section.realyvax-navid-cta-layout--split .realyvax-navid-cta-buttons {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .realyvax-navid-cta-section .realyvax-navid-section-header h2 {
        font-size: 2rem;
    }
    
    .realyvax-navid-cta-buttons {
        flex-direction: column;
        width: 100%;
        gap: 1rem;
    }
    
    /* En móvil, los botones ocupan todo el ancho para facilitar el toque */
    .realyvax-navid-cta-buttons .button {
        width: 100%;
        text-align: center;
        padding: 1rem;
    }
    
    .realyvax-navid-cta-map {
        min-height: 280px;
    }
    
    .realyvax-navid-cta-map iframe {
        min-height: 280px;
    }
}