
/* ===========================================
   ESTILOS izquieda
    =========================================== */
    /* Estilos para la sección de filtros lateral */
.filters-sidebar {
    background: #ffffff;
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    margin-bottom: 20px;
    position: sticky;
    margin-top: 25px;
    min-width: 250px;
    position: relative;
    overflow: hidden;
}

.filter-section {
    margin-bottom: 30px;
}

.filter-section:last-child {
    margin-bottom: 0;
}

.filter-title {
    font-family: 'Bahnschrift', sans-serif;
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.filter-title i {
    color: #4A90E2;
    font-size: 16px;
}

/* Estilos para las categorías */
.category-filter {
    margin-bottom: 15px;
}

.category-item-filter {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    padding: 8px 0;
}

.category-checkbox {
    width: 16px;
    height: 16px;
    margin-right: 10px;
    cursor: pointer;
    accent-color: #4A90E2;
}

.category-label {
    font-family: 'Bahnschrift', sans-serif;
    font-size: 14px;
    color: #666;
    cursor: pointer;
    margin: 0;
    user-select: none;
}

.category-label:hover {
    color: #4A90E2;
}

.view-all-btn {
    color: #4A90E2;
    text-decoration: none;
    font-family: 'Bahnschrift', sans-serif;
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: all 0.3s ease;
}

.view-all-btn:hover {
    color: #357ABD;
    text-decoration: none;
}

.view-all-btn i {
    font-size: 12px;
    transition: transform 0.3s ease;
}

.view-all-btn:hover i {
    transform: translateX(3px);
}

/* Estilos para el slider de descuentos */
.discount-slider-container {
    margin-top: 10px;
}

.discount-range-display {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    background: #4A90E2;
    border-radius: 25px;
    padding: 10px 20px;
}

.range-value {
    font-family: 'Bahnschrift', sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: white;
}

.slider-container {
    position: relative;
    margin-top: 10px;
}

.range-slider {
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background: #ddd;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
    cursor: pointer;
}

.range-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #4A90E2;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.range-slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #4A90E2;
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.range-slider::-webkit-slider-track {
    background: linear-gradient(to right, #4A90E2 0%, #4A90E2 40%, #ddd 40%, #ddd 100%);
    height: 6px;
    border-radius: 3px;
}

/* Responsive para la sidebar */
@media (max-width: 991px) {
    .filters-sidebar {
        position: static;
        margin-bottom: 30px;
    }
}

@media (max-width: 768px) {
    .filters-sidebar {
        padding: 15px;
    }
    
    .filter-title {
        font-size: 16px;
    }
    
    .discount-range-display {
        padding: 8px 15px;
    }
    
    .range-value {
        font-size: 14px;
    }
}


.container-acerca-de {
    background: #BFD5FF; /* Fondo azul claro */
    min-height: 100vh;
}

.dark-mode .container-acerca-de {
    background: #2b3546; /* Fondo oscuro para modo oscuro */
}

/* Mejoras responsive */
.main-container {
    background: #ffffff;
    border-radius: 1.5rem;
    box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.175);
    overflow: hidden;
    position: relative;
}

.logo-container {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 10;
}

.logo-container img {
    width: 100px;
    height: auto;
    max-width: 100px;
    max-height: 100px;
}

/* Breadcrumb styles */
.breadcrumb-container {
    background: #FCECBC;
    padding: 5px 25px;
    border-radius: 5px;
    display: inline-block;
    margin-bottom: 2rem;
    margin-top: 1rem;
}

.breadcrumb-text {
    font-family: 'Bahnschrift', sans-serif;
    font-weight: 400;
    font-size: 23px;
    color: #000;
    margin: 0;
}

/* Title styles */
.page-title {
    font-family: 'Bahnschrift', sans-serif;
    font-weight: 400;
    font-size: clamp(25px, 5vw, 38px);
    color: #020842;
    text-align: center;
    margin-bottom: 3rem;
    line-height: 1.2;
}

/* Loading styles */
.loading-container {
    text-align: center;
    padding: 3rem;
}

.loading-spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #F5BA07;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.error-message {
    color: #dc3545;
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    border-radius: 0.375rem;
    padding: 1rem;
    margin: 1rem 0;
    text-align: center;
}

/* ===========================================
   ESTILOS PARA TARJETAS DE DESCUENTO
   =========================================== */

/* Contenedor del tab content */
.tab-content {
    overflow: visible;
    padding-top: 30px;
}



/* Estilos para las tarjetas de descuento */
.discount-card {
    flex: 0 0 auto;
    width: 320px;
    min-height: 320px;
    max-height: none;
    padding: 20px 15px;
    background: white !important;
    border-radius: 15px;
    border: 1px solid #b9b5b5a1;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    cursor: pointer;
    user-select: none;
    margin: 0;
}

.discount-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.discount-percentage {
    padding: 10px 0;
    margin-bottom: 15px;
    text-align: center;
}

.discount-number {
    font-size: 28px;
    font-family: 'Arial', sans-serif;
    font-weight: 700;
    color: #FF4757;
    display: block;
    line-height: 1.2;
}

.description-text {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 20px;
    line-height: 1.4;
    text-align: center;
}

.brand-info {
    margin-bottom: 20px;
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.brand-logo {
    width: 200px;
    height: 60px;
    object-fit: contain;
    flex-shrink: 0;
}

.terms-info {
    margin-top: auto;
    padding-top: 15px;
    border-top: 1px solid #f0f0f0;
    text-align: center;
}

.terms-text {
    font-size: 0.8rem;
    color: #666;
    font-weight: 500;
    margin-bottom: 4px;
}

.additional-text {
    font-size: 0.75rem;
    color: #999;
    margin-bottom: 0;
}

/* ===========================================
   RESPONSIVE DESIGN PARA TARJETAS
   =========================================== */


/* Tablet */
@media (max-width: 768px) {

    
    .discount-number {
        font-size: 24px;
    }

}

/* Móvil */
@media (max-width: 576px) {

    
    .discount-number {
        font-size: 22px;
    }

}

/* Category grid styles */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.5rem;
    max-width: 90%;
    margin: 0 auto;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s ease;
    justify-items: center; /* Centra las tarjetas en el grid */
}

.categories-grid.loaded {
    opacity: 1;
    transform: translateY(0);
}


.category-item {
    background: #ffffff;
    border-radius: 10px;
    padding: 1.5rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
    width: 320px; /* Ancho fijo igual que las tarjetas de descuento */
    min-height: 200px; /* Altura mínima para consistencia */
}



.category-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(245, 186, 7, 0.1), transparent);
    transition: left 0.5s ease;
}



.category-item:hover::before {
    left: 100%;
}

.category-item1:hover::before {
    left: 100%;
}

.category-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    border-color: #F5BA07;
}


.category-icon {
    width: 200px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    font-size: 28px;
    color: #495057;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.category-icon img {
    width: 180px;
    height: 100px;
    align-items: center;
    justify-content: center;
    object-fit: contain;
    transition: transform 0.3s ease;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.category-item:hover .category-icon img {
    transform: translate(-50%, -50%) scale(1.1);
}

.category-name {
    font-family: 'Bahnschrift', sans-serif;
    font-weight: 500;
    font-size: 16px;
    color: #333;
    margin: 0;
    text-align: center;
    padding-top: 1rem;
    padding-bottom: 1rem;
    line-height: 1.3;
}

/* Responsive adjustments */
@media (max-width: 1200px) {
    .categories-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        max-width: 95%;
    }
    
    .category-item {
        width: 300px;
    }
}


@media (max-width: 768px) {
    .categories-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 1rem;
        max-width: 100%;
    }
    
    .category-item {
        width: 280px;
        padding: 1rem;
        min-height: 180px;
    }
    
    .category-icon {
        width: 150px;
        height: 90px;
    }
    
    .category-icon img {
        width: 130px;
        height: 70px;
    }
}

@media (max-width: 576px) {
    .categories-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
        max-width: 100%;
    }
    
    .category-item {
        width: 100%;
        max-width: 320px;
        margin: 0 auto;
        padding: 0.75rem;
        min-height: 160px;
    }
    
    .category-icon {
        width: 120px;
        height: 80px;
    }
    
    .category-icon img {
        width: 100px;
        height: 60px;
    }
}

@media (max-width: 480px) {
    .discount-card {
        width: 100%;
        max-width: 280px;
        padding: 15px;
    }
    .categories-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
        max-width: 100%;
    }
    
    .category-item {
        width: 100%;
        max-width: 280px;
        margin: 0 auto;
        padding: 0.75rem;
        min-height: 160px;
    }
    
    .category-icon {
        width: 120px;
        height: 80px;
    }
    
    .category-icon img {
        width: 100px;
        height: 60px;
    }
}

/* Para pantallas muy pequeñas */
@media (max-width: 340px) {
    .discount-card {
        width: 100%;
        max-width: 280px;
        padding: 15px;
    }
    .categories-grid {
        max-width: 90%;
        margin: 0;
        padding: 0 0.5rem;
    }
    
    .category-item {
        width: 100%;
        max-width: 250px;
    }
}


/* Animation classes */
.animate-fade-in {
    animation: fadeIn 0.8s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.animate-slide-up {
    animation: slideUp 0.6s ease-out;
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Staggered animation for category items */
.category-item {
    animation: fadeInUp 0.6s ease-out backwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}



.filter-controls {
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 25px;
    margin-bottom: 1rem;
}

.view-buttons {
    gap: 0.5rem;
}

.view-btn {
    width: 40px;
    height: 40px;
    border: 1px solid #dee2e6;
    background: white;
    border-radius: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.view-btn:hover {
    background: #e9ecef;
    border-color: #4A90E2;
}

.view-btn.active {
    background: #4A90E2;
    color: white;
    border-color: #4A90E2;
}

.dropdown-toggle {
    border-radius: 6px;
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}

.dropdown-menu {
    border-radius: 6px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border: 1px solid #dee2e6;
}

.dropdown-item {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    transition: background-color 0.2s ease;
}

.dropdown-item:hover {
    background-color: #f8f9fa;
}

.dropdown-item.active {
    background-color: #4A90E2;
    color: white;
}

.dropdown-item.active:hover {
    background-color: #357abd;
}
