:root {
    --tsa-radius: 6px;
}

.tsa-search-box {
    background: #fff;
    border-radius: var(--tsa-radius);
    box-shadow: 0 4px 6px -1px rgba(0,0,0,.05), 0 2px 4px -2px rgba(0,0,0,.05);
    border: 1px solid var(--e-global-color-secondary);
    background:  #1C7C5405;
}

.tsa-form {
    padding: 24px;
    position: relative;
    overflow: hidden;
}

/* --- Loader --- */
.tsa-loader {
    position: absolute; top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(255,255,255,.85);
    display: flex; justify-content: center; align-items: center;
    z-index: 10; opacity: 0; visibility: hidden;
    transition: opacity .3s, visibility .3s;
}
.tsa-loader.is-active { opacity: 1; visibility: visible; }
.tsa-loader-spinner { animation: rotate 2s linear infinite; width: 50px; height: 50px; }
.tsa-loader-spinner circle { stroke: var(--e-global-color-accent); stroke-linecap: round; animation: dash 1.5s ease-in-out infinite; }
@keyframes rotate { 100% { transform: rotate(360deg); } }
@keyframes dash { 0% { stroke-dasharray: 1, 150; stroke-dashoffset: 0; } 50% { stroke-dasharray: 90, 150; stroke-dashoffset: -35; } 100% { stroke-dasharray: 90, 150; stroke-dashoffset: -124; } }

/* --- Grid & Fields --- */
.tsa-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; margin-bottom: 24px; }
.tsa-field label { font-size: .75rem; font-weight: 600; color: var(--e-global-color-primary); margin-bottom: 4px; display: block; }
.tsa-select {
    width: 100%;
    padding: .5rem 2rem .5rem .75rem;
    font-size: 0.9rem;
    border: 1px solid var(--e-global-color-secondary);
    border-radius: var(--tsa-radius);
    background-color: #fff;
    color: var(--e-global-color-ba0febc);
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='currentColor'%3E%3Cpath fill-rule='evenodd' d='M5.293 7.293a1 1 0 011.414 0L10 10.586l3.293-3.293a1 1 0 111.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414z' clip-rule='evenodd' /%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right .5rem center;
    background-size: 1.25em;
    transition: border-color .2s, box-shadow .2s;
}
.tsa-select:focus { outline: none; border-color: var(--e-global-color-accent); box-shadow: 0 0 0 2px rgba(254, 197, 0, 0.2); }

/* --- Flags & Actions --- */
.tsa-flags-centered { display: flex; justify-content: center; align-items: center; gap: 24px; margin-top: 24px; }
.tsa-check { display: inline-flex; align-items: center; gap: .5rem; font-size: .9rem; color: var(--e-global-color-ba0febc); cursor: pointer; user-select: none; }
.tsa-check input { width: 1.1em; height: 1.1em; accent-color: var(--e-global-color-accent); }

.tsa-actions { text-align: center; margin-top: 35px; }
.tsa-btn {
    background: var(--e-global-color-accent);
    color: #fff;
    border: none;
    border-radius: var(--tsa-radius);
    padding: .8rem 2rem;
    font-size: .9rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color .2s;
}
.tsa-btn:hover { background: #ea580c; }

/* --- Responsive --- */
@media (max-width: 1200px) {
    .tsa-grid { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 900px) {
    .tsa-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 640px) {
    .tsa-grid { grid-template-columns: repeat(2, 1fr); }
    .tsa-flags-centered { flex-direction: column; align-items: flex-start; gap: 10px; }
    .tsa-form { padding: 16px; }
}
/* --- Grid de Opciones Unificadas --- */
.tsa-options-grid {
    display: grid;
    grid-template-columns: repeat(9, 1fr); /* <-- CAMBIO: 9 columnas */
    gap: 10px;
    margin-top: 24px;
    max-width: 755px; 
    margin-left: auto;
    margin-right: auto;
}

.tsa-option-box {
    position: relative;
    cursor: pointer;
}

.tsa-option-box input {
    position: absolute;
    opacity: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
}


.tsa-option-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 75px;
    height: auto;
    margin: auto;
    gap: 5px; 
    padding: 5px; 
    background-color: transparent;
    color: #777;
    border-radius: var(--tsa-radius);
    border: none;
    text-align: center;
    font-size: 0.75rem;
    font-weight: 600;
    transition: all 0.2s ease-in-out;
    border: 1px solid #777;
}

.tsa-option-content img {
    width: auto;
    height: 20px;
    margin-top: 2px;
    margin-bottom: 2px;
}
.tsa-option-content span {
    font-size: 12px;
    font-weight: 300;
}

/* Estado :hover */
.tsa-option-box:hover .tsa-option-content {
    border-color: var(--e-global-color-secondary);
}

/* Estado Seleccionado */
.tsa-option-box input:checked + .tsa-option-content {
    background-color: var(--e-global-color-secondary);
    border-color: var(--e-global-color-secondary);
}
.tsa-option-box input:checked + .tsa-option-content img {
    filter: brightness(0) invert(1);
}
.tsa-option-box input:checked + .tsa-option-content span {
    color: #fff;
}
/* --- Media Queries para Responsividad --- */
@media (max-width: 768px) {
    .tsa-options-grid {
        grid-template-columns: repeat(3, 1fr); /* 3 columnas en tablet */
    }
    .tsa-option-content {
        width: 100%;
        height: 65px;
    }
    .tsa-option-content img {
        width: auto;
        height: 18px;
        padding-top: 2px;
    }
}

@media (max-width: 480px) {
    .tsa-options-grid {
        grid-template-columns: repeat(4, 3fr); /* 2 columnas en móvil */
    }
}
.mb-4{
    margin-bottom: 30px;
}
.text-center{
    text-align: center;
}
.tit-form-searc-neum{
    font-size: 18px;
    font-weight: bold;
}
button.tsa-btn {
    background: var(--e-global-color-secondary);
    color: white;
}
button.tsa-btn:hover {
    background: #26A671;
    color: white;
}