/* global.css */

:root {
    --primary: #00b2a9;
    --secondary: #008b77;
    --accent: #001E5E;
    --light: #f8f9fa;
    --dark: #0F172A;
    --success: #10b981;
    --accent-light: #fed7aa;
    --neutral: #d1d5db;
    --primary-dark: #006666;
    --highlight: #e0f2fe;
    --contrast: #ffffff;
    --gradient: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    --hero-overlay: linear-gradient(135deg,
            rgba(0, 102, 102, 0.3) 30%,
            rgba(15, 23, 42, 0.2) 100%);
    --dark-gradient: linear-gradient(135deg, var(--accent) 0%, var(--dark) 100%);
    --shadow-elegant: 0 12px 40px rgba(15, 23, 42, 0.15);
    --shadow-hover: 0 20px 50px rgba(15, 23, 42, 0.2);
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--dark);
}

.navbar {
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.navbar-shrink {
    background: rgba(255, 255, 255, 0.95) !important;
}

.navbar.shadow {
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.custom-logo {
    max-height: 45px;
    width: auto;
}

.navbar-nav {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.nav-item {
    display: flex;
    align-items: center;
}

.nav-link {
    position: relative;
    font-weight: 500;
    color: var(--dark) !important;
    transition: all 0.3s ease;
    padding: 0.4rem 0.8rem;
    font-size: 0.9rem;
}

.nav-link.active {
    color: var(--primary) !important;
}

.nav-underline {
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s ease;
}

.nav-link.active .nav-underline {
    width: 100%;
}

.cta-link {
    background: var(--gradient) !important;
    border: none !important;
    transition: all 0.3s ease;
    padding: 0.4rem 1.2rem;
    border-radius: 25px;
    display: flex;
    align-items: center;
    height: 36px;
    font-size: 0.9rem;
}

.cta-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 178, 169, 0.3);
}

.language-switch {
    display: flex;
    align-items: center;
    background-color: white;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border-radius: 20px;
    overflow: hidden;
    height: 36px;
    width: 120px;
    padding: 2px;
}

.language-option {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
    height: 32px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.85rem;
    font-weight: 600;
    border-radius: 16px;
    margin: 0;
    padding: 0 8px;
    text-align: center;
    line-height: 1;
}

.language-option img {
    height: 18px;
    max-width: 26px;
    width: auto;
    margin-right: 4px;
    object-fit: contain;
}

.language-option.active {
    background-color: var(--primary);
    color: white;
}

.language-option:not(.active) {
    color: var(--dark);
}

.language-option:not(.active):hover {
    background-color: #f3f4f6;
}

@media (max-width: 992px) {
    .navbar-nav {
        text-align: center;
        flex-direction: column;
        gap: 0.8rem;
        align-items: center;
    }

    .nav-item {
        width: 100%;
        display: flex;
        justify-content: center;
    }

    .nav-link {
        padding: 0.6rem 0;
        width: fit-content;
        text-align: center;
    }

    .cta-link {
        width: fit-content;
        margin: 0.4rem auto;
        height: auto;
    }

    .language-switch {
        margin: 0.4rem auto;
        width: 120px;
        height: 36px;
    }

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

    .nav-item:has(.language-switch) {
        justify-content: center;
        align-items: center;
    }

    .nav-item:last-child {
        justify-content: center;
        align-items: center;
    }
}

@media (min-width: 992px) and (max-width: 1199.98px) {
    .nav-item {
        font-size: 0.85rem;
    }

    .language-option {
        padding: 0 6px;
        font-size: 0.8rem;
    }

    .language-option img {
        height: 16px;
        max-width: 20px;
        width: auto;
        margin-right: 3px;
        object-fit: contain;
    }
}

.text-gradient {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 600;
}

.top-button {
    position: fixed;
    bottom: 100px;
    right: 20px;
    z-index: 1000;
    width: 60px;
    height: 60px;
    background: var(--gradient);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: var(--shadow-elegant);
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    text-decoration: none;
}

.top-button:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--secondary) 100%);
    text-decoration: none; 
}

.top-button i {
    font-size: 20px;
    color: var(--contrast);
    display: flex;
    justify-content: center;
    align-items: center;
    line-height: 1;
    width: 100%;
    height: 100%;
    margin: 0; 
    padding: 0;
}