/* =============================
   CONTENEDOR GENERAL (FULL WIDTH)
============================= */
#flowform-container {
    width: 100%;
    min-height: 100vh;
    background: #fafafa;
    display: flex;
    justify-content: center;
    
}

/* YA NO LIMITAMOS CON WIDTH FIJO */
.ffr-container {
    width: 100%;
    min-height: 100vh;
     
    display: flex;
    justify-content: center;
    align-items: flex-start;
    animation: fadeIn 0.35s ease;
}


/* =============================
   LAYOUT NORMAL (sin imagen lateral)
============================= */
.ffr-question-with-image {
    width: 100%;
    padding:50px;
}
.ffr-question-no-image {
    width: 100%;
    padding: 50px;

    display: flex;
    flex-direction: column; /* <— CLAVE: apilar elementos */
    justify-content: center; /* centrado vertical */
    align-items: center;     /* centrado horizontal */
    min-height: 100vh;
    box-sizing: border-box;
    text-align: center;      /* opcional, para centrar el texto */
}




.ffr-question h2 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 8px;
}

.ffr-subtitle {
    font-size: 16px;
    color: #666;
    margin-bottom: 10px;
}

.ffr-desc {
    font-size: 17px;
    margin-bottom: 20px;
}

/* Opciones */
.ffr-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 14px 18px;
    background: #f6f6f6;
    border: 1px solid #e5e5e5;
    color: #111;
    border-radius: 12px;
    cursor: pointer;
    margin-top: 10px;
    transition: 0.2s;
}

.ffr-btn:hover {
    background: #ececec;
}

.ffr-opt-img {
    width: 46px;
    height: 46px;
    border-radius: 8px;
    object-fit: cover;
}

@media (max-width: 850px) {
    .ffr-question {
        min-height: auto;   /* <— PERMITE AUMENTAR LA ALTURA */
        height: auto;       /* <— EVITA RECORTES */
        justify-content: flex-start; /* <— CENTRADO VERTICAL DESACTIVADO EN MOVIL */
        padding-top: 20px;
        padding-bottom: 40px;
    }
}


/* =============================
   TYPE 3 — IMAGEN LATERAL
============================= */

/* CONTENEDOR GLOBAL DEL BLOQUE */
.ffr-content{width:100%; min-height:100vh;  }
.ffr-with-image {
    display: flex;
    width: 100%;
    gap: 40px;
    align-items: stretch;
}

/* COLUMNA DE TEXTO (50%) */
.ffr-text-side {
    flex: 1;
    display: block; /* ← IMPORTANTE: NO FLEX AQUI */
    padding:50px;
}

/* COLUMNA DE IMAGEN (50%) */
.ffr-image-side {
    flex: 1;
    min-height: 500px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    
    height:100vh
}


/* =============================
   INPUTS
============================= */

.ffr-input, 
.ffr-multi-input {
    width: 100%;
    padding: 14px;
    border-radius: 10px;
    border: 1px solid #ddd;
    font-size: 16px;
    margin-bottom: 6px;
}

/* =============================
   BOTÓN VOLVER
============================= */
.ffr-back-top {
    position: sticky;
        top: 100px;
        left: 50px;
    cursor: pointer;
    color: #000;
    font-weight: 500;
    z-index:9;
}

@media (max-width: 850px) {
    .ffr-back-top {
        position: sticky;
        top: 70px;
        left: 10px;
        z-index: 9;
        background:#fff;
    }
}


/* =============================
   RESPONSIVE
============================= */

@media (max-width: 850px) {
    .ffr-with-image {
        grid-template-columns: 1fr; /* columnas apiladas */
    }

    .ffr-image-side {
        height: 260px;
    }
}

@keyframes fadeIn {
    from {opacity: 0; transform: translateY(15px);}
    to {opacity: 1; transform: translateY(0);}
}
.ffr-animate-in {
    animation: fadeSlideIn 0.35s ease forwards;
}

@keyframes fadeSlideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


.ffr-image-options-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-top: 30px;
    width: 100%;
}


.ffr-card-option {
    background: #fff;
    border: 1px solid #e4e4e4;
    border-radius: 12px;
    cursor: pointer;
    transition: all .25s ease;
    overflow: hidden;
}

.ffr-card-option:hover {
    border-color: #000;
    box-shadow: 0 3px 14px rgba(0,0,0,0.08);
    transform: translateY(-3px);
}

.ffr-card-image img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.ffr-card-label {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px;
}

.ffr-card-letter {
    border: 1px solid #ccc;
    padding: 4px 10px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 14px;
}

.ffr-card-text {
    font-size: 16px;
}

.ffr-inner {
    width: 100%;
    max-width: 950px;
}


/* Animación suave tipo Typeform */
@keyframes rfFadeUp {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0px);
    }
}

/* Clase que se aplicará a cada pregunta nueva */
.rf-step-animated {
    animation: rfFadeUp 0.45s ease forwards;
}

@keyframes ffrFadeOut {
    0% {
        opacity: 1;
        transform: translateY(0);
    }
    100% {
        opacity: 0;
        transform: translateY(-15px);
    }
}

.ffr-animate-out {
    animation: ffrFadeOut 0.35s ease forwards;
}

