:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --primary-light: #dbeafe;
    --secondary: #1e293b;
    --accent: #10b981;
    --bg-primary: #ffffff;
    --bg-secondary: #f8fafc;
    --bg-tertiary: #f1f5f9;
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-tertiary: #64748b;
    --border: #e2e8f0;
    --shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 20px 25px -5px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 25px 50px -12px rgb(0 0 0 / 0.25);
    --font-primary: 'Inter', sans-serif;
    --font-display: 'Playfair Display', serif;
    --radius: 0.5rem;
    --radius-lg: 1rem;
    --transition: 300ms ease;
}

[data-theme="dark"] {
    --primary: #3b82f6;
    --primary-light: #1e3a5f;
    --bg-primary: #0f172a;
    --bg-secondary: #1e293b;
    --bg-tertiary: #334155;
    --text-primary: #f8fafc;
    --text-secondary: #cbd5e1;
    --text-tertiary: #94a3b8;
    --border: #334155;
}

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

html { scroll-behavior: smooth; }

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

.container { max-width: 1280px; margin: 0 auto; padding: 0 1rem; }
@media (min-width: 640px) { .container { padding: 0 1.5rem; } }
@media (min-width: 1024px) { .container { padding: 0 2rem; } }

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

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

button { font-family: inherit; cursor: pointer; border: none; background: none; }

ul { list-style: none; }

/* Typography */
.section-tag { display: inline-block; font-size: 0.875rem; font-weight: 600; text-transform: uppercase; color: var(--primary); margin-bottom: 0.75rem; }
.section-title { font-family: var(--font-display); font-size: 2rem; font-weight: 600; margin-bottom: 1rem; }
.section-title .highlight { color: var(--primary); }
.section-subtitle { font-size: 1.125rem; color: var(--text-secondary); }

/* Navigation */
.navbar { position: fixed; top: 0; left: 0; right: 0; z-index: 1000; padding: 1rem 0; transition: all var(--transition); }
.navbar.scrolled { background: var(--bg-primary); box-shadow: var(--shadow); }
.navbar .container { display: flex; align-items: center; justify-content: space-between; }

.logo { display: flex; align-items: center; gap: 0.75rem; font-weight: 700; }
.logo-img { height: 40px; width: auto; max-width: 150px; object-fit: contain; }
.logo-icon { width: 40px; height: 40px; background: var(--primary); color: white; display: flex; align-items: center; justify-content: center; border-radius: var(--radius); font-size: 0.875rem; font-weight: 700; }
.logo-text { font-size: 1.25rem; }

.nav-menu { display: none; align-items: center; gap: 2rem; }
.nav-link { font-size: 0.875rem; font-weight: 500; color: var(--text-secondary); position: relative; }
.nav-link::after { content: ''; position: absolute; bottom: -4px; left: 0; width: 0; height: 2px; background: var(--primary); transition: width var(--transition); }
.nav-link:hover, .nav-link.active { color: var(--primary); }
.nav-link:hover::after, .nav-link.active::after { width: 100%; }

.theme-toggle { width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; border-radius: 50%; color: var(--text-secondary); }
.theme-toggle:hover { background: var(--bg-tertiary); }
.sun-icon { display: none; }
[data-theme="dark"] .sun-icon { display: block; }
[data-theme="dark"] .moon-icon { display: none; }

.nav-toggle { display: flex; flex-direction: column; gap: 5px; }
.nav-toggle span { width: 24px; height: 2px; background: var(--text-primary); transition: all var(--transition); }

@media (min-width: 1024px) {
    .nav-menu { display: flex; }
    .nav-toggle { display: none; }
    .logo-img { height: 45px; }
    .footer-logo-img { height: 40px; }
}

@media (max-width: 1023px) {
    .nav-menu { position: fixed; top: 70px; left: 0; right: 0; bottom: 0; background: var(--bg-primary); flex-direction: column; padding: 2rem; gap: 1.5rem; transform: translateX(100%); transition: transform var(--transition); }
    .nav-menu.active { display: flex; transform: translateX(0); }
    .nav-link { font-size: 1.25rem; }
}

/* WhatsApp Float */
.whatsapp-float { position: fixed; bottom: 1.5rem; right: 1.5rem; z-index: 1000; width: 60px; height: 60px; background: #25d366; border-radius: 50%; display: flex; align-items: center; justify-content: center; box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7), var(--shadow-lg); transition: transform var(--transition); animation: whatsapp-pulse 2s infinite; }
.whatsapp-float:hover { transform: scale(1.1); animation: none; box-shadow: 0 0 20px 10px rgba(37, 211, 102, 0.5), var(--shadow-lg); }
.whatsapp-float svg { width: 32px; height: 32px; color: white; }
@keyframes whatsapp-pulse {
    0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7), var(--shadow-lg); }
    70% { box-shadow: 0 0 0 20px rgba(37, 211, 102, 0), var(--shadow-lg); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0), var(--shadow-lg); }
}

/* Email Float Button */
.email-float { position: fixed; bottom: 1.5rem; right: 5.5rem; z-index: 1000; width: 60px; height: 60px; background: #2563eb; border-radius: 50%; display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow-lg); transition: transform var(--transition); }
.email-float:hover { transform: scale(1.1); }
.email-float svg { width: 32px; height: 32px; color: white; }

/* Hero */
.hero { position: relative; min-height: 100vh; display: flex; align-items: center; padding-top: 80px; }
.hero-background { position: absolute; inset: 0; z-index: -1; }
.hero-image { width: 100%; height: 100%; object-fit: cover; }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(to right, rgba(15, 23, 42, 0.95), rgba(15, 23, 42, 0.7)); }
.hero-content { max-width: 720px; color: white; }
.hero-subtitle { font-size: 0.875rem; font-weight: 600; text-transform: uppercase; color: var(--primary); margin-bottom: 1rem; }
.hero-title { font-family: var(--font-display); font-size: 2.5rem; font-weight: 600; line-height: 1.1; margin-bottom: 1.5rem; }
.hero-title .highlight { color: var(--primary); }
.hero-description { font-size: 1.125rem; color: rgba(255,255,255,0.8); margin-bottom: 2rem; }
.hero-buttons { display: flex; flex-wrap: wrap; gap: 1rem; margin-bottom: 3rem; }
.hero-stats { display: flex; flex-wrap: wrap; gap: 2rem; }
.stat { text-align: center; }
.stat-number { display: block; font-size: 1.875rem; font-weight: 700; color: var(--primary); }
.stat-label { font-size: 0.875rem; color: rgba(255,255,255,0.7); }

@media (min-width: 768px) { .hero-title { font-size: 3rem; } }
@media (min-width: 1024px) { .hero-title { font-size: 3.75rem; } }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; padding: 0.75rem 1.5rem; font-size: 0.875rem; font-weight: 600; border-radius: var(--radius); transition: all 150ms ease; white-space: nowrap; }
.btn-primary { background: var(--primary); color: white; box-shadow: var(--shadow); }
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-2px); }
.btn-secondary { border: 2px solid var(--border); color: var(--text-primary); }
.btn-secondary:hover { border-color: var(--primary); color: var(--primary); }
.btn-light { background: white; color: var(--secondary); }
.btn-outline-light { border: 2px solid rgba(255,255,255,0.3); color: white; }
.btn-full { width: 100%; }

/* Sections */
.section { padding: 4rem 0; }
@media (min-width: 768px) { .section { padding: 6rem 0; } }
.section-header { text-align: center; margin-bottom: 3rem; }

/* About */
.about-grid { display: grid; gap: 3rem; align-items: center; }
.about-content { order: 2; }
.about-image { order: 1; position: relative; }
.about-image img { border-radius: var(--radius-lg); box-shadow: var(--shadow-xl); }
.about-text { color: var(--text-secondary); margin-bottom: 1rem; }
.feature-item { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 0.75rem; }
.feature-icon { width: 24px; height: 24px; color: var(--primary); }
.experience-badge { position: absolute; bottom: -20px; right: -20px; background: var(--primary); color: white; padding: 1.5rem; border-radius: var(--radius-lg); text-align: center; box-shadow: var(--shadow-xl); }
.badge-number { display: block; font-size: 1.875rem; font-weight: 700; }
.badge-text { font-size: 0.75rem; }
@media (min-width: 1024px) { .about-grid { grid-template-columns: 1fr 1fr; } .about-content { order: 1; } .about-image { order: 2; } }

/* Services */
.services { background: var(--bg-secondary); }
.services-grid { display: grid; gap: 1.5rem; }
.service-card { background: var(--bg-primary); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); transition: all var(--transition); }
.service-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-xl); }
.service-image { height: 200px; overflow: hidden; }
.service-image img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--transition); }
.service-card:hover .service-image img { transform: scale(1.1); }
.service-content { padding: 1.5rem; }
.service-icon { width: 48px; height: 48px; display: flex; align-items: center; justify-content: center; background: var(--primary-light); color: var(--primary); border-radius: var(--radius); margin-bottom: 1rem; }
.service-icon svg { width: 24px; height: 24px; }
.service-title { font-size: 1.25rem; margin-bottom: 0.75rem; }
.service-description { color: var(--text-secondary); font-size: 0.875rem; margin-bottom: 1rem; }
.service-benefits { margin-bottom: 1rem; }
.service-benefits li { font-size: 0.875rem; color: var(--text-secondary); padding-left: 1rem; position: relative; margin-bottom: 0.5rem; }
.service-benefits li::before { content: '→'; position: absolute; left: 0; color: var(--primary); }
.service-link { font-size: 0.875rem; font-weight: 600; color: var(--primary); }
.service-link:hover { color: var(--primary-dark); }
@media (min-width: 640px) { .services-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .services-grid { grid-template-columns: repeat(3, 1fr); } }

/* Cases */
.cases-grid { display: grid; gap: 1.5rem; }
.case-card { background: var(--bg-primary); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1.5rem; }
.case-card:hover { box-shadow: var(--shadow-lg); }
.case-header { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.5rem; padding-bottom: 1rem; border-bottom: 1px solid var(--bg-secondary); }
.case-logo { width: 56px; height: 56px; border-radius: var(--radius); object-fit: cover; }
.case-info h4 { font-size: 1.125rem; margin-bottom: 0.25rem; }
.case-info span { font-size: 0.875rem; color: var(--text-tertiary); }
.case-problem, .case-solution { font-size: 0.875rem; color: var(--text-secondary); margin-bottom: 1rem; }
.case-problem strong, .case-solution strong { color: var(--text-primary); display: block; margin-bottom: 0.25rem; }
.case-results { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem; padding-top: 1.5rem; border-top: 1px solid var(--bg-secondary); }
.result { text-align: center; flex: 1; min-width: 90px; background: var(--bg-secondary); border-radius: var(--radius); padding: 1rem 0.75rem; }
.result-number { display: block; font-size: 2rem; font-weight: 800; color: var(--accent); line-height: 1; margin-bottom: 0.5rem; }
.result-text { font-size: 0.75rem; font-weight: 600; color: var(--text-secondary); text-transform: uppercase; letter-spacing: 0.02em; }
@media (min-width: 768px) { .cases-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .cases-grid { grid-template-columns: repeat(3, 1fr); } }

/* Testimonials */
.testimonials { background: var(--bg-secondary); }
.testimonial-card { display: none; max-width: 800px; margin: 0 auto; text-align: center; }
.testimonial-card.active { display: block; animation: fadeIn 0.5s; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
.testimonial-content { position: relative; margin-bottom: 2rem; }
.quote-icon { font-family: var(--font-display); font-size: 120px; color: var(--primary); opacity: 0.2; line-height: 1; margin-bottom: -60px; }
.testimonial-text { font-family: var(--font-display); font-size: 1.25rem; font-style: italic; line-height: 1.6; }
.testimonial-author { display: flex; align-items: center; justify-content: center; gap: 1rem; }
.author-image { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; border: 3px solid var(--primary); }
.author-info h4 { font-size: 1.125rem; margin-bottom: 0.25rem; }
.author-info span { font-size: 0.875rem; color: var(--text-tertiary); }
.testimonial-dots { display: flex; justify-content: center; gap: 0.5rem; margin-top: 2rem; }
.dot { width: 12px; height: 12px; border-radius: 50%; background: var(--border); transition: all var(--transition); }
.dot.active { background: var(--primary); }

/* Blog */
.blog-grid { display: grid; gap: 1.5rem; }
.blog-card { background: var(--bg-primary); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); transition: all var(--transition); }
.blog-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.blog-image { position: relative; height: 220px; overflow: hidden; }
.blog-image img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--transition); }
.blog-card:hover .blog-image img { transform: scale(1.05); }
.blog-category { position: absolute; top: 1rem; left: 1rem; background: var(--primary); color: white; padding: 0.25rem 0.75rem; border-radius: var(--radius); font-size: 0.75rem; font-weight: 600; text-transform: uppercase; }
.blog-content { padding: 1.5rem; }
.blog-meta { display: flex; gap: 1rem; margin-bottom: 0.75rem; font-size: 0.75rem; color: var(--text-tertiary); }
.blog-title { font-size: 1.125rem; margin-bottom: 0.75rem; line-height: 1.4; }
.blog-excerpt { font-size: 0.875rem; color: var(--text-secondary); margin-bottom: 1rem; }
.blog-link { font-size: 0.875rem; font-weight: 600; color: var(--primary); }
.blog-cta { text-align: center; margin-top: 2rem; }
@media (min-width: 768px) { .blog-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .blog-grid { grid-template-columns: repeat(3, 1fr); } }

/* FAQ */
.faq { background: var(--bg-secondary); }
.faq-grid { display: grid; gap: 3rem; max-width: 1000px; margin: 0 auto; }
.faq-description { color: var(--text-secondary); margin-bottom: 1.5rem; }
.faq-accordion { display: flex; flex-direction: column; gap: 0.75rem; }
.faq-item { background: var(--bg-primary); border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--border); }
.faq-question { width: 100%; display: flex; align-items: center; justify-content: space-between; padding: 1.25rem; font-size: 1rem; font-weight: 600; text-align: left; transition: background var(--transition); }
.faq-question:hover { background: var(--bg-secondary); }
.faq-question svg { width: 20px; height: 20px; transition: transform var(--transition); }
.faq-item.active .faq-question svg { transform: rotate(180deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height var(--transition); }
.faq-item.active .faq-answer { max-height: 500px; }
.faq-answer p { padding: 0 1.25rem 1.25rem; font-size: 0.875rem; color: var(--text-secondary); }

/* Contact */
.contact-grid { display: grid; gap: 3rem; }
.contact-description { color: var(--text-secondary); margin-bottom: 2rem; }
.contact-details { display: flex; flex-direction: column; gap: 1.5rem; margin-bottom: 2rem; }
.contact-item { display: flex; align-items: flex-start; gap: 1rem; }
.contact-icon { width: 48px; height: 48px; display: flex; align-items: center; justify-content: center; background: var(--primary-light); color: var(--primary); border-radius: var(--radius); flex-shrink: 0; }
.contact-icon svg { width: 20px; height: 20px; }
.contact-text { display: flex; flex-direction: column; }
.contact-label { font-size: 0.875rem; font-weight: 600; margin-bottom: 0.25rem; }
.contact-value { font-size: 0.875rem; color: var(--text-secondary); }
.contact-social { display: flex; gap: 1rem; }
.social-link { width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; background: var(--bg-secondary); border-radius: 50%; color: var(--text-secondary); transition: all var(--transition); }
.social-link:hover { background: var(--primary); color: white; }
.social-link svg { width: 20px; height: 20px; }

/* Contact Form */
.contact-form-wrapper { background: var(--bg-primary); border-radius: var(--radius-lg); box-shadow: var(--shadow-xl); }
.contact-form { padding: 2rem; }
.form-header { text-align: center; margin-bottom: 1.5rem; }
.form-header h3 { font-size: 1.5rem; margin-bottom: 0.5rem; }
.form-header p { font-size: 0.875rem; color: var(--text-secondary); }
.form-group { margin-bottom: 1.25rem; }
.form-group label { display: block; font-size: 0.875rem; font-weight: 500; margin-bottom: 0.5rem; }
.form-group input, .form-group select, .form-group textarea { width: 100%; padding: 0.75rem 1rem; border: 1px solid var(--border); border-radius: var(--radius); font-size: 0.875rem; background: var(--bg-primary); color: var(--text-primary); transition: border-color var(--transition); }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { outline: none; border-color: var(--primary); }
.form-row { display: grid; gap: 1rem; }
@media (min-width: 640px) { .form-row { grid-template-columns: 1fr 1fr; } }
.form-note { font-size: 0.75rem; color: var(--text-tertiary); text-align: center; margin-top: 1rem; }

@media (min-width: 1024px) { .contact-grid { grid-template-columns: 1fr 1fr; } }

/* CTA Section */
.cta-section { background: var(--secondary); padding: 4rem 0; }
.cta-content { text-align: center; color: white; }
.cta-title { font-family: var(--font-display); font-size: 2rem; margin-bottom: 1rem; }
.cta-description { font-size: 1.125rem; color: rgba(255,255,255,0.8); margin-bottom: 2rem; max-width: 600px; margin-left: auto; margin-right: auto; }
.cta-buttons { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem; }

/* Footer */
.footer { background: var(--bg-secondary); padding: 4rem 0 2rem; }
.footer-grid { display: grid; gap: 2rem; margin-bottom: 3rem; }
.footer-brand { max-width: 320px; }
.footer-logo { display: flex; align-items: center; gap: 0.75rem; font-weight: 700; margin-bottom: 1rem; }
.footer-logo-img { height: 35px; width: auto; max-width: 120px; object-fit: contain; }
.footer-description { font-size: 0.875rem; color: var(--text-secondary); margin-bottom: 1rem; }
.footer-contact { font-size: 0.875rem; color: var(--text-secondary); display: flex; flex-direction: column; gap: 0.25rem; }
.footer-links h4 { font-size: 1rem; font-weight: 600; margin-bottom: 1rem; }
.footer-links ul { display: flex; flex-direction: column; gap: 0.5rem; }
.footer-links a { font-size: 0.875rem; color: var(--text-secondary); transition: color var(--transition); }
.footer-links a:hover { color: var(--primary); }
.footer-bottom { display: flex; flex-direction: column; gap: 1rem; padding-top: 2rem; border-top: 1px solid var(--border); }
.copyright { font-size: 0.875rem; color: var(--text-tertiary); }
.footer-social { display: flex; gap: 1.5rem; }
.footer-social a { font-size: 0.875rem; color: var(--text-secondary); transition: color var(--transition); }
.footer-social a:hover { color: var(--primary); }

@media (min-width: 768px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; } .footer-bottom { flex-direction: row; justify-content: space-between; align-items: center; } }

/* Animations */
.fade-in { opacity: 0; animation: fadeInUp 0.8s ease forwards; }
.slide-up { opacity: 0; transform: translateY(40px); }
.slide-up.visible { animation: slideUp 0.6s ease forwards; }
.slide-in-left { opacity: 0; transform: translateX(-40px); }
.slide-in-left.visible { animation: slideInLeft 0.6s ease forwards; }
.slide-in-right { opacity: 0; transform: translateX(40px); }
.slide-in-right.visible { animation: slideInRight 0.6s ease forwards; }

@keyframes fadeInUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes slideUp { from { opacity: 0; transform: translateY(40px); } to { opacity: 1; transform: translateY(0); } }
@keyframes slideInLeft { from { opacity: 0; transform: translateX(-40px); } to { opacity: 1; transform: translateX(0); } }
@keyframes slideInRight { from { opacity: 0; transform: translateX(40px); } to { opacity: 1; transform: translateX(0); } }

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

