/* CABECERA RESPONSIVA */
.header {
    width: 100%;
    text-align: center;
}
.img-fluid {
    width: 100%;
    height: auto;
    display: block;
}
.img-fluid2 {
    width: 100%;
    height: auto;
    display: none;
}

@media (max-width: 768px) {
    .img-fluid {
        display: none;
    }
    .img-fluid2 {
        display: block;
    }
}
/* 
    CSS VARIABLES OPTIMIZADAS
    -------------------------
*/

:root {
    /* Variables únicas - eliminadas redundantes */
    --body-color: #ffffff;
    --primary: #1c3828;
    --secondary: #f36e15;
    --main-text_color: #ffffff;
    --gray-light: #f5f5f5;
    --gray-medium: #585856;
    --gray-dark: #4f4f4f;
    --gray-border: #cccccc;
    --transparent-white: rgba(255, 255, 255, 0.4);

}

/* 
    ESTILOS BASE 
    ------------
*/

body {
    font-family: "FReg", sans-serif;
    background: url(../../media/website/background.webp) center center/cover no-repeat fixed;
}
/* 
    SCROLLBAR PERSONALIZADO 
    -----------------------
*/

/* Para navegadores webkit (Chrome, Safari, Edge) */
::-webkit-scrollbar {
    width: 8px; /* Ancho del scrollbar vertical */
    height: 8px; /* Alto del scrollbar horizontal */
}

::-webkit-scrollbar-track {
    background: var(--gray-light); /* Color del fondo del track */
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: var(--primary); /* Color principal para el thumb */
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--secondary); /* Color secundario al hacer hover */
}

::-webkit-scrollbar-corner {
    background: var(--gray-light);
}

/* Para Firefox */
html {
    scrollbar-width: thin;
    scrollbar-color: var(--primary) var(--gray-light);
}
/* 
    ENLACES DE ENCUESTA 
    ------------------
*/

.survey-link {
    color: var(--primary);
    width: 100%;
    text-align: center;
    padding: 20px;
    border: 1px solid var(--gray-medium);
    background-color: var(--transparent-white);
    text-decoration: none;
    display: block;
}

.survey-link:hover {
    background-color: var(--primary);
    color: var(--body-color);
}

/* 
    CONTENEDOR DE FORMULARIO 
    ------------------------
*/

.form-container {
    background-color: var(--body-color);
    padding: 50px !important;
}

.form-survey label {
    font-size: 1.3em;
    cursor: pointer;
    /* font-family: "FBold", sans-serif; */
}

/* Estructura de preguntas mejorada */
.form-row-question {
    padding-bottom: 10px;
}

/* Filas de formulario optimizadas */
.form-row {
    align-items: flex-start;
}

/* Texto de pregunta */
.question-text {
    margin-bottom: 12px;
}
@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.02); }
}
.question-text p {
    color: var(--secondary);
    font-family: "FBold", sans-serif;
    line-height: 1.4;
    font-size: 21px;
    margin-top: 15px;
    width: 75% !important;
}


.radio-column { /* label and radiobuton (there are 5) */
    margin: 0 10px;
    font-size: 0.7em;
    font-weight: 600;
}

/* RADIOBUTTONS CON COLOR PRINCIPAL */
.form-survey input[type='radio'] {
    border: 2px solid var(--gray-medium) !important;
    accent-color: var(--primary);
}

.form-check-input[type="radio"]:checked::after {
    border-color: var(--primary) !important;
    background-color: var(--primary) !important;
}

.form-survey input[type='submit'], 
.btn {
    background-color: var(--primary);
    color: var(--body-color);
    font-family: "FReg", sans-serif;
    border: none;
    padding: 12px 24px;
    border-radius: 5px;
}



.form-survey textarea {
    width: 100%;
    height: 180px;
    margin: 10px 0;
    border: 1px solid var(--gray-medium);
    padding: 10px;
    font-family: "FReg", sans-serif;
}

/* 
    SECCIÓN DE CATEGORÍA 
    --------------------
*/
.category-text{
    border-radius: 20px;
  background-color: var(--primary);
  color: var(--main-text_color);
  margin: 20px 0;
}
.category-header {
    border-radius: 20px;
    background-color: var(--primary);
    color: var(--body-color);
    margin: 20px 0;
    padding: 20px;
}

.category-title {
    font-weight: bold;
    font-size: 1.6em;
    letter-spacing: 2px;
    font-family: "FBold", sans-serif;
}

.category-subtitle {
    font-size: 0.95em;
}

/* 
    SECCIÓN DE TEMA 
    ---------------
*/

.topic-title {
   color: var(--body-color);
  background-color: var(--secondary);
  margin: auto;
    margin-top: auto;
  text-align: center;
  display: 5px 10px inline-block;
  font-family: "FBold", sans-serif;
  margin-top: 55px;
}

hr {
    margin-top: -2px;
    margin-bottom: 25px;
    color: var(--gray-medium);
}

/* 
    SECCIÓN DE SESIÓN 
    -----------------
*/
.session-text{
    margin-bottom: -40px;
  font-size: 1.85em;
  color: var(--primary);
  font-family: "FLight", sans-serif;
  font-weight: bold;
  margin: 30px 0px 0px 0px !important;
}


.sede {
    color: var(--gray-medium);
  font-style: italic;
  font-size: 0.9rem !important;
}

.ponentes{
    color: var(--gray-medium);
  font-size: 1rem !important;
}
/* 
    BLOQUES DE CONTENIDO 
    --------------------
*/
.multiselect-item {
    font-size: 0.8em;
        margin-bottom: 6px !important;
        max-width: 35%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
}

.multiselect-item:last-child {
    border-bottom: none;
}

.multiselect-item .form-check-label {
    flex-grow: 1;
    margin-bottom: 0;

    cursor: pointer;
}

.multiselect-item .form-check-input {
    margin-left: auto;
    margin-right: 0;
    position: relative;
    transform: scale(0.9);
    cursor: pointer;
}
.block {
    border-bottom: 1px solid var(--gray-dark);
    padding-top: 10px;
}

.subtitle-secondary {
    font-style: italic;
    color: var(--gray-medium);
}

.location-text {
    color: var(--gray-medium);
    font-family: "FItalic", sans-serif;
}

/* 
    ELEMENTOS ORDENABLES 
    --------------------
*/

.sortable-container {
    padding: 20px;
    background-color: var(--gray-light);
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.sortable-title {
    font-size: 1.2em;
    font-weight: bold;
    color: var(--primary);
    margin-bottom: 10px;
    text-align: center;
}

.sortable-list, .sortable {
    list-style: none;
    padding: 0;
}

.sortable-item {
    display: flex;
    align-items: center;
    padding: 10px;
    background: var(--body-color);
    border-radius: 8px;
    border: 1px solid var(--gray-medium);
    margin-bottom: 8px;
    cursor: pointer;
}

.sortable-item:hover {
    background-color: var(--gray-border);
    color: var(--gray-dark);
    transform: scale(1.02);
}

.sortable-item.dragging, .sortable-item.c-grabbing {
    cursor: grabbing;
    opacity: 0.8;
}

.position-number {
    font-weight: bold;
    margin-right: 8px;
    color: var(--gray-dark);
}

.arrow-controls, .arrow-container {
    display: flex;
    flex-direction: column;
    margin-right: 8px;
}

.move-btn, .move-up, .move-down {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 18px;
    color: var(--primary);
}

.move-btn:disabled, .move-up:disabled, .move-down:disabled {
    color: var(--gray-medium);
    cursor: not-allowed;
}

/* 
    FORMULARIOS ADICIONALES 
    -----------------------
*/

.form-row-textarea {
    margin: 10px 0;
}

.form-row-date {
    margin: 10px 0;
}

.form-row-checkboxes {
    margin: 10px 0;
}

.form-row-multioption {
    margin: 20px 0;
}

/* Inputs de fecha y otros elementos */
.form-control, input[type="date"], input[type="text"] {
    border: 1px solid var(--gray-medium);
    font-family: "FReg", sans-serif;
    color: var(--gray-dark);
}

.form-control:focus, input[type="date"]:focus, input[type="text"]:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 0.2rem rgba(69, 77, 152, 0.25);
}

/* Checkboxes */
input[type="checkbox"] {
    accent-color: var(--primary);
}

/* Selects */
select.form-control {
    border: 1px solid var(--gray-medium);
    font-family: "FReg", sans-serif;
    color: var(--gray-dark);
}

select.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 0.2rem rgba(69, 77, 152, 0.25);
}



/* 
    ALERTAS/POPUPS 
    --------------
*/

.swal2-popup {
    height: 350px;
    width: 475px;
}

.swal2-title {
    font-family: "FLight", sans-serif;
    font-size: 1.15rem;
}


.form-check-input:checked {
    background-color: var(--primary) !important;
    border-color: var(--primary) !important;
}

.form-check-input:focus {
    border-color: var(--primary) !important;
    box-shadow: 0 0 0 0.25rem rgba(69, 77, 152, 0.25) !important;
}



/* 
    DISEÑO RESPONSIVO 
    -----------------
*/

@media (max-width: 768px) {
    .form-container {
        padding: 30px 15px;
    }
    
    .questionItem {
        font-size: 0.8em;
        margin-bottom: 6px !important;
        max-width: 90%;
    }
    
    .radio-column {
        margin: 0 2px;
        min-width: 25px;
    }
    
    .radio-column label {
        font-size: 0.7em;
        margin-bottom: 3px;
    }
    
  
    
    .question-text p {
        font-size: 1em;
    }
    
    .form-row {
        margin-bottom: 6px;
    }
    
    .form-row-question {
        margin-bottom: 12px;
        padding-bottom: 8px;
    }

    .img-fluid {
        display: none;
    }

    .img-mobile {
        width: 100%;
        display: block;
    }
}

@media (max-width: 576px) {
    .form-container {
        padding: 20px 10px;
    }
    .multiselect-item {
  
        max-width: 100% !important;
   
        }
    .questionItem {
        font-size: 0.75em;
        line-height: 1.2;
        max-width: 95%;
    }
    
    .radio-column {
        margin: 0 1px;
        min-width: 22px;
    }
    
    .radio-column label {
        font-size: 0.65em;
    }
    
  
    
    .question-text p {
        font-size: 0.95em;
    }
    
    .form-row-question {
        margin-bottom: 10px;
        padding-bottom: 6px;
    }
}