@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Montserrat:wght@700;800&display=swap');

:root {
    /* Base Colors - Generic Professional */
    --primary: #2563eb;
    --primary-rgb: 37, 99, 235;
    --secondary: #64748b;
    --accent: #3b82f6;
    --bg-main: #ffffff;
    --bg-alt: #f8fafc;
    --text-main: #0f172a;
    --text-muted: #475569;
    --border: #e2e8f0;
    --glass-bg: rgba(255, 255, 255, 0.95);
    --glass-border: rgba(255, 255, 255, 0.5);
    --shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);

    --nav-height: 80px;
    --container-max: 1280px;
    --radius: 1rem;
    --trans: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Theme: Agricultura (Green & White) */
body.theme-agro {
    --primary: #059669;
    --primary-rgb: 5, 150, 105;
    --accent: #10b981;
    --bg-alt: #f0fdf4;
}

/* Theme: Smart Cities (Blue & White) */
body.theme-cities {
    --primary: #0284c7;
    --primary-rgb: 2, 132, 199;
    --accent: #0ea5e9;
    --bg-alt: #f0f9ff;
}

/* Theme: Industria (Factory/Industrial) */
body.theme-industry {
    --primary: #334155;
    --primary-rgb: 51, 65, 85;
    --accent: #f59e0b;
    --bg-alt: #f1f5f9;
}

body.theme-industry nav {
    background: #ffffff;
    box-shadow: var(--shadow);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
    -webkit-font-smoothing: antialiased;
}

body {
    background-color: var(--bg-main);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 2rem;
}

/* Navigation */
nav {
    height: var(--nav-height);
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    display: flex;
    align-items: center;
    transition: var(--trans);
}

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

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

.logo img {
    height: 45px;
    transition: var(--trans);
}

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

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

.nav-links a {
    text-decoration: none;
    color: var(--text-main);
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--trans);
    position: relative;
}

.nav-links a:hover {
    color: var(--primary);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: var(--trans);
}

.nav-links a:hover::after {
    width: 100%;
}

/* Language Switcher */
.lang-switcher {
    display: flex;
    gap: 0.1rem;
    padding: 0.2rem;
    background: #f8fafc;
    border-radius: 0.5rem;
    border: 1px solid var(--border);
}

.lang-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 0.75rem;
    font-weight: 800;
    cursor: pointer;
    padding: 0.25rem 0.5rem;
    border-radius: 0.35rem;
    transition: var(--trans);
    text-transform: uppercase;
}

.lang-btn:hover {
    color: var(--primary);
}

.lang-btn.active {
    color: var(--primary) !important;
    background: white;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* Hero Section */
.hero {
    padding: 12rem 0 8rem;
    background: radial-gradient(circle at top right, rgba(var(--primary-rgb), 0.05), transparent 40%),
        radial-gradient(circle at bottom left, rgba(var(--primary-rgb), 0.02), transparent 40%);
}

.hero h1 {
    font-size: 4.5rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: var(--text-main);
}

.hero h1 span {
    color: var(--primary);
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-muted);
    max-width: 600px;
    margin-bottom: 3rem;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    padding: 1rem 2.5rem;
    border-radius: var(--radius);
    text-decoration: none;
    font-weight: 700;
    transition: var(--trans);
    cursor: pointer;
}

.btn.primary {
    background: var(--primary);
    color: white;
    box-shadow: 0 10px 15px -3px rgba(var(--primary-rgb), 0.3);
}

.btn.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 25px -5px rgba(var(--primary-rgb), 0.4);
}

/* Cards */
.card-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
    margin-top: 4rem;
}

@media (max-width: 1024px) {
    .card-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .card-grid {
        grid-template-columns: 1fr;
    }
}

.card {
    background: white;
    padding: 0;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    transition: var(--trans);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.card:hover {
    transform: translateY(-12px);
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.1);
    border-color: var(--primary);
}

.card .icon {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: var(--primary);
    background: rgba(var(--primary-rgb), 0.05);
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 1rem;
}

/* Sections */
section {
    padding: 10rem 0;
}

.section-tag {
    color: var(--primary);
    text-transform: uppercase;
    font-weight: 800;
    letter-spacing: 0.1em;
    font-size: 0.85rem;
    margin-bottom: 1rem;
    display: block;
}

/* Footer */
footer {
    background: var(--bg-alt);
    padding: 8rem 0 4rem;
    border-top: 1px solid var(--border);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 4rem;
    margin-bottom: 6rem;
}

.footer-brand p {
    margin-top: 1.5rem;
    color: var(--text-muted);
}

.footer-links h4 {
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.footer-links ul {
    list-style: none;
}

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

.footer-links a {
    text-decoration: none;
    color: var(--text-muted);
    transition: var(--trans);
}

.footer-links a:hover {
    color: var(--primary);
}

/* Animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: var(--trans);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 3rem;
    }

    .nav-links {
        display: none;
    }

    .nav-right {
        gap: 1rem;
    }
}