         :root {
            --primary: #2563eb;
            --primary-dark: #1d4ed8;
            --secondary: rgba(34, 52, 112, 1);
            /* --secondary: #0f172a; */
            --accent: #f59e0b;
            --light: #f8fafc;
            --gray: #64748b;
            --gray-light: #e2e8f0;
            --danger: #ef4444;
            --success: #10b981;
            --border-radius: 8px;
            --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
            --transition: all 0.3s ease;
        }

        /* Reset y estilos base */
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
        }

        body {
            background-color: #f1f5f9;
            color: var(--secondary);
            line-height: 1.6;
        }

        a {
            text-decoration: none;
            color: inherit;
        }

        ul {
            list-style: none;
        }

        /* Header principal */
        header {
            background-color: white;
            box-shadow: var(--shadow);
            position: sticky;
            top: 0;
            z-index: 100;
        }

        .principalheader {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 1rem 2rem;
            max-width: 1400px;
            margin: 0 auto;
        }

        .logo {
            width: 20%;
            display: flex;
            align-items: center;
        }

        .logo img {
            height: 40px;
        }

        .buscador {
            width: 60%;
            position: relative;
        }

        .buscador input {
            width: 100%;
            padding: 0.75rem 1rem 0.75rem 2.5rem;
            border: 1px solid var(--gray-light);
            border-radius: var(--border-radius);
            font-size: 1rem;
            transition: var(--transition);
        }

        .buscador input:focus {
            outline: none;
            border-color: var(--primary);
            box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
        }

        .buscador i {
            position: absolute;
            left: 0.75rem;
            top: 50%;
            transform: translateY(-50%);
            color: var(--gray);
        }

        .user-actions {
            width: 20%;
            display: flex;
            justify-content: flex-end;
            gap: 1.5rem;
        }

        .user-actions a {
            display: flex;
            flex-direction: column;
            align-items: center;
            font-size: 0.85rem;
            transition: var(--transition);
            position: relative;
        }

        .user-actions a:hover {
            color: var(--primary);
        }

        .user-actions i {
            font-size: 1.25rem;
            margin-bottom: 0.25rem;
        }

        .cart-count {
            position: absolute;
            top: -5px;
            right: -5px;
            background-color: var(--danger);
            color: white;
            border-radius: 50%;
            width: 18px;
            height: 18px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 0.7rem;
            font-weight: bold;
        }

        .datosarriba {
            display: flex;
            align-items: center;
            justify-content: space-evenly;
            background: #01afda;
            color: white;
            font-weight: 700;
        }
        .parte1 {
            display: flex;
            font-size: 10px;
        }
        .parte2 {
            text-align: center;
            font-size: 12px;
            font-weight: 500;
        }

        /* Menú de navegación */
        nav {
            background-color: var(--secondary);
            color: white;
            position: sticky;
            top: 118px;
            z-index: 11;
            display: flex;
        }

        .contenedormenu {
            max-width: 1400px;
            margin: 0 auto;
            display: flex;
            align-items: center;
            padding: 0 2rem;
            overflow: auto;
        }

        .contenedormenu > li {
            padding: 1rem 1.5rem;
            cursor: pointer;
            transition: var(--transition);
            position: relative;
        }

        .contenedormenu > li:hover {
            background-color: rgba(255, 255, 255, 0.1);
        }

        .contenedormenu > li:first-child {
            display: flex;
            align-items: center;
            gap: 0.5rem;
            background-color: var(--primary);
        }

        .fa-solid, .fas {
            font-weight: 900;
            color: black;
        }
        /* Drawer de categorías */
        .categories-drawer {
            position: fixed;
            top: 0;
            left: -350px;
            width: 350px;
            height: 100vh;
            background-color: white;
            box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
            z-index: 1000;
            transition: var(--transition);
            overflow-x: hidden;
            color: var(--secondary);
            display: flex;
        }

        .categories-drawer.active {
            left: 0;
        }

        .drawer-panel {
            width: 100%;
            flex-shrink: 0;
            transition: transform 0.3s ease;
        }

        .drawer-panel.hidden {
            transform: translateX(-100%);
        }

        .drawer-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 0.9rem;
            border-bottom: 1px solid var(--gray-light);
            background-color: var(--primary);
            color: white;
            border-radius: 100px;
            margin: 20px;
        }

        .drawer-header h3 {
            font-weight: 600;
        }

        .close-drawer {
            background: none;
            border: none;
            color: white;
            font-size: 1.5rem;
            cursor: pointer;
            transition: var(--transition);
        }

        .close-drawer:hover {
            transform: scale(1.1);
        }

        .categories-list {
            padding: 1rem 0;
        }

        .category-item {
            padding: 0.75rem 1.5rem;
            cursor: pointer;
            display: flex;
            justify-content: space-between;
            align-items: center;
            transition: var(--transition);
            border-bottom: 1px solid var(--gray-light);
        }

        .category-item:hover {
            background-color: var(--gray-light);
        }

        .category-item.active {
            background-color: var(--primary);
            color: white;
        }

        /* Subcategorías */
        .subcategories-panel {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-color: white;
            transform: translateX(100%);
            transition: transform 0.3s ease;
            overflow-y: auto;
        }

        .subcategories-panel.active {
            transform: translateX(0);
        }

        .subcategories-header {
            display: flex;
            align-items: center;
            padding: 0.9rem;
            border-bottom: 1px solid var(--gray-light);
            background-color: var(--primary);
            color: white;
            border-radius: 100px;
            margin: 20px;
        }

        .back-button {
            background: none;
            border: none;
            color: white;
            font-size: 1.2rem;
            margin-right: 1rem;
            cursor: pointer;
            transition: var(--transition);
        }

        .back-button:hover {
            transform: scale(1.1);
        }

        .subcategories-list {
            padding: 1rem 0;
        }

        .subcategory-item {
            padding: 0.75rem 1.5rem;
            cursor: pointer;
            transition: var(--transition);
            border-bottom: 1px solid var(--gray-light);
        }

        .subcategory-item:hover {
            background-color: var(--gray-light);
            color: var(--primary);
        }

        .subcategory-item.show-all-option {
            background: var(--primary-light);
            border-left: 4px solid var(--primary);
            font-weight: 600;
            color: var(--primary-dark);
        }

        .subcategory-item.show-all-option i {
            margin-right: 0.5rem;
            color: var(--primary);
        }

        .subcategory-divider {
            height: 1px;
            background: var(--gray-light);
            margin: 0.5rem 0;
            opacity: 0.5;
        }

        .subcategory-item:hover {
            background: var(--gray-light);
            transform: translateX(5px);
            transition: all 0.2s ease;
        }

        /* Drawer del carrito */
        .cart-drawer {
            position: fixed;
            top: 0;
            right: -400px;
            width: 400px;
            height: 100vh;
            background-color: white;
            box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
            z-index: 1000;
            transition: var(--transition);
            display: flex;
            flex-direction: column;
        }

        .cart-drawer.active {
            right: 0;
        }

        .cart-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 1.5rem;
            border-bottom: 1px solid var(--gray-light);
        }

        .cart-header h3 {
            font-weight: 600;
        }

        .cart-content {
            flex: 1;
            padding: 1rem;
            overflow-y: auto;
        }

        .cart-item {
            display: flex;
            padding: 1rem 0;
            border-bottom: 1px solid var(--gray-light);
        }

        .cart-item-image {
            width: 80px;
            height: 80px;
            background-color: var(--gray-light);
            border-radius: var(--border-radius);
            margin-right: 1rem;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .cart-item-details {
            flex: 1;
        }

        .cart-item-title {
            font-weight: 600;
            margin-bottom: 0.25rem;
        }

        .cart-item-price {
            color: var(--primary);
            font-weight: 600;
            margin-bottom: 0.5rem;
        }

        .cart-item-actions {
            display: flex;
            align-items: center;
            gap: 0.5rem;
        }

        .quantity-btn {
            width: 28px;
            height: 28px;
            border-radius: 50%;
            border: 1px solid var(--gray-light);
            background: white;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            transition: var(--transition);
        }

        .quantity-btn:hover {
            background-color: var(--gray-light);
        }

        .quantity {
            margin: 0 0.5rem;
            font-weight: 600;
        }

        .remove-item {
            color: var(--danger);
            margin-left: auto;
            cursor: pointer;
            transition: var(--transition);
        }

        .remove-item:hover {
            transform: scale(1.1);
        }

        .cart-footer {
            padding: 1.5rem;
            border-top: 1px solid var(--gray-light);
        }

        .cart-total {
            display: flex;
            justify-content: space-between;
            margin-bottom: 1rem;
            font-weight: 600;
            font-size: 1.1rem;
        }

        .checkout-btn {
            width: 100%;
            padding: 0.75rem;
            background-color: var(--primary);
            color: white;
            border: none;
            border-radius: var(--border-radius);
            font-size: 1rem;
            font-weight: 600;
            cursor: pointer;
            transition: var(--transition);
        }

        .checkout-btn:hover {
            background-color: var(--primary-dark);
        }

        .empty-cart {
            text-align: center;
            padding: 2rem;
            color: var(--gray);
        }

        .empty-cart i {
            font-size: 3rem;
            margin-bottom: 1rem;
            opacity: 0.5;
        }

        /* Overlay para drawers */
        .overlay {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0, 0, 0, 0.5);
            z-index: 999;
            display: none;
        }

        .overlay.active {
            display: block;
        }

        /* Contenido principal */
        .main-content {
            max-width: 1400px;
            margin: 2rem auto;
            padding: 0 2rem;
        }

        .hero {
            background: linear-gradient(135deg, var(--primary), var(--primary-dark));
            color: white;
            border-radius: var(--border-radius);
            padding: 3rem 2rem;
            margin-bottom: 2rem;
            text-align: center;
        }

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

        .hero p {
            font-size: 1.2rem;
            max-width: 600px;
            margin: 0 auto 1.5rem;
        }

        .cta-button {
            display: inline-block;
            padding: 0.75rem 2rem;
            background-color: white;
            color: var(--primary);
            border-radius: var(--border-radius);
            font-weight: 600;
            transition: var(--transition);
        }

        .cta-button:hover {
            transform: translateY(-2px);
            box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
        }

        .products-section {
            margin-bottom: 2rem;
        }

        .section-title {
            font-size: 1.5rem;
            margin-bottom: 1rem;
            padding-bottom: 0.5rem;
            border-bottom: 2px solid var(--primary);
            display: inline-block;
        }

        .products-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
            gap: 1.5rem;
        }

        .product-card {
            background-color: white;
            border-radius: var(--border-radius);
            overflow: hidden;
            box-shadow: var(--shadow);
            transition: var(--transition);
        }

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

        .product-image {
            height: 200px;
            background-color: var(--gray-light);
            display: flex;
            align-items: center;
            justify-content: center;
            color: var(--gray);
            position: relative;
            overflow: hidden;
        }

        .product-image img {
            width: 60%;
            display: block;
            height: 100%;
            margin: auto;
            object-fit: cover;
            transition: var(--transition);
        }

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

        .product-stock {
            position: absolute;
            top: 10px;
            right: 10px;
            background-color: var(--success);
            color: white;
            padding: 0.25rem 0.5rem;
            border-radius: var(--border-radius);
            font-size: 0.8rem;
            font-weight: 600;
            z-index: 2;
        }

        .product-info {
            padding: 1rem;
        }

        .product-title {
            font-weight: 600;
            margin-bottom: 0.5rem;
            height: auto;
            overflow: hidden;
            display: -webkit-box;
            -webkit-line-clamp: 2;
            -webkit-box-orient: vertical;
            font-size: 15px;
        }

        .product-title a {
            color: inherit;
            transition: var(--transition);
        }

        .product-title a:hover {
            color: var(--primary);
        }

        .product-price {
            color: var(--primary);
            font-weight: 600;
            font-size: 1.2rem;
            margin-bottom: 0.5rem;
        }

        .product-rating {
            display: none;
            color: var(--accent);
            margin-bottom: 1rem;
        }

        .add-to-cart {
            width: 100%;
            padding: 0.5rem;
            background-color: var(--primary);
            color: white;
            border: none;
            border-radius: var(--border-radius);
            cursor: pointer;
            transition: var(--transition);
            font-weight: 600;
        }

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

        .add-to-cart:disabled {
            background-color: var(--gray);
            cursor: not-allowed;
        }

        /* Footer */
        footer {
            background-color: var(--secondary);
            color: white;
            padding: 3rem 2rem;
        }

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

        .footer-column h3 {
            margin-bottom: 1rem;
            font-size: 1.2rem;
        }

        .footer-column ul li {
            margin-bottom: 0.5rem;
        }

        .footer-column ul li a:hover {
            color: var(--accent);
        }

        .social-icons {
            display: flex;
            gap: 1rem;
            margin-top: 1rem;
        }

        .social-icons a {
            display: flex;
            align-items: center;
            justify-content: center;
            width: 36px;
            height: 36px;
            background-color: rgba(255, 255, 255, 0.1);
            border-radius: 50%;
            transition: var(--transition);
        }

        .social-icons a:hover {
            background-color: var(--primary);
            transform: translateY(-2px);
        }

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

        /* Responsive */
        @media (max-width: 768px) {
            .principalheader {
                padding: 1rem;
            }

            .logo {
                width: 30%;
            }

            .buscador {
                width: 50%;
            }

            .user-actions {
                width: 20%;
            }

            .user-actions span {
                display: none;
            }

            .contenedormenu {
                padding: 0 1rem;
            }

            .contenedormenu > li {
                padding: 1rem;
                font-size: 0.9rem;
            }

            .categories-drawer {
                width: 300px;
            }

            .cart-drawer {
                width: 100%;
            }

            .main-content {
                padding: 0 1rem;
            }

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

            .hero p {
                font-size: 1rem;
            }
            .datosarriba {
                height: 60px;
            }nav {
                top: 138px;
            }
        }