:root {
  --primary: #cc0000;
  --primary-dark: #990000;
  --primary-light: #ff3333;
  --gold: #d4af37;
  --bg: #0a0a0a;
  --bg-card: #141414;
  --bg-elevated: #1e1e1e;
  --border: #2a2a2a;
  --border-hover: #444;
  --text: #f5f5f5;
  --text-muted: #888;
  --text-sub: #bbb;
  --nav-h: 76px;
  --radius: 10px;
  --shadow: 0 8px 32px rgba(0,0,0,.5);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: 'Segoe UI', system-ui, -apple-system, sans-serif; background: var(--bg); color: var(--text); line-height: 1.6; min-height: 100vh; }
img { max-width: 100%; display: block; }
a { color: var(--primary); text-decoration: none; transition: color .2s; }
a:hover { color: var(--primary-light); }
h1,h2,h3,h4 { line-height: 1.2; font-weight: 800; }

/* ── NAV ─────────────────────────────────────────── */
nav {
  position: fixed; top: 0; left: 0; right: 0; height: var(--nav-h);
  background: rgba(10,10,10,.96); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; padding: 0 1.5rem;
  z-index: 1000; gap: 1rem;
}
.nav-brand {
  display: flex; align-items: center; gap: .7rem; text-decoration: none; flex-shrink: 0;
}
.nav-logo {
  width: 60px; height: 60px; border-radius: 6px; overflow: hidden; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
}
.nav-logo img { width: 60px; height: 60px; object-fit: contain; }
.nav-name { font-size: 1.1rem; font-weight: 800; color: var(--text); line-height: 1.1; }
.nav-name small { display: block; font-size: .65rem; font-weight: 400; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1.5px; }

.nav-links {
  display: flex; list-style: none; gap: .15rem; margin-left: auto; align-items: center;
}
.nav-links a {
  color: var(--text-muted); font-size: .875rem; padding: .45rem .75rem;
  border-radius: 6px; transition: all .2s; white-space: nowrap;
}
.nav-links a:hover, .nav-links a.active { color: var(--text); background: var(--bg-elevated); }
.nav-links .nav-cta a {
  background: var(--primary); color: #fff; padding: .45rem 1rem; margin-left: .25rem;
}
.nav-links .nav-cta a:hover { background: var(--primary-dark); color: #fff; }

.nav-burger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 6px; margin-left: auto; background: none; border: none; }
.nav-burger span { width: 22px; height: 2px; background: var(--text); border-radius: 2px; transition: .3s; }
.nav-burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-burger.open span:nth-child(2) { opacity: 0; }
.nav-burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── HERO ────────────────────────────────────────── */
.hero {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  text-align: center; padding: calc(var(--nav-h) + 3rem) 1.5rem 4rem;
  background: var(--bg);
  position: relative; overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0; z-index: 0;
  background: url('../images/Hero-neu.PNG') 15% center / auto 110% no-repeat;
}
.hero-bg::after {
  content: ''; position: absolute; inset: 0;
  background:
    linear-gradient(to right,  rgba(10,10,10,.2) 40%, rgba(10,10,10,1) 82%),
    linear-gradient(to bottom, rgba(10,10,10,.7) 0%,  rgba(10,10,10,.45) 35%, rgba(10,10,10,.72) 68%, rgba(10,10,10,1) 100%),
    linear-gradient(to bottom, rgba(10,10,10,1) 0%,   transparent 12%);
}
.hero::before { display: none; }
.hero-inner { position: relative; z-index: 1; max-width: 760px; }
.hero-chip {
  display: inline-flex; align-items: center; gap: .4rem;
  background: rgba(204,0,0,.12); border: 1px solid rgba(204,0,0,.3);
  color: var(--primary-light); padding: .3rem .9rem; border-radius: 99px;
  font-size: .8rem; font-weight: 600; letter-spacing: .5px; margin-bottom: 1.75rem;
}
.hero h1 { font-size: clamp(2.6rem, 7vw, 5rem); font-weight: 900; letter-spacing: -1.5px; margin-bottom: 1.25rem; }
.hero h1 em { color: var(--primary); font-style: normal; display: block; }
.hero p { font-size: 1.15rem; color: var(--text-sub); max-width: 520px; margin: 0 auto 2.5rem; }
.hero-btns { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.hero-stats {
  display: flex; gap: 2.5rem; justify-content: center;
  margin-top: 4rem; padding-top: 3rem; border-top: 1px solid var(--border); flex-wrap: wrap;
}
.stat-num { font-size: 2.4rem; font-weight: 900; color: var(--primary); line-height: 1; }
.stat-lbl { font-size: .75rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1.5px; margin-top: .2rem; }

/* ── BUTTONS ─────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .8rem 1.8rem; border-radius: 8px; font-size: .95rem; font-weight: 600;
  cursor: pointer; border: none; font-family: inherit; transition: all .2s; text-decoration: none;
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); color: #fff; transform: translateY(-2px); box-shadow: 0 8px 24px rgba(204,0,0,.35); }
.btn-ghost { background: transparent; color: var(--text); border: 1px solid var(--border); }
.btn-ghost:hover { background: var(--bg-elevated); color: var(--text); transform: translateY(-2px); }
.btn-sm { padding: .5rem 1.1rem; font-size: .85rem; }

/* ── LAYOUT ──────────────────────────────────────── */
.section { padding: 5rem 1.5rem; }
.section-alt { background: rgba(255,255,255,.018); }
.container { max-width: 1080px; margin: 0 auto; }
.section-tag { display: inline-block; color: var(--primary); font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 2px; margin-bottom: .6rem; }
.section-title { font-size: clamp(1.7rem, 4vw, 2.6rem); margin-bottom: .8rem; }
.section-lead { color: var(--text-muted); font-size: 1.05rem; max-width: 580px; margin-bottom: 3rem; line-height: 1.7; }

/* ── CARDS ───────────────────────────────────────── */
.grid-3 { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.25rem; }
.grid-4 { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1.25rem; }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 1.25rem; }

.card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.75rem;
  transition: border-color .25s, transform .25s, box-shadow .25s;
}
.card:hover { border-color: var(--primary); transform: translateY(-4px); box-shadow: var(--shadow); }
.card-icon { width: 48px; height: 48px; background: rgba(204,0,0,.12); border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 1.4rem; margin-bottom: 1.1rem; }
.card-icon svg { width: 22px; height: 22px; stroke: var(--primary); flex-shrink: 0; }
.card h3 { font-size: 1.1rem; margin-bottom: .4rem; }
.card p { color: var(--text-muted); font-size: .9rem; line-height: 1.65; }

/* ── SPORT SPLIT ─────────────────────────────────── */
.sport-split { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; align-items: center; background: var(--bg-card); border: 1px solid var(--border); border-radius: 14px; padding: 2.5rem; margin-bottom: 1.5rem; }
.sport-split.rev { direction: rtl; }
.sport-split.rev > * { direction: ltr; }
.sport-icon { height: 200px; background: rgba(204,0,0,.08); border: 1px solid rgba(204,0,0,.18); border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 4.5rem; }
.sport-img { position:relative; border-radius: 12px; overflow:hidden; }
.sport-img img { width:100%; height:100%; object-fit:cover; display:block; }
.sport-img::after { content:''; position:absolute; inset:0; background:rgba(0,0,0,.45); pointer-events:none; }
.sport-split h2 { font-size: 2rem; margin-bottom: .6rem; }
.sport-split p { color: var(--text-muted); margin-bottom: 1.25rem; line-height: 1.7; }

/* ── SPORT CARDS ─────────────────────────────────── */
.sport-card-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.sport-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: 14px; overflow: hidden; }
.sport-card-img { position: relative; aspect-ratio: 16/10; overflow: hidden; }
.sport-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.sport-card:hover .sport-card-img img { transform: scale(1.04); }
.sport-card-img::after { content:''; position:absolute; inset:0; background:rgba(0,0,0,.45); pointer-events:none; transition:opacity .3s; }
.sport-card:hover .sport-card-img::after { opacity:.3; }
.sport-card-link { position: absolute; top: .75rem; right: .75rem; width: 36px; height: 36px; background: rgba(255,255,255,.15); backdrop-filter: blur(8px); border-radius: 8px; display: flex; align-items: center; justify-content: center; color: #fff !important; font-size: 1rem; transition: background .2s; }
.sport-card-link:hover { background: rgba(255,255,255,.28) !important; color: #fff !important; }
.sport-card-body { padding: 1.25rem 1.5rem 1.5rem; }
.sport-card-sub { font-size: .78rem; color: var(--primary); font-weight: 700; text-transform: uppercase; letter-spacing: 1px; margin-bottom: .35rem; }
.sport-card-title { font-size: 2rem; font-weight: 900; letter-spacing: 2px; margin-bottom: .75rem; }
.sport-card-desc { color: var(--text-muted); font-size: .92rem; line-height: 1.7; margin-bottom: 1.1rem; }
@media (max-width: 640px) { .sport-card-grid { grid-template-columns: 1fr; } }

/* ── TABLE ───────────────────────────────────────── */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: .85rem 1.1rem; text-align: left; border-bottom: 1px solid var(--border); }
th { font-size: .75rem; text-transform: uppercase; letter-spacing: 1px; color: var(--text-muted); background: rgba(255,255,255,.025); font-weight: 600; }
tr:hover td { background: rgba(255,255,255,.018); }

/* ── BADGES ──────────────────────────────────────── */
.badge { display: inline-flex; align-items: center; padding: .2rem .7rem; border-radius: 99px; font-size: .78rem; font-weight: 600; }
.badge-red { background: rgba(204,0,0,.15); color: var(--primary-light); border: 1px solid rgba(204,0,0,.3); }
.badge-gold { background: rgba(212,175,55,.12); color: var(--gold); border: 1px solid rgba(212,175,55,.3); }
.badge-blue { background: rgba(59,130,246,.12); color: #7db5f9; border: 1px solid rgba(59,130,246,.3); }
.badge-green { background: rgba(34,197,94,.12); color: #6ee7a4; border: 1px solid rgba(34,197,94,.3); }

/* ── TEAM ────────────────────────────────────────── */
.team-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.5rem; text-align: center; transition: all .25s; }
.team-card:hover { border-color: var(--primary); transform: translateY(-4px); box-shadow: var(--shadow); }
.avatar { width: 80px; height: 80px; border-radius: 50%; background: rgba(204,0,0,.18); display: flex; align-items: center; justify-content: center; font-size: 1.8rem; margin: 0 auto .85rem; overflow: hidden; }
.avatar img { width: 80px; height: 80px; object-fit: cover; border-radius: 50%; }
.team-name { font-size: 1.05rem; font-weight: 700; margin-bottom: .2rem; }
.team-role { font-size: .82rem; color: var(--primary); margin-bottom: .2rem; font-weight: 600; }
.team-belt { font-size: .78rem; color: var(--text-muted); }
.board-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: .85rem; margin-bottom: 2rem; }
.board-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.1rem 1.25rem; display: flex; align-items: center; gap: 1rem; transition: border-color .2s; }
.board-card:hover { border-color: var(--primary); }
.board-avatar { width: 52px; height: 52px; border-radius: 50%; flex-shrink: 0; overflow: hidden; background: var(--bg-elevated); border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; }
.board-avatar img { width: 52px; height: 52px; object-fit: cover; }
.board-avatar svg { width: 28px; height: 28px; opacity: .4; }
.board-card-name { font-size: 1rem; font-weight: 700; color: var(--primary); margin-bottom: .25rem; }
.board-card-role { font-size: .83rem; color: var(--text-muted); }
@media (max-width: 600px) { .board-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 400px) { .board-grid { grid-template-columns: 1fr; } }

/* ── NEWS ────────────────────────────────────────── */
.news-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; transition: all .25s; }
.news-card:hover { border-color: var(--primary); transform: translateY(-4px); box-shadow: var(--shadow); }
.news-body { padding: 1.4rem; }
.news-meta { font-size: .78rem; color: var(--text-muted); margin-bottom: .5rem; }
.news-card h3 { font-size: 1rem; margin-bottom: .4rem; }
.news-card p { color: var(--text-muted); font-size: .88rem; line-height: 1.6; }
.news-tag { display: inline-block; padding: .15rem .6rem; border-radius: 4px; font-size: .72rem; font-weight: 600; background: rgba(204,0,0,.15); color: var(--primary-light); margin-bottom: .5rem; }

/* ── GALLERY ─────────────────────────────────────── */
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: .75rem; }
.gallery-item { aspect-ratio: 4/3; background: var(--bg-elevated); border: 1px solid var(--border); border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 2.5rem; cursor: pointer; transition: all .25s; overflow: hidden; }
.gallery-item:hover { border-color: var(--primary); transform: scale(1.02); }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; }

/* ── CONTACT ─────────────────────────────────────── */
.contact-layout { display: grid; grid-template-columns: 1fr 1.4fr; gap: 3rem; align-items: start; }
.contact-block { display: flex; flex-direction: column; gap: 1.25rem; }
.contact-row { display: flex; gap: .85rem; align-items: flex-start; }
.contact-ico { width: 42px; height: 42px; background: rgba(204,0,0,.12); border-radius: 9px; display: flex; align-items: center; justify-content: center; font-size: 1rem; flex-shrink: 0; }
.contact-row strong { display: block; font-size: .72rem; text-transform: uppercase; letter-spacing: 1px; color: var(--text-muted); margin-bottom: .15rem; }
.contact-row p, .contact-row a { color: var(--text-sub); font-size: .92rem; }

/* ── FORM ────────────────────────────────────────── */
.form-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: 14px; padding: 2rem; }
.fg { margin-bottom: 1.1rem; }
.fg label { display: block; font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; color: var(--text-muted); margin-bottom: .35rem; }
.fg input, .fg textarea, .fg select {
  width: 100%; padding: .7rem .9rem; background: var(--bg-elevated);
  border: 1px solid var(--border); border-radius: 7px; color: var(--text);
  font-size: .92rem; font-family: inherit; transition: border-color .2s;
}
.fg input:focus, .fg textarea:focus, .fg select:focus { outline: none; border-color: var(--primary); }
.fg textarea { resize: vertical; min-height: 110px; }
.fg select option { background: var(--bg-elevated); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-check { display: flex; gap: .6rem; align-items: flex-start; }
.form-check input[type=checkbox] { flex-shrink: 0; margin-top: .2rem; accent-color: var(--primary); }
.form-check label { font-size: .85rem; color: var(--text-muted); line-height: 1.5; }

/* ── SCHEDULE CARDS ──────────────────────────────── */
.schedule-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.day-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.5rem; }
.day-label { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 2px; color: var(--primary); margin-bottom: 1.25rem; }
.session + .session { border-top: 1px solid var(--border); margin-top: 1rem; padding-top: 1rem; }
.session-time { font-size: .8rem; color: var(--text-muted); display: flex; align-items: center; gap: .4rem; margin-bottom: .35rem; }
.session-name { font-size: .95rem; font-weight: 700; margin-bottom: .2rem; }
.session-info { font-size: .8rem; color: var(--text-muted); margin-bottom: .2rem; }
.session-trainer { font-size: .8rem; color: var(--text-muted); display: flex; align-items: center; gap: .3rem; }
@media (max-width: 900px) { .schedule-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 500px) { .schedule-grid { grid-template-columns: 1fr; } }

/* ── PAGE HEADER ─────────────────────────────────── */
.page-header { padding: calc(var(--nav-h) + 2.5rem) 1.5rem 2.5rem; background: linear-gradient(135deg, rgba(204,0,0,.1) 0%, transparent 55%); border-bottom: 1px solid var(--border); }
.page-header .container { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; flex-wrap: wrap; }
.page-header h1 { font-size: clamp(1.8rem, 5vw, 3rem); margin-bottom: .3rem; }
.page-header p { color: var(--text-muted); font-size: 1rem; }
.page-header--judo { background: linear-gradient(to right, rgba(10,10,10,1) 35%, rgba(10,10,10,.65) 100%), url('../images/Judosport.png') right center / cover no-repeat; }
.page-header--jiujitsu { background: linear-gradient(to right, rgba(10,10,10,1) 35%, rgba(10,10,10,.65) 100%), url('../images/Jiusport.png') right center / cover no-repeat; }

/* ── PROSE (legal/statutes) ──────────────────────── */
.prose { max-width: 800px; }
.prose h2 { font-size: 1.4rem; margin: 2.5rem 0 .65rem; color: var(--text); }
.prose h3 { font-size: 1.1rem; margin: 1.75rem 0 .5rem; color: var(--primary-light); }
.prose p, .prose li { color: var(--text-muted); line-height: 1.85; margin-bottom: .75rem; font-size: .95rem; }
.prose ul, .prose ol { margin-left: 1.4rem; margin-bottom: 1rem; }
.prose a { color: var(--primary); }

/* ── FOOTER ──────────────────────────────────────── */
footer { background: rgba(255,255,255,.018); border-top: 1px solid var(--border); padding: 3.5rem 1.5rem 1.5rem; margin-top: 5rem; }
.footer-grid { max-width: 1080px; margin: 0 auto 2.5rem; display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 2.5rem; }
.footer-about .nav-brand { margin-bottom: .85rem; }
.footer-about p { color: var(--text-muted); font-size: .85rem; line-height: 1.7; max-width: 280px; }
.footer-col h4 { font-size: .72rem; text-transform: uppercase; letter-spacing: 1.5px; color: var(--text-muted); margin-bottom: .85rem; font-weight: 700; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: .45rem; }
.footer-col ul a { color: var(--text-muted); font-size: .85rem; }
.footer-col ul a:hover { color: var(--text); }
.footer-bottom { max-width: 1080px; margin: 0 auto; padding-top: 1.5rem; border-top: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: .75rem; font-size: .78rem; color: var(--text-muted); }
.footer-bottom a { color: var(--text-muted); }
.footer-bottom a:hover { color: var(--text); }

/* ── UTILS ───────────────────────────────────────── */
.divider { height: 1px; background: var(--border); margin: 2rem 0; }
.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }
.mt-1 { margin-top: 1rem; } .mt-2 { margin-top: 2rem; } .mt-3 { margin-top: 3rem; }
.mb-1 { margin-bottom: 1rem; } .mb-2 { margin-bottom: 2rem; }
.alert { padding: 1rem 1.25rem; border-radius: 8px; font-size: .9rem; }
.alert-info { background: rgba(59,130,246,.1); border: 1px solid rgba(59,130,246,.25); color: #93c5fd; }
.members-gate { max-width: 420px; margin: 0 auto; text-align: center; padding: 3rem; background: var(--bg-card); border: 1px solid var(--border); border-radius: 14px; }
.members-gate h2 { font-size: 1.6rem; margin-bottom: .5rem; }
.members-gate p { color: var(--text-muted); font-size: .92rem; margin-bottom: 1.75rem; }

/* ── RESPONSIVE ──────────────────────────────────── */
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .sport-split { grid-template-columns: 1fr; }
  .sport-split.rev { direction: ltr; }
  .contact-layout { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
  .nav-links {
    display: none; position: fixed; top: var(--nav-h); left: 0; right: 0;
    background: var(--bg); border-bottom: 1px solid var(--border);
    flex-direction: column; padding: .75rem; gap: .2rem;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: .75rem 1rem; width: 100%; }
  .nav-burger { display: flex; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 1.75rem; }
  .hero-stats { gap: 1.5rem; }
  .page-header .container { flex-direction: column; align-items: flex-start; }
}
