/* ==========================================================================
   CSS Variables & Resets
   ========================================================================== */
:root {
    /* Colors */
    --primary-color: #4F8A22;
    --primary-dark: #3b6819;
    --primary-light: #eef5e9;
    --secondary-color: #0D1653;
    --secondary-light: #1a2c99;
    --text-color: #333333;
    --text-light: #666666;
    --bg-color: #ffffff;
    --bg-light: #f8fafc;
    --border-color: #e2e8f0;
    --white: #ffffff;
    --danger: #ef4444;
    
    /* Typography */
    --font-family: 'Nunito', sans-serif;
    
    /* Shadows & Effects */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-family);
    color: var(--text-color);
    background-color: var(--bg-color);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition-fast);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

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

.section {
    padding: 4rem 0;
}

.bg-light {
    background-color: var(--bg-light);
}

.section-title {
    text-align: center;
    font-size: 2rem;
    color: var(--secondary-color);
    margin-bottom: 2.5rem;
    font-weight: 800;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background-color: var(--primary-color);
    margin: 0.5rem auto 0;
    border-radius: 2px;
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-weight: 700;
    cursor: pointer;
    transition: all var(--transition-normal);
    border: none;
    gap: 0.5rem;
    font-size: 1rem;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
    box-shadow: 0 4px 14px 0 rgba(79, 138, 34, 0.39);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(79, 138, 34, 0.23);
    color: var(--white);
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.125rem;
}

.btn-full {
    width: 100%;
}

.btn-pulse {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(79, 138, 34, 0.7);
    }
    70% {
        transform: scale(1.05);
        box-shadow: 0 0 0 15px rgba(79, 138, 34, 0);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(79, 138, 34, 0);
    }
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(0,0,0,0.08);
    transition: all var(--transition-normal);
    padding: 0.75rem 0;
}

.header.scrolled {
    padding: 0.5rem 0;
    box-shadow: var(--shadow-md);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    height: 46px;
    width: auto;
    transform: scale(1.5);
    transform-origin: left center;
    transition: all var(--transition-normal);
}

.header.scrolled .logo {
    height: 38px;
}

.nav-menu {
    display: none; /* Mobile first: hidden by default */
}

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

.nav-link {
    font-weight: 600;
    color: var(--secondary-color);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width var(--transition-normal);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.whatsapp-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #25D366;
    color: white;
    font-size: 1.5rem;
    transition: transform var(--transition-fast);
}

.whatsapp-btn:hover {
    transform: scale(1.1);
}

.mobile-menu-btn {
    background: none;
    border: none;
    font-size: 2rem;
    color: var(--secondary-color);
    cursor: pointer;
    display: flex;
}

/* Mobile Menu Active State */
.nav-menu.active {
    display: block;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: var(--white);
    box-shadow: var(--shadow-md);
    padding: 1.5rem;
    border-top: 1px solid var(--border-color);
    animation: slideDown 0.3s ease forwards;
}

.nav-menu.active .nav-list {
    flex-direction: column;
    gap: 1.5rem;
    align-items: center;
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
    position: relative;
    height: 100vh;
    min-height: 620px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-image: url('https://images.unsplash.com/photo-1542838132-92c53300491e?auto=format&fit=crop&q=80&w=1920');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    margin-top: 0;
    padding-top: 80px;
    padding-bottom: 80px;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg,
        rgba(13, 22, 83, 0.78) 0%,
        rgba(13, 22, 83, 0.55) 50%,
        rgba(50, 110, 25, 0.55) 100%
    );
}

.hero-content {
    position: relative;
    z-index: 1;
    color: var(--white);
    max-width: 840px;
    text-align: center;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 1rem;
}

.hero-logo {
    width: 220px;
    max-width: 75%;
    margin-bottom: 1.75rem;
    filter: drop-shadow(0 4px 16px rgba(0,0,0,0.35));
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.25rem;
    text-shadow: 0 2px 8px rgba(0,0,0,0.4);
}

.hero-subtitle {
    font-size: 1.05rem;
    margin-bottom: 2.25rem;
    font-weight: 600;
    opacity: 0.92;
    text-shadow: 0 1px 4px rgba(0,0,0,0.3);
    letter-spacing: 0.01em;
}

/* ==========================================================================
   Differentials Section
   ========================================================================== */
.differentials {
    padding: 3.5rem 0;
    background-color: var(--white);
    position: relative;
    z-index: 10;
}

.differentials-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
}

.diff-card {
    background-color: var(--white);
    padding: 2rem 1.5rem;
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    text-align: center;
    transition: transform var(--transition-normal), border-color var(--transition-normal), box-shadow var(--transition-normal);
    border: 1px solid var(--border-color);
}

.diff-card:hover {
    transform: translateY(-6px);
    border-color: var(--primary-color);
    box-shadow: 0 16px 32px -8px rgba(79, 138, 34, 0.15);
}

.diff-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 1rem;
    background-color: var(--primary-light);
    color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    transition: background-color var(--transition-normal);
}

.diff-card:hover .diff-icon {
    background-color: var(--primary-color);
    color: var(--white);
}

.diff-card h3 {
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
    font-size: 1.125rem;
}

.diff-card p {
    color: var(--text-light);
    font-size: 0.875rem;
    line-height: 1.5;
}

/* ==========================================================================
   Categories Section
   ========================================================================== */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.category-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
}

.category-img-wrapper {
    width: 100%;
    aspect-ratio: 1;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    border: 4px solid var(--border-color);
    transition: all var(--transition-normal);
    position: relative;
}

.category-img-wrapper::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(79, 138, 34, 0);
    border-radius: 50%;
    transition: background var(--transition-normal);
}

.category-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.category-card:hover .category-img-wrapper {
    border-color: var(--primary-color);
    box-shadow: 0 8px 24px rgba(79, 138, 34, 0.25);
    transform: translateY(-4px);
}

.category-card:hover .category-img {
    transform: scale(1.08);
}

.category-card:hover .category-img-wrapper::after {
    background: rgba(79, 138, 34, 0.18);
}

.category-name {
    font-weight: 700;
    color: var(--secondary-color);
    font-size: 1rem;
    transition: color var(--transition-fast);
    text-align: center;
}

.category-card:hover .category-name {
    color: var(--primary-color);
}

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

.product-card {
    background: var(--white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-normal);
    border: 1px solid var(--border-color);
    position: relative;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    box-shadow: var(--shadow-xl);
    transform: translateY(-5px);
}

.product-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background-color: var(--danger);
    color: var(--white);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    z-index: 2;
    box-shadow: var(--shadow-sm);
}

.product-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.product-info {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.product-title {
    font-size: 1.125rem;
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.product-price {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.old-price {
    color: var(--text-light);
    text-decoration: line-through;
    font-size: 0.9rem;
}

.current-price {
    color: var(--primary-color);
    font-size: 1.25rem;
    font-weight: 800;
}

.product-info .btn {
    margin-top: auto;
}

/* ==========================================================================
   About Us Section
   ========================================================================== */
.about-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: start;
}

.about-image {
    position: relative;
    border-radius: 24px;
    overflow: visible;
    box-shadow: var(--shadow-xl);
}

.about-image-inner {
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}

.ceo-img {
    width: 100%;
    display: block;
    border-radius: 24px;
}

.experience-badge {
    position: absolute;
    bottom: 16px;
    right: 16px;
    background-color: var(--primary-color);
    color: var(--white);
    width: 110px;
    height: 110px;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-lg);
    border: 5px solid var(--white);
    z-index: 2;
}

.experience-badge .years {
    font-size: 2.25rem;
    font-weight: 800;
    line-height: 1;
}

.experience-badge .text {
    font-size: 0.7rem;
    font-weight: 600;
    text-align: center;
    line-height: 1.2;
}

.about-content .section-title {
    text-align: left;
    margin-bottom: 1rem;
}

.about-content .section-title::after {
    margin: 0.5rem 0 0;
    width: 48px;
}

.about-subtitle {
    font-size: 1.125rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-weight: 700;
    line-height: 1.4;
}

.about-content p {
    color: var(--text-light);
    margin-bottom: 1rem;
    font-size: 0.975rem;
    line-height: 1.7;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
    background-color: var(--secondary-color);
    color: var(--white);
    padding-top: 4rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
    margin-bottom: 3rem;
}

.footer-logo {
    height: 56px;
    width: auto;
    margin-bottom: 1rem;
    object-fit: contain;
}

.footer-brand p {
    color: #cbd5e1;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255,255,255,0.1);
    font-size: 1.25rem;
}

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

.footer-title {
    font-size: 1.125rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
    position: relative;
    padding-bottom: 0.5rem;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: var(--primary-color);
}

.info-list li, .hours-list li {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    color: #cbd5e1;
    font-size: 0.9rem;
}

.info-list i {
    font-size: 1.25rem;
    color: var(--primary-color);
}

.hours-list li {
    justify-content: space-between;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding-bottom: 0.5rem;
}

.payment-methods {
    margin-top: 2rem;
}

.payment-icons {
    display: flex;
    gap: 1rem;
    font-size: 2rem;
    color: #cbd5e1;
}

.platforms-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.platforms-list img {
    display: block;
    width: 136px;
    height: auto;
}

.footer-bottom {
    background-color: #080d34;
    padding: 1.5rem 0;
    text-align: center;
    font-size: 0.875rem;
    color: #94a3b8;
}

.hero-software-link {
    color: #FFC107;
    font-weight: bold;
    text-decoration: none;
    transition: color var(--transition-fast);
}

.hero-software-link:hover {
    color: #FFD54F;
    text-decoration: underline;
}

/* ==========================================================================
   Floating WhatsApp Button
   ========================================================================== */
.floating-whatsapp {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 60px;
    height: 60px;
    background-color: #25D366;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    box-shadow: var(--shadow-lg);
    z-index: 1000;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
    animation: pulse 2s infinite;
}

.floating-whatsapp:hover {
    transform: scale(1.1);
    box-shadow: var(--shadow-xl);
    animation: none;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.5); }
    70% { box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* ==========================================================================
   Media Queries (Desktop First Approach overrides for larger screens)
   ========================================================================== */

/* Tablet & Larger */
@media (min-width: 768px) {
    .hero-content {
        text-align: center;
        margin: 0 auto;
    }
    
    .hero-title {
        font-size: 3.25rem;
    }
    
    .hero-subtitle {
        font-size: 1.125rem;
    }

    .differentials-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .categories-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .category-card:last-child {
        grid-column: 2 / 3;
        max-width: 100%;
        margin: 0;
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Desktop */
@media (min-width: 1024px) {
    .mobile-menu-btn {
        display: none;
    }

    .nav-menu {
        display: block;
    }

    .hero-title {
        font-size: 3.75rem;
    }

    .differentials-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .categories-grid {
        grid-template-columns: repeat(5, 1fr);
    }

    .category-card:last-child {
        grid-column: auto;
    }

    .about-container {
        grid-template-columns: 1fr 1fr;
        gap: 4rem;
        align-items: center;
    }

    .experience-badge {
        bottom: 20px;
        right: 20px;
    }

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