/* =========================
   REGISTRO NUTRISMART
========================= */
.registro-contenedor {
    background-image: url('../img/naranja3.png');
    background-repeat: no-repeat;
    background-size: 300px auto;
    background-position: bottom left;

    background-color: #bef7be;
    min-height: 500px;
    border-radius: 24px;
    overflow: hidden;
}

/* Variante usada por el formulario de registro (no por el wizard
   de objetivo.php, que sigue usando el fondo verde/naranja de arriba
   para que los globos del chat contrasten). */
.registro-contenedor.formulario-modal {
    background-image: none;
    background-color: #ffffff;
}

/* =========================
   HEADER
========================= */
.registro-header {
    background: #0d3d20;
    padding: 22px 30px;
    display: flex;
    align-items: center;
    gap: 5px;
    /* justify-content: space-between; */
}

.registro-logo {
    color: #ffffff;
    font-size: 25px;
    font-weight: 700;

}

.registro-subtitulo {
    margin-left: auto;
    color: #ffffff;
    font-size: 13px;
}

/* =========================
   CHAT
========================= */
.chat {
    max-width: 750px;
    margin: auto;
    padding: 35px 40px 30px;
}


/* =========================
   AVATAR
========================= */
.chat-avatar {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    background: #fafafa;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 25px;
    margin-bottom: 15px;
}


/* =========================
   MENSAJE BOT
========================= */
.mensaje-bot {
    display: inline-block;
    max-width: 90%;
    background: white;
    padding: 20px 23px;
    border-radius:
        8px 22px 22px 22px;
    color: #3d5947;
    font-size: 14px;
    line-height: 1.7;
    box-shadow:
        0 8px 25px
        rgba(31, 73, 48, 0.08);
    animation:
        aparecer 0.4s ease;

}


.mensaje-bot strong {

    color: #174b31;

}


/* =========================
   MENSAJE USUARIO
========================= */

.mensaje-usuario {

    margin-top: 18px;

    margin-left: auto;

    width: fit-content;

    max-width: 75%;

    background: #174b31;

    color: white;

    padding: 11px 17px;

    border-radius:
        20px 20px 5px 20px;

    font-size: 13px;

}


/* =========================
   INPUT
========================= */

.respuesta-container {

    display: flex;

    gap: 10px;

    margin-top: 30px;

}


.respuesta-input {

    flex: 1;

    height: 52px;

    border: none;

    border-radius: 15px;

    padding: 0 18px;

    font-family:
        'Poppins',
        sans-serif;

    font-size: 14px;

    background: white;

    box-shadow:
        0 5px 20px
        rgba(31, 73, 48, 0.08);

}


.respuesta-input:focus {

    outline: none;

    box-shadow:
        0 0 0 2px
        #6b9d4d;

}


/* =========================
   BOTÓN CONTINUAR
========================= */
.btn-continuar {
    border: none;
    background: #174b31;
    color: white;
    padding: 12px 22px;
    border-radius: 25px;
    font-family: 'Poppins', sans-serif;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
    box-shadow: 2 5px 10px rgba(0, 0, 0, 0.514);
}

.btn-continuar:hover {
    background: #276544;
    transform: translateY(-2px);
}



/* =========================
   AYUDA
========================= */
.ayuda {
    margin-top: 9px;
    color: #718276;
    font-size: 10px;
    text-align: right;
}

/* =========================
   PROGRESO
========================= */
.progreso-container {
    margin-top: 35px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.progreso-fondo {
    flex: 1;
    height: 6px;
    background: #d5e8d5;
    border-radius: 10px;
    overflow: hidden;
}

.progreso-barra {
    width: 0%;
    height: 100%;
    background: #174b31;
    border-radius: 10px;
    transition:
        width 0.4s ease;
}

.progreso-container span {
    color: #617267;
    font-size: 10px;
}


/* =========================
   ANIMACIÓN
======================== */
@keyframes aparecer {
    from {
        opacity: 0;
        transform:
            translateY(10px);
    }
    to {
        opacity: 1;

        transform:
            translateY(0);
    }
}

/* =========================
   RESPONSIVE
========================= */
@media (max-width: 576px) {
    .chat {
        padding:
            25px 20px;
    }
    .registro-header {
        padding:
            18px 20px;
    }
    .registro-subtitulo {
        display: none;
    }
    .mensaje-bot {
        max-width: 100%;
    }
}

/* =========================
   OPCIONES DE RESPUESTA
========================= */
.opciones-respuesta {
    display: grid;
    grid-template-columns: repeat(3, 220px);
    gap: 10px;
    justify-content: center;
    margin-top: 15px;
}

.opcion-respuesta {
    width: 220px;
    min-height: 52px;
    padding: 10px 14px;
    border: none;
    border-radius: 16px;
    background: white;
    color: #355b43;
    font-family: 'Poppins', sans-serif;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 5px 15px rgba(31, 73, 48, 0.08);
    transition: 0.2s;
}

.opcion-respuesta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(31, 73, 48, 0.12);
}

.opcion-respuesta.seleccionada {
    background: #328f60;
    color: rgb(0, 0, 0);
}
.opcion-respuesta.condicion {
    min-height: 50px;
}

.opcion-icono {
    font-size: 20px;
}
.opcion-respuesta small {
    display: block;
    font-size: 10px;
    font-weight: 400;
    color: #829287;
}

/* =========================
   OCULTAR INPUT
========================= */
.respuesta-oculta {
    display: none;
}

/* =========================
   MÓVIL
========================= */
@media (max-width: 576px) {
    .opciones-respuesta {
        flex-direction: column;
    }
    .opcion-respuesta {
        width: 100%;
    }
}

/* =========================
   Boton Atras
========================= */
.btn-atras {
    border: none;
    background:  #276544;
    color: #fdfdfd;
    padding: 12px 22px;
    border-radius: 25px;
    font-family: 'Poppins', sans-serif;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
    box-shadow: 2 5px 10px rgba(0, 0, 0, 0.514);
}

.btn-atras:hover {
    background: #001109;
    transform: translateY(-2px);
}

/* REGISTRO CSS */
.btn-iniciar-nutrismart {
    display: block;
    margin: 20px auto 0;
    padding: 12px 24px;
    border: none;
    border-radius: 12px;
    background: #d4f3e9;
    color: rgb(11, 48, 23);
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-iniciar-nutrismart:hover {
    background: #087a43;
    transform: translateY(-2px);
}

/* =========================
   FORMULARIO DE REGISTRO
========================= */
.formulario-registro {
    max-width: 620px;
    margin: 0 auto;
    padding: 34px 40px 35px;
    text-align: left;
}

.formulario-registro h2 {
    color: #0d3d20;
    font-size: clamp(20px, 3vw, 26px);
    font-weight: 800;
    margin: 0 0 8px;
}

.formulario-intro {
    color: #63796c;
    font-size: 13px;
    line-height: 1.6;
    margin-bottom: 26px;
}

.fila-registro {
    display: flex;
    gap: 14px;
}

.fila-registro .campo-registro {
    flex: 1;
    min-width: 0;
}

.campo-registro {
    margin-bottom: 16px;
}

.campo-registro label {
    display: block;
    color: #3d5947;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 7px;
}

.btn-registro-enviar {
    width: 100%;
    margin-top: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.registro-error {
    background: #fdecec;
    color: #a1272c;
    border-radius: 12px;
    padding: 10px 14px;
    font-size: 12px;
    margin-bottom: 16px;
}

.formulario-pie {
    text-align: center;
    margin-top: 20px;
    font-size: 12px;
    color: #3d5947;
}

.btn-link-plano {
    border: none;
    background: none;
    color: #174b31;
    font-weight: 700;
    text-decoration: underline;
    cursor: pointer;
    padding: 0;
    font-size: 12px;
}

@media (max-width: 576px) {
    .formulario-registro {
        padding: 24px 20px 28px;
    }

    .fila-registro {
        flex-direction: column;
        gap: 0;
    }
}