/* ============================================
   AMSA SYSTEMS — Global Stylesheet
   Version: 1.0.0
   Last updated: 2026-06-09
   ============================================ */

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

:root {
    /* AMSA Core Dark Theme */
    --amsa-dark: #0B1120;
    --amsa-dark-2: #111827;
    --amsa-dark-3: #1A2332;
    --amsa-dark-card: #162032;

    /* QMS Wizard — Blue */
    --qms-900: #0D47A1;
    --qms-700: #1565C0;
    --qms-500: #42A5F5;
    --qms-300: #90CAF9;
    --qms-100: #E3F2FD;
    --qms-gradient: linear-gradient(135deg, #0D47A1, #42A5F5);
    --qms-gradient-light: linear-gradient(135deg, #1565C0, #64B5F6);
    --qms-glow: rgba(66,165,245,0.15);

    /* FORCE — Teal */
    --force-900: #00695C;
    --force-700: #009688;
    --force-500: #26A69A;
    --force-100: #E0F2F1;
    --force-glow: rgba(38,166,154,0.12);

    /* SOps — Purple */
    --sops-900: #4A148C;
    --sops-700: #7B1FA2;
    --sops-500: #BA68C8;
    --sops-100: #F3E5F5;
    --sops-glow: rgba(186,104,200,0.12);

    /* Neutrals */
    --gray-50: #F8FAFC;
    --gray-100: #F1F5F9;
    --gray-200: #E2E8F0;
    --gray-300: #CBD5E1;
    --gray-400: #94A3B8;
    --gray-500: #64748B;
    --gray-600: #475569;
    --gray-700: #334155;
    --gray-800: #1E293B;
    --gray-900: #0F172A;
    --white: #FFFFFF;

    /* Status */
    --green: #10B981;
    --green-dark: #059669;
    --green-light: #D1FAE5;
    --amber: #F59E0B;
    --amber-light: #FEF3C7;
    --red: #EF4444;
    --red-light: #FEE2E2;

    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.15);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.2);
    --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.25);
    --shadow-glow: 0 0 40px var(--qms-glow);

    /* Radius */
    --radius: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
}

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--gray-300);
    background: var(--amsa-dark);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }

/* ====== LANGUAGE SYSTEM ====== */
.lang-toggle {
    position: fixed; top: 20px; right: 20px; z-index: 1000;
    display: flex; background: var(--amsa-dark-3);
    border: 1px solid rgba(66,165,245,0.15); border-radius: 8px;
    overflow: hidden; box-shadow: var(--shadow-lg);
}
.lang-toggle button {
    padding: 7px 14px; border: none; background: transparent;
    cursor: pointer; font-size: 12px; font-weight: 600;
    color: var(--gray-500); transition: all 0.2s;
    font-family: inherit;
}
.lang-toggle button.active { background: var(--qms-700); color: var(--white); }
.lang-toggle button:hover:not(.active) { background: rgba(255,255,255,0.05); }

[data-lang="en"] { display: none; }
body.lang-en [data-lang="en"] { display: block; }
body.lang-en [data-lang="es"] { display: none; }
body.lang-en span[data-lang="en"], body.lang-en a[data-lang="en"] { display: inline; }
body.lang-en span[data-lang="es"], body.lang-en a[data-lang="es"] { display: none; }
span[data-lang="en"], a[data-lang="en"] { display: none; }
span[data-lang="es"], a[data-lang="es"] { display: inline; }

/* ====== NAVIGATION ====== */
nav {
    background: rgba(11,17,32,0.92); backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(66,165,245,0.06);
    position: sticky; top: 0; z-index: 900; padding: 14px 0;
}
nav .container { display: flex; align-items: center; justify-content: space-between; }

.logo { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.logo-icon {
    width: 40px; height: 40px;
    background: linear-gradient(135deg, #0D47A1 0%, #42A5F5 60%, #90CAF9 100%);
    border-radius: 10px; display: flex; align-items: center; justify-content: center;
    color: white; font-weight: 800; font-size: 13px;
    box-shadow: 0 0 24px rgba(66,165,245,0.25);
    position: relative; overflow: hidden;
}
.logo-icon::after {
    content: ''; position: absolute; top: -50%; left: -50%; width: 200%; height: 200%;
    background: linear-gradient(45deg, transparent 40%, rgba(255,255,255,0.12) 50%, transparent 60%);
    animation: logoShine 4s ease-in-out infinite;
}
@keyframes logoShine { 0%,100% { transform: translateX(-100%); } 50% { transform: translateX(100%); } }

.logo-text { font-size: 19px; font-weight: 800; color: var(--white); letter-spacing: -0.5px; }
.logo-text .sys {
    background: linear-gradient(90deg, var(--qms-500), var(--qms-300));
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
    font-weight: 600;
}

.nav-links { display: flex; gap: 28px; list-style: none; align-items: center; }
.nav-links a {
    text-decoration: none; color: var(--gray-400); font-weight: 500;
    font-size: 13px; transition: color 0.2s; letter-spacing: 0.2px;
}
.nav-links a:hover { color: var(--qms-500); }
.nav-cta {
    background: linear-gradient(135deg, var(--qms-900), var(--qms-500)) !important;
    color: var(--white) !important; padding: 9px 22px !important;
    border-radius: 8px; font-weight: 600 !important;
    box-shadow: 0 4px 16px rgba(13,71,161,0.35); transition: all 0.25s !important;
}
.nav-cta:hover { transform: translateY(-1px); box-shadow: 0 6px 24px rgba(13,71,161,0.45); }

.mobile-menu-btn { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.mobile-menu-btn span { display: block; width: 22px; height: 2px; background: var(--gray-400); margin: 5px 0; transition: 0.3s; }

/* ====== BUTTONS ====== */
.btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 14px 28px; border-radius: 10px; font-weight: 600;
    font-size: 15px; text-decoration: none; transition: all 0.25s;
    cursor: pointer; border: none; font-family: inherit;
}
.btn-primary {
    background: var(--qms-gradient); color: var(--white);
    box-shadow: 0 4px 24px rgba(13,71,161,0.4);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 32px rgba(13,71,161,0.5); }
.btn-secondary {
    background: transparent; color: var(--qms-500);
    border: 1px solid rgba(66,165,245,0.25);
}
.btn-secondary:hover { background: rgba(66,165,245,0.08); border-color: var(--qms-500); }
.btn-white { background: var(--white); color: var(--qms-900); }
.btn-white:hover { transform: translateY(-2px); box-shadow: 0 8px 32px rgba(255,255,255,0.15); }
.btn-sm { padding: 10px 20px; font-size: 13px; border-radius: 8px; }

/* ====== SECTION LABELS ====== */
.section-label {
    display: inline-block; font-size: 12px; font-weight: 700;
    text-transform: uppercase; letter-spacing: 2px; margin-bottom: 12px;
    background: linear-gradient(135deg, var(--qms-500), var(--qms-300));
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}

/* ====== FOOTER ====== */
footer {
    padding: 48px 0 24px; background: var(--amsa-dark);
    border-top: 1px solid rgba(255,255,255,0.04);
}
.footer-top { display: grid; grid-template-columns: 1.2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-brand-col .f-logo { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.footer-brand-col .f-logo-icon {
    width: 32px; height: 32px; border-radius: 8px;
    background: linear-gradient(135deg, var(--qms-900), var(--qms-500));
    display: flex; align-items: center; justify-content: center;
    color: white; font-weight: 800; font-size: 10px;
}
.footer-brand-col .f-logo-text { font-size: 15px; font-weight: 800; color: var(--white); }
.footer-brand-col .f-logo-text .sys { color: var(--qms-500); font-weight: 600; }
.footer-brand-col > p, .footer-brand-col > div > p { font-size: 13px; color: var(--gray-500); line-height: 1.6; }
.footer-col h4 { font-size: 12px; font-weight: 700; color: var(--gray-400); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 16px; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col a { text-decoration: none; font-size: 13px; color: var(--gray-500); transition: color 0.2s; }
.footer-col a:hover { color: var(--qms-500); }
.footer-product-link { display: flex; align-items: center; gap: 6px; }
.footer-product-dot { width: 8px; height: 8px; border-radius: 2px; }
.footer-bottom {
    display: flex; justify-content: space-between; align-items: center;
    padding-top: 24px; border-top: 1px solid rgba(255,255,255,0.04);
    font-size: 12px; color: var(--gray-600); flex-wrap: wrap; gap: 12px;
}

/* ====== ANIMATIONS ====== */
@keyframes fadeInUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: translateY(0); } }
@keyframes pulse { 0%,100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.5; transform: scale(1.3); } }
@keyframes orbFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(20px, -15px) scale(1.05); }
    66% { transform: translate(-10px, 10px) scale(0.95); }
}

/* ====== RESPONSIVE ====== */
@media (max-width: 1024px) {
    .footer-top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
    .nav-links { display: none; }
    .mobile-menu-btn { display: block; }
    .footer-top { grid-template-columns: 1fr; }
    .lang-toggle { top: auto; bottom: 16px; right: 16px; }
}
