/* ===== RESET & GLOBAL ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', 'Segoe UI', sans-serif;
    background: #f9fafb;
    color: #1f2937;
    line-height: 1.5;
    scroll-behavior: smooth;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ===== HEADER ===== */
.main-header {
    background: #0a9400;
    color: white;
    padding: 16px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.header-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.logo img {
    max-height: 55px;
    transition: transform 0.2s;
}
.logo img:hover {
    transform: scale(1.02);
}
.logo h1 {
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.desktop-nav ul {
    display: flex;
    list-style: none;
    gap: 28px;
    align-items: center;
}
.desktop-nav a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: opacity 0.2s;
    font-size: 0.95rem;
}
.desktop-nav a:hover {
    opacity: 0.8;
}
.user-greeting {
    font-weight: 600;
    background: rgba(255,255,255,0.2);
    padding: 6px 12px;
    border-radius: 40px;
}
.cart-icon {
    position: relative;
    font-size: 1.3rem;
}
.cart-count {
    background: #ff9800;
    border-radius: 50%;
    padding: 2px 6px;
    font-size: 0.7rem;
    font-weight: bold;
    position: absolute;
    top: -10px;
    right: -14px;
    min-width: 20px;
    text-align: center;
}

/* ===== BANNER ===== */
.banner {
    border-radius: 28px;
    margin: 32px 0;
    padding: 80px 32px;
    background-size: cover;
    background-position: center;
    box-shadow: 0 12px 30px rgba(0,0,0,0.1);
}
.banner-content {
    max-width: 600px;
}
.banner h2 {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 20px;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.2);
}
.btn {
    display: inline-block;
    background: #ff9800;
    color: white;
    padding: 12px 32px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}
.btn-primary {
    background: #ff9800;
    box-shadow: 0 4px 12px rgba(255,152,0,0.3);
}
.btn:hover {
    background: #e68900;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.15);
}
.btn-small {
    padding: 8px 20px;
    font-size: 0.85rem;
}

/* ===== TRACKING PEDIDO ===== */
.order-tracking-card {
    background: white;
    border-radius: 24px;
    padding: 24px;
    margin: 32px 0;
    box-shadow: 0 8px 24px rgba(0,0,0,0.05);
    border: 1px solid #edf2f7;
}
.order-tracking-card h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 16px;
    color: #0a9400;
}
.status-stepper {
    display: flex;
    justify-content: space-between;
    margin: 24px 0 20px;
}
.step {
    text-align: center;
    flex: 1;
}
.step-icon {
    width: 40px;
    height: 40px;
    line-height: 40px;
    border-radius: 50%;
    background: #e2e8f0;
    color: #475569;
    font-weight: bold;
    margin: 0 auto 8px;
    transition: all 0.2s;
}
.step.completed .step-icon {
    background: #0a9400;
    color: white;
}
.step.active .step-icon {
    background: #ff9800;
    color: white;
    box-shadow: 0 0 0 4px rgba(255,152,0,0.3);
}
.step-label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.tracking-message {
    text-align: center;
    font-weight: 500;
    background: #f1f5f9;
    padding: 12px;
    border-radius: 40px;
}

/* ===== PRODUCTOS DESTACADOS (GRID) ===== */
.products-section {
    margin: 60px 0;
}
.products-section h2 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 32px;
    position: relative;
    display: inline-block;
}
.products-section h2:after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60%;
    height: 4px;
    background: #ff9800;
    border-radius: 2px;
}
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}
.product-card {
    background: white;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0,0,0,0.05);
    transition: all 0.25s ease;
}
.product-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 30px -12px rgba(0,0,0,0.15);
}
.product-image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 1 / 1;
}
.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}
.product-card:hover .product-image img {
    transform: scale(1.05);
}
.product-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: #ff9800;
    color: white;
    font-size: 0.7rem;
    font-weight: bold;
    padding: 4px 10px;
    border-radius: 30px;
    z-index: 2;
}
.product-info {
    padding: 20px;
}
.product-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 8px;
}
.product-price {
    margin: 12px 0;
}
.old-price {
    text-decoration: line-through;
    color: #94a3b8;
    font-size: 0.9rem;
    margin-right: 8px;
}
.current-price {
    font-size: 1.4rem;
    font-weight: 800;
    color: #0a9400;
}
.add-to-cart {
    background: #0a9400;
    color: white;
    border: none;
    width: 100%;
    padding: 12px;
    border-radius: 60px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
}
.add-to-cart:hover {
    background: #067a00;
    transform: scale(0.98);
}

/* ===== VISTA MÓVIL / TABLETA (CATEGORÍAS Y LISTA) ===== */
.mobile-tablet-view {
    display: none;
}
.my-order-block {
    display: none;
    background: #fff9ef;
    border-radius: 24px;
    padding: 20px;
    margin: 30px 0;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}
.my-order-block h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: #0a9400;
    margin-bottom: 12px;
}
.order-info p {
    margin: 8px 0;
}
.exchange-rate {
    font-size: 0.9rem;
    color: #475569;
}
.categories-section h2,
.featured-list h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 25px 0 15px;
}
.category-block {
    margin-bottom: 20px;
}
.category-block h3 {
    background: #eef2ff;
    padding: 10px 16px;
    border-radius: 40px;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 12px;
}
.category-product,
.featured-list-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #e2e8f0;
}
.prod-name,
.item-name {
    font-weight: 500;
    flex: 1;
}
.prod-price,
.item-price {
    font-weight: 700;
    color: #0a9400;
    margin: 0 15px;
}
.add-to-cart.small {
    width: auto;
    padding: 6px 16px;
    font-size: 0.75rem;
    background: #0a9400;
}

/* ===== FOOTER PROFESIONAL ===== */
.main-footer {
    background: #0f172a;
    color: #cbd5e1;
    padding: 48px 0 24px;
    margin-top: 80px;
}
.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}
.footer-col h4 {
    color: white;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 16px;
}
.footer-col p {
    margin: 8px 0;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 10px;
}
.payment-icons i {
    font-size: 2rem;
    margin-right: 16px;
    color: white;
    transition: transform 0.2s;
}
.payment-icons i:hover {
    transform: scale(1.1);
}
.legal-links {
    list-style: none;
}
.legal-links li {
    margin: 10px 0;
}
.legal-links a {
    color: #cbd5e1;
    text-decoration: none;
    transition: color 0.2s;
}
.legal-links a:hover {
    color: #ff9800;
}
.footer-bottom {
    text-align: center;
    padding-top: 24px;
    border-top: 1px solid #334155;
    font-size: 0.8rem;
}

/* ===== NAVEGACIÓN INFERIOR (MÓVIL) ===== */
.mobile-bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    justify-content: space-around;
    padding: 12px 0;
    box-shadow: 0 -4px 12px rgba(0,0,0,0.1);
    z-index: 1000;
}
.mobile-bottom-nav a {
    text-align: center;
    color: #64748b;
    text-decoration: none;
    font-size: 0.7rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}
.mobile-bottom-nav a i {
    font-size: 1.3rem;
}
.mobile-bottom-nav a.active {
    color: #0a9400;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .mobile-tablet-view {
        display: block;
    }
    .products-section .desktop-grid {
        display: none;
    }
    .my-order-block {
        display: block;
    }
    .banner h2 {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .desktop-nav {
        display: none;
    }
    .header-flex {
        justify-content: center;
    }
    .banner {
        padding: 50px 20px;
    }
    .banner h2 {
        font-size: 1.6rem;
    }
    .products-grid {
        grid-template-columns: 1fr;
    }
    .mobile-bottom-nav {
        display: flex;
    }
    body {
        padding-bottom: 70px;
    }
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .payment-icons i {
        margin: 0 8px;
    }
    .footer-col p {
        justify-content: center;
    }
    .category-product,
    .featured-list-item {
        flex-wrap: wrap;
        gap: 8px;
    }
}