/* Componentes reutilizables de la DiosesmonWiki (clases v-*): cabeceras de sección, pestañas,
   tarjetas, botones, campos, chips, tablas y avisos. Los usan Bayas, Competitivo y Crianza.
   --gold es el color de acento (el amarillo de la wiki). */
:root {
  --bg: #08101f;
  --bg-2: #0d1729;
  --panel: #121d32;
  --panel-2: #16233c;
  --panel-3: #1a2942;
  --line: #2b3d5c;
  --line-2: #3a5378;
  --gold: #ffd442;
  --gold-2: #ffe27a;
  --gold-3: #fff6d2;
  --gold-deep: #c9a227;
  --gold-glow: rgba(255, 212, 66, .3);
  --text: #f2f4fb;
  --text-2: #d8e3f6;
  --muted: #9aa9c4;
  --faint: #6b7a96;
  --ok: #43db95;
  --warn: #ffb347;
  --bad: #ff5a6e;
  --info: #4bb6ff;
  --male: #4bb6ff;
  --female: #ff6fb1;
  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 18px 40px #0006;
  --shell: min(100% - 40px, 1240px);
  --font-display: "Inter", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
  --font-mono: "Inter", system-ui, sans-serif;
}
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--topbar-h, 66px) + 18px); }
.v-main { color: var(--text); font-family: var(--font-body); line-height: 1.55; }
.v-main h1, .v-main h2, .v-main h3, .v-main h4 { margin: 0; color: #fff; font-family: var(--font-display); font-weight: 700; letter-spacing: -.01em; line-height: 1.15; }
.v-main p { margin: 0; }
.v-main a { color: #8fd8ff; text-underline-offset: 3px; }
.v-main a.v-btn, .v-main a.v-tab, .v-main a.v-chip { text-decoration: none; }
.v-main a.v-btn { color: #140e05; }
.v-main a.v-btn.is-ghost { color: var(--gold-2); }
.v-main img { max-width: 100%; }
.v-main .pixel { image-rendering: pixelated; }
@media (max-width: 760px) { :root { --shell: calc(100% - 24px); } }

/* ---------- Estructura de página ---------- */
.v-shell { width: var(--shell); margin: 0 auto; }
.v-main { padding: 28px 0 60px; }
.v-page-head { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px; align-items: center; margin-bottom: 26px; padding: 26px 28px; overflow: hidden; background: linear-gradient(135deg, rgba(255, 212, 66, .10), rgba(18, 29, 50, .92) 45%), var(--panel); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow); }
.v-page-head::before { content: ""; position: absolute; inset: 0; background: radial-gradient(600px 260px at 85% 40%, color-mix(in srgb, var(--gold) 16%, transparent), transparent 70%); pointer-events: none; }
.v-page-head > * { position: relative; }
.v-kicker { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 8px; color: var(--gold); font: 700 12px/1 var(--font-mono); letter-spacing: .18em; text-transform: uppercase; }
.v-kicker::before { content: ""; width: 22px; height: 1px; background: var(--gold); }
.v-page-head h1 { font-size: clamp(30px, 4.4vw, 48px); }
.v-lead { max-width: 720px; margin-top: 10px; color: var(--text-2); font-size: 17px; }
.v-page-art { width: 120px; height: 120px; border-radius: 50%; box-shadow: 0 0 0 2px var(--gold-deep), 0 0 40px var(--gold-glow); }
@media (max-width: 700px) {
  .v-page-head { grid-template-columns: 1fr; padding: 20px 18px; }
  .v-page-art { display: none; }
  .v-lead { font-size: 15.5px; }
}

/* Sub-navegación de sección (pestañas pegajosas) */
.v-tabs { position: sticky; top: calc(var(--topbar-h, 66px) + 6px); z-index: 30; display: flex; gap: 6px; margin: 0 0 22px; padding: 8px; overflow-x: auto; background: rgba(13, 23, 41, .92); border: 1px solid var(--line); border-radius: 999px; backdrop-filter: blur(10px); scrollbar-width: none; }
.v-tabs::-webkit-scrollbar { display: none; }
.v-tab { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 7px; min-height: 38px; padding: 0 16px; color: var(--text-2); background: transparent; border: 1px solid transparent; border-radius: 999px; font: 600 14px var(--font-body); text-decoration: none; white-space: nowrap; cursor: pointer; }
.v-tab:hover { color: var(--gold-3); border-color: var(--line-2); }
.v-tab[aria-selected="true"], .v-tab.is-active { color: #140e05; background: linear-gradient(180deg, var(--gold-2), var(--gold)); }

/* ---------- Bloques ---------- */
.v-section { margin-top: 34px; scroll-margin-top: 64px; }
.v-section:first-child { margin-top: 0; }
.v-title { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 12px; font-size: clamp(22px, 2.6vw, 28px); }
.v-title::before { content: ""; width: 6px; height: 1.1em; background: linear-gradient(180deg, var(--gold-2), var(--gold-deep)); border-radius: 3px; }
.v-intro { max-width: 820px; margin: -2px 0 16px; color: var(--muted); font-size: 15.5px; }
.v-card { padding: 18px 20px; background: linear-gradient(180deg, var(--panel-2), var(--panel)); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 10px 30px rgba(0, 0, 0, .35); }
.v-card h3 { margin-bottom: 8px; font-size: 19px; }
.v-card.is-gold { border-color: var(--gold-deep); box-shadow: 0 0 0 1px rgba(255, 212, 66, .15), 0 14px 40px rgba(0, 0, 0, .45); }
.v-grid { display: grid; gap: 14px; }
.v-grid.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.v-grid.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.v-grid.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 980px) { .v-grid.cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .v-grid.cols-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .v-grid.cols-2, .v-grid.cols-3, .v-grid.cols-4 { grid-template-columns: 1fr; } }

/* Aviso destacado */
.v-note { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; color: var(--text-2); background: rgba(255, 212, 66, .07); border: 1px solid rgba(255, 212, 66, .28); border-left: 4px solid var(--gold); border-radius: var(--radius-sm); font-size: 14.5px; }
.v-note strong { color: var(--gold-3); }
.v-note.is-bad { background: rgba(255, 100, 100, .07); border-color: rgba(255, 100, 100, .3); border-left-color: var(--bad); }
.v-note.is-ok { background: rgba(95, 211, 138, .07); border-color: rgba(95, 211, 138, .3); border-left-color: var(--ok); }

/* ---------- Controles ---------- */
.v-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 42px; padding: 0 18px; color: #140e05; background: linear-gradient(180deg, var(--gold-2), var(--gold) 60%, var(--gold-deep)); border: 1px solid var(--gold); border-radius: 999px; font: 700 14.5px var(--font-body); text-decoration: none; cursor: pointer; box-shadow: 0 6px 18px rgba(255, 212, 66, .22); transition: filter .15s ease, transform .15s ease; }
.v-btn:hover { color: #140e05; filter: brightness(1.08); transform: translateY(-1px); }
.v-btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }
.v-btn.is-ghost { color: var(--gold-2); background: transparent; border-color: var(--line-2); box-shadow: none; }
.v-btn.is-ghost:hover { color: var(--gold-3); border-color: var(--gold); }
.v-btn.is-danger { color: #fff; background: #8f2626; border-color: #c33; box-shadow: none; }
.v-btn.is-sm { min-height: 34px; padding: 0 12px; font-size: 13px; }
.v-field { display: grid; gap: 5px; }
.v-field > span { color: var(--muted); font: 700 11px var(--font-mono); letter-spacing: .1em; text-transform: uppercase; }
.v-input, .v-select, .v-field input, .v-field select, .v-field textarea { width: 100%; min-height: 42px; padding: 0 12px; color: var(--text); background: var(--bg-2); border: 1px solid var(--line-2); border-radius: var(--radius-sm); font: 500 15px var(--font-body); }
.v-field textarea { padding: 10px 12px; min-height: 90px; resize: vertical; }
.v-input:focus, .v-select:focus, .v-field input:focus, .v-field select:focus, .v-field textarea:focus { border-color: var(--gold); outline: none; box-shadow: 0 0 0 3px rgba(255, 212, 66, .18); }
.v-search { position: relative; }
.v-search input { padding-left: 40px; }
.v-search::before { content: "⌕"; position: absolute; left: 13px; top: 50%; transform: translateY(-52%); color: var(--gold); font-size: 20px; pointer-events: none; }
.v-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.v-chip { display: inline-flex; align-items: center; gap: 6px; min-height: 34px; padding: 0 13px; color: var(--text-2); background: var(--panel); border: 1px solid var(--line-2); border-radius: 999px; font: 600 13.5px var(--font-body); cursor: pointer; }
.v-chip:hover { color: var(--gold-3); border-color: var(--gold-deep); }
.v-chip[aria-pressed="true"] { color: #140e05; background: var(--gold); border-color: var(--gold); }
.v-check { display: inline-flex; align-items: center; gap: 8px; color: var(--text-2); cursor: pointer; }
.v-check input { width: 18px; height: 18px; margin: 0; accent-color: var(--gold); }
.v-badge { display: inline-flex; align-items: center; gap: 4px; padding: 2px 9px; color: #140e05; background: var(--gold); border-radius: 999px; font: 700 11px var(--font-mono); letter-spacing: .05em; text-transform: uppercase; white-space: nowrap; }
.v-badge.is-dim { color: var(--gold-2); background: transparent; border: 1px solid var(--line-2); }

/* Tablas */
.v-table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
.v-table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.v-table th, .v-table td { padding: 10px 12px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: middle; }
.v-table thead th { position: sticky; top: 0; color: var(--gold); background: var(--panel-3); font: 700 11.5px var(--font-mono); letter-spacing: .08em; text-transform: uppercase; }
.v-table tbody tr:nth-child(even) { background: rgba(255, 255, 255, .015); }
.v-table tbody tr:hover { background: rgba(255, 212, 66, .05); }
.v-table tr:last-child td { border-bottom: 0; }

/* Etiqueta de tipo Pokémon */
.type-chip { display: inline-block; padding: 1px 8px; color: #fff; background: var(--type-color, #555); border-radius: 5px; font-size: 11px; font-weight: 800; letter-spacing: .03em; text-transform: uppercase; text-shadow: 0 1px 0 rgba(0, 0, 0, .35); }
.pixel { image-rendering: pixelated; }


/* Banner clásico de la wiki (section.css) dentro de las páginas con componentes v-* */
.v-main .sec-hero h1 { font-size: clamp(40px, 5vw, 58px); letter-spacing: -.025em; line-height: 1; }
.v-main .sec-hero .sec-lead { margin-top: 14px; font-size: 18px; line-height: 1.55; }
.v-main .sec-hero .eyebrow { margin: 0 0 10px; }
@media (max-width: 760px) { .v-main .sec-hero .sec-lead { font-size: 16px; } }
.v-main .sec-hero .hero-tips strong { color: #fff; }
.v-main .sec-hero .hero-tips li:not(:has(img)) { padding-left: 13px; }
