:root {
    --primary: #2563EB;
    --primary-dark: #1D4ED8;
    --gradient: linear-gradient(135deg, #2563EB 0%, #7C3AED 100%);
    --dark: #0F172A;
    --light: #F8FAFC;
    --text-main: #1E293B;
    --text-muted: #64748B;
    --white: #FFFFFF;
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Poppins', sans-serif; }
html { scroll-behavior: smooth; }
body { color: var(--text-main); background-color: var(--white); overflow-x: hidden; }

/* Utility */
.fade-in { opacity: 0; transform: translateY(25px); transition: opacity 0.6s ease, transform 0.6s ease; }
.fade-in.appear { opacity: 1; transform: translateY(0); }

/* Navigation */
header { position: fixed; top: 0; left: 0; width: 100%; background: rgba(255, 255, 255, 0.9); backdrop-filter: blur(8px); z-index: 1000; border-bottom: 1px solid #f1f5f9; transition: all 0.3s ease; }
header.scrolled { box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05); }
.nav-container { max-width: 1200px; margin: 0 auto; padding: 1rem 2rem; display: flex; justify-content: space-between; align-items: center; }
.logo { font-size: 1.5rem; font-weight: 700; color: var(--dark); text-decoration: none; }
.logo span { color: var(--primary); }

.nav-links { list-style: none; display: flex; align-items: center; gap: 2rem; }
.nav-link { text-decoration: none; color: var(--text-muted); font-weight: 500; font-size: 0.95rem; transition: color 0.2s; }
.nav-link:hover, .nav-link.active { color: var(--primary); }
.btn-nav { background: var(--gradient); color: var(--white) !important; padding: 0.5rem 1.25rem; border-radius: 50px; font-weight: 600; }
.hamburger { display: none; font-size: 1.5rem; cursor: pointer; color: var(--dark); }

/* Hero Section */
.hero { max-width: 1200px; margin: 120px auto 60px; padding: 2rem; display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; min-height: 70vh; }
.badge { display: inline-block; background: #EEF2FF; color: var(--primary); font-size: 0.8rem; font-weight: 600; padding: 0.4rem 1rem; border-radius: 50px; margin-bottom: 1.5rem; }
.hero h1 { font-size: 3.25rem; line-height: 1.15; font-weight: 700; color: var(--dark); margin-bottom: 1.5rem; }
.gradient-text { background: var(--gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.hero p { font-size: 1.1rem; color: var(--text-muted); margin-bottom: 2.5rem; line-height: 1.6; }
.hero-btns { display: flex; gap: 1rem; }
.btn { padding: 0.85rem 1.8rem; border-radius: 8px; font-weight: 600; text-decoration: none; display: inline-flex; align-items: center; gap: 0.5rem; transition: all 0.2s; }
.btn-primary { background: var(--gradient); color: var(--white); box-shadow: 0 10px 20px -5px rgba(37, 99, 235, 0.4); }
.btn-primary:hover { opacity: 0.95; transform: translateY(-2px); }
.btn-secondary { background: var(--light); color: var(--dark); border: 1px solid #E2E8F0; }
.btn-secondary:hover { background: #E2E8F0; }
.hero-image img { width: 100%; border-radius: 16px; box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15); }

/* About Section */
.about { background-color: var(--light); padding: 5rem 2rem; }
.about-grid { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: 3fr 2fr; gap: 4rem; align-items: center; }
.about-text h2 { font-size: 2.25rem; color: var(--dark); margin-bottom: 1.5rem; }
.about-text p { color: var(--text-muted); margin-bottom: 1rem; line-height: 1.7; }
.about-stats { display: flex; flex-direction: column; gap: 1.5rem; }
.stat-box { background: var(--white); padding: 1.5rem; border-radius: 12px; border-left: 5px solid var(--primary); box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05); }
.stat-box h3 { font-size: 2rem; color: var(--dark); }
.stat-box p { font-size: 0.9rem; color: var(--text-muted); font-weight: 500; }

/* Services */
.services, .portfolio { max-width: 1200px; margin: 0 auto; padding: 6rem 2rem; }
.section-header { text-align: center; max-width: 600px; margin: 0 auto 4rem; }
.section-header h2 { font-size: 2.5rem; color: var(--dark); margin-bottom: 0.5rem; }
.section-header p { color: var(--text-muted); }
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 2rem; }
.service-card { padding: 2.5rem; border-radius: 16px; border: 1px solid #E2E8F0; transition: all 0.3s ease; }
.service-card:hover { transform: translateY(-5px); box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.05); border-color: var(--primary); }
.service-icon { font-size: 2.5rem; color: var(--primary); margin-bottom: 1.5rem; display: inline-block; }
.service-card h3 { font-size: 1.25rem; color: var(--dark); margin-bottom: 0.75rem; }
.service-card p { font-size: 0.95rem; color: var(--text-muted); line-height: 1.6; }

/* Portfolio */
.portfolio-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 2rem; }
.portfolio-card { border-radius: 16px; overflow: hidden; border: 1px solid #E2E8F0; }
.card-img { height: 200px; background-size: cover; background-position: center; }
.card-content { padding: 1.75rem; }
.tag { font-size: 0.75rem; font-weight: 600; padding: 0.25rem 0.75rem; border-radius: 4px; text-transform: uppercase; display: inline-block; margin-bottom: 0.75rem; }
.tag-mobile { background: #E0E7FF; color: #4F46E5; }
.tag-web { background: #DCFCE7; color: #16A34A; }
.tag-cross { background: #FEF3C7; color: #D97706; }
.card-content h4 { font-size: 1.2rem; color: var(--dark); margin-bottom: 0.5rem; }
.card-content p { font-size: 0.9rem; color: var(--text-muted); }

/* Why Us */
.why-us { background: var(--dark); color: var(--white); padding: 6rem 2rem; }
.why-container { max-width: 1200px; margin: 0 auto; }
.why-container h2 { font-size: 2.5rem; text-align: center; margin-bottom: 4rem; }
.reasons-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 3rem; }
.reason-item { display: flex; gap: 1.25rem; align-items: flex-start; }
.reason-item i { font-size: 2rem; color: #38BDF8; flex-shrink: 0; }
.reason-item h4 { font-size: 1.15rem; margin-bottom: 0.5rem; }
.reason-item p { color: #94A3B8; font-size: 0.9rem; line-height: 1.5; }

/* Contact */
.contact { max-width: 1200px; margin: 0 auto; padding: 6rem 2rem; }
.contact-wrapper { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; background: var(--light); border-radius: 24px; padding: 3rem; border: 1px solid #E2E8F0; }
.contact-info h2 { font-size: 2.25rem; color: var(--dark); margin-bottom: 1rem; }
.contact-info p { color: var(--text-muted); margin-bottom: 2rem; }
.info-list { list-style: none; display: flex; flex-direction: column; gap: 1.25rem; margin-bottom: 2rem; }
.info-list li { display: flex; align-items: center; gap: 1rem; color: var(--dark); font-weight: 500; }
.info-list i { color: var(--primary); font-size: 1.2rem; width: 24px; }
.btn-whatsapp { display: inline-flex; align-items: center; gap: 0.5rem; background: #25D366; color: white; padding: 0.75rem 1.5rem; border-radius: 8px; font-weight: 600; text-decoration: none; margin-bottom: 2rem; transition: opacity 0.2s; }
.btn-whatsapp:hover { opacity: 0.9; }
.map-box { border-radius: 12px; overflow: hidden; border: 1px solid #CBD5E1; height: 160px; }

.contact-form { background: var(--white); padding: 2.5rem; border-radius: 16px; box-shadow: 0 10px 25px -5px rgba(0,0,0,0.05); }
.contact-form h3 { margin-bottom: 1.5rem; color: var(--dark); }
.form-group { margin-bottom: 1.25rem; }
.form-group label { display: block; font-size: 0.85rem; font-weight: 500; color: var(--text-muted); margin-bottom: 0.4rem; }
.form-group input, .form-group select, .form-group textarea { width: 100%; padding: 0.75rem; border-radius: 8px; border: 1px solid #CBD5E1; outline: none; transition: border 0.2s; }
.form-group input:focus, .form-group textarea:focus { border-color: var(--primary); }
.btn-submit { width: 100%; border: none; cursor: pointer; }

/* Footer */
footer { background: #090D16; color: #94A3B8; padding: 4rem 2rem 2rem; }
.footer-content { max-width: 1200px; margin: 0 auto; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 2rem; border-bottom: 1px solid #1E293B; padding-bottom: 2rem; margin-bottom: 2rem; }
.footer-left h3 { color: white; font-size: 1.5rem; margin-bottom: 0.5rem; }
.footer-left span { color: var(--primary); }
.footer-links { display: flex; gap: 1.5rem; flex-wrap: wrap; align-items: center; }
.footer-links a { color: #94A3B8; text-decoration: none; font-size: 0.9rem; transition: color 0.2s; }
.footer-links a:hover { color: white; }
.footer-social { display: flex; gap: 1rem; }
.footer-social a { width: 40px; height: 40px; border-radius: 50%; background: #1E293B; display: flex; align-items: center; justify-content: center; color: white; text-decoration: none; transition: background 0.2s; }
.footer-social a:hover { background: var(--primary); }
.copyright { text-align: center; font-size: 0.85rem; }

/* Responsive Media Queries */
@media(max-width: 968px) {
    .hero, .about-grid, .contact-wrapper { grid-template-columns: 1fr; gap: 2.5rem; }
    .hero { margin-top: 100px; text-align: center; }
    .hero-btns { justify-content: center; }
    .nav-links { position: absolute; top: 100%; left: -100%; width: 100%; background: white; flex-direction: column; padding: 2rem 0; box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1); transition: left 0.3s ease; }
    .nav-links.active { left: 0; }
    .hamburger { display: block; }
}

/* =========================================
   LEGAL / PRIVACY PAGE EXTENSIONS 
   ========================================= */

.page-header {
    margin-top: 80px;
    padding: 4.5rem 2rem 2.5rem;
    background-color: var(--light);
    text-align: center;
    border-bottom: 1px solid #E2E8F0;
}
.page-header h1 { font-size: 2.85rem; color: var(--dark); margin: 0.5rem 0; font-weight: 700; }

.legal-container {
    max-width: 900px;
    margin: 4rem auto;
    padding: 0 1.5rem;
}
.legal-card {
    background: var(--white);
    padding: 3.5rem 4rem;
    border-radius: 20px;
    border: 1px solid #E2E8F0;
    box-shadow: 0 10px 30px -5px rgba(0,0,0,0.04);
}

.last-updated {
    display: inline-block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary);
    background: #EEF2FF;
    padding: 0.4rem 1rem;
    border-radius: 6px;
    margin-bottom: 2rem;
}

.lead-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-main);
    margin-bottom: 2.5rem;
    border-bottom: 1px solid #F1F5F9;
    padding-bottom: 2rem;
}

.legal-card h2 {
    font-size: 1.35rem;
    color: var(--dark);
    margin: 2.5rem 0 1rem;
    font-weight: 600;
}

.legal-card p {
    color: var(--text-muted);
    line-height: 1.75;
    margin-bottom: 1.25rem;
    font-size: 0.96rem;
}

.legal-list {
    margin: 0 0 1.5rem 1.5rem;
    color: var(--text-muted);
    line-height: 1.8;
    font-size: 0.95rem;
}
.legal-list li { margin-bottom: 0.4rem; }

.legal-callout {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: #F0FDF4;
    border: 1px solid #BBF7D0;
    padding: 1.25rem;
    border-radius: 10px;
    margin: 1.5rem 0;
}
.legal-callout i { color: #16A34A; font-size: 1.4rem; }
.legal-callout p { margin: 0; color: #15803D; font-size: 0.9rem; }

.legal-contact-box {
    margin-top: 1.5rem;
    padding: 1.5rem;
    background: var(--light);
    border-radius: 12px;
    border-left: 4px solid var(--primary);
}
.legal-contact-box p { margin-bottom: 0.3rem; color: var(--dark); font-weight: 500; }
.legal-contact-box i { color: var(--primary); width: 22px; }

@media(max-width: 768px) {
    .legal-card { padding: 2rem 1.5rem; }
    .page-header h1 { font-size: 2.2rem; }
}