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

:root {
    --bg-color: #fcfcfd;
    --text-color: #333;
    --header-bg: rgba(255, 255, 255, 0.85);
    --popup-bg: #fff;
    --border-color: #f0f0f0;
    --hover-bg: #f4f5f7;
    --link-color: #4314e8;
    --link-hover: #8b5cf6;
    --close-color: #333;
    --shadow-color: rgba(0, 0, 0, 0.05);
    --popup-shadow: rgba(0, 0, 0, 0.1);
}

[data-theme="dark"] {
    --bg-color: #121212;
    --text-color: #e0e0e0;
    --header-bg: rgba(18, 18, 18, 0.85);
    --popup-bg: #1e1e1e;
    --border-color: #333;
    --hover-bg: #2a2a2a;
    --link-color: #8b5cf6;
    --link-hover: #a78bfa;
    --close-color: #e0e0e0;
    --shadow-color: rgba(255, 255, 255, 0.05);
    --popup-shadow: rgba(0, 0, 0, 0.5);
}

html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
    box-sizing: border-box;
}

*, *:before, *:after {
    box-sizing: inherit;
}

a {
    text-decoration: none !important;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    font-family: 'Inter', sans-serif;
    position: relative;
    top: 0 !important;
    transition: background-color 0.3s ease, color 0.3s ease;
}

img {
    max-width: 100%;
    height: auto;
}

header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: transparent;
    transition: all 0.3s ease;
}

header.glass-effect {
    background: var(--header-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 4px 6px var(--shadow-color);
}

.header-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 40px;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 30px;
    margin: 0;
    padding: 0;
}

.nav-links a {
    color: var(--link-color);
    font-weight: 600;
    font-size: 16px;
    transition: color 0.3s;
}

.nav-links a:hover, .nav-links a.active-link {
    color: var(--link-hover);
}

.action-buttons {
    display: flex;
    align-items: center;
    gap: 15px;
}

.theme-toggle-btn {
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: var(--link-color);
    transition: color 0.3s ease, transform 0.3s ease;
    background: transparent;
    border: none;
    padding: 5px;
}

.theme-toggle-btn:hover {
    color: var(--link-hover);
    transform: scale(1.1);
}

.lang-icon-btn {
    cursor: pointer;
    display: flex;
    align-items: center;
}

.lang-text-icon {
    font-size: 14px;
    font-weight: 700;
    color: var(--link-color);
    border: 2px solid var(--link-color);
    border-radius: 20px;
    padding: 4px 12px;
    background: transparent;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lang-icon-btn:hover .lang-text-icon {
    background: var(--link-color);
    color: var(--bg-color);
}

.hamburger {
    display: none;
    font-size: 24px;
    color: var(--link-color);
    cursor: pointer;
}

#content-area {
    flex: 1;
    margin-top: 100px;
    padding: 20px;
    max-width: 1200px;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
}

.whatsapp-float {
    position: fixed;
    bottom: 50px;
    right: 30px;
    background: linear-gradient(135deg, #4A00E0 0%, #8E2DE2 100%);
    color: #ffffff;
    padding: 12px 24px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 10px 20px rgba(142, 45, 226, 0.2);
    z-index: 1000;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.whatsapp-float:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 20px rgba(142, 45, 226, 0.4);
}

.whatsapp-float i {
    font-size: 20px;
}

.lang-popup {
    position: fixed;
    top: 80px;
    right: 20px;
    width: 220px;
    background: var(--popup-bg);
    border-radius: 16px;
    box-shadow: 0 10px 30px var(--popup-shadow);
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-15px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
}

.lang-popup.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.popup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid var(--border-color);
}

.popup-header h3 {
    margin: 0;
    font-size: 16px;
    color: var(--link-color);
    font-weight: 700;
}

#close-popup {
    font-size: 24px;
    cursor: pointer;
    color: var(--close-color);
    line-height: 1;
}

.popup-body {
    padding: 15px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.lang-option {
    background: transparent;
    border: none;
    padding: 10px 12px;
    text-align: left;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.2s ease;
    color: var(--text-color);
    font-family: 'Inter', sans-serif;
}

.lang-option:hover {
    background: var(--hover-bg);
    color: var(--link-color);
}

.skiptranslate {
    display: none !important;
}

@media (max-width: 992px) {
    .header-container {
        padding: 15px;
    }

    .header-right {
        gap: 20px;
        flex-direction: row;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        background: var(--header-bg);
        backdrop-filter: blur(10px);
        box-shadow: 0 10px 10px var(--shadow-color);
        padding: 20px 0;
        text-align: center;
    }

    .nav-links.active {
        display: flex;
    }

    .hamburger {
        display: block;
    }

    .whatsapp-float {
        bottom: 80px;
        right: 20px;
        padding: 10px 20px;
        font-size: 14px;
    }
}
