/* =====================================================
   EQF Template: Naranja
   Color principal: var(--Bot-Actualidad)
   ===================================================== */

/* ---------- Wrapper ---------- */
.eqf-wrapper.eqf-template-naranja {
    font-family: "Hellix", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background: #ffffff;
    border-radius: 8px;
    padding: 0;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
}

/* ---------- Toggle Button ---------- */
.eqf-template-naranja .eqf-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: var(--Bot-Actualidad);
    color: #ffffff;
    border: none;
    border-radius: 8px;
    padding: 10px 24px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: filter 0.2s ease, transform 0.1s ease;
    margin: 16px auto;
    display: flex;
}

.eqf-template-naranja .eqf-toggle:hover {
    filter: brightness(0.9);
}

.eqf-template-naranja .eqf-toggle:active {
    transform: scale(0.98);
}

.eqf-template-naranja .eqf-toggle-icon {
    font-size: 20px;
    line-height: 1;
    font-weight: 300;
}

/* ---------- Form ---------- */
.eqf-template-naranja .eqf-form {
    padding: 16px 20px;
    background: #ffffff;
    border-radius: 12px;
}

.eqf-template-naranja .eqf-form.eqf-horizontal .eqf-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: flex-start;
}

.eqf-template-naranja .eqf-form.eqf-vertical .eqf-grid {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* ---------- Fields ---------- */
.eqf-template-naranja .eqf-field {
    flex: 1 1 160px;
    min-width: 140px;
}

.eqf-template-naranja .eqf-label {
    display: block;
    font-size: 11px;
    font-weight: 600;
    color: #78716c;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

/* ---------- Selects ---------- */
.eqf-template-naranja .eqf-select {
    width: 100%;
    background: #f5f5f4;
    border: 1px solid #e7e5e4;
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 14px;
    color: #44403c;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2378716c' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 32px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.eqf-template-naranja .eqf-select:focus {
    outline: none;
    border-color: var(--Bot-Actualidad);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--Bot-Actualidad) 25%, transparent);
}

.eqf-template-naranja .eqf-select option {
    color: #44403c;
    background: #ffffff;
}

/* ---------- Inputs de texto ---------- */
.eqf-template-naranja .eqf-input {
    width: 100%;
    background: #f5f5f4;
    border: 1px solid #e7e5e4;
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 14px;
    color: #44403c;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    box-sizing: border-box;
}

.eqf-template-naranja .eqf-input:focus {
    outline: none;
    border-color: var(--Bot-Actualidad);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--Bot-Actualidad) 25%, transparent);
}

.eqf-template-naranja .eqf-input::placeholder {
    color: #a8a29e;
}

/* ---------- Checkboxes ---------- */
.eqf-template-naranja .eqf-checkgroup {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 16px;
}

.eqf-template-naranja .eqf-checklabel {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #57534e;
    cursor: pointer;
    user-select: none;
    line-height: 1.4;
}

.eqf-template-naranja .eqf-checklabel input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    border: 2px solid #d6d3d1;
    border-radius: 4px;
    background: #ffffff;
    cursor: pointer;
    position: relative;
    transition: all 0.15s ease;
    flex-shrink: 0;
    margin: 0;
}

.eqf-template-naranja .eqf-checklabel input[type="checkbox"]:checked {
    background: var(--Bot-Actualidad);
    border-color: var(--Bot-Actualidad);
}

.eqf-template-naranja .eqf-checklabel input[type="checkbox"]:checked::after {
    content: "";
    position: absolute;
    left: 5px;
    top: 1px;
    width: 5px;
    height: 10px;
    border: solid #ffffff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.eqf-template-naranja .eqf-checklabel input[type="checkbox"]:focus {
    outline: none;
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--Bot-Actualidad) 20%, transparent);
}

.eqf-template-naranja .eqf-checklabel:hover input[type="checkbox"] {
    border-color: #a8a29e;
}

/* ---------- Actions ---------- */
.eqf-template-naranja .eqf-actions {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-top: 28px;
    padding-top: 20px;
    border-top: 1px solid #f5f5f4;
}

/* Botones estilo web - tamaño y efectos igual que los de la web */
.eqf-template-naranja .eqf-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 32px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 200px;
    border: 2px solid transparent;
}

/* Botón Aplicar (sólido) */
.eqf-template-naranja .eqf-btn.eqf-apply {
    background: var(--Bot-Actualidad);
    color: #ffffff;
    border-color: var(--Bot-Actualidad);
}

.eqf-template-naranja .eqf-btn.eqf-apply:hover {
    border-width: 2px;
    border-color: var(--Bot-Actualidad);
    background: white;
    color: var(--Bot-Actualidad);
    box-shadow: 0 4px 12px color-mix(in srgb, var(--Bot-Actualidad) 30%, transparent);
}

.eqf-template-naranja .eqf-btn.eqf-apply:active {
    transform: translateY(0);
}

/* Botón Borrar (blanco con borde) */
.eqf-template-naranja .eqf-btn.eqf-clear {
    background: #ffffff;
    color: var(--Bot-Actualidad);
    border-color: var(--Bot-Actualidad);
}

.eqf-template-naranja .eqf-btn.eqf-clear:hover {
    background: color-mix(in srgb, var(--Bot-Actualidad) 8%, #ffffff);
    border-color: white;
    box-shadow: 0 4px 12px color-mix(in srgb, var(--Bot-Actualidad) 15%, transparent);
}

.eqf-template-naranja .eqf-btn.eqf-clear:active {
    transform: translateY(0);
}

/* ---------- AJAX Loader ---------- */
.eqf-template-naranja .eqf-ajax-loader {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 20px;
    background: rgba(255,255,255,0.9);
    border-radius: 8px;
    margin-top: 16px;
}

.eqf-template-naranja .eqf-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #e7e5e4;
    border-top-color: var(--Bot-Actualidad);
    border-radius: 50%;
    animation: eqf-spin-naranja 0.8s linear infinite;
}

@keyframes eqf-spin-naranja {
    to { transform: rotate(360deg); }
}

.eqf-template-naranja .eqf-loading-text {
    font-size: 14px;
    color: #78716c;
    font-weight: 500;
}

/* ---------- Estado loading ---------- */
.eqf-template-naranja.eqf-loading {
    opacity: 0.7;
    pointer-events: none;
}

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
    .eqf-template-naranja .eqf-form.eqf-horizontal .eqf-grid {
        flex-direction: column;
    }

    .eqf-template-naranja .eqf-field {
        flex: 1 1 100%;
        min-width: 100%;
    }

    .eqf-template-naranja .eqf-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .eqf-template-naranja .eqf-btn {
        width: 100%;
        min-width: auto;
    }

    .eqf-template-naranja .eqf-form {
        padding: 16px 20px;
    }
}

/* =====================================================
   EQF Search Select
   ===================================================== */

.eqf-template-naranja .eqf-search-select {
    position: relative;
    width: 100%;
}

.eqf-template-naranja .eqf-search-select-input {
    width: 100%;
    background: #f5f5f4;
    border: 1px solid #e7e5e4;
    border-radius: 8px;
    padding: 10px 32px 10px 14px;
    font-size: 14px;
    color: #44403c;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    box-sizing: border-box;
    cursor: text;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2378716c' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
}

.eqf-template-naranja .eqf-search-select-input:focus {
    outline: none;
    border-color: var(--Bot-Actualidad);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--Bot-Actualidad) 25%, transparent);
}

.eqf-template-naranja .eqf-search-select-input::placeholder {
    color: #a8a29e;
}

.eqf-template-naranja .eqf-search-select-dropdown {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    max-height: 260px;
    overflow-y: auto;
    background: #ffffff;
    border: 1px solid #e7e5e4;
    border-radius: 8px;
    z-index: 100;
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    padding: 4px 0;
}

.eqf-template-naranja .eqf-search-select-option {
    padding: 8px 14px;
    cursor: pointer;
    font-size: 14px;
    color: #44403c;
    transition: background 0.1s ease;
    border-bottom: 1px solid #f5f5f4;
}

.eqf-template-naranja .eqf-search-select-option:last-child {
    border-bottom: none;
}

.eqf-template-naranja .eqf-search-select-option:hover {
    background: #f5f5f4;
}

.eqf-template-naranja .eqf-search-select-option[data-selected="1"] {
    background: color-mix(in srgb, var(--Bot-Actualidad) 10%, #f5f5f4);
    color: #292524;
    font-weight: 500;
}

.eqf-template-naranja .eqf-search-select-no-results {
    padding: 12px 14px;
    color: #a8a29e;
    font-size: 13px;
    text-align: center;
    font-style: italic;
}

.eqf-template-naranja .eqf-search-select.eqf-dropdown-open .eqf-search-select-input {
    border-color: var(--Bot-Actualidad);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--Bot-Actualidad) 25%, transparent);
}

.eqf-template-naranja .eqf-search-select-dropdown::-webkit-scrollbar {
    width: 6px;
}

.eqf-template-naranja .eqf-search-select-dropdown::-webkit-scrollbar-track {
    background: #f5f5f4;
    border-radius: 0 8px 8px 0;
}

.eqf-template-naranja .eqf-search-select-dropdown::-webkit-scrollbar-thumb {
    background: #d6d3d1;
    border-radius: 3px;
}

.eqf-template-naranja .eqf-search-select-dropdown::-webkit-scrollbar-thumb:hover {
    background: #a8a29e;
}

@media (max-width: 768px) {
    .eqf-template-naranja .eqf-search-select-dropdown {
        max-height: 200px;
    }
}
/* =====================================================
   Popup de filtros (mobile_layout="popup") — móvil y escritorio
   Solo el color del botón "Filtros" y el input inline de la barra
   compacta; el resto (tarjeta flotante, animaciones, posición) ya lo
   pone el CSS genérico del popup (compartido entre plantillas).
   ===================================================== */

.eqf-template-naranja .eqf-mobile-filters-toggle {
    background: var(--Bot-Actualidad);
    border-color: var(--Bot-Actualidad);
    color: #ffffff;
}

.eqf-template-naranja .eqf-mobile-bar .eqf-input,
.eqf-template-naranja .eqf-mobile-bar .eqf-search-select-input {
    border-radius: 999px;
}

.eqf-template-naranja .eqf-popup-fields .eqf-btn.eqf-apply,
.eqf-template-naranja .eqf-popup-fields .eqf-btn.eqf-clear {
    min-width: 0;
    width: 100%;
}

.eqf-template-naranja .eqf-actions-popup {
    flex-direction: column;
    gap: 10px;
}