@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Outfit:wght@700;800&display=swap');

:root {
    /* Brand Palette */
    --primary: #4ADE80;
    --primary-dark: #22C55E;
    --primary-light: #86EFAC;
    
    --secondary: #FF8C42;
    --secondary-dark: #F97316;
    --secondary-light: #FDBA74;
    
    --accent: #3B82F6;
    --accent-light: #60A5FA;
    
    --success: #10B981;
    --warning: #FCD34D;
    --danger: #EF4444;
    --info: #06B6D4;
    
    /* Neutrals */
    --bg: #F8FAFC;
    --card-bg: #FFFFFF;
    --text-main: #1E293B;
    --text-muted: #64748B;
    --text-muted-light: #94A3B8;
    --white: #ffffff;
    
    /* Effects */
    --shadow: 0 4px 20px rgba(74, 222, 128, 0.15);
    --shadow-hover: 0 10px 30px rgba(74, 222, 128, 0.2);
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --glass: rgba(255, 255, 255, 0.85);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background: var(--bg);
    color: var(--text-main);
    line-height: 1.6;
}

h1, h2, h3, h4 {
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
}

/* Header */
header {
    position: sticky;
    top: 0;
    background: var(--glass);
    backdrop-filter: blur(12px);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    z-index: 1000;
    padding: 1rem 0;
}

nav {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 120px;
    transition: var(--transition);
}

.logo img:hover { transform: scale(1.05); }

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-main);
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition);
}

.nav-links a:hover { color: var(--primary); }

.cart-icon-wrapper {
    position: relative;
    cursor: pointer;
    background: var(--primary);
    padding: 12px;
    border-radius: 12px;
    transition: var(--transition);
}

.cart-icon-wrapper:hover { transform: scale(1.05); background: var(--primary-dark); }
.cart-icon { font-size: 20px; color: white; }

.cart-count {
    position: absolute;
    top: -6px;
    right: -6px;
    background: var(--secondary);
    color: white;
    border-radius: 50%;
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 800;
    border: 2px solid white;
}

/* Hero */
.hero {
    padding: 100px 1.5rem;
    background: linear-gradient(135deg, #4ADE80 0%, #3B82F6 100%);
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
}

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

.hero h1 {
    font-size: clamp(2.5rem, 6vw, 4rem);
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.hero p {
    font-size: clamp(1.1rem, 2vw, 1.4rem);
    opacity: 0.9;
    margin-bottom: 2.5rem;
}

.btn-hero {
    background: var(--secondary);
    color: white;
    padding: 18px 45px;
    border-radius: 14px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    display: inline-block;
    box-shadow: 0 5px 25px rgba(255, 140, 66, 0.4);
    transition: var(--transition);
}

.btn-hero:hover { transform: translateY(-5px); box-shadow: 0 10px 30px rgba(255, 140, 66, 0.6); }

.trust-badges {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 4rem;
    flex-wrap: wrap;
}

.badge {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    padding: 12px 24px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    font-weight: 600;
}

/* Catalog Segments */
.category-hero {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 20px;
    margin-bottom: 2rem;
}

.container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin: 80px 0 40px;
    color: var(--text-main);
}

.category-tabs {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 50px;
    flex-wrap: wrap;
}

.tab {
    padding: 14px 30px;
    border: 2px solid var(--primary-light);
    background: white;
    border-radius: 50px;
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    color: var(--text-main);
}

.tab.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

/* Products Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2.5rem;
    margin-bottom: 100px;
}

.product-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 2px solid transparent;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
    border-color: var(--primary);
}

.product-image-container {
    width: 100%;
    padding-top: 100%; /* 1:1 Aspect Ratio */
    position: relative;
    background: #ffffff; /* Fondo blanco uniforme */
}

.product-image {
    position: absolute;
    top: 5%;
    left: 5%;
    width: 90%;
    height: 90%;
    object-fit: contain;
    mix-blend-mode: multiply;
}

.product-info { padding: 1.5rem; }
.product-name { font-size: 1.15rem; margin-bottom: 0.25rem; }
.product-quantity { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 1.25rem; }

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

.product-price {
    font-size: 1.5rem;
    color: var(--primary-dark);
    font-weight: 800;
}

.add-btn {
    background: var(--primary);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 10px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
}

.add-btn:hover { background: var(--primary-dark); transform: scale(1.05); }

/* Sidebar Cart */
.cart-sidebar {
    position: fixed;
    top: 0;
    right: -450px;
    width: 450px;
    height: 100vh;
    background: white;
    box-shadow: -10px 0 40px rgba(0,0,0,0.1);
    z-index: 2000;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.cart-sidebar.open { right: 0; }

.cart-header {
    padding: 1.5rem;
    background: var(--primary);
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.cart-item {
    display: flex;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid #f1f5f9;
    align-items: center;
}

.cart-item-img { width: 60px; height: 60px; border-radius: 8px; object-fit: cover; }
.cart-item-info { flex: 1; }
.cart-qty-ctrl { display: flex; align-items: center; gap: 10px; margin-top: 5px; }

.qty-btn {
    width: 24px;
    height: 24px;
    border-radius: 6px;
    border: 1px solid var(--primary-light);
    background: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
}

.cart-footer { padding: 1.5rem; border-top: 2px solid #f1f5f9; }
.cart-total { font-size: 1.6rem; font-weight: 800; text-align: center; margin-bottom: 1.5rem; color: var(--secondary-dark); }

.btn-checkout-mp {
    background: linear-gradient(135deg, #009EE3 0%, #0072CE 100%);
    color: white;
    width: 100%;
    height: 56px;
    border: none;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    cursor: pointer;
    transition: var(--transition);
    margin-bottom: 12px;
}

.btn-checkout-mp:hover { transform: translateY(-3px); box-shadow: 0 8px 20px rgba(0, 114, 206, 0.3); }
.btn-checkout-mp:disabled { filter: grayscale(1); opacity: 0.5; cursor: not-allowed; }

.btn-whatsapp {
    background: #25D366;
    color: white;
    width: 100%;
    height: 56px;
    border: none;
    border-radius: 12px;
    font-weight: 700;
    cursor: pointer;
}

/* Footer */
footer {
    background: var(--text-main);
    color: white;
    padding: 80px 0 40px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
    margin-bottom: 60px;
}

.footer-logo img { height: 120px; margin-bottom: 1.5rem; }
.footer-logo-img {
    filter: invert(1) grayscale(1) brightness(1.5);
    mix-blend-mode: screen;
}
.footer-title { font-size: 1.2rem; margin-bottom: 1.5rem; border-left: 4px solid var(--primary); padding-left: 15px; }
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 10px; }
.footer-links a { color: var(--text-muted-light); text-decoration: none; transition: 0.2s; }
.footer-links a:hover { color: white; padding-left: 5px; }

.footer-bottom {
    text-align: center;
    padding-top: 40px;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: var(--text-muted-light);
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 1024px) {
    .products-grid { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
}

@media (max-width: 768px) {
    .nav-links { display: none; }
    .cart-sidebar { width: 100%; right: -100%; }
    .hero { padding: 60px 1.5rem; }
}

@media (max-width: 480px) {
    .products-grid { grid-template-columns: 1fr; }
}

/* Overlay */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0,0,0,0.5);
    visibility: hidden;
    opacity: 0;
    transition: 0.3s;
    z-index: 1500;
}

.overlay.show { visibility: visible; opacity: 1; }

/* Toast */
.toast {
    position: fixed;
    bottom: 25px;
    right: 25px;
    background: white;
    color: var(--text-main);
    padding: 16px 24px;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    border-left: 6px solid var(--primary);
    transform: translateY(100px);
    transition: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 5000;
}

.toast.show { transform: translateY(0); }
