:root {
    --primary-bg: #ffffff;
    --secondary-bg: #f4f6f8;
    --dark-bg: #0D0D3F;
    --accent: #1F7E7C;
    --accent-hover: #166664;
    --accent-light: rgba(31, 126, 124, 0.08);
    --text-main: #1a1a2e;
    --text-muted: #586069;
    --text-light: #ffffff;
    --border-color: #e1e4e8;

    /* Professional/Serious Shadows */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.1);

    /* Sharper Radius for Enterprise feel */
    --radius-sm: 2px;
    --radius-md: 4px;
    --radius-lg: 6px;

    --transition: all 0.2s ease-in-out;
    --font-main: 'Inter', system-ui, -apple-system, sans-serif;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

section[id] {
    scroll-margin-top: 6rem;
}

body {
    font-family: var(--font-main);
    color: var(--text-main);
    background-color: var(--primary-bg);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    line-height: 1.2;
    color: var(--dark-bg);
    letter-spacing: -0.02em;
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    margin-bottom: 1.5rem;
}

h2 {
    font-size: clamp(2rem, 4vw, 2.5rem);
    margin-bottom: 1rem;
}

h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

p {
    margin-bottom: 1.5rem;
    color: var(--text-muted);
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

.container {
    width: 100%;
    max-width: 1200px;
    /* Slightly tighter for reading */
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Utilities */
.text-accent {
    color: var(--accent);
}

.text-light {
    color: var(--text-light);
}

.bg-dark {
    background-color: var(--dark-bg);
    color: var(--text-light);
}

.bg-gray {
    background-color: var(--secondary-bg);
}

.section-padding {
    padding: 3rem 0;
}

.text-center {
    text-align: center;
}

.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

/* Buttons - Corporate Style */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: var(--radius-sm);
    transition: var(--transition);
    cursor: pointer;
    gap: 0.5rem;
    letter-spacing: 0.01em;
}

.btn-primary {
    background-color: var(--accent);
    color: white;
    border: 1px solid var(--accent);
}

.btn-primary:hover {
    background-color: var(--accent-hover);
    border-color: var(--accent-hover);
    transform: translateY(-1px);
}

.btn-secondary {
    background-color: transparent;
    color: var(--dark-bg);
    border: 1px solid var(--dark-bg);
}

.btn-secondary:hover {
    background-color: var(--dark-bg);
    color: white;
}

/* Header - Professional Dark Theme */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: var(--dark-bg);
    color: white;
    padding: 1rem 0;
    transition: var(--transition);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.header.scrolled {
    padding: 0.75rem 0;
    box-shadow: var(--shadow-md);
    background-color: rgba(13, 13, 63, 0.98);
    backdrop-filter: blur(10px);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-weight: 700;
    font-size: 1.5rem;
    color: white;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    letter-spacing: -0.02em;
}

.logo img {
    height: 2.25rem;
    width: auto;
    /* Ensure logo looks good on dark bg */
    filter: brightness(0) invert(1);
}

.nav-desktop {
    display: none;
}

@media (min-width: 768px) {
    .nav-desktop {
        display: flex;
        align-items: center;
        gap: 2.5rem;
    }

    .nav-link {
        font-weight: 500;
        font-size: 0.95rem;
        color: rgba(255, 255, 255, 0.85);
        position: relative;
    }

    .nav-link:hover {
        color: white;
    }

    .nav-link::after {
        content: '';
        position: absolute;
        bottom: -4px;
        left: 0;
        width: 0;
        height: 1px;
        background-color: var(--accent);
        transition: var(--transition);
    }

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

.menu-toggle {
    display: block;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: white;
    cursor: pointer;
}

@media (min-width: 768px) {
    .menu-toggle {
        display: none;
    }
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    height: 100vh;
    background-color: var(--dark-bg);
    z-index: 999;
    transform: translateX(100%);
    transition: transform 0.3s ease-in-out;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2rem;
}

.mobile-menu.active {
    transform: translateX(0);
}

.mobile-menu a {
    color: white;
    font-size: 1.5rem;
    font-weight: 600;
}

.mobile-menu-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: none;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
}

/* Hero Section - Clean & Authoritative */
.hero {
    padding: 8rem 0 6rem;
    /* Reduced top padding */
    position: relative;
    background-color: white;
    background-image: radial-gradient(circle at 100% 0%, rgba(31, 126, 124, 0.08) 0%, transparent 25%),
        radial-gradient(circle at 0% 100%, rgba(13, 13, 63, 0.05) 0%, transparent 25%);
}

.hero-content {
    max-width: 800px;
}

.hero-subtitle {
    display: inline-block;
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
}

.hero-description {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    max-width: 650px;
    color: var(--text-muted);
}

.hero-features {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 1.5rem;
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

@media (min-width: 576px) {
    .hero-features {
        grid-template-columns: repeat(2, 1fr);
    }
}

.hero-feature {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.95rem;
    color: var(--dark-bg);
    font-weight: 600;
}

.hero-feature i {
    color: var(--accent);
}

/* Cards - Enterprise Style */
.card {
    background: white;
    border-radius: var(--radius-md);
    padding: 2.5rem 2rem;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid var(--border-color);
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: transparent;
    transition: var(--transition);
}

.card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: rgba(31, 126, 124, 0.3);
}

.card:hover::before {
    background-color: var(--accent);
}

.card-icon {
    width: 3rem;
    height: 3rem;
    background-color: var(--secondary-bg);
    color: var(--accent);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    transition: var(--transition);
}

.card:hover .card-icon {
    background-color: var(--accent);
    color: white;
}

.card-title {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--dark-bg);
}

/* Split Layout (Desafíos) */
.split-layout {
    display: grid;
    gap: 3rem;
}

@media (min-width: 992px) {
    .split-layout {
        grid-template-columns: 1fr 1fr;
        align-items: center;
    }
}

.split-cards.problems-grid-2x2 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 576px) {
    .split-cards.problems-grid-2x2 {
        grid-template-columns: 1fr 1fr;
    }
}

/* Problems Section */
.problems-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

/* Services Section */
.services-section {
    background-color: var(--secondary-bg);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.service-list {
    margin-top: auto;
    /* Push to bottom if needed, or just spacing */
}

.service-list li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.75rem;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.service-list li::before {
    content: "\f00c";
    /* FontAwesome Check */
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    color: var(--accent);
    font-size: 0.75rem;
    position: absolute;
    left: 0;
    top: 0.2rem;
}

/* Dark Section (Advanced Services) */
.dark-section {
    background-color: var(--dark-bg);
    color: var(--text-light);
}

.dark-section .card {
    background-color: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: none;
}

.dark-section .card:hover {
    background-color: rgba(255, 255, 255, 0.06);
    border-color: var(--accent);
}

.dark-section .card-title {
    color: white;
}

.dark-section .card-icon {
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
}

.dark-section .card:hover .card-icon {
    background-color: var(--accent);
}

.dark-section .text-muted {
    color: rgba(255, 255, 255, 0.6);
}

.dark-section .service-list li {
    color: rgba(255, 255, 255, 0.85);
    /* Increased contrast */
}

.dark-section p {
    color: rgba(255, 255, 255, 0.85);
    /* Increased contrast */
}

/* Contact */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr;
    gap: 4rem;
    align-items: start;
}

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

.contact-info h2 {
    margin-bottom: 1.5rem;
}

.contact-detail {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 2rem;
}

.contact-detail-icon {
    width: 2.5rem;
    height: 2.5rem;
    background-color: var(--secondary-bg);
    color: var(--dark-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    font-size: 1rem;
}

.contact-form-container {
    background: white;
    padding: 0;
    /* Tally embed handles padding usually, or minimal */
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}

/* Footer */
.footer {
    background-color: #0a0a22;
    /* Slightly darker than dark-bg */
    color: white;
    padding: 3rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
    text-align: center;
    justify-content: center;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-btn {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: var(--radius-sm);
    /* Square for pro look */
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.social-btn:hover {
    background-color: var(--accent);
    transform: translateY(-2px);
}

/* WhatsApp */
.whatsapp-float {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background-color: #25D366;
    color: white;
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    transition: var(--transition);
}

.whatsapp-float:hover {
    transform: scale(1.1);
}

/* Animations */
.fade-up {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* About Section */
.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
}

.about-item h3 {
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
    color: var(--dark-bg);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.about-item h3::before {
    content: '';
    display: block;
    width: 4px;
    height: 1.2em;
    background-color: var(--accent);
    border-radius: 2px;
}

.about-item p {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 0;
}