/* Contenedor principal: Distribución de columnas */
.fae-contenedor-principal {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin-top: 20px;
}

/* Columna Izquierda (Filtros) */
.fae-columna-filtros {
    flex: 0 0 260px;
    background: #ffffff;
    padding: 24px;
    border-radius: 12px;
    border: 1px solid #f0f0f0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}

.fae-bloque-filtro {
    margin-bottom: 28px;
}

.fae-bloque-filtro h3 {
    font-size: 15px;
    font-weight: 600;
    color: #185cb6; /* Azul corporativo */
    margin-bottom: 15px;
    padding-bottom: 0;
    border-bottom: none;
    letter-spacing: 0.3px;
}

/* Opciones en formato PILL/BUTTON */
.fae-opciones-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.fae-opcion {
    cursor: pointer;
    margin: 0;
}

/* Ocultar los inputs nativos feos */
.fae-opcion input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

/* Estilo del "Botón" visual */
.fae-opcion span {
    display: inline-block;
    padding: 8px 14px;
    background-color: #f7f9fc;
    color: #4a5568;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    border: 1px solid #e2e8f0;
    transition: all 0.2s ease;
    -webkit-user-select: none;
    user-select: none;
}

/* Estado Hover */
.fae-opcion:hover input ~ span {
    border-color: #cbd5e1;
    background-color: #f1f5f9;
}

/* Estado Activo / Seleccionado */
.fae-opcion input:checked ~ span {
    background-color: #185cb6; /* Azul corporativo */
    color: #ffffff;
    border-color: #185cb6;
    box-shadow: 0 2px 6px rgba(24, 92, 182, 0.25);
}

/* Slider / Range de Precio */
.fae-range-wrapper {
    position: relative;
    padding-top: 5px;
}

#fae-precio-rango {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 6px;
    background: #e2e8f0;
    border-radius: 5px;
    outline: none;
}

#fae-precio-rango::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #185cb6; /* Azul corporativo */
    cursor: pointer;
    box-shadow: 0 0 5px rgba(0,0,0,0.2);
    transition: transform 0.1s;
}

#fae-precio-rango::-webkit-slider-thumb:hover {
    transform: scale(1.15);
}

#fae-precio-rango::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #185cb6;
    cursor: pointer;
    border: none;
    box-shadow: 0 0 5px rgba(0,0,0,0.2);
}

.fae-range-limits {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #94a3b8;
    margin-top: 10px;
    font-weight: 500;
}


/* Columna Derecha (Resultados) */
.fae-columna-resultados {
    flex: 1;
    /* Ocupa el resto del espacio */
}

/* Grid de Tarjetas */
#fae-grid-resultados {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    /* Responsive automático */
    gap: 20px;
    transition: opacity 0.3s ease;
}

/* Estilo de la Tarjeta Individual */
.fae-tarjeta {
    background: #fff;
    border: 1px solid #eaeaea;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s;
    display: flex;
    flex-direction: column;
    position: relative; /* Clave para anclar el ribbon interior */
}

.fae-tarjeta:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
}

.fae-tarjeta-img img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    display: block;
}

.fae-tarjeta-contenido {
    padding: 15px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.fae-tarjeta-contenido h4 {
    margin: 0 0 10px 0;
    font-size: 18px;
}

.fae-tarjeta-contenido h4 a {
    text-decoration: none;
    color: #333;
}

.fae-meta-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 15px 0;
    padding-top: 15px;
    border-top: 1px solid #f0f0f0;
}

.fae-precio {
    font-size: 18px;
    font-weight: bold;
    color: #333; /* Color oscuro premium */
}

.fae-estado-reservada {
    color: #e67e22; /* Naranja corporativo/alerta o ámbar */
    text-transform: uppercase;
    font-size: 15px;
    letter-spacing: 0.5px;
}

.fae-estado-vendida {
    color: #e74c3c; /* Rojo de stock agotado */
    text-transform: uppercase;
    font-size: 15px;
    letter-spacing: 0.5px;
}

/* --- RIBBONS ESTILO BANNER DIAGONAL --- */
.fae-ribbon {
    position: absolute;
    top: 22px;
    right: -38px;
    width: 150px;
    text-align: center;
    padding: 7px 0;
    color: #fff;
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    transform: rotate(45deg);
    z-index: 10;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.fae-ribbon-reservada { background: #e67e22; }
.fae-ribbon-vendida  { background: #e74c3c; }

.fae-iconos {
    font-size: 13px;
    color: #666;
    display: flex;
    gap: 12px;
}

.fae-btn {
    margin-top: auto;
    /* Empuja el botón al fondo */
    display: block;
    text-align: center;
    background: #185cb6;
    /* Color azul corporativo */
    color: #fff;
    padding: 10px;
    text-decoration: none;
    border-radius: 4px;
    font-weight: bold;
}

.fae-btn:hover {
    background: #144d99; /* Un tono un poco más oscuro para el hover */
    color: #fff;
    box-shadow: 0 4px 8px rgba(24, 92, 182, 0.3);
}

.fae-sin-resultados {
    grid-column: 1 / -1;
    text-align: center;
    padding: 40px;
    background: #fdfdfd;
    border: 1px dashed #ccc;
}

/* Modo Móvil */
@media (max-width: 768px) {

    .fae-columna-filtros,
    .fae-columna-resultados {
        flex: 0 0 100%;
    }
}