/* Aliados Consulting Services - Design System */

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

:root {
    /* Color Palette */
    --primary: #0047AB; /* Deep Blue */
    --primary-light: #0076FF; /* Electric Blue */
    --accent: #00D1FF; /* Cyan */
    --success: #00C853;
    --dark: #0A0F1D;
    --dark-surface: #121826;
    --white: #FFFFFF;
    --text-main: #E2E8F0;
    --text-muted: #94A3B8;
    
    /* Gradients */
    --grad-primary: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    --grad-dark: linear-gradient(180deg, var(--dark) 0%, var(--dark-surface) 100%);
    --grad-glass: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
    
    /* Layout */
    --container-width: 1200px;
    --header-height: 80px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    background-color: var(--dark);
    color: var(--text-main);
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    font-family: 'Outfit', sans-serif;
    color: var(--white);
    font-weight: 700;
}

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

ul {
    list-style: none;
}

img {
    max-width: 100%;
}

/* --- Layout Components --- */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 100px 0;
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    gap: 10px;
    font-family: 'Outfit', sans-serif;
    transition: var(--transition);
}

.btn-primary {
    background: var(--grad-primary);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(0, 71, 171, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 71, 171, 0.5);
}

.btn-outline {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--white);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--white);
}

/* --- Navigation --- */
nav {
    height: var(--header-height);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: var(--transition);
    display: flex;
    align-items: center;
}

nav.scrolled {
    background: rgba(10, 15, 29, 0.8);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    height: 70px;
}

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

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    transition: var(--transition);
}

.logo img {
    height: 45px;
    width: auto;
    object-fit: contain;
    transition: var(--transition);
}

.logo:hover img {
    transform: scale(1.05);
}

.footer-img-logo {
    max-width: 180px;
    height: auto;
    margin-bottom: 25px;
    display: block;
}

.nav-links {
    display: flex;
    gap: 30px;
}

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

.mobile-only {
    display: none;
}

#nav-auth-container {
    display: none;
    width: 100%;
    justify-content: center;
}

#nav-auth-container.visible {
    display: flex;
}

/* --- Hamburger Menu --- */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    z-index: 1100;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--white);
    border-radius: 2px;
    transition: var(--transition);
}

.hamburger.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* --- Hero Section --- */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: stretch;
    position: relative;
    padding-top: var(--header-height);
    background: radial-gradient(circle at 10% 20%, rgba(0, 71, 171, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 90% 80%, rgba(0, 209, 255, 0.05) 0%, transparent 50%);
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: stretch;
    gap: 60px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    margin-bottom: 60px;
    text-align: left;
}

.hero-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 40px 0;
}

.hero-content h1 {
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 25px;
}

.hero-content p {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 40px;
    max-width: 500px;
}

.hero-image {
    position: relative;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    height: 100%;
}

.hero-image img {
    filter: drop-shadow(0 -10px 30px rgba(0,0,0,0.2)); /* Sombra sutil solo arriba/lados */
    max-height: 90vh;
    width: auto;
    object-fit: contain;
    display: block;
    margin-bottom: 0;
    vertical-align: bottom;
}

/* --- Features / Badges --- */
.hero-badges {
    display: flex;
    gap: 20px;
    margin-top: 50px;
}

.badge {
    background: var(--grad-glass);
    padding: 10px 20px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    backdrop-filter: blur(5px);
}

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

/* --- Service Cards --- */
.grid-services {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.card {
    background: var(--grad-glass);
    padding: 40px;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-10px);
    border-color: var(--accent);
    background: rgba(255, 255, 255, 0.08);
}

.card-link {
    display: block;
    text-decoration: none;
    color: inherit;
    height: 100%;
}

.card-link:hover .card {
    transform: translateY(-10px);
    border-color: var(--accent);
    background: rgba(255, 255, 255, 0.08);
}

.card-icon {
    width: 60px;
    height: 60px;
    background: var(--grad-primary);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
    font-size: 1.5rem;
    color: var(--white);
}

/* --- Responsive --- */
@media (max-width: 991px) {
    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-content h1 {
        font-size: 2.8rem;
    }
    
    .hero-content p {
        margin-left: auto;
        margin-right: auto;
    }
    
    .hero-badges {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        height: 100vh;
        background: var(--dark-surface);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: 0.5s;
        z-index: 1000;
        box-shadow: -10px 0 30px rgba(0,0,0,0.5);
    }

    .nav-links.active {
        right: 0;
    }

    .mobile-only {
        display: block;
        margin-top: 10px;
    }

    #nav-auth-container {
        margin-top: 10px;
    }

    .hamburger {
        display: flex;
    }

    .nav-actions {
        display: none;
    }

    .hero-grid {
        gap: 30px;
    }

    .hero-image img {
        max-width: 90%;
        max-height: 50vh;
        margin-top: 20px;
    }

    .section {
        padding: 60px 0;
    }

    .card {
        padding: 25px;
    }

    footer .hero-grid, .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }

    footer .hero-grid > div, .footer-grid > div {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .logo {
        justify-content: center;
    }
}

@media (max-width: 576px) {
    .hero-content h1 {
        font-size: 2.2rem;
    }

    .hero-badges {
        gap: 10px;
    }

    .badge {
        padding: 8px 15px;
        font-size: 0.8rem;
    }
}
