
body { font-family:Verdana; }





.todoelcuestionario {
    
    display: flex;
    flex-wrap: wrap;
    left: 50%;
    transform: translate(-50%,0);
    width: 80%;
    max-width: 450px;
    min-width: 200px;
    bottom: 0px;
    height: max-content;
    position: fixed;
    z-index: 1;
    font-size: 70%;
    transition: left 0.25s ease-out, bottom 0.25s ease-out;
    
    
        
}

/*  Clase para desactivar la transición mientras se arrastra */
.todoelcuestionario.sin-transicion {
    transition: none;
}

/*.todoelcuestionario #Q2, #Q3, #Q4 { display: none;} /*eliminar el boton del input de los selectores unicamente*/


.todoelcuestionario label {
    
    color: white;
    background-color: #3f5770;
    order: 1; /*hace que las etiquetas de las preguntas pasen todas a estar todas después de los textos*/
    padding: 1.5%; 
    font-size: 18px;
    border-radius: 5px;
    
} /*formato de la pestaña*/


.desaparece { display: none; }



.todoelcuestionario .contenidodelapregunta{
    
    width: 100%;
    /*padding: 10px 15px 5px 15px;*/
    background-color: #3f5770;
    display: none; /*oculta los contenidos de las preguntas*/
    /*border: 6px solid brown;*/
    border-top-left-radius: 15px;
    border-top-right-radius: 15px;
    border-bottom-right-radius: 20px;
    /*height: 340px; /*alto del contenido de la pregunta*/
    border-radius: 14px;
    box-shadow: 0px 0px 16px #222;
     
   
}

.ppreguntas {
    background-color: orange;
    font-size: 1.2em;
    padding: 2%;
    text-align: justify;
    font-style: oblique;
    border-top-left-radius: 15px;
    border-top-right-radius: 15px;
    border-bottom: 2px solid black;
    line-height: 180%;
    
    /* 👇 Añade estas líneas */
    touch-action: none;      /* el dedo controla el movimiento, no el scroll */
    -webkit-user-select: none;
    user-select: none;
    touch-action: none;       /* importante para que el dedo pueda arrastrar */
    -webkit-user-select: none;
    user-select: none;
}

.ppreguntas:hover {
    cursor: move;      /* o grab, según te guste más el icono */
}


.todoelcuestionario input:checked + label + .contenidodelapregunta {
        
    
    display: block; /*todos los cuestionarios están en display:none, solo se ve el que tiene el input:checked*/
    background-color:  ghostwhite;
    /*border: 1px solid black;*/
    

} /*Cuando se cumpla que en los class=".todoelcuestionario":
    -el input esté cheked "input:checked" habiendo hecho cick al label asociado
    el contenido de la pregunta y sus respuestas (.contenidodelapregunta) sera visible (display:block)
    existe un vínculo entre el input, label y el div class="contenidodelapregunta" que entiendo se lo crea el foreach
    */

.todoelcuestionario input:checked + label {
    
    background-color: #557495;


} /*que el fondo de la etiqueta, a la que se le ha echo click, cambie de color
    Recordar que 'input:checked + label' es el input asociado al label y que ese input estará 'checked' haciendo click al label*/


.tresrespuestas {

    display: flex;
    padding: 1%;
    margin: 1%;
    margin-top: 10px 10px 10px 10px;
    font-size: 1.2em;
    text-align: justify;
    border-radius: 15px;
    background-color: white;
    border: 0.5px solid black;
    line-height: 20px;
   
}

.desaparecetresrespuestas {display: none;}




.tresrespuestas1{ /*es especifico de los botones enviar, actualizar y quitar*/

    display: flex;
    padding: 4px 12px;
    margin: 0px 0px 0px 0px;
    font-size: 1.4em;
    text-align: justify;
    border-top: 2px solid black;
    height: 46px;
    
}


.botondeeleccion{

    margin: 0px 10px 0px 0px;
    
}



.botonayuda { 
      
    width: 38px;            /* tamaño redondo */
    height: 38px;
    border-radius: 999px;   /* completamente circular */
    border: 3px solid green;
    /*background-color: #ffffff;*/

    /* ICONO: seguimos usando tu imagen actual */
    background-image: url(../Imagenes/botonayuda1.png);
    background-repeat: no-repeat;
    background-position: center;
    background-size: 38px;  /* si se ve muy pequeño, sube a 26–28 */

    margin-left: 6px;
    padding: 0;
    color: transparent;     /* que no se vea el value del input */

    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
    cursor: pointer;
    transition:
        transform 0.12s ease-out,
        box-shadow 0.15s ease,
        background-color 0.15s ease;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
    border-radius: 999px;

}

/* Hover: se eleva un poco */
.botonayuda:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.22);
    background-color:#e0ffe0;; 
    /*border-color: #b5c0d5;*/
}

/* Click: compresión rápida + sombra corta */
.botonayuda:active {
    transform: scale(0.92);
    background-color: #b6e6b6;
    box-shadow: 0 1px 3px rgba(0,0,0,0.25);
}








.botonenvio { 
        
    width: 38px; /*comentario actualizado*/
    height: 38px;
    border-radius: 25px;
    border: 3px solid green ; /*le quita las sombras al boton*/
    background-image: url(../Imagenes/botonenviar.png);
    background-repeat: no-repeat; /*para que no se repita la imagen*/
    background-size: 54px;
    /*margin: 10px 0px 0px 0px;*/
    /*padding: 17px;*/
    color: transparent; /*para que no se vea el "value"*/
    background-position: center;
    transition:
        transform 0.12s ease-out,
        box-shadow 0.15s ease,
        background-color 0.15s ease;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
    border-radius: 999px; /* recomendación estética */
    }

.botonenvio:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.22);
    background-color: #e0ffe0;
}

/* Click: compresión y oscuridad breve */
.botonenvio:active {
    transform: scale(0.92);
    background-color: #b6e6b6;
    box-shadow: 0 1px 3px rgba(0,0,0,0.25);
}






.botonquitar { 
        
   width: 36px;
    height: 36px;

    border-radius: 999px;
    border: 3px solid red;

    background-image: url(../Imagenes/botonquitarcuestionarioverde.png);
    background-repeat: no-repeat;
    background-position: center;
    background-size: 24px;   /* Ajusta icono centrado, tamaño perfecto */

    position: absolute;
    right: 10px;
    color: transparent;

    /* sin padding → icono perfectamente centrado */
    padding: 0;

    transition:
        transform 0.12s ease-out,
        box-shadow 0.15s ease,
        background-color 0.15s ease,
        border-color 0.15s ease;

    box-shadow: 0 2px 6px rgba(0,0,0,0.15);

    }

.botonquitar:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.22);
    background-color: #f9dbd8; /* tono suave rojo */
    border-color: #fa0606;
}

/* Click: compresión firme */
.botonquitar:active {
    transform: scale(0.92);
    background-color: #ffd4d4;
    box-shadow: 0 1px 3px rgba(0,0,0,0.25);
}

.botonocultar { 
        
    width: 53px;
    height: 36px;
    border-radius: 12px;
    border: 3px solid orange;
    /*background-color: #557495;*/
    background-image: url(../Imagenes/botonocultarcuestionarioabajo.png);
    background-repeat: no-repeat;
    background-size: 41px;
    background-position: center;
    /* margin: 0px 0px 0px 0px; */
    /* padding: 0px 0px 0px 0px; */
    position: absolute;
    right: 44%;
    color: transparent;
    transition: transform 0.12s ease, box-shadow 0.12s ease;
    cursor: pointer;
}

 
.botonocultar:hover {transform: scale(1.04);
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.28);}

.botonocultar:active {
    transform: scale(0.92);
    box-shadow: 0 0 6px rgba(0, 0, 0, 0.35);
}
.botonocultarpresionado {background-image: url(../Imagenes/botonocultarcuestionarioarriba.png);}

.botonizq { 
        
    width: 36px;
    height: 30px;
    border-radius: 12px;
    border: 1px solid black;
    /*background-color: #557495;*/
    background-image: url(../Imagenes/botonmovercuestionarioizq.png);
    background-repeat: no-repeat;
    background-size: 27px;
    background-position: center;
    /* margin: 0px 0px 0px 0px; */
    /* padding: 0px 0px 0px 0px; */
    position: absolute;
    right: 60%;
    color: transparent;
}

 
.botonizq:hover {background-color: #b8bdc3;}
.botonizqpresionado {background-image: url(../Imagenes/botonmovercuestionarioder.png);width: 8%;left:30%;background-size: 29px;}
.botonizqcambiolugar {left: 0%;transform: translate(0,0);width: 23%;}
.botonizqoculto {display: none;}
.botonquitaroculto {display: none;}
.botonizqajusteconbotondelcentro{left: 40%;} /*le cambio el lado de ajuste de derecha a izq para que no se separe del boton central al ampliar la ventana*/
.botonderajusteconbotondelcentro{left: 34%;width: 20%;} /*le cambio el lado de ajuste de derecha a izq para que no se separe del boton central al ampliar la ventana*/
.botonder { 
        
    width: 36.4px;
    left: 60%;
    height: 30px;
    border-radius: 12px;
    border: 1px solid black;
    /*background-color: #557495;*/
    background-image: url(../Imagenes/botonmovercuestionarioder.png);
    background-repeat: no-repeat;
    background-size: 27px;
    background-position: center;
    /* margin: 0px 0px 0px 0px; */
    /* padding: 0px 0px 0px 0px; */
    position: absolute;
    right: 36.3%;
    color: transparent;
    display: none;
}

 
.botonder:hover {background-color: #b8bdc3;}

.botonderpresionado {background-image: url(../Imagenes/botonmovercuestionarioizq.png);width: 8%;left: 57%;background-size: 29px;}
.botondercambiolugar {left:initial; right: 0.2%;transform: translate(0,0);width: 450px;}
.botonderoculto {display: none;}
.botondeshacer { 
        
    width: 37px; 
    height: 37px;
    border-radius: 25px;
    border: 1px solid ; /*le quita las sombras al boton*/
    /*background-color:  #557495;*/
    background-image: url(../Imagenes/botondeshacerverde3.png);
    background-repeat: no-repeat; /*para que no se repita la imagen*/
    background-position: center;
    background-size: 38px;
    /*margin: 10px 0px 0px 0px;*/
    padding: 17px;
    position: absolute;
    right: 53px;
    color: transparent; /*para que no se vea el "value"*/
    transition:
        transform 0.12s ease-out,
        box-shadow 0.15s ease,
        background-color 0.15s ease,
        border-color 0.15s ease;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
    border-radius: 999px;

    }


.botondeshacer:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.22);
    background-color: #f9dbd8;
    border-color: #fa0606;
}

/* Click: compresión breve y clara */
.botondeshacer:active {
    transform: scale(0.92);
    background-color: #d6f5df;
    box-shadow: 0 1px 3px rgba(250, 2, 2, 0.25);
}



.prueba {background-color: red;}

.fondoverde {
    background-color: #1abc9c;
    border-radius: 10px;
} /*cambiar el fondo de la respuesta correcta*/

.fondorojo {
    background-color: #e24343;
    border-radius: 10px;
} /*cambiar el fondo de la respuesta correcta*/


/*AVISO SI ENVIAR DATOS Y NO MARCAS NADA*/
.avisorespuesta {
    background: #ff4444;
    color: white;
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 13px;

    position: absolute;

    /* 👉 Aparece ARRIBA del botón */
    bottom: calc(100% + 10px);  /* 10px encima del botón */
    left: 0;                     /* Ajusta si quieres centrarlo */

    box-shadow: 0 2px 6px rgba(0,0,0,0.2);

    opacity: 0;
    transform: translateY(6px);
    animation: avisosuave 0.25s ease-out forwards;

    z-index: 99999;
}

.ocultoaviso {
    opacity: 0;
    transition: opacity 0.3s ease-out;
}

@keyframes avisosuave {
    from {
        opacity: 0;
        transform: translateY(12px);   /* baja → sube */
    }
    to {
        opacity: 1;
        transform: translateY(6px);
    }
}

/*FIN AVISO SI ENVIAR DATOS Y NO MARCAS NADA*/
.tooltip-borrar {
    position: fixed;                    /* se coloca según la pantalla */
    background: #ff5c5c;
    color: #fff;
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 13px;
    white-space: nowrap;
    box-shadow: 0 2px 6px rgba(0,0,0,0.25);
    transform: translate(-50%, -100%);  /* centrado y por encima del punto */
    z-index: 100000;
    pointer-events: none;

    opacity: 0;
    animation: tooltipBorrarIn 0.15s forwards;
}

@keyframes tooltipBorrarIn {
    from { opacity: 0; transform: translate(-50%, -80%); }
    to   { opacity: 1; transform: translate(-50%, -100%); }
}

.tooltip-borrar {
    position: fixed;
    background: #ff5c5c;
    color: #fff;
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 13px;
    white-space: nowrap;
    box-shadow: 0 2px 6px rgba(0,0,0,0.25);
    transform: translate(-50%, -100%);
    z-index: 100000;
    pointer-events: none;

    opacity: 0;
    animation: tooltipBorrarIn 0.15s forwards;
}






@media  (max-width: 1024px){

    
    
    
    .ppreguntas {
        font-size: 1.2em;
        padding: 2%;
    }

    .tresrespuestas {
        
        padding: 1%;
        margin: 1%;
        font-size: 1.2em;
    }

    .tresrespuestas1 {
        
        padding: 3px 12px;
        height: 41px;
    }

    .botonenvio {
        width: 34px;
        height: 34px;
        background-size: 51px;
        padding: 4px;
    }

    .botonayuda {
        width: 34px;
        height: 34px;
        background-size: 40px;
        padding: 4px;
    }

    .botondeshacer {
        width: 32px;
        height: 32px;
        background-size: 31px;
        padding: 4px;
    }

    .botonquitar {
        width: 31px;
        height: 31px;
        background-size: 21px;
        padding: 0px;
            }
    
    
    .botonizq {right: 61%;width: 6%;}
    .botonder {width: 6%;left: 58.5%;}

    .botonizqpresionado {width: 11%;left: 22%;}
    .botonderpresionado {width: 9%;left: 52%;}
    .botonderajusteconbotondelcentro{left: 31%;width: 19%;} /*le cambio el lado de ajuste de derecha a izq para que no se separe del boton central al ampliar la ventana*/
    .botonizqajusteconbotondelcentro{left: 35%;width: 22%;} /*le cambio el lado de ajuste de derecha a izq para que no se separe del boton central al ampliar la ventana*/
}



@media  (max-width: 768px){ 
    .todoelcuestionario label {
        padding: 9px;
        font-size: 18px;
    }

    .botonocultar{width: 72px;height: 29px;background-size: 38%;margin-top: -1px;}
    .botonizq {display: none;}
    .botonder {display: none;}
    .botondeshacer {right: 50px;}
    .botonquitar{right: 6px;}
    .botonderpresionado {width: 9%;right: 41.3%;}
    .botonderajusteconbotondelcentro{width: 72px;height: 29px;background-size: 28%;margin-top: -1px;left: 40%;} 
    .botonizqpresionado {width: 11%;left: 22%;}
    .botonizqajusteconbotondelcentro{width: 72px;height: 29px;background-size: 28%;margin-top: -1px;left: 40%;} 
    .botonderpresionado{display: none;}

    .botondercambiolugar, .botonizqcambiolugar {left:50%; right: inherit;transform: translate(-50%,0);width: 80%;}  
    .botonenvio {
        width: 31px;
        height: 15px;
        background-size: 40px;
        padding: 14px;
        margin-top: -2px;
    }

    .botonayuda {
        width: 31px;
        height: 15px;
        background-size: 28px;
        padding: 14px;
        margin-top: -2px;
    }
    .botondeshacer {
        width: 28px;
        height: 28px;
        background-size: 27px;
        /*padding: 14px;*/
        /*margin-top: -2px;*/
    }
    .botonquitar {
        width: 28px;
        height: 28px;
        background-size: 18px;
        /*padding: 14px;*/
        /*margin-top: -2px;*/
    }
    .tresrespuestas1 {
        
        padding: 4px 12px;
        height: 37px;
    }
}
    


@media  (max-width: 500px){ /*cuando la anchura sea inferior a 500 px*/

    .todoelcuestionario label {
        padding: 7px;
        font-size: 16px;
    }
    /* .botonizq {display: none;}
    .botonder {display: none;}
    .botonocultar{width: 30%;} */
    /*.botonderajusteconbotondelcentro{left: 30%;width: 18%;} /*le cambio el lado de ajuste de derecha a izq para que no se separe del boton central al ampliar la ventana*/
     
}

@media  (max-width: 376px)

    { 
    .botonocultar{width: 20%;}
    .botondeshacer {right: 46px;}
    .botonquitar{right: 6px;}



    }



