/* ===== Reset & Base ===== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --primary: #0056B3;
    --primary-light: #0074E4;
    --primary-dark: #003D80;
    --whatsapp: #08783E;
    --whatsapp-dark: #055C30;
    --facebook: #1877F2;
    --facebook-dark: #1466D9;
    --dark: #1B2A4A;
    --darker: #0F1B33;
    --gray-900: #1a1a2e;
    --gray-700: #555;
    --gray-500: #666;
    --gray-400: #bbb;
    --gray-200: #e5e5e5;
    --gray-100: #f5f7fa;
    --white: #ffffff;
    --radius: 8px;
    --shadow: 0 4px 20px rgba(0,0,0,0.08);
    --shadow-lg: 0 12px 40px rgba(0,0,0,0.12);
    --transition: color 0.3s ease, background 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease, opacity 0.3s ease;
}


body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--gray-900);
    line-height: 1.6;
    overflow-x: hidden;
}

a { text-decoration: none; color: inherit; transition: var(--transition); }
ul { list-style: none; }
img { max-width: 100%; display: block; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--primary-light); outline-offset: 3px; }

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

/* ===== Buttons ===== */
.btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 14px 32px; border-radius: var(--radius);
    font-size: 15px; font-weight: 600;
    transition: var(--transition); cursor: pointer; border: none;
    font-family: inherit;
}
.btn-sm { padding: 10px 22px; font-size: 14px; }
.btn-primary { background: var(--primary); color: white; }
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,86,179,0.4); }
.btn-white { background: white; color: var(--dark); }
.btn-white:hover { background: var(--gray-100); transform: translateY(-2px); }
.btn-whatsapp { background: var(--whatsapp); color: white; }
.btn-whatsapp:hover { background: var(--whatsapp-dark); }

.btn-whatsapp-lg {
    display: inline-flex; align-items: center; gap: 12px;
    padding: 18px 40px; border-radius: var(--radius);
    background: var(--whatsapp); color: white;
    font-size: 18px; font-weight: 700; border: none; cursor: pointer;
    transition: var(--transition); font-family: inherit;
}
.btn-whatsapp-lg:hover { background: var(--whatsapp-dark); transform: translateY(-3px); box-shadow: 0 10px 30px rgba(37,211,102,0.35); }
.btn-facebook-lg {
    display: inline-flex; align-items: center; gap: 12px;
    padding: 18px 40px; border-radius: var(--radius);
    background: var(--facebook); color: white;
    font-size: 18px; font-weight: 700; border: none; cursor: pointer;
    transition: var(--transition); font-family: inherit;
}
.btn-facebook-lg:hover { background: var(--facebook-dark); transform: translateY(-3px); box-shadow: 0 10px 30px rgba(24,119,242,0.35); }

/* ===== Top Bar ===== */
.top-bar {
    background: var(--darker);
    color: rgba(255,255,255,0.7);
    font-size: 13px;
    padding: 8px 0;
}
.top-bar-content {
    display: flex; justify-content: space-between; align-items: center;
}
.top-bar-links { display: flex; gap: 20px; }
.top-bar-links a {
    display: flex; align-items: center; gap: 6px;
    color: rgba(255,255,255,0.7);
}
.top-bar-links a:hover { color: white; }

/* ===== Navbar ===== */
.navbar {
    position: sticky; top: 0; z-index: 1000;
    background: white;
    border-bottom: 1px solid var(--gray-200);
    transition: var(--transition);
    height: 72px;
}
.navbar.scrolled { box-shadow: 0 2px 20px rgba(0,0,0,0.08); }
.nav-content {
    display: flex; align-items: center; justify-content: space-between;
    height: 100%;
}
.logo { display: flex; align-items: center; gap: 4px; }
.logo-icon {
    display: inline-flex; align-items: center; justify-content: center;
    width: 42px; height: 42px; border-radius: var(--radius);
    background: var(--primary); color: white;
    font-size: 15px; font-weight: 900; letter-spacing: -1px;
}
.logo-text {
    font-size: 24px; font-weight: 800; color: var(--dark);
    letter-spacing: -0.5px;
}
.nav-links { display: flex; gap: 8px; }
.nav-links a {
    padding: 8px 16px; font-size: 15px; font-weight: 500;
    color: var(--gray-700); border-radius: var(--radius);
}
.nav-links a:hover, .nav-links a.active { color: var(--primary); background: rgba(0,86,179,0.06); }
.nav-cta { display: flex; align-items: center; }

.mobile-toggle {
    display: none; flex-direction: column; gap: 5px;
    background: none; border: none; cursor: pointer; padding: 8px;
    min-width: 44px; min-height: 44px; align-items: center; justify-content: center;
}
.mobile-toggle span { display: block; width: 22px; height: 2px; background: var(--dark); border-radius: 2px; transition: var(--transition); }
.mobile-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.mobile-toggle.active span:nth-child(2) { opacity: 0; }
.mobile-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ===== Hero ===== */
.hero {
    position: relative;
    height: 85vh; min-height: 550px; max-height: 800px;
    display: flex; align-items: center; justify-content: center;
    overflow: hidden;
}
.hero-bg {
    position: absolute; inset: 0;
    background-size: cover; background-position: center;
    background-repeat: no-repeat;
}
.hero-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(135deg, rgba(15,27,51,0.85) 0%, rgba(27,42,74,0.7) 50%, rgba(0,86,179,0.4) 100%);
}
.hero-content {
    position: relative; z-index: 1;
    color: white; max-width: 700px;
}
.hero-badge {
    display: inline-block;
    padding: 8px 20px; border-radius: 50px;
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(10px);
    font-size: 14px; font-weight: 500;
    margin-bottom: 24px;
    border: 1px solid rgba(255,255,255,0.2);
}
.hero h1 {
    font-size: 56px; font-weight: 900;
    line-height: 1.1; letter-spacing: -2px;
    margin-bottom: 20px;
}
.hero h1 .hero-highlight {
    color: #4ade80;
}
.hero p {
    font-size: 17px; color: rgba(255,255,255,0.8);
    line-height: 1.7; margin-bottom: 36px; max-width: 550px;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

/* ===== Section Common ===== */
.section-header { text-align: center; margin-bottom: 56px; }
.section-header h2 {
    font-size: 36px; font-weight: 800; color: var(--dark);
    letter-spacing: -0.5px; margin-bottom: 12px;
}
.section-divider {
    width: 60px; height: 3px; border-radius: 2px;
    background: var(--primary); margin: 0 auto 16px;
}
.section-divider.left { margin: 0 0 16px 0; }
.section-header p { font-size: 16px; color: var(--gray-700); max-width: 560px; margin: 0 auto; }

/* ===== Products ===== */
.products { padding: 90px 0; background: white; }
.product-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px;
}
.product-card {
    background: white; border-radius: var(--radius);
    overflow: hidden; border: 1px solid var(--gray-200);
    transition: var(--transition);
}
.product-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; }
.product-img {
    position: relative; overflow: hidden;
    height: 220px;
    padding: 12px;
    background: var(--gray-100);
}
.product-img img {
    width: 100%; height: 100%; object-fit: contain;
    transition: transform 0.5s ease;
}
.product-card:hover .product-img img { transform: scale(1.03); }
.product-overlay {
    position: absolute; inset: 0;
    background: rgba(0,86,179,0.7);
    display: flex; align-items: center; justify-content: center;
    opacity: 0; transition: var(--transition);
}
.product-card:hover .product-overlay { opacity: 1; }
.product-overlay .btn { background: white; color: var(--primary); }
.product-info { padding: 20px 24px; text-align: center; }
.product-info h3 { font-size: 18px; font-weight: 700; color: var(--dark); margin-bottom: 6px; }
.product-info p { font-size: 14px; color: var(--gray-500); }

/* ===== About ===== */
.about { padding: 90px 0; background: var(--gray-100); }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.about-image { position: relative; }
.about-image img {
    width: 100%; height: 450px; object-fit: cover;
    border-radius: var(--radius); box-shadow: var(--shadow-lg);
}
.about-exp {
    position: absolute; bottom: -20px; right: -20px;
    background: var(--primary); color: white;
    padding: 24px 32px; border-radius: var(--radius);
    text-align: center; box-shadow: var(--shadow-lg);
}
.exp-number { display: block; font-size: 36px; font-weight: 900; }
.exp-text { font-size: 13px; font-weight: 500; opacity: 0.9; }
.about-content h2 { font-size: 36px; font-weight: 800; color: var(--dark); letter-spacing: -0.5px; }
.about-lead { font-size: 16px; color: var(--gray-700); margin-bottom: 16px; line-height: 1.8; }
.about-content > p { font-size: 15px; color: var(--gray-500); line-height: 1.7; margin-bottom: 28px; }
.about-features { display: flex; flex-direction: column; gap: 20px; }
.about-feature { display: flex; gap: 16px; align-items: center; }
.feature-icon { font-size: 28px; flex-shrink: 0; width: 50px; height: 50px; display: flex; align-items: center; justify-content: center; background: white; border-radius: var(--radius); box-shadow: 0 2px 8px rgba(0,0,0,0.06); }
.about-feature h4 { font-size: 15px; font-weight: 700; color: var(--dark); margin-bottom: 2px; }
.about-feature p { font-size: 14px; color: var(--gray-500); }

/* ===== Stats ===== */
.stats {
    padding: 60px 0;
    background: var(--primary);
}
.stats-grid {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px;
    text-align: center;
}
.stat-item { text-align: center; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.stat-value { display: flex; align-items: baseline; justify-content: center; gap: 4px; }
.stat-number { display: block; font-size: 44px; font-weight: 900; color: white; letter-spacing: -1px; line-height: 1.2; }
.stat-suffix { font-size: 28px; font-weight: 700; color: rgba(255,255,255,0.7); }
.stat-label { display: block; font-size: 14px; color: rgba(255,255,255,0.8); font-weight: 500; margin-top: 4px; }

/* ===== Quality ===== */
.quality { padding: 90px 0; background: white; }
.quality-grid {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px;
    margin-bottom: 48px;
}
.quality-card {
    background: var(--gray-100); border-radius: var(--radius);
    padding: 36px 28px; text-align: center;
    border: 1px solid transparent;
    transition: var(--transition);
}
.quality-card:hover { border-color: var(--primary); transform: translateY(-4px); box-shadow: var(--shadow); }
.quality-step {
    display: inline-flex; align-items: center; justify-content: center;
    width: 56px; height: 56px; border-radius: 50%;
    background: var(--primary); color: white;
    font-size: 20px; font-weight: 800;
    margin-bottom: 20px;
}
.quality-card h3 { font-size: 17px; font-weight: 700; margin-bottom: 10px; color: var(--dark); }
.quality-card p { font-size: 14px; color: var(--gray-500); line-height: 1.6; }
.cert-badges {
    display: flex; justify-content: center; gap: 20px; flex-wrap: wrap;
}
.cert-badge {
    padding: 12px 28px; border-radius: var(--radius);
    background: var(--gray-100); color: var(--dark);
    font-size: 15px; font-weight: 700;
    border: 2px solid var(--gray-200);
}

/* ===== News ===== */
.news { padding: 90px 0; background: var(--gray-100); }
.news-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px;
}
.news-card {
    background: white; border-radius: var(--radius);
    overflow: hidden; border: 1px solid var(--gray-200);
    transition: var(--transition);
}
.news-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.news-img { height: 200px; overflow: hidden; }
.news-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.news-card:hover .news-img img { transform: scale(1.05); }
.news-info { padding: 24px; }
.news-date { font-size: 13px; color: var(--primary); font-weight: 600; }
.news-info h3 { font-size: 16px; font-weight: 700; color: var(--dark); margin: 8px 0; line-height: 1.4; }
.news-info p { font-size: 14px; color: var(--gray-500); line-height: 1.6; }

/* ===== CTA ===== */
.cta { padding: 90px 0; background: var(--darker); }
.cta-grid { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 40px; }
.cta-info h2 { font-size: 36px; font-weight: 800; color: white; margin-bottom: 16px; letter-spacing: -0.5px; }
.cta-info > p { font-size: 16px; color: rgba(255,255,255,0.7); line-height: 1.7; margin-bottom: 28px; }
.cta-details { display: flex; flex-direction: column; gap: 12px; align-items: center; }
.cta-item { display: flex; align-items: center; gap: 12px; color: rgba(255,255,255,0.8); font-size: 15px; }
.cta-item a:hover { color: white; }
.cta-buttons { display: flex; flex-direction: row; gap: 16px; }

/* ===== Footer ===== */
.footer { background: var(--dark); color: rgba(255,255,255,0.6); }
.footer-grid {
    display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 48px; padding: 64px 20px 40px;
}
.footer-brand p { font-size: 14px; line-height: 1.7; margin: 12px 0 20px; max-width: 320px; }
.footer-social { display: flex; gap: 12px; }
.footer-social a {
    display: flex; align-items: center; justify-content: center;
    width: 40px; height: 40px; border-radius: 50%;
    background: rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.7);
    transition: var(--transition);
}
.footer-social a:hover { background: var(--primary); color: white; }
.footer-col h4 { color: white; font-size: 15px; font-weight: 700; margin-bottom: 16px; }
.footer-col ul li { margin-bottom: 10px; font-size: 14px; }
.footer-col a:hover { color: white; }
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.08);
    padding: 20px 0; text-align: center; font-size: 13px;
}

/* ===== WhatsApp Float ===== */
.whatsapp-float {
    position: fixed; bottom: 30px; right: 30px; z-index: 999;
    width: 60px; height: 60px; border-radius: 50%;
    background: var(--whatsapp); color: white;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 4px 20px rgba(37,211,102,0.4);
    transition: var(--transition);
    animation: pulse-wa 2s infinite;
}
.whatsapp-float:hover { transform: scale(1.1); box-shadow: 0 6px 28px rgba(37,211,102,0.5); }
@keyframes pulse-wa {
    0% { box-shadow: 0 4px 20px rgba(37,211,102,0.4); }
    50% { box-shadow: 0 4px 30px rgba(37,211,102,0.6); }
    100% { box-shadow: 0 4px 20px rgba(37,211,102,0.4); }
}

/* ===== Back to Top ===== */
.back-to-top {
    position: fixed; bottom: 30px; right: 100px; z-index: 999;
    width: 44px; height: 44px; border-radius: 50%;
    background: var(--dark); color: white;
    display: flex; align-items: center; justify-content: center;
    font-size: 20px; font-weight: 700;
    opacity: 0; visibility: hidden;
    transition: var(--transition);
    box-shadow: var(--shadow);
}
.back-to-top.visible { opacity: 1; visibility: visible; }
.back-to-top:hover { background: var(--primary); transform: translateY(-3px); }

/* ===== Responsive ===== */
@media (max-width: 1024px) {
    .hero h1 { font-size: 44px; }
    .product-grid { grid-template-columns: repeat(2, 1fr); }
    .quality-grid { grid-template-columns: repeat(2, 1fr); }
    .about-grid { grid-template-columns: 1fr; }
    .about-image { max-width: 500px; }
    .news-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .top-bar { display: none; }
    .nav-links { display: none; flex-direction: column; position: absolute; top: 72px; left: 0; right: 0; background: white; padding: 12px 20px; box-shadow: var(--shadow-lg); border-bottom: 1px solid var(--gray-200); }
    .nav-links.active { display: flex; }
    .nav-cta { display: none; }
    .mobile-toggle { display: flex; }
    .hero { height: auto; min-height: 400px; padding: 60px 0; }
    .hero-content { padding: 0 16px; }
    .hero h1 { font-size: 32px; letter-spacing: -1px; }
    .hero p { font-size: 15px; }
    .hero-badge { font-size: 12px; padding: 6px 14px; }
    .hero-actions { flex-direction: column; gap: 12px; }
    .hero-actions .btn { width: 100%; justify-content: center; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; padding: 40px 16px; }
    .stat-number { font-size: 30px; }
    .stat-suffix { font-size: 22px; }
    .stat-label { font-size: 12px; }
    .product-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .product-img { height: 140px; }
    .product-info { padding: 10px 8px; }
    .product-info h3 { font-size: 12px; }
    .product-info p { font-size: 11px; }
    .btn-inquiry { font-size: 11px; padding: 4px 12px; }
    .quality-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .quality-card { padding: 20px 16px; }
    .news-grid { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; }
    .section-header h2, .about-content h2, .cta-info h2 { font-size: 26px; }
    .section-header { margin-bottom: 32px; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
    .cta-grid { grid-template-columns: 1fr; }
    .cta-buttons { flex-direction: column; gap: 12px; }
    .btn-whatsapp-lg, .btn-facebook-lg { width: 100%; justify-content: center; }
    .about-exp { right: 10px; bottom: -10px; padding: 14px 20px; }
    .exp-number { font-size: 24px; }
    .about-image img { height: 260px; }
    .about-grid { gap: 32px; }
    .about-content > p { font-size: 14px; }
    .about-lead { font-size: 14px; }
    .products { padding: 60px 0; }
    .about { padding: 60px 0; }
    .quality { padding: 60px 0; }
    .news { padding: 60px 0; }
    .brand-tabs { gap: 6px; margin-bottom: 24px; }
    .tab-btn { padding: 8px 16px; font-size: 13px; }
}

@media (max-width: 480px) {
    .hero h1 { font-size: 28px; }
    .hero-actions { flex-direction: column; }
    .hero-actions .btn { width: 100%; justify-content: center; }
    .cta-buttons { flex-direction: column; }
    .btn-whatsapp-lg, .btn-facebook-lg { width: 100%; justify-content: center; }
    .cert-badges { gap: 10px; }
    .cert-badge { padding: 10px 20px; font-size: 13px; }
}

/* ===== Mobile Footer ===== */
@media (max-width: 768px) {
    .footer { text-align: center; }
    .footer-grid { grid-template-columns: 1fr; gap: 28px; padding: 48px 20px 32px; }
    .footer-brand { order: -1; }
    .footer-brand p { max-width: 100%; margin: 12px auto 16px; }
    .footer-social { justify-content: center; }
    .footer-col ul { display: flex; flex-wrap: wrap; gap: 8px 16px; justify-content: center; }
    .footer-col ul li { margin-bottom: 0; }
    .footer-col h4 { margin-bottom: 12px; font-size: 14px; text-transform: uppercase; letter-spacing: 1px; opacity: 0.7; }
}
.icon { display: inline-block; vertical-align: middle; }

/* ===== Brand Tabs ===== */
.brand-tabs {
    display: flex; justify-content: center; gap: 8px;
    margin-bottom: 40px; flex-wrap: wrap;
}
.tab-btn {
    padding: 12px 28px; border-radius: var(--radius);
    border: 2px solid var(--gray-200); background: white;
    font-size: 15px; font-weight: 600; color: var(--gray-700);
    cursor: pointer; transition: var(--transition);
    font-family: inherit;
}
.tab-btn:hover { border-color: var(--primary); color: var(--primary); }
.tab-btn.active { background: var(--primary); color: white; border-color: var(--primary); }

/* Tab content */
.tab-content { display: none; }
.tab-content.active { display: block; }

/* Product card with inquiry button */
.btn-inquiry {
    display: inline-flex; align-items: center; justify-content: center;
    min-height: 44px; margin-top: 8px;
    padding: 6px 16px; border-radius: var(--radius);
    background: var(--whatsapp); color: white;
    font-size: 13px; font-weight: 600;
}
.btn-inquiry:hover { background: var(--whatsapp-dark); }
.product-info { text-align: center; padding: 16px 20px; }
.product-info h3 { font-size: 14px; font-weight: 700; color: var(--dark); margin-bottom: 4px; }
.product-info p { font-size: 13px; color: var(--gray-500); margin-bottom: 0; }

/* ===== Language Switch ===== */
.lang-switch {
    display: flex; gap: 4px; align-items: center;
    margin-right: 12px;
}
.lang-btn {
    padding: 4px 10px; border-radius: 4px;
    border: 1px solid var(--gray-200); background: white;
    font-size: 13px; font-weight: 600; color: var(--gray-700);
    cursor: pointer; transition: var(--transition);
    font-family: inherit;
}
.lang-btn:hover { border-color: var(--primary); color: var(--primary); }
.lang-btn.active { background: var(--primary); color: white; border-color: var(--primary); }

@media (max-width: 768px) {
    .lang-switch { position: absolute; top: 80px; right: 20px; }
    .lang-btn { min-width: 44px; min-height: 44px; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
