:root {
  --blue: #1577e0;
  --blue-dark: #0d5bb5;
  --blue-deep: #0a2540;
  --celeste: #74acdf;
  --ink: #0f172a;
  --muted: #5b6675;
  --line: #e6eaf0;
  --bg: #ffffff;
  --bg-soft: #f5f8fc;
  --radius: 16px;
  --shadow: 0 10px 30px rgba(13, 91, 181, 0.10);
  --maxw: 1140px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
section { padding: 84px 0; }
h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; }
.eyebrow {
  display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: 1.5px;
  text-transform: uppercase; color: var(--blue); margin-bottom: 14px;
}
.section-head { max-width: 680px; margin: 0 auto 52px; text-align: center; }
.section-head h2 { font-size: clamp(28px, 4vw, 40px); }
.section-head p { color: var(--muted); margin-top: 14px; font-size: 18px; }

/* ---------- Header ---------- */
header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,0.88); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; align-items: center; gap: 12px; font-weight: 800; font-size: 17px; }
.brand img { width: 42px; height: 42px; }
.brand small { display: block; font-weight: 600; font-size: 11px; color: var(--muted); letter-spacing: 1px; }
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a { font-weight: 600; font-size: 15px; color: #344256; transition: color .15s; }
.nav-links a:hover { color: var(--blue); }
.btn {
  display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 15px;
  padding: 11px 22px; border-radius: 999px; cursor: pointer; border: 0; transition: transform .12s, box-shadow .2s, background .2s;
}
.btn-primary { background: var(--blue); color: #fff; box-shadow: 0 6px 18px rgba(21,119,224,.35); }
.btn-primary:hover { background: var(--blue-dark); transform: translateY(-1px); }
.btn-ghost { background: #fff; color: var(--blue); border: 1.5px solid var(--blue); }
.btn-ghost:hover { background: var(--bg-soft); }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 24px; height: 2.5px; background: var(--ink); margin: 5px 0; border-radius: 2px; transition: .25s; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(1100px 500px at 80% -10%, rgba(116,172,223,.30), transparent 60%),
    linear-gradient(180deg, #f3f8ff 0%, #ffffff 70%);
  padding: 90px 0 70px;
}
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.hero h1 { font-size: clamp(34px, 5.2vw, 56px); font-weight: 850; }
.hero h1 .accent { color: var(--blue); }
.hero p.lead { font-size: 20px; color: var(--muted); margin: 22px 0 32px; max-width: 560px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-badges { display: flex; gap: 26px; margin-top: 40px; flex-wrap: wrap; }
.hero-badges .item { }
.hero-badges .num { font-size: 30px; font-weight: 850; color: var(--blue-deep); }
.hero-badges .lbl { font-size: 13px; color: var(--muted); font-weight: 600; }
.hero-art {
  position: relative; display: grid; place-items: center;
  aspect-ratio: 1; border-radius: 28px;
  background: radial-gradient(circle at 50% 40%, #ffffff, #eaf2fe);
  box-shadow: var(--shadow); border: 1px solid var(--line);
}
.hero-art img { width: 64%; filter: drop-shadow(0 12px 24px rgba(13,91,181,.18)); }
.hero-art .ribbon {
  position: absolute; bottom: 22px; left: 50%; transform: translateX(-50%);
  background: var(--blue-deep); color: #fff; font-weight: 700; font-size: 13px; letter-spacing: 1px;
  padding: 9px 18px; border-radius: 999px; white-space: nowrap;
}
.flag-stripe { position:absolute; top:0; left:0; right:0; height:6px;
  background: linear-gradient(90deg, var(--celeste) 0 33%, #fff 33% 66%, var(--celeste) 66% 100%); }

/* ---------- Cards / disciplinas ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 26px; transition: transform .15s, box-shadow .2s, border-color .2s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: #cfe0f6; }
.card .ico {
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--blue), var(--blue-dark)); color: #fff; margin-bottom: 18px;
}
.card h3 { font-size: 20px; margin-bottom: 8px; }
.card p { color: var(--muted); font-size: 15px; }

/* ---------- Institucional ---------- */
.about { background: var(--bg-soft); }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.about h2 { font-size: clamp(28px, 4vw, 38px); margin-bottom: 18px; }
.about p { color: var(--muted); margin-bottom: 16px; font-size: 17px; }
.about .veteranos {
  display: flex; gap: 16px; align-items: center; margin-top: 26px;
  background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--blue);
  border-radius: 12px; padding: 18px 20px;
}
.about .veteranos img { width: 54px; }
.about .veteranos b { display: block; font-size: 15px; }
.about .veteranos span { font-size: 14px; color: var(--muted); }
.stat-list { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.stat {
  background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 24px;
}
.stat .n { font-size: 34px; font-weight: 850; color: var(--blue); }
.stat .t { color: var(--muted); font-size: 14px; font-weight: 600; }

/* ---------- Horarios ---------- */
.sched { max-width: 720px; margin: 0 auto; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.sched .row { display: flex; justify-content: space-between; padding: 18px 26px; border-bottom: 1px solid var(--line); }
.sched .row:last-child { border-bottom: 0; }
.sched .row:nth-child(odd) { background: var(--bg-soft); }
.sched .day { font-weight: 700; }
.sched .hours { color: var(--blue-dark); font-weight: 600; }
.sched .closed { color: #b91c1c; font-weight: 600; }

/* ---------- Asociarse ---------- */
.join { background: linear-gradient(135deg, var(--blue-deep), var(--blue-dark)); color: #fff; }
.join .section-head h2 { color: #fff; }
.join .section-head p { color: #c9ddf6; }
.steps { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; margin-bottom: 44px; }
.step { background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.14); border-radius: 14px; padding: 26px; }
.step .n { width: 38px; height: 38px; border-radius: 50%; background: #fff; color: var(--blue-dark); font-weight: 850; display: grid; place-items: center; margin-bottom: 14px; }
.step h3 { font-size: 18px; margin-bottom: 6px; }
.step p { color: #c9ddf6; font-size: 15px; }
.join .center { text-align: center; }

/* ---------- Contacto ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.contact-info .line { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 22px; }
.contact-info .ico { width: 44px; height: 44px; border-radius: 12px; background: var(--bg-soft); color: var(--blue); display: grid; place-items: center; flex: 0 0 auto; }
.contact-info b { display: block; font-size: 15px; }
.contact-info span { color: var(--muted); font-size: 15px; }
.map-box {
  border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line);
  background: repeating-linear-gradient(45deg, #eef4fc, #eef4fc 12px, #f6f9fd 12px, #f6f9fd 24px);
  display: grid; place-items: center; min-height: 320px; color: var(--muted); text-align: center; padding: 24px;
}

/* ---------- Footer ---------- */
footer { background: var(--blue-deep); color: #cdd9e8; padding: 54px 0 30px; }
.foot-grid { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; align-items: center; }
.foot-brand { display: flex; align-items: center; gap: 14px; }
.foot-brand img { width: 48px; }
.foot-brand b { color: #fff; font-size: 16px; }
.foot-links { display: flex; gap: 24px; flex-wrap: wrap; }
.foot-links a { color: #cdd9e8; font-size: 15px; }
.foot-links a:hover { color: #fff; }
.foot-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 32px; padding-top: 22px; font-size: 13px; color: #94a8c0; text-align: center; }

/* ---------- Banner prototipo ---------- */
.proto {
  background: #fff7ed; color: #9a3412; text-align: center; font-size: 13px; font-weight: 600;
  padding: 8px 16px; border-bottom: 1px solid #fed7aa;
}

/* ---------- Novedades y torneos ---------- */
.nov-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.nov-card {
  display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden; transition: transform .15s, box-shadow .2s;
}
.nov-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.nov-media {
  position: relative; aspect-ratio: 16/9; background-size: cover; background-position: center;
  display: grid; place-items: center;
}
.nov-media.ph { background: linear-gradient(135deg, var(--blue), var(--blue-deep)); }
.nov-media.ph svg { width: 56px; height: 56px; color: rgba(255,255,255,.85); }
.nov-badge {
  position: absolute; top: 12px; left: 12px; font-size: 12px; font-weight: 800; letter-spacing: .5px;
  text-transform: uppercase; padding: 5px 12px; border-radius: 999px; color: #fff;
}
.nov-badge.torneo { background: #d97706; }
.nov-badge.novedad { background: var(--blue); }
.nov-body { padding: 22px; display: flex; flex-direction: column; flex: 1; }
.nov-body time { font-size: 13px; color: var(--muted); font-weight: 600; }
.nov-body h3 { font-size: 19px; margin: 6px 0 8px; }
.nov-body h3 a { color: var(--ink); transition: color .15s; }
.nov-body h3 a:hover { color: var(--blue); }
.nov-body p { color: var(--muted); font-size: 15px; flex: 1; }
.nov-readmore { display: inline-block; margin-top: 12px; color: var(--blue); font-weight: 700; font-size: 14px; }
.nov-readmore:hover { text-decoration: underline; }
.nov-share { display: flex; align-items: center; gap: 8px; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); flex-wrap: wrap; }
.nov-share .lbl { font-size: 13px; color: var(--muted); font-weight: 600; margin-right: 2px; }
.share-btn {
  width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; cursor: pointer;
  border: 1px solid var(--line); background: #fff; color: #475569; transition: transform .12s, background .2s, color .2s, border-color .2s;
}
.share-btn:hover { transform: translateY(-2px); }
.share-btn.wa:hover { background: #25d366; color: #fff; border-color: #25d366; }
.share-btn.fb:hover { background: #1877f2; color: #fff; border-color: #1877f2; }
.share-btn.x:hover  { background: #000; color: #fff; border-color: #000; }
.share-btn.cp:hover { background: var(--blue); color: #fff; border-color: var(--blue); }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .nov-grid { grid-template-columns: 1fr; }
  .hero-grid, .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .hero-art { max-width: 360px; margin: 0 auto; }
  .cards, .steps { grid-template-columns: 1fr; }
  section { padding: 60px 0; }
}

/* ---------- Agregados de la versión conectada al sistema ---------- */
.eyebrow.light { color: #9fc6f5; }
.foot-brand small { font-size: 13px; }
.muted-msg { color: var(--muted); text-align: center; grid-column: 1 / -1; }
.nov-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.nov-badge { z-index: 1; }
.share-btn svg, .sbtn svg { width: 17px; height: 17px; }

/* Próximos eventos */
.events { max-width: 820px; margin: 0 auto 56px; display: grid; gap: 14px; }
.events h3.events-title { font-size: 14px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; color: var(--blue); text-align: center; margin-bottom: 4px; }
.event { display: flex; gap: 18px; align-items: flex-start; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 16px 20px; }
.event .when { flex: 0 0 auto; width: 64px; text-align: center; border-radius: 12px; background: var(--bg-soft); padding: 8px 0; }
.event .when .d { display: block; font-size: 24px; font-weight: 850; color: var(--blue-deep); line-height: 1.1; }
.event .when .m { display: block; font-size: 12px; font-weight: 700; color: var(--blue); text-transform: uppercase; }
.event h4 { font-size: 17px; }
.event .meta { font-size: 14px; color: var(--muted); }
.event p { font-size: 15px; color: #334155; margin-top: 4px; }
.tag { display: inline-block; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .5px; padding: 3px 9px; border-radius: 999px; background: #fef3c7; color: #92400e; margin-left: 6px; vertical-align: middle; }

/* Horarios: días especiales */
.special { max-width: 720px; margin: 22px auto 0; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 24px; }
.special h3 { font-size: 15px; margin-bottom: 10px; }
.special ul { list-style: none; }
.special li { display: flex; justify-content: space-between; gap: 16px; padding: 6px 0; border-top: 1px dashed var(--line); font-size: 15px; }
.special li:first-child { border-top: 0; }

/* Documentos */
.docs { max-width: 820px; margin: 0 auto; display: grid; gap: 12px; }
.doc { display: flex; gap: 16px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 16px 20px; }
.doc .ico { flex: 0 0 auto; width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: #fee2e2; color: #b91c1c; font-weight: 800; font-size: 12px; }
.doc .info { flex: 1; min-width: 0; }
.doc .info b { display: block; }
.doc .info span { font-size: 14px; color: var(--muted); }
.doc .cat { font-size: 12px; font-weight: 700; color: var(--blue); text-transform: uppercase; letter-spacing: .5px; }

/* Nota completa (articulo.html) */
.back { color: var(--blue); font-weight: 600; font-size: 15px; }
article.note { padding: 40px 0 70px; max-width: 820px; }
.crumbs { font-size: 14px; color: var(--muted); margin-bottom: 22px; }
.crumbs a { color: var(--blue); font-weight: 600; }
.note .nov-badge { position: static; display: inline-block; margin-bottom: 16px; }
.note h1 { font-size: clamp(28px, 5vw, 44px); }
.note .meta { color: var(--muted); font-size: 15px; margin: 16px 0 10px; }
.note .cover { margin: 26px 0 8px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); }
.note .cover img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.note .body { font-size: 18px; color: #283242; margin-top: 26px; line-height: 1.7; }
.note .body p { margin-bottom: 18px; }
.gallery-title { font-size: 14px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; color: var(--blue); margin: 38px 0 16px; }
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.gallery button { padding: 0; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; cursor: zoom-in; background: none; }
.gallery img { aspect-ratio: 1; object-fit: cover; width: 100%; transition: transform .15s; }
.gallery button:hover img { transform: scale(1.03); }
.share { display: flex; align-items: center; gap: 10px; margin-top: 40px; padding-top: 26px; border-top: 1px solid var(--line); flex-wrap: wrap; }
.share .lbl { font-weight: 700; font-size: 15px; }
.sbtn { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 14px; padding: 9px 16px; border-radius: 10px; color: #fff; cursor: pointer; border: 0; }
.sbtn.wa { background: #25d366; } .sbtn.fb { background: #1877f2; } .sbtn.x { background: #000; }
.sbtn.cp { background: #eef2f7; color: #475569; }
.notfound { text-align: center; padding: 90px 20px; }
.notfound h1 { font-size: 26px; margin-bottom: 12px; }
.notfound p { color: var(--muted); margin-bottom: 24px; }
.lb { position: fixed; inset: 0; background: rgba(8,16,30,.92); display: none; place-items: center; z-index: 100; padding: 30px; }
.lb.open { display: grid; }
.lb img { max-width: 92vw; max-height: 88vh; border-radius: 10px; }
.lb .close { position: absolute; top: 16px; right: 22px; color: #fff; font-size: 36px; background: none; border: 0; cursor: pointer; line-height: 1; }
.foot-simple { padding: 40px 0; text-align: center; font-size: 14px; }
.foot-simple a { color: #fff; font-weight: 600; }

@media (max-width: 640px) { .gallery { grid-template-columns: repeat(2, 1fr); } .event { flex-direction: column; } }
.map-box svg { margin: 0 auto 12px; }
.map-box b { display: block; color: var(--ink, #0f172a); }
.map-box .map-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin: 16px 0 12px; }
.map-box small { font-size: 13px; }
.map-box.loaded { padding: 0; display: block; background: none; }
.map-box iframe { display: block; width: 100%; height: 100%; min-height: 360px; border: 0; }
/* Botones flotantes de WhatsApp y redes */
.float-contact { position: fixed; right: 18px; bottom: 18px; z-index: 50; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.float-btn { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; color: #fff; box-shadow: 0 6px 18px rgba(15,23,42,.25); transition: transform .15s ease, box-shadow .15s ease; }
.float-btn svg { width: 22px; height: 22px; }
.float-btn:hover, .float-btn:focus-visible { transform: translateY(-2px) scale(1.05); box-shadow: 0 10px 24px rgba(15,23,42,.3); }
.float-btn.whatsapp { width: 58px; height: 58px; background: #25d366; }
.float-btn.whatsapp svg { width: 30px; height: 30px; }
.float-btn.instagram { background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fd5949 45%, #d6249f 60%, #285aeb 90%); }
.float-btn.facebook { background: #1877f2; }
/* Lugar libre al final para que los botones no tapen el pie de página. */
@media (max-width: 600px) { .float-contact { right: 14px; bottom: 14px; gap: 8px; } body:has(.float-contact) > footer { padding-bottom: 190px; } }
@media (prefers-reduced-motion: reduce) { .float-btn { transition: none; } }
@media print { .float-contact { display: none; } }

.contact-info a { color: inherit; text-decoration: underline; text-decoration-color: #c4d0e0; text-underline-offset: 3px; }
.contact-info a:hover { color: var(--blue); }
.brand span { white-space: nowrap; }

/* Menú hamburguesa antes de que el nombre del club choque con los enlaces. */
@media (max-width: 1080px) {
  .nav-links { display: none; position: absolute; top: 72px; left: 0; right: 0; flex-direction: column;
    background: #fff; border-bottom: 1px solid var(--line); padding: 18px 24px; gap: 18px; box-shadow: var(--shadow); }
  .nav-links.open { display: flex; }
  .nav-toggle { display: block; }
}

/* Solicitud de ingreso (solicitud.html) */
.apply { max-width: 820px; padding-top: 40px; padding-bottom: 70px; }
.apply h1, .legal h1 { font-size: clamp(28px, 5vw, 40px); margin-bottom: 18px; }
.apply-intro { color: var(--muted); margin-bottom: 28px; }
.apply-intro p { margin-bottom: 10px; }
.apply-intro .warn { background: #fff7ed; border: 1px solid #fed7aa; color: #9a3412; border-radius: 12px; padding: 12px 16px; }
.apply-form fieldset { border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; margin-bottom: 18px; }
.apply-form legend { font-weight: 800; font-size: 14px; letter-spacing: .5px; text-transform: uppercase; color: var(--blue); padding: 0 8px; }
.apply-form label { display: block; font-weight: 600; font-size: 14px; color: #334155; margin-bottom: 12px; }
.apply-form input:not([type=radio]):not([type=checkbox]), .apply-form select {
  display: block; width: 100%; margin-top: 6px; padding: 11px 13px; border: 1px solid #d5dce6; border-radius: 10px;
  font: inherit; font-weight: 400; color: var(--ink); background: #fff;
}
.apply-form input:focus, .apply-form select:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(21,119,224,.15); }
.apply-form .grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
.apply-form .span2 { grid-column: 1 / -1; }
.apply-form .opt { font-weight: 500; color: #94a3b8; }
.apply-form .choice { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; margin-bottom: 14px; font-weight: 600; font-size: 14px; color: #334155; }
.apply-form .choice label { display: inline-flex; gap: 6px; align-items: center; margin: 0; font-weight: 500; }
.apply-form .check { display: flex; gap: 10px; align-items: flex-start; font-weight: 500; }
.apply-form .check input { margin-top: 4px; width: 18px; height: 18px; flex: 0 0 auto; }
.apply-form .check a { color: var(--blue); text-decoration: underline; }
.apply-form .form-error { background: #fef2f2; border: 1px solid #fecaca; color: #b91c1c; border-radius: 12px; padding: 12px 16px; margin-bottom: 18px; font-weight: 600; }
.apply-form .hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.apply-form button[type=submit] { margin-top: 6px; }
.apply-done { text-align: center; padding: 50px 20px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-soft); }
.apply-done h2 { font-size: 26px; margin-bottom: 12px; }
.apply-done p { color: var(--muted); margin-bottom: 24px; }
.legal { max-width: 820px; padding-top: 40px; padding-bottom: 70px; }
.legal h2 { font-size: 20px; margin: 26px 0 8px; }
.legal p { color: #334155; margin-bottom: 10px; }
.legal .muted { color: var(--muted); font-size: 14px; }
@media (max-width: 640px) { .apply-form .grid2 { grid-template-columns: 1fr; } }

/* Portal del socio (portal.html) */
.portal { padding-top: 40px; padding-bottom: 70px; }
.portal h1 { font-size: clamp(28px, 5vw, 40px); margin-bottom: 14px; }
.portal h2 { font-size: 18px; margin-bottom: 14px; }
.portal h3 { font-size: 15px; margin: 18px 0 6px; color: var(--blue); }
.portal-login { max-width: 520px; margin: 0 auto; }
.lead-sm { color: var(--muted); margin-bottom: 22px; }
.portal-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px; margin-bottom: 20px; }
.portal-card label { display: block; font-weight: 600; font-size: 14px; color: #334155; margin-bottom: 12px; }
.portal-card input { display: block; width: 100%; margin-top: 6px; padding: 11px 13px; border: 1px solid #d5dce6; border-radius: 10px; font: inherit; font-weight: 400; }
.portal-card input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(21,119,224,.15); }
.portal-card .hint, .portal .hint { font-size: 13px; color: var(--muted); margin-top: 10px; }
.portal-grid { display: grid; grid-template-columns: 320px 1fr; gap: 20px; align-items: start; }
.profile .photo { margin-bottom: 16px; }
.profile .photo img { width: 140px; height: 175px; object-fit: cover; border-radius: 12px; border: 1px solid var(--line); }
.profile .nophoto { width: 140px; height: 175px; border-radius: 12px; border: 1px dashed #c4d0e0; display: grid; place-items: center; text-align: center; font-size: 13px; color: var(--muted); padding: 10px; }
.profile dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; font-size: 15px; }
.profile dt { color: var(--muted); }
.profile dd { font-weight: 600; }
.clu { margin-top: 16px; border-radius: 10px; padding: 10px 14px; font-size: 14px; font-weight: 600; }
.clu.ok { background: #f0fdf4; color: #166534; }
.clu.soon { background: #fffbeb; color: #92400e; }
.clu.expired { background: #fef2f2; color: #b91c1c; }
.clu.none { background: var(--bg-soft); color: var(--muted); }
.notice { border-radius: 12px; padding: 12px 16px; margin-bottom: 18px; font-weight: 600; font-size: 15px; }
.notice.ok { background: #f0fdf4; border: 1px solid #bbf7d0; color: #166534; }
.notice.info { background: var(--bg-soft); border: 1px solid var(--line); color: #334155; }
.notice.error { background: #fef2f2; border: 1px solid #fecaca; color: #b91c1c; }
.portal .form-error { background: #fef2f2; border: 1px solid #fecaca; color: #b91c1c; border-radius: 10px; padding: 10px 14px; margin-bottom: 14px; font-weight: 600; font-size: 14px; }
.portal .docs { max-width: none; }
.credential { margin-top: 16px; display: grid; justify-items: start; gap: 12px; }
.credential img { width: 100%; max-width: 300px; aspect-ratio: 9 / 16; border-radius: 16px; border: 1px solid var(--line); background: var(--bg-soft); }
.weapons { display: grid; gap: 12px; }
.weapon { border: 1px solid var(--line); border-radius: 14px; padding: 14px 18px; }
.weapon.inactive { background: var(--bg-soft); color: var(--muted); }
.weapon b { font-size: 16px; }
.weapon .tag.off { background: #e2e8f0; color: #475569; }
.weapon dl { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px 16px; margin-top: 10px; font-size: 14px; }
.weapon dt { color: var(--muted); font-size: 12px; }
.weapon dd { font-weight: 600; overflow-wrap: anywhere; }
.weapon .wdocs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.weapon .wdocs a { font-size: 13px; padding: 6px 12px; }
@media (max-width: 900px) { .portal-grid { grid-template-columns: 1fr; } }
.inline-link { color: var(--blue); font-weight: 600; text-decoration: underline; }
[hidden] { display: none !important; }
