/* ===== CSS Variables (Light Theme) ===== */
:root, [data-theme="light"] {
    --bg: #fafaf8;
    --bg-alt: #f0ede6;
    --surface: #ffffff;
    --surface-hover: #f5f3ee;
    --text: #2c2c2c;
    --text-secondary: #6b6b6b;
    --text-muted: #999;
    --border: #e0ddd5;
    --primary: #5a7a3a;
    --primary-hover: #4a6630;
    --primary-light: #e8f0de;
    --accent: #8b6914;
    --accent-light: #faf3e0;
    --shadow: 0 1px 3px rgba(0,0,0,0.06);
    --shadow-lg: 0 4px 20px rgba(0,0,0,0.08);
    --radius: 8px;
    --radius-lg: 12px;
    --header-bg: rgba(255,255,255,0.95);
    --hero-gradient: linear-gradient(135deg, #f0ede6 0%, #e8f0de 100%);
    --cta-bg: #2c2c2c;
    --cta-text: #fafaf8;
    --wood-1: #d4a76a;
    --wood-2: #c49554;
    --wood-3: #b8864e;
}

/* ===== Dark Theme ===== */
[data-theme="dark"] {
    --bg: #1a1a18;
    --bg-alt: #222220;
    --surface: #2a2a28;
    --surface-hover: #333330;
    --text: #e8e6e0;
    --text-secondary: #a0a098;
    --text-muted: #6b6b65;
    --border: #3a3a35;
    --primary: #7aa04a;
    --primary-hover: #8bb55a;
    --primary-light: #2a3520;
    --accent: #d4a020;
    --accent-light: #3a3020;
    --shadow: 0 1px 3px rgba(0,0,0,0.2);
    --shadow-lg: 0 4px 20px rgba(0,0,0,0.3);
    --header-bg: rgba(26,26,24,0.95);
    --hero-gradient: linear-gradient(135deg, #222220 0%, #2a3520 100%);
    --cta-bg: #333330;
    --cta-text: #e8e6e0;
    --wood-1: #a0784a;
    --wood-2: #8a6840;
    --wood-3: #7a5838;
}

/* ===== Reset ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--primary-hover); }
ul { list-style: none; }

/* ===== Layout ===== */
.container { max-width: 1140px; margin: 0 auto; padding: 0 1.25rem; }
.container-narrow { max-width: 800px; }
.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }
.mt-2 { margin-top: 1.5rem; }
.mt-3 { margin-top: 2.5rem; }

/* ===== Header ===== */
.header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--header-bg);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    transition: background 0.3s;
}
.header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
    gap: 1rem;
}
.logo {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    color: var(--text);
    flex-shrink: 0;
}
.logo-icon { color: var(--primary); display: flex; }
.logo-text {
    font-weight: 700;
    font-size: 1rem;
    display: block;
    line-height: 1.2;
    color: var(--text);
    white-space: nowrap;
}
.logo-tagline { font-size: 0.65rem; color: var(--text-secondary); display: block; }

.nav { display: flex; gap: 0.25rem; }
.nav-link {
    padding: 0.5rem 0.75rem;
    color: var(--text-secondary);
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: var(--radius);
    transition: all 0.2s;
}
.nav-link:hover, .nav-link.active { color: var(--primary); background: var(--primary-light); }

.header-actions { display: flex; align-items: center; gap: 0.25rem; }
.btn-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: var(--radius);
    border: none;
    background: transparent;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s;
}
.btn-icon:hover { background: var(--surface-hover); color: var(--text); }

/* Theme toggle icons */
[data-theme="light"] .icon-moon { display: none; }
[data-theme="dark"] .icon-sun { display: none; }

/* Dropdown */
.dropdown { position: relative; }
.dropdown-menu {
    position: absolute;
    top: calc(100% + 4px);
    right: 0;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    min-width: 140px;
    display: none;
    overflow: hidden;
    z-index: 50;
}
.dropdown.open .dropdown-menu { display: block; }
.dropdown-item {
    display: block;
    padding: 0.6rem 1rem;
    color: var(--text);
    font-size: 0.875rem;
    transition: background 0.2s;
}
.dropdown-item:hover { background: var(--surface-hover); color: var(--text); }
.dropdown-item.active { color: var(--primary); font-weight: 600; }

/* Mobile */
.mobile-menu-btn { display: none; }

/* ===== Buttons ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.625rem 1.5rem;
    border-radius: var(--radius);
    font-size: 0.875rem;
    font-weight: 500;
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--text);
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    gap: 0.5rem;
    line-height: 1.4;
}
.btn:hover { background: var(--surface-hover); color: var(--text); }
.btn-primary { background: var(--primary); color: #fff; border-color: var(--primary); }
.btn-primary:hover { background: var(--primary-hover); border-color: var(--primary-hover); color: #fff; }
.btn-outline { background: transparent; color: var(--primary); border-color: var(--primary); }
.btn-outline:hover { background: var(--primary-light); color: var(--primary); }
.btn-lg { padding: 0.875rem 2rem; font-size: 1rem; }
.btn-success { background: #22a050; color: #fff; border-color: #22a050; }
.btn-block { display: flex; width: 100%; }

/* ===== Hero ===== */
.hero {
    background: var(--hero-gradient);
    padding: 5rem 0 4rem;
}
.hero .container { display: flex; align-items: center; gap: 3rem; }
.hero-content { flex: 1; }
.hero-title { font-size: 2.5rem; font-weight: 700; line-height: 1.2; margin-bottom: 1rem; color: var(--text); }
.hero-subtitle { font-size: 1.1rem; color: var(--text-secondary); margin-bottom: 2rem; max-width: 540px; }
.hero-buttons { display: flex; gap: 0.75rem; flex-wrap: wrap; }
.hero-visual { flex: 0 0 320px; }
.hero-pattern { display: flex; flex-direction: column; gap: 12px; }
.wood-grain {
    height: 60px;
    border-radius: var(--radius);
    background: linear-gradient(90deg, var(--wood-1), var(--wood-2), var(--wood-3), var(--wood-2), var(--wood-1));
    background-size: 200% 100%;
    animation: woodShift 8s ease-in-out infinite;
    box-shadow: var(--shadow);
}
.wood-grain:nth-child(2) { animation-delay: -2s; opacity: 0.85; }
.wood-grain:nth-child(3) { animation-delay: -4s; opacity: 0.7; }
@keyframes woodShift { 0%, 100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }

/* ===== Stats ===== */
.stats { background: var(--primary); padding: 2.5rem 0; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; text-align: center; }
.stat-item { color: #fff; }
.stat-number { display: block; font-size: 2.2rem; font-weight: 700; line-height: 1.2; }
.stat-label { font-size: 0.85rem; opacity: 0.85; }

/* ===== Sections ===== */
.section { padding: 4rem 0; }
.section-alt { background: var(--bg-alt); }
.section-title {
    font-size: 1.75rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 2.5rem;
    color: var(--text);
}
.page-header {
    background: var(--hero-gradient);
    padding: 3rem 0 2rem;
}
.page-header h1 { font-size: 2rem; font-weight: 700; }

/* ===== Features ===== */
.features-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.feature-card {
    background: var(--surface);
    padding: 2rem 1.5rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    text-align: center;
    transition: transform 0.2s, box-shadow 0.2s;
}
.feature-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.feature-icon { color: var(--primary); margin-bottom: 1rem; }
.feature-card h3 { font-size: 1rem; margin-bottom: 0.5rem; }
.feature-card p { font-size: 0.85rem; color: var(--text-secondary); line-height: 1.5; }

/* ===== Products ===== */
.products-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.product-card {
    background: var(--surface);
    padding: 2rem 1.5rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    text-align: center;
    transition: transform 0.2s, box-shadow 0.2s;
}
.product-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.product-icon { color: var(--accent); margin-bottom: 1rem; }
.product-card h3 { font-size: 1.05rem; margin-bottom: 0.5rem; }
.product-card p { font-size: 0.85rem; color: var(--text-secondary); }
.products-grid-full { grid-template-columns: repeat(3, 1fr); }
.product-card-full { padding: 2.5rem 2rem; }
.product-card-full p { font-size: 0.9rem; }

/* ===== Articles ===== */
.articles-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.article-card {
    background: var(--surface);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
}
.article-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.article-image { display: block; aspect-ratio: 16/10; overflow: hidden; }
.article-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; }
.article-card:hover .article-image img { transform: scale(1.03); }
.article-body { padding: 1.25rem; }
.article-body time { font-size: 0.75rem; color: var(--text-muted); }
.article-body h3 { font-size: 1rem; margin: 0.4rem 0 0.5rem; line-height: 1.4; }
.article-body h3 a { color: var(--text); }
.article-body h3 a:hover { color: var(--primary); }
.article-body p { font-size: 0.85rem; color: var(--text-secondary); line-height: 1.5; }
.read-more { font-size: 0.85rem; font-weight: 500; display: inline-block; margin-top: 0.75rem; }

/* ===== Article Detail ===== */
.article-detail { padding: 3rem 0; }
.article-header { margin-bottom: 2rem; }
.article-header time { font-size: 0.85rem; color: var(--text-muted); }
.article-header h1 { font-size: 2rem; margin-top: 0.5rem; line-height: 1.3; }
.article-excerpt { font-size: 1.1rem; color: var(--text-secondary); margin-top: 0.75rem; }
.article-featured-image { margin-bottom: 2rem; border-radius: var(--radius-lg); overflow: hidden; }
.article-featured-image img { width: 100%; }
.prose { font-size: 1rem; line-height: 1.8; }
.prose h2, .prose h3 { margin: 1.5rem 0 0.75rem; }
.prose p { margin-bottom: 1rem; }
.prose img { border-radius: var(--radius); margin: 1rem 0; }
.prose ul, .prose ol { padding-left: 1.5rem; margin-bottom: 1rem; }
.prose li { margin-bottom: 0.25rem; list-style: disc; }
.article-share { margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid var(--border); display: flex; align-items: center; gap: 0.75rem; flex-wrap: wrap; }
.share-btn { padding: 0.4rem 0.9rem; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); font-size: 0.8rem; }
.share-btn:hover { background: var(--surface-hover); color: var(--text); }

/* ===== Gallery ===== */
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.gallery-grid-full { grid-template-columns: repeat(4, 1fr); }
.gallery-item {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    aspect-ratio: 4/3;
    cursor: pointer;
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; }
.gallery-item:hover img { transform: scale(1.05); }
.gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 0.75rem;
    background: linear-gradient(transparent, rgba(0,0,0,0.7));
    color: #fff;
    font-size: 0.8rem;
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 1000;
    background: rgba(0,0,0,0.9);
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 2rem;
}
.lightbox.active { display: flex; }
.lightbox img { max-width: 90vw; max-height: 80vh; border-radius: var(--radius); }
.lightbox p { color: #fff; margin-top: 1rem; font-size: 0.9rem; }
.lightbox-close {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    color: #fff;
    font-size: 2rem;
    background: none;
    border: none;
    cursor: pointer;
}

/* ===== Contact ===== */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; }
.contact-form .form-group { margin-bottom: 1rem; }
.contact-form label { display: block; font-size: 0.85rem; font-weight: 500; margin-bottom: 0.3rem; color: var(--text); }
.contact-form input, .contact-form textarea {
    width: 100%;
    padding: 0.625rem 0.875rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
    color: var(--text);
    font-size: 0.9rem;
    font-family: inherit;
    transition: border-color 0.2s;
}
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-color: var(--primary); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.contact-info-wrap h3 { margin-bottom: 1.5rem; }
.contact-item { display: flex; gap: 0.75rem; margin-bottom: 1.25rem; }
.contact-item svg { flex-shrink: 0; color: var(--primary); margin-top: 2px; }
.contact-item strong { display: block; font-size: 0.85rem; margin-bottom: 0.15rem; }
.contact-item p { font-size: 0.9rem; color: var(--text-secondary); }
.map-embed { border-radius: var(--radius-lg); overflow: hidden; }
.map-embed iframe { width: 100%; height: 250px; border: 0; }

/* ===== About ===== */
.content-block .lead { font-size: 1.1rem; color: var(--text-secondary); line-height: 1.7; max-width: 800px; text-align: center; margin: 0 auto; }
.card {
    background: var(--surface);
    padding: 2rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
}
.card-icon { color: var(--primary); margin-bottom: 1rem; }
.card h2 { font-size: 1.25rem; margin-bottom: 1rem; }
.mission-list { padding-left: 0; }
.mission-list li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
    font-size: 0.95rem;
    list-style: none;
}
.mission-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.85rem;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--primary);
}

/* ===== CTA ===== */
.cta {
    background: var(--cta-bg);
    color: var(--cta-text);
    padding: 4rem 0;
    text-align: center;
}
.cta h2 { font-size: 1.75rem; margin-bottom: 0.75rem; color: var(--cta-text); }
.cta p { font-size: 1rem; opacity: 0.8; margin-bottom: 1.5rem; }

/* ===== Pagination ===== */
.pagination { display: flex; justify-content: center; gap: 0.5rem; margin-top: 2rem; }
.pagination-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--text);
    font-size: 0.85rem;
}
.pagination-link.active { background: var(--primary); color: #fff; border-color: var(--primary); }

/* ===== Alert ===== */
.alert { padding: 0.875rem 1.25rem; border-radius: var(--radius); margin-bottom: 1.5rem; font-size: 0.9rem; }
.alert-success { background: #e8f5e9; color: #2e7d32; border: 1px solid #c8e6c9; }
.alert-error { background: #ffebee; color: #c62828; border: 1px solid #ffcdd2; }
[data-theme="dark"] .alert-success { background: #1b3a1b; color: #81c784; border-color: #2e5a2e; }
[data-theme="dark"] .alert-error { background: #3a1b1b; color: #ef9a9a; border-color: #5a2e2e; }

/* ===== Footer ===== */
.footer {
    background: var(--bg-alt);
    border-top: 1px solid var(--border);
    padding: 3rem 0 1.5rem;
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 2.5rem; margin-bottom: 2rem; }
.footer-logo { display: flex; align-items: center; gap: 0.5rem; margin-bottom: 1rem; color: var(--text); }
.footer-logo .logo-icon { color: var(--primary); }
.footer-desc { font-size: 0.85rem; color: var(--text-secondary); line-height: 1.6; }
.footer-col h4 { font-size: 0.9rem; font-weight: 600; margin-bottom: 1rem; }
.footer-col ul li { margin-bottom: 0.5rem; }
.footer-col ul li a { color: var(--text-secondary); font-size: 0.85rem; }
.footer-col ul li a:hover { color: var(--primary); }
.footer-col ul li svg { vertical-align: -3px; margin-right: 0.4rem; color: var(--primary); }
.footer-bottom { text-align: center; padding-top: 1.5rem; border-top: 1px solid var(--border); }
.footer-bottom p { font-size: 0.8rem; color: var(--text-muted); }

/* ===== Social Links ===== */
.social-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.85rem;
    padding: 0.3rem 0;
    transition: color 0.2s;
}
.social-link:hover { color: var(--primary); }
.social-link svg { flex-shrink: 0; }

/* ===== WhatsApp Float ===== */
.whatsapp-float {
    position: fixed;
    bottom: 2rem;
    left: 2rem;
    width: 56px;
    height: 56px;
    background: #25d366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(37,211,102,0.4);
    z-index: 50;
    transition: transform 0.2s, box-shadow 0.2s;
}
.whatsapp-float:hover { transform: scale(1.1); box-shadow: 0 6px 16px rgba(37,211,102,0.5); }

/* ===== Back to Top ===== */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    border: none;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-lg);
    z-index: 50;
    transition: opacity 0.3s, transform 0.3s;
}
.back-to-top.visible { display: flex; }

/* ===== Search ===== */
.search-dropdown { min-width: 280px; padding: 0.75rem; }
.search-form-mini { display: flex; gap: 0.5rem; }
.search-form-mini input {
    flex: 1;
    padding: 0.5rem 0.75rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--bg);
    color: var(--text);
    font-size: 0.85rem;
    font-family: inherit;
}
.search-form-mini input:focus { outline: none; border-color: var(--primary); }
.search-form-mini button {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--primary);
    color: #fff;
    cursor: pointer;
}

/* ===== Error Page ===== */
.error-page {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    text-align: center;
    padding: 2rem;
}
.error-page h1 { font-size: 6rem; color: var(--primary); font-weight: 700; }
.error-page p { font-size: 1.1rem; color: var(--text-secondary); margin: 1rem 0 2rem; }

/* ===== Improved Responsive ===== */

/* Tablet landscape (769px - 1024px) */
@media (min-width: 769px) and (max-width: 1024px) {
    .container { padding: 0 1.5rem; }
    .nav-link { padding: 0.4rem 0.5rem; font-size: 0.8rem; }
    .logo-text { font-size: 0.85rem; }
    .hero { padding: 3.5rem 0 3rem; }
    .hero-title { font-size: 2rem; }
    .hero-subtitle { font-size: 1rem; }
    .features-grid { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
    .products-grid { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
    .products-grid-full { grid-template-columns: repeat(2, 1fr); }
    .articles-grid { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
    .gallery-grid { grid-template-columns: repeat(3, 1fr); }
    .gallery-grid-full { grid-template-columns: repeat(3, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
    .section { padding: 3rem 0; }
    .section-title { font-size: 1.5rem; margin-bottom: 2rem; }
    .two-col { gap: 2rem; }
    .stats-grid { grid-template-columns: repeat(4, 1fr); }
}

/* Tablet portrait (601px - 768px) */
@media (min-width: 601px) and (max-width: 768px) {
    .container { padding: 0 1.25rem; }
    .hero { padding: 3rem 0 2.5rem; }
    .hero-title { font-size: 1.75rem; }
    .hero-subtitle { font-size: 0.95rem; }
    .hero-buttons .btn { padding: 0.5rem 1.25rem; font-size: 0.85rem; }
    .products-grid, .products-grid-full { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
    .articles-grid { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
    .gallery-grid, .gallery-grid-full { grid-template-columns: repeat(2, 1fr); gap: 0.75rem; }
    .features-grid { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
    .stat-number { font-size: 1.8rem; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 1.5rem; }
    .section { padding: 2.5rem 0; }
    .section-title { font-size: 1.35rem; margin-bottom: 1.75rem; }
    .page-header { padding: 2rem 0 1.5rem; }
    .page-header h1 { font-size: 1.6rem; }
    .two-col { grid-template-columns: 1fr; gap: 2rem; }
    .cta { padding: 3rem 0; }
    .cta h2 { font-size: 1.4rem; }
    .card { padding: 1.5rem; }
    .feature-card { padding: 1.5rem 1rem; }
    .product-card-full { padding: 1.5rem; }
}

/* Mobile large (481px - 600px) */
@media (min-width: 481px) and (max-width: 600px) {
    .container { padding: 0 1rem; }
    .header .container { height: 56px; gap: 0.5rem; }
    .logo-img { height: 30px !important; }
    .logo-text { font-size: 0.8rem; }
    .hero { padding: 2.5rem 0 2rem; }
    .hero-title { font-size: 1.5rem; }
    .hero-subtitle { font-size: 0.9rem; margin-bottom: 1.5rem; }
    .products-grid, .products-grid-full { grid-template-columns: repeat(2, 1fr); gap: 0.75rem; }
    .product-card, .product-card-full { padding: 1.25rem 1rem; }
    .product-card h3, .product-card-full h3 { font-size: 0.9rem; }
    .product-icon svg { width: 32px; height: 32px; }
    .articles-grid { grid-template-columns: 1fr; gap: 1rem; }
    .gallery-grid, .gallery-grid-full { grid-template-columns: repeat(2, 1fr); gap: 0.5rem; }
    .features-grid { grid-template-columns: 1fr; gap: 0.75rem; }
    .feature-card { padding: 1.25rem 1rem; }
    .stats { padding: 2rem 0; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
    .stat-number { font-size: 1.75rem; }
    .footer-grid { grid-template-columns: 1fr; gap: 1.5rem; }
    .section { padding: 2rem 0; }
    .section-title { font-size: 1.3rem; margin-bottom: 1.5rem; }
    .page-header { padding: 1.5rem 0; }
    .page-header h1 { font-size: 1.4rem; }
    .two-col { grid-template-columns: 1fr; gap: 1.5rem; }
    .cta { padding: 2.5rem 0; }
    .cta h2 { font-size: 1.3rem; }
    .cta p { font-size: 0.9rem; }
    .btn-lg { padding: 0.75rem 1.5rem; font-size: 0.9rem; }
    .card { padding: 1.25rem; }
    .contact-item p { font-size: 0.85rem; word-break: break-word; }
    .footer-col ul li { font-size: 0.8rem; }
    .article-body h3 { font-size: 0.95rem; }
    .whatsapp-float { width: 48px; height: 48px; bottom: 1.25rem; left: 1.25rem; }
    .whatsapp-float svg { width: 24px; height: 24px; }
    .back-to-top { width: 38px; height: 38px; bottom: 1.25rem; right: 1.25rem; }
}

/* Mobile small (max-width: 480px) */
@media (max-width: 480px) {
    .container { padding: 0 0.875rem; }
    .header .container { height: 52px; gap: 0.25rem; }
    .logo-img { height: 28px !important; }
    .logo-text { font-size: 0.75rem; }
    .btn-icon { width: 34px; height: 34px; }
    .hero { padding: 2rem 0 1.5rem; }
    .hero-title { font-size: 1.35rem; line-height: 1.3; }
    .hero-subtitle { font-size: 0.85rem; margin-bottom: 1.25rem; }
    .hero-buttons { gap: 0.5rem; }
    .hero-buttons .btn { padding: 0.5rem 1rem; font-size: 0.8rem; }
    .products-grid, .products-grid-full { grid-template-columns: 1fr 1fr; gap: 0.625rem; }
    .product-card, .product-card-full { padding: 1rem 0.75rem; }
    .product-card h3, .product-card-full h3 { font-size: 0.85rem; }
    .product-card p, .product-card-full p { font-size: 0.75rem; }
    .product-icon svg { width: 28px; height: 28px; }
    .articles-grid { grid-template-columns: 1fr; gap: 0.75rem; }
    .article-body { padding: 1rem; }
    .article-body h3 { font-size: 0.9rem; }
    .article-body p { font-size: 0.8rem; }
    .gallery-grid, .gallery-grid-full { grid-template-columns: 1fr 1fr; gap: 0.5rem; }
    .features-grid { grid-template-columns: 1fr; gap: 0.625rem; }
    .feature-card { padding: 1.25rem 1rem; }
    .feature-card h3 { font-size: 0.9rem; }
    .feature-card p { font-size: 0.8rem; }
    .feature-icon svg { width: 28px; height: 28px; }
    .stats { padding: 1.5rem 0; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 0.75rem; }
    .stat-number { font-size: 1.5rem; }
    .stat-label { font-size: 0.75rem; }
    .footer { padding: 2rem 0 1rem; }
    .footer-grid { grid-template-columns: 1fr; gap: 1.25rem; margin-bottom: 1.25rem; }
    .footer-col h4 { font-size: 0.85rem; margin-bottom: 0.75rem; }
    .footer-desc { font-size: 0.8rem; }
    .footer-col ul li { margin-bottom: 0.35rem; }
    .footer-col ul li a { font-size: 0.8rem; }
    .footer-bottom p { font-size: 0.7rem; }
    .section { padding: 1.75rem 0; }
    .section-title { font-size: 1.2rem; margin-bottom: 1.25rem; }
    .page-header { padding: 1.25rem 0; }
    .page-header h1 { font-size: 1.3rem; }
    .two-col { grid-template-columns: 1fr; gap: 1.25rem; }
    .form-row { grid-template-columns: 1fr; gap: 0.75rem; }
    .contact-form input, .contact-form textarea { padding: 0.5rem 0.75rem; font-size: 0.85rem; }
    .contact-form label { font-size: 0.8rem; }
    .contact-item { gap: 0.5rem; margin-bottom: 1rem; }
    .contact-item strong { font-size: 0.8rem; }
    .contact-item p { font-size: 0.8rem; word-break: break-word; }
    .cta { padding: 2rem 0; }
    .cta h2 { font-size: 1.2rem; margin-bottom: 0.5rem; }
    .cta p { font-size: 0.85rem; margin-bottom: 1rem; }
    .btn-lg { padding: 0.625rem 1.25rem; font-size: 0.85rem; }
    .card { padding: 1.25rem; }
    .card h2 { font-size: 1.1rem; }
    .content-block .lead { font-size: 0.95rem; }
    .mission-list li { font-size: 0.85rem; padding: 0.35rem 0 0.35rem 1.25rem; }
    .mission-list li::before { width: 6px; height: 6px; top: 0.75rem; }
    .whatsapp-float { width: 46px; height: 46px; bottom: 1rem; left: 1rem; }
    .whatsapp-float svg { width: 22px; height: 22px; }
    .back-to-top { width: 36px; height: 36px; bottom: 1rem; right: 1rem; }
    .back-to-top svg { width: 16px; height: 16px; }
    .search-dropdown { min-width: 240px; }
    .article-detail { padding: 2rem 0; }
    .article-header h1 { font-size: 1.4rem; }
    .article-excerpt { font-size: 0.95rem; }
    .prose { font-size: 0.9rem; }
    .article-share { gap: 0.5rem; }
    .share-btn { padding: 0.3rem 0.6rem; font-size: 0.75rem; }
    .lightbox img { max-width: 95vw; max-height: 70vh; }
    .lightbox p { font-size: 0.8rem; }
    .map-embed iframe { height: 200px; }
    .social-link { font-size: 0.8rem; padding: 0.25rem 0; }
    .social-link svg { width: 16px; height: 16px; }
    .pagination-link { width: 32px; height: 32px; font-size: 0.8rem; }
}

/* Very small screens (max-width: 360px) */
@media (max-width: 360px) {
    .container { padding: 0 0.75rem; }
    .header .container { height: 48px; }
    .logo-img { height: 24px !important; }
    .logo-text { font-size: 0.7rem; }
    .hero-title { font-size: 1.2rem; }
    .hero-subtitle { font-size: 0.8rem; }
    .hero-buttons { flex-direction: column; }
    .hero-buttons .btn { width: 100%; }
    .products-grid, .products-grid-full { grid-template-columns: 1fr; gap: 0.625rem; }
    .stat-number { font-size: 1.3rem; }
    .gallery-grid, .gallery-grid-full { grid-template-columns: 1fr; }
    .section-title { font-size: 1.1rem; }
    .page-header h1 { font-size: 1.15rem; }
    .cta h2 { font-size: 1.1rem; }
}

/* Mobile nav improvements */
@media (max-width: 768px) {
    .nav {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: var(--surface);
        flex-direction: column;
        padding: 5rem 1.5rem 2rem;
        gap: 0.25rem;
        z-index: 99;
        overflow-y: auto;
    }
    .nav.open { display: flex; }
    .nav-link {
        padding: 0.875rem 1rem;
        font-size: 1rem;
        border-radius: var(--radius);
        color: var(--text);
    }
    .nav-link:hover, .nav-link.active {
        background: var(--primary-light);
        color: var(--primary);
    }
    .mobile-menu-btn { display: flex; z-index: 100; }
    .hero .container { flex-direction: column; text-align: center; }
    .hero-subtitle { margin-left: auto; margin-right: auto; }
    .hero-buttons { justify-content: center; }
    .hero-visual { display: none; }
}

/* Ensure touch targets are at least 44px on mobile */
@media (max-width: 768px) {
    .btn-icon { min-width: 44px; min-height: 44px; }
    .dropdown-item { padding: 0.75rem 1rem; min-height: 44px; display: flex; align-items: center; }
    .footer-col ul li a { display: inline-block; padding: 0.25rem 0; min-height: 32px; line-height: 32px; }
}

/* Print styles */
@media print {
    .header, .footer, .whatsapp-float, .back-to-top { display: none; }
    .hero { padding: 1rem 0; background: none; }
    .section { padding: 1rem 0; }
}
