@font-face {
    font-family: 'Horizon';
    src: url('../assets/fonts/Horizon-Font/Horizon-Font/Horizon.woff2') format('woff2'),
        url('../assets/fonts/Horizon-Font/Horizon-Font/Horizon.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
}

body {
    overflow: hidden;
    background-color: #FFFFFF;
    margin: 0;
    padding-top: 80px;
    /* Espacio para el header fijo */
}


/* Overlay para cuando sidebar esta abierto */
.overlay-filtros {
    display: none;
}

/* --- ELEMENTOS CON FUENTE HORIZON --- */

.LapCompare-titulo {
    background-color: #2D2D2D;
    width: 100%;
    position: fixed;
    top: 0;
    z-index: 1030;
    height: 80px;
    display: flex;
    align-items: center;
    flex-wrap: nowrap !important;
}

.LapCompare-titulo h1 {
    color: #FFFFFF;
    font-family: 'Horizon', sans-serif !important;
    font-size: 32px;
    font-weight: bold;
    margin: 0;
    padding-left: 20px;
}

@media (max-width: 768px) {
    .LapCompare-titulo h1 {
        font-size: 19px;
        padding-left: 0;
    }
}

@media (max-width: 400px) {
    .LapCompare-titulo h1 {
        font-size: 14px;
        letter-spacing: -1px;
    }

    .btnIniciar-Ses {
        font-size: 11px;
        padding: 4px 8px;
    }
}

.contenedor-inicio h3 {
    color: #000000;
    font-family: 'Horizon', sans-serif;
    font-size: 24px;
    font-weight: bold;
    text-align: center;
}

.btnIniciar-Ses {
    background-color: #A076F9;
    color: #FFFFFF;
    text-align: center;
    padding: 6px 12px;
    white-space: nowrap;
    border: none;
    border-radius: 8px;
    font-size: 13px;
    font-weight: bold;
    transition: background 0.3s ease;
    cursor: pointer;
}

.btnIniciar-Ses:hover {
    background-color: #8B5CF6;
}

.ContenedoresFyC {
    margin: 0;
    padding: 0;
    height: 100%;
    overflow-y: scroll;
    overflow-x: hidden;
    box-sizing: content-box;
}

.content-row {
    height: calc(100vh - 80px);
}

.ContenedoresFyC {
    margin-top: 0;
}

.Filtros {
    background-color: #2d2d2d;
    border-top: 5px solid #333333;
    color: #FFFFFF;
    padding: 40px;
    height: 100%;
    overflow-y: auto;
}

/* Sidebar filtros para celular */
@media (max-width: 768px) {
    .Filtros {
        position: fixed;
        top: 0;
        left: -100%;
        width: 85%;
        max-width: 320px;
        height: 100vh;
        background: #2d2d2d;
        z-index: 1000;
        transition: left 0.3s ease;
        overflow-y: auto;
        padding: 60px 20px 20px;
        box-shadow: none;
    }

    .Filtros.open {
        left: 0;
        box-shadow: 2px 0 15px rgba(0, 0, 0, 0.5);
    }

    .overlay-filtros.active {
        display: block;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        z-index: 999;
    }
}

.Filtros h5 {
    font-size: 18px;
    font-weight: bold;
    text-align: start;
    margin: 0;
}

.Laptops {
    background-color: #FFFFFF;
    height: 100%;
    overflow-y: auto;
}

/* --- Slider --- */
.slider-wrapper {
    width: 100%;
    position: relative;
    margin-top: 30px;
    /* Space for the floating label */
}

#slider-value {
    position: absolute;
    bottom: 45px;
    transform: translateX(-50%);
    background-color: #A076F9;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: bold;
    white-space: nowrap;
}

/* Barra en color #A076F9 */
.custom-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 3px;
    background: #A076F9;
    outline: none;
    border-radius: 10px;
}

/* Círculo del slider */
.custom-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 16px;
    height: 16px;
    background: #A076F9;
    border-radius: 50%;
    cursor: pointer;
    border: none;
}

/* Etiquetas en 14px */
.price-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
    font-size: 14px;
    color: #FFFFFF;
    opacity: 0.9;
}

.Filtros p {
    margin: 0;
    padding-left: 15px;
    color: #FFFFFF !important;
    font-size: 14px;

}

/*CATEGORÍAS DE FILTROS*/
.check-categoria {
    display: none;
}

.Filtros .form-check-label {
    color: #FFFFFF;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: block;
}

.Filtros .form-check-label:hover {
    color: #A076F9;
    opacity: 0.8;
    transform: translateX(5px);
}

.check-categoria:checked+.form-check-label {
    color: #A076F9 !important;
    font-weight: bold;
    transform: translateX(8px);
}

.form-switch .form-check-input:checked {
    background-color: #A076F9;
    border-color: #A076F9;
}

.Laptops {
    background-color: #FFFFFF;
}

.LaptopsGrid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 25px;
    padding: 30px;
    justify-content: center;
    max-width: 100%;
}

/* Responsivo: Ajustes de columnas para LaptopsGrid */
@media (max-width: 1200px) {
    .LaptopsGrid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 992px) {
    .LaptopsGrid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
        padding: 20px;
    }
}

@media (max-width: 576px) {
    .LaptopsGrid {
        grid-template-columns: 1fr;
        gap: 12px;
        padding: 10px;
    }
}


.laptop-card {
    background-color: #E6E6E6 !important;
    border-radius: 15px !important;
    padding: 20px;
    border: none;
    text-align: center;
    position: relative;
    min-height: 220px;
    width: 100%;
}

.laptop-card img {
    object-fit: contain;
    height: 120px;
    width: 100%;
}

.laptop-card .card-title {
    color: #000000;
    font-size: 18px;
    font-weight: bold;
    margin-top: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
}

.precio-text {
    color: #7E57C2 !important;
    font-size: 16px;
    font-weight: bold;
}

.btn-detalles {
    background-color: #333333;
    color: #FFFFFF;
    font-size: 14px;
    border: none;
    border-radius: 8px;
    padding: 8px;
    width: 100%;
    font-weight: bold;
}

.btn-icon-card {
    position: absolute;
    top: 10px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background-color: #FFFFFF;
    border: 1px solid #E0E0E0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    z-index: 10;
}

.btn-add-plus {
    left: 10px;
    color: #333333;
}

.btn-heart-fav {
    right: 10px;
    color: #333333;
}

.btn-icon-card:hover {
    transform: scale(1.1);
    background-color: #f8f9fa;
}

.btn-heart-fav:hover {
    color: #A076F9;
}

.btn-add-plus:hover {
    color: #A076F9;
}

.bi-heart-fill {
    color: #FFFFFF;
}

.btn-add-plus {
    transition: background-color 0.3s ease, color 0.3s ease;
}

.btn-comparar {
    transition: all 0.3s ease;
}

/* Estado activo para botones de comparación y favoritos */
.btn-icon-card.active {
    background-color: #A076F9 !important;
    color: white !important;
}

.range-slider-container input[type="range"] {
    position: absolute;
    width: 100%;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    /* Deja pasar los clicks a la capa inferior */
    background: transparent;
    margin: 0;
}

/* Darle estilo solo a la 'bolita' (thumb) y volverla clickeable */
.range-slider-container input[type="range"]::-webkit-slider-thumb {
    pointer-events: auto;
    /* Reactiva el click solo para la bolita */
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    background: #A076F9;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.3);
}

/* Estilos para el análisis del asistente (LLM) */
.feedback-llm {
    background: rgba(160, 118, 249, 0.15);
    /* Un poco más de contraste */
    border-left: 4px solid #A076F9;
    padding: 20px;
    border-radius: 12px;
    color: #1a1a1a;
    /* Texto oscuro para visibilidad */
    margin-bottom: 25px;
    font-size: 1rem;
    line-height: 1.6;
    animation: fadeInMinimal 0.5s ease-out;
}

.feedback-llm i {
    color: #000000;
    /* Ícono negro */
}

@keyframes fadeInMinimal {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.spinner-border-sm {
    color: #A076F9;
}

/* Para compatibilidad con Firefox */
.range-slider-container input[type="range"]::-moz-range-thumb {
    pointer-events: auto;
    width: 20px;
    height: 20px;
    background: #A076F9;
    border-radius: 50%;
    cursor: pointer;
    border: none;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.3);
}

/* Formateo del Dropdown en Modal Límite */
#selectLaptopARemover {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23ffffff' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e") !important;
    background-position: right 12px center;
    background-size: 14px;
    transition: border-color 0.2s, box-shadow 0.2s;
}

#selectLaptopARemover:focus {
    border-color: #A076F9 !important;
    box-shadow: 0 0 0 3px rgba(160, 118, 249, 0.3) !important;
    outline: none;
}