:root {
    --primary: #0a1628;
    --primary-light: #132d4a;
    --primary-dark: #050e1a;
    --accent: #c9a84c;
    --accent-light: #dfc06a;
    --accent-hover: #b8942e;
    --bg: #ffffff;
    --bg-alt: #f5f7fb;
    --bg-card: #ffffff;
    --bg-dark: #050e1a;
    --text: #1a202c;
    --text-light: #6b7f99;
    --text-on-dark: #c8d4e0;
    --text-muted: #8a9bb0;
    --border: #e8edf5;
    --border-light: #f0f3f8;
    --sidebar-bg: #f0f3f8;
    --shadow-sm: 0 2px 8px rgba(10,22,40,0.06);
    --shadow-md: 0 8px 30px rgba(10,22,40,0.1);
    --shadow-lg: 0 20px 60px rgba(10,22,40,0.15);
    --radius: 12px;
    --radius-sm: 8px;
    --radius-lg: 16px;
    --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --sidebar-w: 270px;
    --transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-theme="dark"] {
    --primary: #e0e6ed;
    --primary-light: #c8d4e0;
    --primary-dark: #0a1628;
    --bg: #0f1620;
    --bg-alt: #161f2e;
    --bg-card: #1a2538;
    --bg-dark: #080e16;
    --text: #e0e6ed;
    --text-light: #9aadc4;
    --text-on-dark: #c8d4e0;
    --text-muted: #6b7f99;
    --border: #1e2d42;
    --border-light: #1a2538;
    --sidebar-bg: linear-gradient(180deg, #0a1628 0%, #0d1f38 50%, #091524 100%);
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.3);
    --shadow-md: 0 8px 30px rgba(0,0,0,0.4);
    --shadow-lg: 0 20px 60px rgba(0,0,0,0.5);
}

[data-theme="dark"] .card,
[data-theme="dark"] .membership-card,
[data-theme="dark"] .stat-card,
[data-theme="dark"] .team-card,
[data-theme="dark"] .news-item,
[data-theme="dark"] .cookie-banner { background: var(--bg-card); }

[data-theme="dark"] .card-icon { background: linear-gradient(135deg, rgba(201,168,76,0.15), rgba(201,168,76,0.05)); }
[data-theme="dark"] .card-number { color: rgba(255,255,255,0.04); }
[data-theme="dark"] .card-num:hover .card-number { color: rgba(201,168,76,0.08); }
[data-theme="dark"] input,
[data-theme="dark"] textarea { background: var(--bg-card) !important; color: var(--text) !important; }
[data-theme="dark"] .privacy-notice { background: var(--bg-alt); }

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

html { scroll-behavior: smooth; overflow-x: hidden; }

body {
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.7;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
}

.container { max-width: 1100px; margin: 0 auto; padding: 0 32px; width: 100%; }

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

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

::selection { background: var(--accent); color: var(--primary); }

/* ── SIDEBAR ── */
.sidebar-left {
    position: fixed; top: 50%; left: 24px;
    transform: translateY(-50%);
    width: var(--sidebar-w);
    max-height: calc(100vh - 80px);
    background: #0c1f38;
    z-index: 99999;
    display: flex; flex-direction: column;
    overflow-y: auto;
    border-radius: 16px;
    border: 1px solid rgba(201,168,76,0.1);
    box-shadow: 0 20px 60px rgba(0,0,0,0.18), 0 8px 24px rgba(0,0,0,0.08);
}
[data-theme="dark"] .sidebar-left {
    background: #080e16;
    border-color: rgba(201,168,76,0.06);
    box-shadow: 0 20px 60px rgba(0,0,0,0.35);
}
.sidebar-inner {
    padding: 2rem 1.5rem;
    display: flex; flex-direction: column;
    height: 100%;
    align-items: center;
}
.sidebar-brand {
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(201,168,76,0.12);
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.sidebar-brand-link { display: block; width: 100%; }
.sidebar-logo {
    display: block;
    width: 100%;
    max-width: 140px;
    height: auto;
    margin: 0 auto;
}
.sidebar-nav { width: 100%; }

.sidebar-nav { flex: 1; width: 100%; }
.sidebar-menu { list-style: none; display: flex; flex-direction: column; gap: 0.1rem; }
.sidebar-menu a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: rgba(255,255,255,0.7);
    font-size: 0.85rem;
    font-weight: 500;
    padding: 0.55rem 0.85rem;
    border-radius: var(--radius-sm);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-left: 3px solid transparent;
    position: relative;
    letter-spacing: 0.01em;
    background: rgba(255,255,255,0.03);
}
.sidebar-menu a::before {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(90deg, rgba(201,168,76,0.08) 0%, transparent 60%);
    border-radius: var(--radius-sm);
    opacity: 0;
    transition: opacity 0.3s ease;
}
.sidebar-menu a:hover {
    color: var(--accent);
    border-left-color: var(--accent);
    padding-left: 1.3rem;
    background: rgba(201,168,76,0.08);
}
.sidebar-menu a:hover::before { opacity: 1; }
.sidebar-menu .active a {
    color: var(--accent);
    background: rgba(201,168,76,0.1);
    border-left-color: var(--accent);
}

.sidebar-info {
    border-top: 1px solid rgba(201,168,76,0.1);
    padding-top: 0.75rem;
    margin-top: 0.75rem;
    display: flex; flex-direction: column; gap: 0.4rem;
    width: 100%;
}
.sidebar-info-label {
    display: block;
    font-size: 0.6rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: rgba(255,255,255,0.3);
    margin-bottom: 0.15rem;
}
.sidebar-info-item a,
.sidebar-info-item span {
    color: rgba(255,255,255,0.5);
    font-size: 0.78rem;
    line-height: 1.5;
}
.sidebar-info-item a:hover { color: var(--accent); }

/* ── TOP-RIGHT TOOLBAR ── */
.toolbar-controls {
    position: fixed; top: 16px; right: 16px;
    z-index: 999999;
    display: flex; gap: 6px;
    background: rgba(10,22,40,0.75);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 6px 8px;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(255,255,255,0.08);
    box-shadow: 0 4px 16px rgba(0,0,0,0.25);
}
[data-theme="dark"] .toolbar-controls {
    background: rgba(15,22,32,0.8);
    border-color: rgba(255,255,255,0.06);
}
.toolbar-btn {
    display: inline-flex; align-items: center; justify-content: center;
    width: 30px; height: 30px;
    border: none;
    border-radius: 6px;
    background: rgba(255,255,255,0.06);
    color: rgba(255,255,255,0.6);
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition);
    font-family: inherit;
    line-height: 1;
}
.toolbar-btn:hover {
    background: var(--accent);
    color: var(--primary);
    transform: translateY(-1px);
}
#font-plus, #font-minus { font-size: 0.9rem; }
#theme-toggle .icon-moon { display: none; }
[data-theme="dark"] #theme-toggle .icon-sun { display: none; }
[data-theme="dark"] #theme-toggle .icon-moon { display: block; }

.sidebar-toggle { display: none; }
.top-bar { height: 0; }

/* ── MAIN ── */
.site-main {
    margin-left: calc(var(--sidebar-w) + 48px);
    min-height: 100vh;
}

/* ── HERO ── */
.hero {
    min-height: calc(100vh - 0px);
    display: flex; align-items: center;
    background: linear-gradient(135deg, #070f1c 0%, #0c1f38 35%, #0a1628 65%, #070f1c 100%);
    text-align: center;
    position: relative;
    overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute; inset: 0;
    background:
        radial-gradient(ellipse at 20% 30%, rgba(201,168,76,0.07) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 70%, rgba(201,168,76,0.05) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 100%, rgba(10,22,40,0.5) 0%, transparent 70%);
    pointer-events: none;
}
.hero::after {
    content: '';
    position: absolute; inset: 0;
    background-image:
        url("data:image/svg+xml,%3Csvg width='80' height='80' viewBox='0 0 80 80' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23c9a84c' fill-opacity='0.025'%3E%3Cpath d='M50 50v-4h-4v4h-4v4h4v4h4v-4h4v-4h-4zm0-40V6h-4v4h-4v4h4v4h4v-4h4v-4h-4zM10 50v-4H6v4H2v4h4v4h4v-4h4v-4H10zM10 10V6H6v4H2v4h4v4h4v-4h4v-4H10z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.6;
    pointer-events: none;
    animation: heroBgShift 20s ease-in-out infinite alternate;
}
@keyframes heroBgShift {
    0% { transform: scale(1) rotate(0deg); }
    100% { transform: scale(1.1) rotate(2deg); }
}
.hero-content {
    position: relative; z-index: 1;
    max-width: 780px; margin: 0 auto; padding: 80px 32px;
}
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(201,168,76,0.12);
    border: 1px solid rgba(201,168,76,0.2);
    padding: 0.4rem 1rem;
    border-radius: 50px;
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--accent);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
}
.hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1.25rem;
    letter-spacing: -0.035em;
    line-height: 1.15;
    background: linear-gradient(135deg, var(--accent), var(--accent-light), #fff 60%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 2px 20px rgba(0,0,0,0.4));
}
.hero-subtitle {
    font-size: 1.1rem;
    color: var(--text-on-dark);
    opacity: 0.75;
    margin-bottom: 2.5rem;
    line-height: 1.8;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    font-weight: 400;
}
.hero-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.hero-accent {
    display: block;
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, var(--accent), var(--accent-light));
    border-radius: 2px;
    margin: 1.5rem auto 2rem;
    opacity: 0.6;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.85rem 2.2rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all var(--transition);
    cursor: pointer;
    border: none;
    letter-spacing: 0.02em;
}
.btn-primary {
    background: linear-gradient(135deg, var(--accent), var(--accent-hover));
    color: var(--primary);
    box-shadow: 0 4px 20px rgba(201,168,76,0.3);
}
.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 35px rgba(201,168,76,0.4);
    color: var(--primary);
}
.btn-outline {
    background: transparent;
    color: #fff;
    border: 2px solid rgba(255,255,255,0.2);
}
.btn-outline:hover {
    border-color: var(--accent);
    color: var(--accent);
    transform: translateY(-3px);
    background: rgba(201,168,76,0.05);
}

/* ── SECTIONS ── */
.section { padding: 90px 0; position: relative; }
.section-alt {
    background: var(--bg-alt);
    position: relative;
}
.section-alt::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border), transparent);
}

.section-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--accent);
    margin-bottom: 0.75rem;
    padding: 0.3rem 0.8rem;
    border: 1px solid rgba(201,168,76,0.15);
    border-radius: 4px;
    background: rgba(201,168,76,0.04);
}
.section-title {
    text-align: center;
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 0.75rem;
    line-height: 1.2;
    letter-spacing: -0.02em;
}
.section-title::after {
    content: '';
    display: block;
    width: 48px;
    height: 3px;
    background: linear-gradient(90deg, var(--accent), var(--accent-light));
    margin: 1rem auto 0;
    border-radius: 2px;
}
.section-desc {
    text-align: center;
    color: var(--text-light);
    font-size: 0.95rem;
    max-width: 600px;
    margin: 1rem auto 3rem;
    line-height: 1.8;
}

/* ── STATS ── */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-bottom: 0;
}
.stat-card {
    text-align: center;
    padding: 2rem 1rem;
    background: var(--bg);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    position: relative;
    overflow: hidden;
}
.stat-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent), var(--accent-light));
    opacity: 0.3;
}
.stat-number {
    font-size: 2.4rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
    margin-bottom: 0.4rem;
}
.stat-label {
    font-size: 0.78rem;
    color: var(--text-light);
    font-weight: 500;
    letter-spacing: 0.02em;
}

/* ── GRIDS ── */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }

/* ── CARDS ── */
.card {
    background: var(--bg-card);
    padding: 2.25rem;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition);
    position: relative;
    overflow: hidden;
}
.card::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent), transparent);
    opacity: 0;
    transition: opacity var(--transition);
}
.card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
    border-color: rgba(201, 168, 76, 0.15);
}
.card:hover::after { opacity: 0.4; }
.card h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.5rem;
    letter-spacing: -0.01em;
}
.card p {
    color: var(--text-light);
    font-size: 0.88rem;
    line-height: 1.7;
}
.card-center { text-align: center; }

.card-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(201,168,76,0.1), rgba(201,168,76,0.04));
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    color: var(--accent);
}
.card-center .card-icon { margin: 0 auto 1rem; }

.card-number {
    font-size: 3.5rem;
    font-weight: 900;
    color: rgba(10, 22, 40, 0.04);
    display: block;
    margin-bottom: 0.2rem;
    line-height: 1;
    text-align: left;
    transition: color var(--transition);
    letter-spacing: -0.05em;
}
.card-num:hover .card-number { color: rgba(201, 168, 76, 0.1); }

/* ── TEAM ── */
.team-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
.team-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2rem 1.25rem;
    text-align: center;
    transition: all var(--transition);
    position: relative;
    overflow: hidden;
}
.team-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent), var(--accent-light));
    opacity: 0;
    transition: opacity var(--transition);
}
.team-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}
.team-card:hover::before { opacity: 0.5; }
.team-avatar {
    width: 68px;
    height: 68px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    margin: 0 auto 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    font-size: 1.4rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    position: relative;
}
.team-avatar::after {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: 50%;
    border: 2px solid rgba(201,168,76,0.15);
    transition: border-color var(--transition);
}
.team-card:hover .team-avatar::after { border-color: var(--accent); }
.team-card h4 { font-size: 0.9rem; font-weight: 600; color: var(--text); margin-bottom: 0.15rem; }
.team-card p { font-size: 0.75rem; color: var(--text-light); letter-spacing: 0.03em; }

/* ── MEMBERSHIP ── */
.membership-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-top: 1rem;
}
.membership-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2.5rem 2rem;
    text-align: center;
    transition: all var(--transition);
    position: relative;
    overflow: hidden;
}
.membership-card.featured {
    border-color: var(--accent);
    box-shadow: 0 0 0 1px rgba(201,168,76,0.2);
}
.membership-card.featured::before {
    content: 'Recomendado';
    position: absolute;
    top: 1rem; right: -2rem;
    background: var(--accent);
    color: var(--primary);
    font-size: 0.6rem;
    font-weight: 700;
    padding: 0.2rem 2.5rem;
    transform: rotate(45deg);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}
.membership-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}
.membership-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.5rem;
}
.membership-card p {
    font-size: 0.85rem;
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

/* ── NEWS ── */
.news-list { max-width: 680px; margin: 0 auto; }
.news-item {
    display: block;
    padding: 1.1rem 1.5rem;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    margin-bottom: 0.75rem;
    transition: all var(--transition);
    text-decoration: none;
    position: relative;
    padding-left: 1.5rem;
}
.news-item::before {
    content: '';
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, var(--accent), transparent);
    opacity: 0;
    transition: opacity var(--transition);
    border-radius: 0 2px 2px 0;
}
.news-item:hover {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(201, 168, 76, 0.06), var(--shadow-sm);
    transform: translateX(6px);
}
.news-item:hover::before { opacity: 0.5; }
.news-item-top { display: flex; align-items: center; gap: 1rem; }
.news-date {
    font-size: 0.75rem;
    color: var(--text-muted);
    flex-shrink: 0;
    font-weight: 500;
    min-width: 72px;
    letter-spacing: 0.02em;
}
.news-title {
    flex: 1;
    font-size: 0.88rem;
    color: var(--text);
    font-weight: 600;
    transition: color var(--transition);
}
.news-item:hover .news-title { color: var(--primary); }
.news-excerpt {
    display: block;
    margin-top: 0.4rem;
    font-size: 0.8rem;
    color: var(--text-light);
    line-height: 1.5;
}

/* ── CONTACT ── */
.contact-form-wrap { max-width: 700px; margin: 0 auto; }
.contact-form { display: flex; flex-direction: column; gap: 1rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-group { display: flex; flex-direction: column; gap: 0.35rem; }
.form-group label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text);
    letter-spacing: 0.02em;
}
.form-group input,
.form-group textarea {
    padding: 0.75rem 1.1rem;
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    font-family: var(--font);
    font-size: 0.88rem;
    color: var(--text);
    background: var(--bg);
    transition: border-color var(--transition), box-shadow var(--transition);
}
.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 4px rgba(201,168,76,0.08);
}
.form-group textarea { resize: vertical; min-height: 120px; }
.form-check { flex-direction: row !important; align-items: flex-start; gap: 0.5rem; }
.form-check label {
    font-weight: 400 !important;
    font-size: 0.78rem !important;
    color: var(--text-light) !important;
    display: flex;
    align-items: flex-start;
    gap: 0.45rem;
    cursor: pointer;
    line-height: 1.5;
}
.form-check input[type="checkbox"] { margin-top: 0.15rem; flex-shrink: 0; accent-color: var(--accent); }

.privacy-notice {
    background: var(--bg-alt);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 1rem 1.2rem;
    font-size: 0.75rem;
    line-height: 1.65;
    color: var(--text-light);
}
.privacy-notice strong { color: var(--text); }
.privacy-notice p { margin: 0.15rem 0; }
.privacy-notice a { color: var(--accent); }

.form-btn {
    padding: 0.85rem 2.5rem;
    background: linear-gradient(135deg, var(--accent), var(--accent-hover));
    color: var(--primary);
    border: none;
    border-radius: 50px;
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition);
    align-self: flex-start;
    letter-spacing: 0.02em;
}
.form-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(201,168,76,0.35);
}

.form-msg { padding: 0.75rem 1rem; border-radius: var(--radius-sm); font-size: 0.85rem; display: none; }
.form-msg.success { display: block; background: #e6f7e6; color: #2d7a2d; border: 1px solid #b8e6b8; }
.form-msg.error { display: block; background: #fde8e8; color: #a33; border: 1px solid #f8c8c8; }

/* ── ARTICLE HEADER ── */
.article-header {
    background: linear-gradient(135deg, #070f1c 0%, #0c1f38 35%, #0a1628 65%, #070f1c 100%);
    padding: 6rem 0 4rem;
    position: relative;
    overflow: hidden;
}
.article-header::before {
    content: '';
    position: absolute; inset: 0;
    background:
        radial-gradient(ellipse at 30% 40%, rgba(201,168,76,0.06) 0%, transparent 50%),
        radial-gradient(ellipse at 70% 60%, rgba(201,168,76,0.04) 0%, transparent 50%);
    pointer-events: none;
}
.article-header::after {
    content: '';
    position: absolute; inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='80' height='80' viewBox='0 0 80 80' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23c9a84c' fill-opacity='0.02'%3E%3Cpath d='M50 50v-4h-4v4h-4v4h4v4h4v-4h4v-4h-4zm0-40V6h-4v4h-4v4h4v4h4v-4h4v-4h-4zM10 50v-4H6v4H2v4h4v4h4v-4h4v-4H10zM10 10V6H6v4H2v4h4v4h4v-4h4v-4H10z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.4;
    pointer-events: none;
}
.article-header .container { position: relative; z-index: 1; }
.article-section-label {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--accent);
    margin-bottom: 1rem;
    padding: 0.3rem 0.8rem;
    border: 1px solid rgba(201,168,76,0.15);
    border-radius: 4px;
}
.article-header h1 {
    color: #fff;
    font-size: 2.6rem;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 1.25rem;
    max-width: 800px;
    letter-spacing: -0.02em;
}
.article-header .post-meta {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.45);
}
.article-header .post-author { font-weight: 500; color: rgba(255,255,255,0.55); }

/* ── PAGE CONTENT ── */
.page-content { padding: 4rem 0; min-height: 50vh; }
.page-content h1 {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 0.5rem;
    line-height: 1.25;
    letter-spacing: -0.02em;
}
.page-content h2 {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--primary);
    margin: 3rem 0 1rem;
    padding-top: 0.5rem;
    letter-spacing: -0.01em;
}
.page-content h2::after {
    content: '';
    display: block;
    width: 40px;
    height: 2px;
    background: var(--accent);
    margin-top: 0.5rem;
}
.page-content h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--primary-light);
    margin: 2rem 0 0.75rem;
}
.page-content p {
    margin-bottom: 1.2rem;
    color: var(--text-light);
    line-height: 1.8;
    font-size: 0.95rem;
}
.page-content ul, .page-content ol {
    margin: 0 0 1.5rem 1.5rem;
    color: var(--text-light);
    line-height: 1.8;
    font-size: 0.95rem;
}
.page-content li { margin-bottom: 0.4rem; }
.page-content hr { margin: 2.5rem 0; border: none; border-top: 2px solid var(--border); }
.page-content strong { color: var(--text); font-weight: 600; }

/* ── FOOTER ── */
.site-footer {
    background: var(--bg-dark);
    color: var(--text-on-dark);
    padding: 4rem 0 0;
    margin-left: calc(var(--sidebar-w) + 48px);
    position: relative;
}
.site-footer::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent), var(--accent-light), transparent);
    opacity: 0.3;
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    padding-bottom: 2.5rem;
    border-bottom: 1px solid rgba(255,255,255,0.04);
}
.footer-brand p {
    font-size: 0.82rem;
    opacity: 0.5;
    line-height: 1.8;
    max-width: 400px;
}
.footer-address {
    font-size: 0.78rem;
    opacity: 0.35;
    margin-top: 0.4rem;
}
.footer-legal h4 {
    font-size: 0.72rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    opacity: 0.6;
}
.footer-menu-list { list-style: none; display: flex; flex-direction: column; gap: 0.5rem; }
.footer-menu-list a {
    color: rgba(255,255,255,0.4);
    font-size: 0.8rem;
    transition: all var(--transition);
}
.footer-menu-list a:hover { color: var(--accent); padding-left: 4px; }
.footer-bottom {
    text-align: center;
    padding: 1.5rem 0;
    font-size: 0.76rem;
    opacity: 0.3;
}
.version { color: rgba(255,255,255,0.6); font-size: 0.7rem; margin-left: 0.75rem; }
.footer-dev { margin-top: 0.5rem; }
.footer-dev a { color: var(--accent); }

/* ── 404 ── */
.page-404 { min-height: 60vh; display: flex; align-items: center; text-align: center; }
.page-404-content { max-width: 500px; margin: 0 auto; }
.page-404-code {
    font-size: 7rem;
    font-weight: 900;
    background: linear-gradient(135deg, var(--accent), var(--accent-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    display: block;
    margin-bottom: 0.5rem;
    letter-spacing: -0.05em;
}

/* ── COOKIE ── */
.cookie-overlay {
    position: fixed; inset: 0;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(4px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 999999;
    padding: 1.5rem;
}
.cookie-overlay.show { display: flex; }
.cookie-banner {
    background: #fff;
    padding: 2rem 2.5rem;
    border-radius: var(--radius-lg);
    max-width: 480px;
    width: 100%;
    box-shadow: 0 30px 80px rgba(0,0,0,0.3);
    text-align: center;
}
.cookie-banner h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.6rem;
}
.cookie-banner p {
    font-size: 0.82rem;
    line-height: 1.6;
    color: var(--text-light);
    margin-bottom: 1.5rem;
}
.cookie-banner a { color: var(--accent); text-decoration: underline; }
.cookie-btn {
    padding: 0.7rem 2.5rem;
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition);
}
.cookie-btn:hover { background: var(--primary-light); transform: translateY(-2px); }

/* ── LEGAL ── */
.legal-content { padding: 4rem 0; max-width: 720px; margin: 0 auto; }
.legal-content h1 { font-size: 1.8rem; font-weight: 800; color: var(--primary); margin-bottom: 1rem; letter-spacing: -0.02em; }
.legal-content h1::after {
    content: '';
    display: block;
    width: 48px;
    height: 3px;
    background: linear-gradient(90deg, var(--accent), var(--accent-light));
    margin-top: 0.75rem;
}
.legal-content h3 { font-size: 1.1rem; font-weight: 700; color: var(--primary); margin-top: 2rem; margin-bottom: 0.5rem; }
.legal-content h4 { font-size: 0.92rem; font-weight: 700; color: var(--primary); margin-top: 1.5rem; margin-bottom: 0.4rem; }
.legal-content p { font-size: 0.88rem; line-height: 1.7; margin-bottom: 0.75rem; color: var(--text); }
.legal-content ul { margin: 0 0 1rem 1.5rem; }
.legal-content li { font-size: 0.88rem; line-height: 1.7; margin-bottom: 0.25rem; }
.legal-content hr { border: none; border-top: 1px solid var(--border); margin: 2rem 0; }
.legal-intro { font-size: 0.9rem; color: var(--text-light); }
.legal-email { font-size: 1rem !important; margin: 0.5rem 0; }
.legal-content a:hover { text-decoration: underline; }

/* ── ANIMATIONS ── */
.fade-in { opacity: 0; transform: translateY(30px); transition: opacity 0.7s ease, transform 0.7s ease; }
.fade-in.visible { opacity: 1; transform: translateY(0); }

#hero-title { transition: opacity 0.6s ease, transform 0.6s ease !important; }

.back-to-top {
    position: fixed;
    bottom: 2rem; right: 2rem;
    width: 46px; height: 46px;
    background: var(--primary);
    color: var(--accent);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition);
    z-index: 9999;
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(201,168,76,0.1);
}
.back-to-top.visible { opacity: 1; visibility: visible; }
.back-to-top:hover {
    background: var(--accent);
    color: var(--primary);
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(201,168,76,0.3);
}

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
    .hero h1 { font-size: 2.8rem; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
    .grid-3 { grid-template-columns: 1fr 1fr; }
    .team-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
    .sidebar-left {
        position: fixed; top: 0; left: 0; bottom: 0;
        width: 100%;
        max-height: none;
        transform: translateY(-100%);
        transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 99999;
        border-radius: 0;
    }
    .sidebar-left.open { transform: translateY(0); }
    .sidebar-inner { padding: 76px 1.5rem 1.5rem; }
    .sidebar-nav { flex: initial; margin-bottom: 1.5rem; }
    .sidebar-info { margin-top: initial; }
    .top-bar {
        display: flex;
        align-items: center;
        justify-content: space-between;
        position: fixed; top: 0; left: 0; right: 0;
        height: 50px;
        background: var(--accent);
        z-index: 100000;
        padding: 0 4px 0 0;
    }
    .sidebar-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        background: transparent;
        border: none; cursor: pointer;
        padding: 0 14px;
        height: 50px;
        color: var(--primary);
        font-size: 16px;
        font-weight: 700;
        font-family: var(--font);
        letter-spacing: 0.05em;
    }
    .sidebar-toggle.active { background: rgba(0,0,0,0.08); }
    .toolbar-controls {
        position: static;
        background: transparent;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        border: none;
        box-shadow: none;
        padding: 4px;
        border-radius: 0;
        display: flex;
        gap: 4px;
    }
    .toolbar-btn {
        width: 36px;
        height: 36px;
        background: rgba(0,0,0,0.1);
        color: var(--primary);
        border-radius: 6px;
    }

    .site-main { margin-left: 0; margin-top: 0; }
    .hero-content { padding-top: 76px; }
    .site-footer { margin-left: 0; }

    .hero h1 { font-size: 2rem; }
    .hero-subtitle { font-size: 0.9rem; }
    .section { padding: 60px 0; }
    .section-title { font-size: 1.6rem; }
    .container { padding: 0 20px; }
    .grid-2, .grid-3 { grid-template-columns: 1fr; }
    .team-grid { grid-template-columns: 1fr 1fr; }
    .stats-grid { grid-template-columns: 1fr 1fr; }
    .form-row, .membership-options { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; text-align: center; }
    .footer-brand p { max-width: 100%; }
    .back-to-top { bottom: 1rem; right: 1rem; width: 40px; height: 40px; }
}

/* ── TUTORIAL ── */
.tutorial-overlay {
    position: fixed; inset: 0;
    z-index: 999998;
    background: rgba(0,0,0,0.45);
    display: flex; align-items: flex-start; justify-content: flex-end;
    padding: 70px 60px 0 0;
    opacity: 0; pointer-events: none;
    transition: opacity 0.4s ease;
}
.tutorial-overlay.show {
    opacity: 1; pointer-events: all;
}
.tutorial-card {
    background: var(--primary);
    color: #fff;
    border: 1px solid var(--accent);
    border-radius: var(--radius);
    padding: 1.25rem 1.5rem 1rem;
    max-width: 280px;
    box-shadow: 0 12px 40px rgba(0,0,0,0.5);
    position: relative;
    animation: tutorialIn 0.5s ease;
}
@keyframes tutorialIn {
    from { opacity: 0; transform: translateY(-10px) scale(0.95); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}
.tutorial-card::after {
    content: '';
    position: absolute; top: -8px; right: 40px;
    width: 0; height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-bottom: 8px solid var(--accent);
}
.tutorial-card p {
    color: rgba(255,255,255,0.85);
    font-size: 0.8rem;
    line-height: 1.5;
    margin-bottom: 0.75rem;
}
.tutorial-card strong {
    color: var(--accent-light);
    font-weight: 600;
}
.tutorial-close {
    display: inline-flex; align-items: center; gap: 4px;
    background: var(--accent);
    color: var(--primary);
    border: none;
    border-radius: var(--radius-sm);
    padding: 0.35rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
    font-family: inherit;
}
.tutorial-close:hover { background: var(--accent-hover); }

@media (max-width: 768px) {
    .tutorial-overlay { padding: 70px 16px 0 0; }
    .tutorial-card { max-width: 220px; padding: 1rem; }
    .tutorial-card::after { right: 24px; }
}
