/* Base Settings */
:root {
    --primary: #0ea5e9; /* Light blue accent */
    --primary-dark: #0284c7;
    --text-main: #111827; /* Black/Dark Gray */
    --text-muted: #6b7280; /* Medium Gray */
    --background: #ffffff; /* White */
    --surface: #f9fafb; /* Extra Light Gray */
    --surface-alt: #f3f4f6; /* Light Gray */
    --border: #e5e7eb;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow: 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-hover: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Outfit', sans-serif;
    color: var(--text-main);
    background-color: var(--background);
    line-height: 1.6;
    overflow-x: hidden;
}

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

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

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

li {
    list-style: none;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-main);
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    letter-spacing: -0.02em;
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 0.5rem;
}

h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

p {
    margin-bottom: 1rem;
    color: var(--text-muted);
}

.text-center { text-align: center; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-4 { margin-bottom: 1.5rem; }
.text-sm { font-size: 0.875rem; }
.w-full { width: 100%; }

.accent-text {
    color: var(--primary);
}

.subtitle {
    font-size: 1.125rem;
    max-width: 600px;
    margin: 0 auto 2rem;
}

/* Buttons */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 1.75rem;
    background-color: var(--primary);
    color: white;
    font-weight: 600;
    border-radius: 9999px;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    box-shadow: var(--shadow);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
    color: white;
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.875rem 1.75rem;
    background-color: white;
    color: var(--text-main);
    font-weight: 600;
    border-radius: 9999px;
    transition: var(--transition);
    border: 1px solid var(--border);
    cursor: pointer;
}

.btn-secondary:hover {
    background-color: var(--surface);
    border-color: var(--text-muted);
}

.btn-outline-small {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    border: 1px solid var(--border);
    border-radius: 9999px;
    transition: var(--transition);
}

.btn-outline-small:hover {
    background-color: var(--surface);
    color: var(--primary);
    border-color: var(--primary);
}

.btn-whatsapp {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.6rem 1.5rem;
    background-color: #25D366; /* green whatsapp color */
    color: white;
    font-weight: 600;
    border-radius: 9999px;
    transition: var(--transition);
    margin-top: 1rem;
}

.btn-whatsapp:hover {
    background-color: #128C7E;
    color: white;
    transform: translateY(-2px);
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 80px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0,0,0,0.05);
    z-index: 1000;
    transition: var(--transition);
}

.navbar.scrolled {
    height: 70px;
    box-shadow: var(--shadow-sm);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.05em;
}

.logo-icon {
    color: var(--primary);
    width: 28px;
    height: 28px;
}

.logo-icon.white { color: white; }

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-link {
    font-weight: 500;
    color: var(--text-muted);
    transition: var(--transition);
    position: relative;
}

.nav-link:hover, .nav-link.active {
    color: var(--text-main);
}

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

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

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-main);
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    padding-top: 80px;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(255,255,255,0.95) 0%, rgba(255,255,255,0.8) 50%, rgba(255,255,255,0.1) 100%);
}

.hero-content {
    position: relative;
    z-index: 1;
    width: 100%;
}

.hero-text {
    max-width: 600px;
}

.tagline {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
    font-weight: 400;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Animations */
.fade-up {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 0.8s forwards;
}

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

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

/* Sections General */
.section-padding {
    padding: 6rem 0;
}

.divider {
    height: 4px;
    width: 60px;
    background-color: var(--primary);
    margin: 1.5rem auto;
    border-radius: 2px;
}

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

/* Products Section */
.products-controls {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.search-container {
    position: relative;
    width: 100%;
    max-width: 500px;
}

.search-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    width: 20px;
    height: 20px;
}

#productSearch {
    width: 100%;
    padding: 1rem 1rem 1rem 3rem;
    border: 1px solid var(--border);
    border-radius: 9999px;
    font-family: inherit;
    font-size: 1rem;
    outline: none;
    transition: var(--transition);
    background-color: var(--surface);
}

#productSearch:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.1);
    background-color: white;
}

.category-filters {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    justify-content: center;
}

.filter-btn {
    padding: 0.5rem 1.25rem;
    background-color: transparent;
    border: 1px solid var(--border);
    border-radius: 9999px;
    font-weight: 500;
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition);
}

.filter-btn:hover {
    background-color: var(--surface);
    color: var(--text-main);
}

.filter-btn.active {
    background-color: var(--text-main);
    color: white;
    border-color: var(--text-main);
}

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

.product-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: 1rem;
    overflow: hidden;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

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

.product-image {
    position: relative;
    aspect-ratio: 4/3;
    overflow: hidden;
}

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

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

.product-category-tag {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(4px);
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-main);
}

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

.product-title {
    font-size: 1.125rem;
    margin-bottom: 0.5rem;
}

.product-price {
    font-weight: 700;
    color: var(--primary);
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.product-action {
    margin-top: auto;
    width: 100%;
    padding: 0.75rem;
    background-color: var(--surface);
    border: none;
    border-radius: 0.5rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    color: var(--text-main);
}

.product-card:hover .product-action {
    background-color: var(--primary);
    color: white;
}

.no-results {
    text-align: center;
    padding: 4rem 1rem;
    color: var(--text-muted);
}

.no-results i {
    width: 48px;
    height: 48px;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.hidden {
    display: none !important;
}

/* About Section */
.about-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-image-wrapper {
    position: relative;
    border-radius: 1.5rem;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.about-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    aspect-ratio: 4/5;
}

.experience-badge {
    position: absolute;
    bottom: -1px;
    left: -1px;
    background: var(--text-main);
    color: white;
    padding: 2rem;
    border-top-right-radius: 1.5rem;
    display: flex;
    flex-direction: column;
}

.experience-badge .number {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1;
    color: var(--primary);
}

.experience-badge .text {
    font-size: 1rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.lead-text {
    font-size: 1.25rem;
    color: var(--text-main);
    font-weight: 500;
    margin-bottom: 1.5rem;
}

.about-features {
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.feature {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.feature-icon {
    width: 48px;
    height: 48px;
    background-color: rgba(14, 165, 233, 0.1);
    color: var(--primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.feature h4 {
    margin-bottom: 0.25rem;
}

/* Contact Section */
.contact-layout {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 3rem;
}

.info-card {
    background: white;
    padding: 2rem;
    border-radius: 1rem;
    text-align: center;
    border: 1px solid var(--border);
    margin-bottom: 1rem;
    transition: var(--transition);
}

.info-card:hover {
    box-shadow: var(--shadow);
    transform: translateY(-4px);
    border-color: transparent;
}

.whatsapp-card {
    background: rgba(37, 211, 102, 0.05);
    border-color: rgba(37, 211, 102, 0.2);
}

.whatsapp-card:hover { border-color: transparent; }

.info-icon {
    width: 48px;
    height: 48px;
    background-color: var(--surface);
    color: var(--text-main);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    transition: var(--transition);
}

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

.info-icon.whatsapp {
    color: #25D366;
    background-color: white;
}

.whatsapp-card:hover .info-icon.whatsapp {
    background-color: #25D366;
    color: white;
}

.contact-form-container {
    background: white;
    padding: 3rem;
    border-radius: 1rem;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-main);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 1px solid var(--border);
    border-radius: 0.5rem;
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
    background-color: var(--surface);
    outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--primary);
    background-color: white;
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.1);
}

/* Footer */
.footer {
    background-color: var(--text-main);
    color: white;
    padding: 5rem 0 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-brand p {
    color: #9ca3af;
    max-width: 300px;
    margin-top: 1rem;
}

.footer h4 {
    color: white;
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
}

.footer-links ul li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: #9ca3af;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--primary);
    padding-left: 0.5rem;
}

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

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

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

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: #9ca3af;
    font-size: 0.875rem;
}

/* Responsive */
@media (max-width: 992px) {
    .nav-links { display: none; }
    .mobile-menu-btn { display: block; }
    
    .nav-links.active {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: white;
        padding: 2rem;
        box-shadow: var(--shadow-lg);
        gap: 1.5rem;
        border-top: 1px solid var(--border);
    }
    
    .hero-text { max-width: 100%; text-align: center; }
    .hero-overlay {
        background: rgba(255,255,255,0.85); /* More opaque */
    }
    .hero-buttons { justify-content: center; }
    
    .about-container { grid-template-columns: 1fr; }
    .about-image-wrapper { max-width: 500px; margin: 0 auto; }
    
    .contact-layout { grid-template-columns: 1fr; }
    
    .footer-content { grid-template-columns: 1fr; gap: 2rem; text-align: center; }
    .footer-brand p { margin: 1rem auto; }
    .social-icons { justify-content: center; }
}

@media (max-width: 768px) {
    h1 { font-size: 2.5rem; }
    .section-padding { padding: 4rem 0; }
    
    .products-controls { flex-direction: column; }
    .category-filters { width: 100%; justify-content: center; }
    
    .contact-form-container { padding: 2rem; }
    
    .products-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 1rem; }
    .product-info { padding: 0.75rem; }
    .product-title { font-size: 0.95rem; }
    .product-price { font-size: 1.1rem; margin-bottom: 0.5rem; }
    .product-action { padding: 0.5rem; font-size: 0.85rem; }
    .product-category-tag { font-size: 0.65rem; padding: 0.2rem 0.5rem; top: 0.5rem; left: 0.5rem; }
}

/* Version Overlay Modal */
body.modal-open { overflow: hidden; }

.version-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(17, 24, 39, 0.95);
    backdrop-filter: blur(8px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.4s ease;
}

.version-overlay.hidden-overlay {
    opacity: 0;
    pointer-events: none;
}

.version-modal {
    background: white;
    padding: 3rem;
    border-radius: 1.5rem;
    max-width: 450px;
    width: 90%;
    text-align: center;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.modal-icon-container {
    width: 80px; height: 80px;
    margin: 0 auto 1.5rem;
    background: var(--surface);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: var(--primary);
}
.modal-icon-container i { width: 40px; height: 40px; }
.mt-3 { margin-top: 1rem; }

/* 📱 SMARTPHONE APP THEME OVERRIDES */
body.is-mobile-version {
    background-color: #0f172a; /* Dark sleek app background */
    color: #f8fafc;
}

/* Redesign Nav to be Bottom App Bar */
body.is-mobile-version .navbar {
    top: auto;
    bottom: 0;
    height: 70px;
    background: rgba(15, 23, 42, 0.95);
    border-top: 1px solid rgba(255,255,255,0.1);
    border-bottom: none;
}

body.is-mobile-version .logo,
body.is-mobile-version .mobile-menu-btn,
body.is-mobile-version .nav-actions { display: none; }

body.is-mobile-version .nav-links {
    display: flex !important;
    position: static;
    flex-direction: row;
    justify-content: space-around;
    padding: 0;
    background: transparent;
    box-shadow: none;
    border: none;
    width: 100%;
}

body.is-mobile-version .nav-link {
    color: #94a3b8;
    font-size: 0.8rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}
body.is-mobile-version .nav-link:hover,
body.is-mobile-version .nav-link.active {
    color: var(--primary);
}

/* Adjust Typo & Colors for Dark App Theme */
body.is-mobile-version h1, body.is-mobile-version h2, body.is-mobile-version h3, body.is-mobile-version h4 { color: #f8fafc; }
body.is-mobile-version p:not(.product-price) { color: #cbd5e1; }
body.is-mobile-version .bg-light { background-color: #1e293b; }
body.is-mobile-version .product-card, body.is-mobile-version .info-card, body.is-mobile-version .contact-form-container {
    background: #1e293b;
    border-color: #334155;
    color: white;
}
body.is-mobile-version .product-action { background: #334155; color: white; }
body.is-mobile-version #productSearch { background: #334155; color: white; border-color: transparent; }
body.is-mobile-version .filter-btn { color: #cbd5e1; border-color: #475569; }
body.is-mobile-version .filter-btn.active { background: var(--primary); border-color: var(--primary); color: white; }
body.is-mobile-version .form-group input, body.is-mobile-version .form-group textarea { background: #0f172a; color: white; border-color: #334155; }
body.is-mobile-version .info-icon { background: #334155; color: white; }
body.is-mobile-version .footer { padding-bottom: 90px; background: #020617; }

/* Push content down slightly for safety */
body.is-mobile-version .hero { min-height: 50vh; display:block; padding-top: 0;}
body.is-mobile-version .hero-text { margin-top: 0; }
body.is-mobile-version .hero-overlay { background: linear-gradient(to bottom, rgba(15,23,42,0.1), rgba(15,23,42,1)); }

/* --- HERO BANNER TOGGLE --- */
.hero-mobile-banner { display: none; }
.hero-pc-banner { display: block; height: 100%; width: 100%; }

body.is-mobile-version .hero-pc-banner { display: none; }
body.is-mobile-version .hero-mobile-banner { 
    display: flex; 
    flex-direction: column;
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    padding: 2rem 1.5rem;
    height: 100%;
    min-height: 50vh;
    border-bottom: 1px solid #334155;
}

.mobile-app-header {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}

.app-top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0;
}

.app-top-bar .brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.25rem;
    font-weight: 700;
    color: white;
}

.app-top-bar .profile-icon {
    width: 40px; height: 40px;
    background: #334155;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: white;
}

.mobile-hero-promo h1 {
    font-size: 2.5rem;
    line-height: 1.1;
    margin-bottom: 0;
    color: white;
}

.mobile-hero-promo p {
    font-size: 1.1rem;
    color: #94a3b8;
    margin-bottom: 1.5rem;
}
