/* ═══════════════════════════════════════════
   KODEXA.ES — Design System
   Colores de marca extraídos de los logos SVG:
   Azul oscuro:   #134480
   Azul brillante:#0087ff / #0992e8
   Azul medio:    #1c5499
   Fondo oscuro:  #02090e
   ═══════════════════════════════════════════ */

/* ─── TOKENS ─── */
:root {
    --font-head: 'Space Grotesk', sans-serif;
    --font-body: 'Inter', sans-serif;
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --tr: 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ─── DARK THEME (default) ─── */
[data-theme="dark"] {
    --bg:       #02090e;
    --bg-2:     #080f18;
    --bg-3:     #0d1929;
    --bg-card:  #0a1221;
    --border:   rgba(0,135,255,0.1);
    --border-h: rgba(0,135,255,0.25);
    --text:     #e8f0fc;
    --text-2:   #7a95bc;
    --text-3:   #3d5478;
    --accent:   #0087ff;
    --accent-d: #134480;
    --accent-m: #1c5499;
    --accent-g: rgba(0,135,255,0.2);
    --nav-bg:   rgba(2,9,14,0.88);
    --shadow:   0 20px 60px rgba(0,0,0,0.6);
    --dot:      rgba(0,135,255,0.04);
    --tag-bg:   rgba(0,135,255,0.1);
    --tag-text: #5ab3ff;
}

/* ─── LIGHT THEME ─── */
[data-theme="light"] {
    --bg:       #f0f5ff;
    --bg-2:     #e4edf9;
    --bg-3:     #d5e3f5;
    --bg-card:  #ffffff;
    --border:   rgba(19,68,128,0.1);
    --border-h: rgba(19,68,128,0.25);
    --text:     #02090e;
    --text-2:   #2a4470;
    --text-3:   #5a7aaa;
    --accent:   #0073e6;
    --accent-d: #134480;
    --accent-m: #1c5499;
    --accent-g: rgba(0,115,230,0.12);
    --nav-bg:   rgba(240,245,255,0.92);
    --shadow:   0 20px 60px rgba(19,68,128,0.12);
    --dot:      rgba(19,68,128,0.05);
    --tag-bg:   rgba(19,68,128,0.08);
    --tag-text: #134480;
}

/* ─── RESET ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
    font-family: var(--font-body);
    background: var(--bg);
    color: var(--text);
    line-height: 1.7;
    overflow-x: hidden;
    transition: background var(--tr), color var(--tr);
}

/* Dot grid background */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image: radial-gradient(var(--dot) 1px, transparent 1px);
    background-size: 28px 28px;
    pointer-events: none;
    z-index: 0;
}

/* ─── ACCESSIBILITY ─── */
:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
    border-radius: 4px;
}
.sr-only { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); border:0; }

/* ─── TOP BANNER ─── */
.top-banner {
    background: linear-gradient(90deg, var(--accent-d), var(--accent));
    color: #fff;
    text-align: center;
    padding: 9px 3rem;
    font-size: 13px;
    font-weight: 500;
    position: relative;
    z-index: 102;
}
.top-banner a { color: #fff; font-weight: 700; }
.banner-close {
    position: absolute;
    right: 1rem; top: 50%;
    transform: translateY(-50%);
    background: none; border: none;
    color: rgba(255,255,255,0.7);
    cursor: pointer; font-size: 14px;
    padding: 4px;
}

/* ─── NAV ─── */
.nav {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--nav-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    transition: background var(--tr);
}
.nav-inner {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 2rem;
    height: 66px;
    display: flex;
    align-items: center;
    gap: 1.5rem;
}
.logo-link { display: flex; align-items: center; flex-shrink: 0; }
.logo-img { height: 36px; width: auto; transition: opacity var(--tr); }
.logo-light { display: none; }
.logo-dark-img { display: block; }
[data-theme="light"] .logo-light { display: block; }
[data-theme="light"] .logo-dark-img { display: none; }

.nav-links {
    display: flex;
    list-style: none;
    gap: 2px;
    margin-left: auto;
    align-items: center;
}
.nav-links a {
    text-decoration: none;
    color: var(--text-2);
    font-size: 14px;
    font-weight: 500;
    padding: 7px 13px;
    border-radius: var(--radius-sm);
    transition: all var(--tr);
    white-space: nowrap;
}
.nav-links a:hover, .nav-links a.active { color: var(--text); background: var(--bg-3); }

/* Dropdown */
.nav-dropdown { position: relative; }
.dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 8px;
    min-width: 220px;
    box-shadow: var(--shadow);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: all var(--tr);
    z-index: 200;
}
.nav-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.dropdown-menu a {
    display: block;
    padding: 9px 12px;
    font-size: 13px;
    border-radius: var(--radius-sm);
    margin-bottom: 2px;
}
.dropdown-menu a:hover { background: var(--bg-3); }
.chevron { font-size: 10px; margin-left: 3px; color: var(--text-3); }

.nav-actions { display: flex; align-items: center; gap: 8px; margin-left: 1rem; }

.btn-nav {
    background: linear-gradient(135deg, var(--accent-d), var(--accent));
    color: white;
    padding: 8px 18px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all var(--tr);
    white-space: nowrap;
}
.btn-nav:hover { opacity: 0.9; transform: translateY(-1px); }

.theme-toggle {
    width: 38px; height: 38px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: transparent;
    color: var(--text-2);
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    font-size: 15px;
    transition: all var(--tr);
}
.theme-toggle:hover { border-color: var(--accent); color: var(--accent); }
[data-theme="dark"] .icon-sun { display: none; }
[data-theme="light"] .icon-moon { display: none; }

.hamburger { display: none; flex-direction: column; gap: 5px; background: transparent; border: none; cursor: pointer; padding: 6px; }
.hamburger span { display: block; width: 22px; height: 2px; background: var(--text-2); border-radius: 2px; transition: var(--tr); }

.mobile-menu {
    display: none;
    flex-direction: column;
    padding: 0.75rem 2rem 1rem;
    border-top: 1px solid var(--border);
    gap: 2px;
    background: var(--nav-bg);
}
.mobile-menu a {
    text-decoration: none;
    color: var(--text-2);
    font-size: 15px;
    font-weight: 500;
    padding: 10px 12px;
    border-radius: var(--radius-sm);
    transition: all var(--tr);
}
.mobile-menu a:hover { background: var(--bg-3); color: var(--text); }
.mobile-menu.open { display: flex; }

/* ─── LAYOUT ─── */
.container { max-width: 1320px; margin: 0 auto; padding: 0 2rem; position: relative; z-index: 1; }
.section { padding: 6rem 0; }
.section-sm { padding: 3.5rem 0; }

/* ─── ALERT ─── */
.alert-success {
    background: rgba(0,135,255,0.1);
    border: 1px solid rgba(0,135,255,0.3);
    color: var(--accent);
    padding: 1rem 2rem;
    font-size: 14px;
    font-weight: 500;
    text-align: center;
}

/* ─── TYPOGRAPHY ─── */
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-head);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--accent);
    background: var(--tag-bg);
    padding: 6px 14px;
    border-radius: 100px;
    margin-bottom: 1.25rem;
    border: 1px solid rgba(0,135,255,0.15);
}
.eyebrow::before {
    content: '';
    width: 5px; height: 5px;
    background: var(--accent);
    border-radius: 50%;
    animation: pulse 2s infinite;
}
@keyframes pulse { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:.4;transform:scale(.7)} }

h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.15; letter-spacing: -0.02em; }

.h-display {
    font-size: clamp(2.6rem, 5.5vw, 4.5rem);
    font-weight: 700;
    line-height: 1.08;
    letter-spacing: -0.03em;
}
.h-section { font-size: clamp(1.9rem, 3.5vw, 2.8rem); font-weight: 700; }
.h-card    { font-size: 1.05rem; font-weight: 700; }

.text-gradient {
    background: linear-gradient(135deg, var(--accent), #55c3ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.lead { font-size: 1.1rem; color: var(--text-2); line-height: 1.85; }
.lead-sm { font-size: 0.95rem; color: var(--text-3); line-height: 1.7; }

/* ─── BUTTONS ─── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 13px 26px;
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    text-decoration: none;
    border: none;
    transition: all var(--tr);
}
.btn-primary {
    background: linear-gradient(135deg, var(--accent-d), var(--accent));
    color: white;
    box-shadow: 0 8px 28px var(--accent-g);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 36px var(--accent-g); }
.btn-ghost {
    background: transparent;
    color: var(--text-2);
    border: 1px solid var(--border);
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); background: var(--tag-bg); }
.btn-lg { padding: 16px 34px; font-size: 16px; border-radius: 10px; }
.btn-sm { padding: 9px 18px; font-size: 13px; }

/* ─── CARDS ─── */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2rem;
    transition: all var(--tr);
}
.card:hover { border-color: var(--border-h); transform: translateY(-4px); box-shadow: var(--shadow); }
.card-icon {
    width: 50px; height: 50px;
    background: var(--tag-bg);
    border: 1px solid rgba(0,135,255,0.15);
    border-radius: var(--radius-sm);
    display: flex; align-items: center; justify-content: center;
    font-size: 22px;
    margin-bottom: 1.25rem;
}

/* ─── TAG ─── */
.tag {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    background: var(--tag-bg);
    color: var(--tag-text);
    padding: 4px 10px;
    border-radius: 100px;
    border: 1px solid rgba(0,135,255,0.12);
}

/* ─── HERO ─── */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 0;
    position: relative;
    overflow: hidden;
}
.hero-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(90px);
    pointer-events: none;
}
.hero-orb-1 {
    width: 700px; height: 700px;
    background: radial-gradient(circle, rgba(0,135,255,0.18), transparent 65%);
    top: -150px; right: -150px;
    animation: float 9s ease-in-out infinite;
}
.hero-orb-2 {
    width: 450px; height: 450px;
    background: radial-gradient(circle, rgba(19,68,128,0.2), transparent 65%);
    bottom: -100px; left: 5%;
    animation: float 12s ease-in-out infinite reverse;
}
.hero-orb-3 {
    width: 200px; height: 200px;
    background: radial-gradient(circle, rgba(0,135,255,0.12), transparent 65%);
    top: 40%; left: 45%;
    animation: float 7s ease-in-out infinite 2s;
}
@keyframes float { 0%,100%{transform:translate(0,0)} 50%{transform:translate(16px,-24px)} }

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    min-height: 100vh;
    padding: 8rem 0 4rem;
}
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 100px;
    padding: 7px 18px 7px 8px;
    margin-bottom: 2rem;
    font-size: 13px;
    color: var(--text-2);
}
.hero-badge-pill {
    background: linear-gradient(135deg, var(--accent-d), var(--accent));
    color: white;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 12px;
    border-radius: 100px;
    letter-spacing: 0.04em;
}
.hero-btns { display: flex; gap: 1rem; flex-wrap: wrap; margin-top: 2.5rem; }
.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
}
.stat-n {
    font-family: var(--font-head);
    font-size: 2rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--accent), #55c3ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.stat-l { font-size: 12px; color: var(--text-3); margin-top: 2px; }

/* ─── HERO VISUAL (mockup dashboard) ─── */
.hero-visual { display: flex; justify-content: center; align-items: center; }
.dashboard-mock {
    width: 100%;
    max-width: 500px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: 0 40px 100px rgba(0,0,0,0.5), 0 0 0 1px var(--border);
    position: relative;
}
.dash-bar {
    height: 46px;
    background: var(--bg-3);
    display: flex; align-items: center; gap: 8px;
    padding: 0 16px;
    border-bottom: 1px solid var(--border);
}
.dot-w { width: 11px; height: 11px; border-radius: 50%; }
.dot-r { background: #FF5F57; }
.dot-y { background: #FEBC2E; }
.dot-g { background: #28C840; }
.dash-bar-label { font-size: 12px; color: var(--text-3); margin-left: 8px; font-family: var(--font-head); }
.dash-body { padding: 1.5rem; }
.dash-kpi { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; margin-bottom: 14px; }
.kpi {
    background: var(--bg-2);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 12px;
}
.kpi-val { font-family: var(--font-head); font-size: 1.2rem; font-weight: 700; }
.kpi-lbl { font-size: 10px; color: var(--text-3); margin-top: 2px; }
.dash-chart {
    height: 90px;
    display: flex; align-items: flex-end; gap: 5px;
    background: var(--bg-2);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 12px;
    margin-bottom: 12px;
}
.bar-c {
    flex: 1;
    background: linear-gradient(180deg, var(--accent), var(--accent-d));
    border-radius: 3px 3px 0 0;
    opacity: 0.75;
    animation: grow .9s ease backwards;
}
@keyframes grow { from{transform:scaleY(0);transform-origin:bottom} }
.dash-row {
    display: flex; justify-content: space-between; align-items: center;
    padding: 8px 12px;
    background: var(--bg-2);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 12px;
    margin-bottom: 8px;
}
.dash-dot { width: 8px; height: 8px; border-radius: 50%; background: #28C840; margin-right: 6px; flex-shrink: 0; }
.progress-bar { height: 4px; background: var(--bg-3); border-radius: 2px; margin-top: 6px; }
.progress-fill { height: 100%; border-radius: 2px; background: linear-gradient(90deg, var(--accent-d), var(--accent)); }

/* ─── TICKER ─── */
.ticker {
    padding: 14px 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    overflow: hidden;
}
.ticker-inner {
    display: flex;
    gap: 2.5rem;
    animation: marquee 22s linear infinite;
    white-space: nowrap;
}
@keyframes marquee { from{transform:translateX(0)} to{transform:translateX(-50%)} }
.tick {
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 11px;
    color: var(--text-3);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    flex-shrink: 0;
    display: flex; align-items: center; gap: 10px;
}
.tick::after { content: '·'; color: var(--accent); }

/* ─── SECTION HEADERS ─── */
.s-head { max-width: 600px; margin-bottom: 0.5rem; }
.s-head-c { text-align: center; max-width: 620px; margin: 0 auto 0.5rem; }
.lead-c { text-align: center; max-width: 560px; margin: 0 auto; color: var(--text-2); }

/* ─── SERVICES GRID ─── */
.srv-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 1.25rem; margin-top: 3rem; }
.srv-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.75rem;
    transition: all var(--tr);
    position: relative;
    overflow: hidden;
}
.srv-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--accent-g), transparent);
    opacity: 0;
    transition: opacity var(--tr);
}
.srv-card:hover::before { opacity: 1; }
.srv-card:hover { border-color: var(--accent); transform: translateY(-4px); box-shadow: 0 0 0 1px var(--accent), 0 20px 50px var(--accent-g); }

/* ─── PROJECTS ─── */
.proj-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 1.5rem; margin-top: 3rem; }
.proj-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; transition: all var(--tr); }
.proj-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: var(--border-h); }
.proj-thumb { height: 210px; display: flex; align-items: center; justify-content: center; position: relative; overflow: hidden; }
.proj-body { padding: 1.75rem; }
.proj-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 1rem; }
.proj-link {
    display: inline-flex; align-items: center; gap: 6px;
    margin-top: 1.25rem; font-size: 14px; font-weight: 600;
    color: var(--accent); text-decoration: none; transition: gap var(--tr);
}
.proj-link:hover { gap: 10px; }

/* ─── PROCESS ─── */
.process-grid { display: grid; grid-template-columns: repeat(5,1fr); gap: 0; margin-top: 3rem; }
.process-step { padding-right: 1.5rem; position: relative; }
.step-num {
    width: 42px; height: 42px;
    background: linear-gradient(135deg, var(--accent-d), var(--accent));
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-family: var(--font-head);
    font-weight: 700; font-size: 14px;
    color: white;
    margin-bottom: 1.25rem;
    position: relative; z-index: 1;
}
.step-num::after {
    content: '';
    position: absolute;
    left: 42px; top: 50%;
    width: calc(100% + 1.5rem - 42px);
    height: 2px;
    background: linear-gradient(90deg, var(--accent), transparent);
    transform: translateY(-50%);
    z-index: 0;
}
.process-step:last-child .step-num::after { display: none; }
.step-title { font-family: var(--font-head); font-weight: 700; font-size: 14px; margin-bottom: 0.5rem; }
.step-desc { font-size: 13px; color: var(--text-3); line-height: 1.6; }

/* ─── CTA SECTION ─── */
.cta-section {
    background: linear-gradient(135deg, var(--accent-d) 0%, var(--accent-m) 50%, var(--accent) 100%);
    border-radius: var(--radius-xl);
    padding: 5rem 4rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    margin: 2rem 0 4rem;
}
.cta-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255,255,255,0.06) 1px, transparent 1px);
    background-size: 22px 22px;
}
.cta-section h2, .cta-section p { position: relative; }
.cta-section h2 { color: white; }
.cta-section p { color: rgba(255,255,255,0.8); margin: 1rem auto 2rem; max-width: 500px; font-size: 1.05rem; }

/* ─── CONTACT ─── */
.contact-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 4rem; align-items: start; }
.form-group { margin-bottom: 1.25rem; }
.form-label { display: block; font-size: 12px; font-weight: 700; color: var(--text-3); margin-bottom: 7px; letter-spacing: 0.06em; text-transform: uppercase; }
.form-input, .form-select, .form-textarea {
    width: 100%;
    padding: 12px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text);
    font-family: var(--font-body);
    font-size: 15px;
    transition: all var(--tr);
    outline: none;
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-g);
}
.form-textarea { resize: vertical; min-height: 130px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.checkbox-label { display: flex; align-items: flex-start; gap: 10px; font-size: 13px; color: var(--text-2); cursor: pointer; line-height: 1.5; }
.checkbox-label input { margin-top: 3px; accent-color: var(--accent); flex-shrink: 0; }
.checkbox-label a { color: var(--accent); }

/* ─── PAGE HERO ─── */
.page-hero {
    padding: 9rem 0 5rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

/* ─── TEAM ─── */
.team-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px,1fr)); gap: 1.5rem; margin-top: 3rem; }
.team-card {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius-lg); padding: 2rem 1.5rem;
    text-align: center; transition: all var(--tr);
}
.team-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--border-h); }
.team-avatar {
    width: 72px; height: 72px; border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-d), var(--accent));
    display: flex; align-items: center; justify-content: center;
    font-family: var(--font-head); font-size: 22px; font-weight: 700;
    color: white; margin: 0 auto 1rem;
}
.team-role { font-size: 12px; color: var(--text-3); margin-top: 3px; }

/* ─── LEGAL PAGES ─── */
.legal-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 7rem 2rem 5rem;
}
.legal-content h1 { font-size: 2.2rem; margin-bottom: 0.5rem; }
.legal-content .date { color: var(--text-3); font-size: 13px; margin-bottom: 3rem; display: block; }
.legal-content h2 { font-size: 1.3rem; margin: 2.5rem 0 0.75rem; padding-top: 2rem; border-top: 1px solid var(--border); }
.legal-content p, .legal-content li { font-size: 15px; color: var(--text-2); line-height: 1.8; margin-bottom: 0.75rem; }
.legal-content ul { padding-left: 1.5rem; }
.legal-content a { color: var(--accent); }
.legal-content table { width: 100%; border-collapse: collapse; margin: 1rem 0; font-size: 14px; }
.legal-content th { background: var(--bg-3); padding: 10px 12px; text-align: left; font-weight: 600; border: 1px solid var(--border); }
.legal-content td { padding: 10px 12px; border: 1px solid var(--border); color: var(--text-2); }

/* ─── FOOTER ─── */
.footer { background: var(--bg-2); border-top: 1px solid var(--border); padding: 4rem 2rem 0; position: relative; z-index: 1; }
.footer-logo { filter: brightness(0) invert(1); opacity: 0.9; }
[data-theme="light"] .footer-logo { filter: none; opacity: 1; }
.footer-top {
    max-width: 1320px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid var(--border);
}
.footer-brand p { font-size: 14px; color: var(--text-3); line-height: 1.7; max-width: 280px; margin: 1rem 0 1.5rem; }
.footer-social { display: flex; gap: 8px; }
.footer-social a {
    width: 36px; height: 36px;
    background: var(--bg-3);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    display: flex; align-items: center; justify-content: center;
    color: var(--text-2);
    transition: all var(--tr);
}
.footer-social a:hover { background: var(--accent); color: white; border-color: transparent; }
.footer-col h3 {
    font-family: var(--font-head); font-weight: 700; font-size: 12px;
    color: var(--text-2); margin-bottom: 1.25rem;
    letter-spacing: 0.1em; text-transform: uppercase;
}
.footer-col a {
    display: block; text-decoration: none; font-size: 14px;
    color: var(--text-3); margin-bottom: 10px; transition: color var(--tr);
}
.footer-col a:hover { color: var(--accent); }
.footer-legal {
    max-width: 1320px;
    margin: 0 auto;
    padding: 1.5rem 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}
.footer-legal-links { display: flex; flex-wrap: wrap; gap: 1.5rem; }
.footer-legal-links a { font-size: 12px; color: var(--text-3); text-decoration: none; transition: color var(--tr); }
.footer-legal-links a:hover { color: var(--accent); }
.footer-copy { font-size: 12px; color: var(--text-3); }

/* ─── COOKIE BANNER ─── */
.cookie-banner {
    position: fixed;
    bottom: 1.5rem;
    left: 1.5rem;
    right: 1.5rem;
    background: var(--bg-card);
    border: 1px solid var(--border-h);
    border-radius: var(--radius-lg);
    padding: 1.5rem 2rem;
    z-index: 9999;
    box-shadow: 0 20px 60px rgba(0,0,0,0.4);
    display: none;
    animation: slideUp .4s ease;
    max-width: 1100px;
    margin: 0 auto;
}
.cookie-banner.show { display: block; }
@keyframes slideUp { from{transform:translateY(20px);opacity:0} to{transform:translateY(0);opacity:1} }
.cookie-content { display: flex; gap: 1.5rem; align-items: center; flex-wrap: wrap; }
.cookie-icon { font-size: 2rem; flex-shrink: 0; }
.cookie-text { flex: 1; min-width: 200px; }
.cookie-text strong { font-family: var(--font-head); font-size: 15px; display: block; margin-bottom: 4px; }
.cookie-text p { font-size: 13px; color: var(--text-2); line-height: 1.6; }
.cookie-actions { display: flex; gap: 8px; flex-shrink: 0; flex-wrap: wrap; }
.btn-cookie-accept {
    background: linear-gradient(135deg, var(--accent-d), var(--accent));
    color: white; padding: 10px 20px; border-radius: var(--radius-sm);
    font-size: 13px; font-weight: 700; cursor: pointer; border: none;
    transition: all var(--tr);
}
.btn-cookie-reject {
    background: transparent; color: var(--text-2); border: 1px solid var(--border);
    padding: 10px 16px; border-radius: var(--radius-sm);
    font-size: 13px; font-weight: 600; cursor: pointer; transition: all var(--tr);
}
.btn-cookie-reject:hover { border-color: var(--border-h); color: var(--text); }
.btn-cookie-config {
    background: transparent; color: var(--accent); border: 1px solid rgba(0,135,255,0.3);
    padding: 10px 16px; border-radius: var(--radius-sm);
    font-size: 13px; font-weight: 600; cursor: pointer; transition: all var(--tr);
}
.btn-cookie-config:hover { background: var(--tag-bg); }

/* COOKIE MODAL */
.cookie-modal {
    position: fixed; inset: 0; z-index: 10000;
    display: flex; align-items: center; justify-content: center;
    padding: 2rem;
}
.cookie-modal-inner {
    background: var(--bg-card);
    border: 1px solid var(--border-h);
    border-radius: var(--radius-xl);
    padding: 2.5rem;
    max-width: 560px;
    width: 100%;
    position: relative;
    z-index: 1;
    max-height: 90vh;
    overflow-y: auto;
}
.cookie-modal-header {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 1rem;
}
.cookie-modal-header h2 { font-size: 1.3rem; font-weight: 700; }
.cookie-modal-header button { background: none; border: none; cursor: pointer; font-size: 18px; color: var(--text-3); padding: 4px; }
.cookie-option {
    display: flex; justify-content: space-between; align-items: flex-start; gap: 1.5rem;
    padding: 1rem 0; border-bottom: 1px solid var(--border);
}
.cookie-opt-info strong { display: block; font-size: 14px; margin-bottom: 4px; }
.cookie-opt-info span { font-size: 13px; color: var(--text-3); }
.toggle-switch { position: relative; display: inline-flex; cursor: pointer; flex-shrink: 0; }
.toggle-switch input { opacity: 0; width: 0; height: 0; position: absolute; }
.toggle-slider {
    width: 44px; height: 24px;
    background: var(--bg-3);
    border: 1px solid var(--border);
    border-radius: 100px;
    position: relative;
    transition: all var(--tr);
}
.toggle-slider::before {
    content: '';
    position: absolute;
    width: 18px; height: 18px;
    left: 2px; top: 2px;
    background: var(--text-3);
    border-radius: 50%;
    transition: all var(--tr);
}
.toggle-switch input:checked + .toggle-slider { background: var(--accent); border-color: var(--accent); }
.toggle-switch input:checked + .toggle-slider::before { transform: translateX(20px); background: white; }
.toggle-switch input:disabled + .toggle-slider { opacity: 0.5; cursor: not-allowed; }
.cookie-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 9999; backdrop-filter: blur(4px); }

/* ─── RESPONSIVE ─── */
@media (max-width: 1024px) {
    .hero-grid { grid-template-columns: 1fr; padding: 7rem 0 4rem; text-align: center; }
    .hero-visual { display: none; }
    .hero-btns { justify-content: center; }
    .hero-stats { max-width: 380px; margin: 2rem auto 0; }
    .footer-top { grid-template-columns: 1fr 1fr; gap: 2rem; }
    .contact-grid { grid-template-columns: 1fr; }
    .process-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
    .step-num::after { display: none; }
}
@media (max-width: 768px) {
    .nav-links { display: none; }
    .hamburger { display: flex; }
    .section { padding: 4rem 0; }
    .footer-top { grid-template-columns: 1fr; }
    .footer-legal { flex-direction: column; align-items: flex-start; }
    .cta-section { padding: 3rem 1.5rem; }
    .hero-stats { grid-template-columns: repeat(3,1fr); }
    .cookie-banner { left: 1rem; right: 1rem; bottom: 1rem; }
    .cookie-content { flex-direction: column; }
    .form-grid { grid-template-columns: 1fr; }
    .process-grid { grid-template-columns: 1fr; }
}
