/* --- ESTILOS DEL MÓDULO CALL TO ACTION (CTA) --- */

.#cta_form {
    box-sizing: border-box;
    width: 100%;
    height: 346px; /* Altura estricta solicitada */
    background: #ffffff;
    border-radius: 12px;
    padding: 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    border: 1px solid #eef2f5;
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    overflow: hidden; /* Garantiza que nada rompa los 346px */
}

.cta-container {
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* Encabezado */
.cta-header {
    margin-bottom: 12px;
    flex-shrink: 0;
    gap: 0.5rem;
}

.section-sub {
    letter-spacing: 1px;
    display: flex;
    gap: 6px;
}

/* Cuerpo con scroll si el formulario crece */
.cta-body {
    flex-grow: 1;
    overflow-y: auto;
    padding-right: 4px;
}

/*ICONOS*/
.icon-cta img{
    width: 74%;
}

/* Scrollbar personalizado para no saturar visualmente */
.cta-body::-webkit-scrollbar {
    width: 4px;
}
.cta-body::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

/* Manejo de Pasos */
.cta-step {
    display: none; /* Ocultos por defecto */
    animation: ctaFadeIn 0.3s ease-in-out forwards;
}

.cta-step.active {
    display: block; /* Solo el paso activo se muestra */
}

#cta-step-2, #cta-step-3, #cta-step-4, #cta-step-5, #cta-step-6{
    font-family: system-ui;
    font-weight: bold;
    line-height: 13px;
}

#cta-step-2 #cta-buttons-p2 .cta-btn-option, #cta-step-3 #cta-buttons-p3 .cta-btn-option, #cta-step-4 #cta-grid-buttons .cta-btn-option, #cta-step-5 #cta-buttons-p5 .cta-btn-option, #cta-step-6 #cta-buttons-p6 .cta-btn-option{
    width: 40%;
    height: 5rem;
    margin: 0.4rem;
    padding: 1rem;
}

#cta-step-2 #cta-buttons-p2 .cta-btn-option{
    background-color: var(--amarillo-miel);
}
#cta-step-2 #cta-buttons-p2 .cta-btn-option:hover{
    color: var(--ambar);
    background-color: var(--indigo);
}

#cta-step-3 #cta-buttons-p3 .cta-btn-option{
    background-color: var(--lila-claro);
}
#cta-step-3 #cta-buttons-p3 .cta-btn-option:hover{
    color: var(--cian-brillante);
    background-color: var(--teal-oscuro);
}

#cta-medios{
    display: ruby;
}

.cta-contacto{
    display: flex;
    align-items: center;
    gap: 1rem;
    width: 48%;
    height: 7.2rem;
    padding: 16px;
    border-radius: 11px;
    margin: 6px 0;
    color: var(--verde-claro);
    cursor: pointer;
    font-size: 1rem;
}

.cta-contacto:hover{
    width: 48.4%;
    height: 7.3rem;
    font-size: 1.1rem;

}

#cta-whatsapp::before{
    content:"";
    width:24px;
    height:24px;
    flex-shrink:0;
    background:url('../gr/icon/CTA_CONTACT/icon-whatsapp-w.png') center/contain no-repeat;
}
#cta-correo::before{
    content:"";
    width:24px;
    height:24px;
    flex-shrink:0;
    background:url('../gr/icon/CTA_CONTACT/icon-correo-w.png') center/contain no-repeat;
}
#cta-no::before{
    content:"";
    width:24px;
    height:24px;
    flex-shrink:0;
    background:url('../gr/icon/CTA_CONTACT/icon-puerta-w.png') center/contain no-repeat;
}
#cta-fin::before{
    content:"";
    width:24px;
    height:24px;
    flex-shrink:0;
    background:url('../gr/icon/CTA_CONTACT/icon-fin-w.png') center/contain no-repeat;
}

#cta-whatsapp{
    background-color: var(--verde-musgo);
    border: 0;
}
#cta-correo{
    background-color: var(--rojo-ladrillo);
    border: 0;
}
#cta-no{
    background-color: var(--azul-neblina);
    border: 0;
}
#cta-fin{
    background-color: var(--gris-mineral);
    border: 0;
}

#cta-step-4 #cta-grid-buttons .cta-btn-option:hover{
    color: var(--ammorado-oscurobar);
    background-color: var(--rosa-suabe);
}

#cta-step-5 #cta-buttons-p5 .cta-btn-option{
    background-color: var(--verde-claro);
}
#cta-step-5 #cta-buttons-p5 .cta-btn-option:hover{
    color: var(--verde-musgo);
    background-color: var(--ambar);
}

#cta-step-6{
    background-color: var(--verde-musgo);
    border-radius: 11px;
    padding: 2rem;
    height: 274px;    
}
#cta-step-6 .cta-thanks-title{
    color: var(--amarillo-miel);
    margin: 1rem;
}

#cta-step-6 #cta-inspiring-quote{
    padding: 2rem;
}
.cta-instruction {
    font-size: 0.9rem;
    colro: var(--lila-claro) ;
    margin-bottom: 12px;
    margin-top: 0;
}

/* Grid de Botones de interacción rápida (un solo click) */
.cta-grid-buttons {
    display: flow;
    flex-direction: column;
    gap: 8px;
}

.cta-btn-role, .cta-btn-option {
    width: 48%;
    padding: 0.3px 0.3px;
    background: #f8fafc00;
    border: 0px solid #e2e8f0;
    border-radius: 11px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
}

.cta-btn-role:hover, .cta-btn-option:hover {
    background: #f0fdf400;
    border-color: #27ae5f00;
    color: #15803c00;
    width: 49%;
}

/* Estilos de Formulario (Paso 5) */
.cta-form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.cta-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--amarillo-miel);
}

.cta-field {
    width: 100%;
    box-sizing: border-box;
    padding: 8px 12px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    font-size: 0.85rem;
    color: #334155;
}

.cta-field:focus {
    outline: none;
    border-color: #27ae60;
    box-shadow: 0 0 0 3px rgba(39, 174, 96, 0.1);
}

.cta-checkbox-container {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 4px 0;
}

.cta-label-inline {
    font-size: 0.8rem;
    color: #475569;
    cursor: pointer;
}

.cta-btn-submit {
    background: #27ae60;
    color: white;
    border: none;
    padding: 10px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: background 0.2s;
}

.cta-btn-submit:hover {
    background: #219653;
}

/* Pantalla Final */
.cta-finish-screen {
    text-align: center;
    padding: 10px 0;
}

.cta-success-icon {
    font-size: 2rem;
    color: #27ae60;
    margin-bottom: 8px;
}

.cta-thanks-title {
    margin: 0 0 8px 0;
    color: #1e293b;
    font-size: 1rem;
}

.cta-quote {
    font-style: italic;
    color: #64748b;
    font-size: 0.85rem;
    line-height: 1.4;
    background: #f8fafc;
    padding: 10px;
    border-left: 3px solid #27ae60;
    border-radius: 0 4px 4px 0;
}

/* Animación transiciones */
@keyframes ctaFadeIn {
    from { opacity: 0; transform: translateY(4px); }
    to { opacity: 1; transform: translateY(0); }
}