﻿:root {
    --primary-color: #2c3e50;
    --secondary-color: #e74c3c;
    --accent-color: #3498db;
    --light-color: #ecf0f1;
    --dark-color: #2c3e50;
    --text-color: #333;
    --text-light: #7f8c8d;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-color);
    background-color: #f9f9f9;
    line-height: 1.6;
}

/* Header Styles */
header {
    background-color: #F79CBC;
    color: white;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

    .logo img {
        height: 40px;
        width: auto;
    }

.logo-text {
    font-weight: 700;
    font-size: 1.5rem;
}

    .logo-text span {
        color: black;
    }

/* Navigation */
nav ul {
    display: flex;
    list-style: none;
}

    nav ul li {
        margin-left: 20px;
    }

        nav ul li a {
            color: white;
            text-decoration: none;
            font-weight: 500;
            padding: 5px 10px;
            border-radius: 4px;
            transition: var(--transition);
        }

            nav ul li a:hover {
                background-color: #F9ABC6;
            }

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('https://images.unsplash.com/photo-1555529669-e69e7aa0ba9a?ixlib=rb-1.2.1&auto=format&fit=crop&w=1350&q=80');
    background-size: cover;
    background-position: center;
    color: white;
    padding: 5rem 1rem;
    text-align: center;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.btn {
    display: inline-block;
    background-color: var(--secondary-color);
    color: white;
    padding: 10px 20px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

    .btn:hover {
        background-color: #c0392b;
        transform: translateY(-2px);
    }

/* Main Content */
.main-content {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 20px;
}

.section-title {
    text-align: center;
    margin-bottom: 2rem;
    position: relative;
}

    .section-title::after {
        content: '';
        display: block;
        width: 80px;
        height: 4px;
        background-color: var(--secondary-color);
        margin: 10px auto;
    }

/* Catalog Styles (your existing styles with some improvements) */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.catalog-header {
    padding: 2rem 0;
    text-align: center;
}

.company-logo {
    max-height: 80px;
    margin-bottom: 1rem;
}

.catalog-title {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.catalog-subtitle {
    color: var(--text-light);
    font-size: 1.1rem;
}

.filter-section {
    margin-bottom: 2rem;
    background: white;
    padding: 1rem;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.search-container {
    position: relative;
    margin-bottom: 1rem;
}

.search-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-light);
}

.search-input {
    width: 100%;
    padding: 12px 20px 12px 40px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    transition: var(--transition);
}

    .search-input:focus {
        outline: none;
        border-color: var(--accent-color);
        box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.2);
    }

.filter-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.filter-tag {
    background: white;
    border: 1px solid #ddd;
    padding: 8px 15px;
    border-radius: 20px;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.9rem;
}

    .filter-tag.active {
        background-color: #0066cc;
        color: white;
    }

    .filter-tag:hover {
        background-color: #f5f5f5;
    }

    .filter-tag.active:hover {
        background-color: var(--dark-color);
    }

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 2rem;
}

.product-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    opacity: 0;
    transform: translateY(20px);
}

    .product-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    }

.product-image-container {
    position: relative;
    height: 100%;
    overflow: hidden;
}

.product-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.product-card:hover .product-image {
    transform: scale(1.05);
}

.product-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 500;
    color: white;
}

.badge-stock-high {
    background-color: #27ae60;
}

.badge-stock-medium {
    background-color: #f39c12;
}

.badge-stock-low {
    background-color: #e74c3c;
}

.product-info {
    padding: 15px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.product-title {
    font-size: 1.1rem;
    margin-bottom: 5px;
    color: var(--primary-color);
}

.product-description {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 10px;
    flex-grow: 1;
}

.product-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.product-price {
    font-weight: 700;
    color: var(--secondary-color);
    font-size: 1.1rem;
}

.product-stock {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.9rem;
}

.stock-high {
    color: #27ae60;
}

.stock-medium {
    color: #f39c12;
}

.stock-low {
    color: #e74c3c;
}

.add-to-cart-btn {
    display: block;
    text-align: center;
    background-color: #F79CBC;
    color: white;
    padding: 10px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    margin-top: auto;
}

    .add-to-cart-btn:hover {
        background-color: var(--dark-color);
    }

    .add-to-cart-btn:disabled {
        background-color: #95a5a6;
        cursor: not-allowed;
    }

    .add-to-cart-btn i {
        margin-right: 5px;
    }

.no-products {
    text-align: center;
    padding: 3rem 0;
    background: white;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

    .no-products i {
        font-size: 3rem;
        color: var(--text-light);
        margin-bottom: 1rem;
    }

    .no-products h3 {
        margin-bottom: 0.5rem;
        color: var(--primary-color);
    }

/* Features Section */
.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.feature-card {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

    .feature-card:hover {
        transform: translateY(-5px);
    }

.feature-icon {
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.feature-title {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

/* Footer */
footer {
    background-color: var(--dark-color);
    color: white;
    padding: 3rem 0 1rem;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 1rem;
}

    .footer-logo img {
        height: 40px;
    }

.footer-logo-text {
    font-weight: 700;
    font-size: 1.2rem;
}

    .footer-logo-text span {
        color: var(--secondary-color);
    }

.footer-about p {
    margin-bottom: 1rem;
    color: #bdc3c7;
}

.social-links {
    display: flex;
    gap: 15px;
}

    .social-links a {
        color: white;
        font-size: 1.2rem;
        transition: var(--transition);
    }

        .social-links a:hover {
            color: var(--secondary-color);
        }

.footer-links h3, .footer-contact h3 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    position: relative;
    padding-bottom: 10px;
}

    .footer-links h3::after, .footer-contact h3::after {
        content: '';
        position: absolute;
        left: 0;
        bottom: 0;
        width: 40px;
        height: 2px;
        background-color: var(--secondary-color);
    }

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #bdc3c7;
    text-decoration: none;
    transition: var(--transition);
}

    .footer-links a:hover {
        color: var(--secondary-color);
        padding-left: 5px;
    }

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 15px;
    color: #bdc3c7;
}

    .contact-item i {
        color: var(--secondary-color);
        margin-top: 3px;
    }

.copyright {
    text-align: center;
    padding-top: 2rem;
    margin-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #bdc3c7;
    font-size: 0.9rem;
}

/* Mobile Styles */
@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        text-align: center;
    }

    nav {
        width: 100%;
        margin-top: 1rem;
    }

        nav ul {
            flex-direction: column;
            align-items: center;
        }

            nav ul li {
                margin: 5px 0;
            }

    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .products-grid {
        grid-template-columns: 1fr;
    }

    .filter-tags {
        justify-content: center;
    }
}

/* Animation Classes */
.fade-in {
    opacity: 0;
    animation: fadeIn 0.6s forwards;
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

.slide-up {
    transform: translateY(20px);
    opacity: 0;
    animation: slideUp 0.6s forwards;
}

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

.delay-1 {
    animation-delay: 0.2s;
}

.delay-2 {
    animation-delay: 0.4s;
}

.delay-3 {
    animation-delay: 0.6s;
}



@media (max-width: 480px) {
    .header-container {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        position: relative;
    }


    nav {
        display: block;
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        background-color: #F79CBC;
        padding: 0;
        box-shadow: var(--shadow);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease-out;
    }

        nav.active {
            max-height: 300px;
            display: block;
        }

        nav ul {
            flex-direction: column;
            gap: 0.5rem;
        }

            nav ul li {
                margin: 10px 0;
            }

                nav ul li a {
                    display: block;
                    padding: 10px 15px;
                    border-radius: 4px;
                }

                nav ul li a:hover {
                    background-color: rgba(255, 255, 255, 0.2);
                }


    .mobile-menu-btn {
        display: block;
        z-index: 1001;
        transition: transform 0.3s ease;
    }

        .mobile-menu-btn.active {
            transform: rotate(90deg);
        }

    .hero {
        padding: 3rem 1rem;
    }

    .features {
        grid-template-columns: 1fr;
    }

    .footer-container {
        grid-template-columns: 1fr;
    }
}

/* Pagination Styles */
.pagination-container {
    margin-top: 2rem;
    display: flex;
    justify-content: center;
}

.pagination-nav {
    background-color: #fff;
    border-radius: 50px;
    padding: 0.5rem 1rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.pagination {
    display: flex;
    list-style: none;
    padding: 0;
    gap: 0.5rem;
    margin: 0;
    align-items: center;
}

.page-item {
    margin: 0 5px;
}

.page-link {
    padding: 0.5rem 1rem;
    border: 1px solid #ddd;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 4px;
    color: #0066cc;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

    .page-link:hover {
        background-color: #f0f0f0;
        color: #0066cc;
    }

.page-item.active .page-link {
    background-color: #0066cc;
    color: white;
    border-color: #0066cc;
}

.page-link i {
    font-size: 0.9rem;
}

/* Responsive Pagination */
@media (max-width: 768px) {
    .pagination {
        display: flex;
        flex-wrap: nowrap; /* Cambia de wrap a nowrap */
        overflow-x: auto; /* Permite scroll horizontal si es necesario */
        -webkit-overflow-scrolling: touch; /* Mejor scroll en iOS */
        padding-bottom: 5px; /* Espacio para el scroll */
    }

    .page-item {
        flex-shrink: 0; /* Evita que los items se encojan */
        margin: 0 3px; /* Reduce el margen */
    }

    .page-link {
        min-width: 36px;
        height: 36px;
        padding: 0.3rem;
        font-size: 0.8rem;
    }

    .pagination-container {
        margin-top: 2rem;
        display: flex;
        justify-content: center;
        width: 100%;
        overflow: visible; /* Asegúrate de que sea visible */
        padding: 10px 0; /* Añade espacio */
    }

    .pagination-nav {
        background-color: #fff;
        border-radius: 8px;
        padding: 0.5rem;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
        width: auto; /* Cambia de 100% a auto */
        max-width: 100%;
        max-height: 100%;
        overflow: visible;
        white-space: nowrap; /* Evita que los elementos se rompan en múltiples líneas */
    }

    .page-link:hover {
        background-color: #f0f0f0;
        color: #0066cc;
    }

    .page-item.active .page-link {
        background-color: #0066cc;
        color: white;
        border-color: #0066cc;
    }

    .page-link i {
        font-size: 0.9rem;
    }

}


@media (max-width: 480px) {
    .pagination {
        gap: 0.2rem;
    }

    .page-link {
        min-width: 30px;
        height: 30px;
        padding: 0.3rem;
        font-size: 0.8rem;
    }
}