/* Wenopal: sitio estatico. Colores de la marca (logo: circulo oscuro, lineas crema, lengua rosada). */

/* fuentes propias (subconjunto latino, de _web/fonts): sin depender de Google Fonts */
@font-face {
  font-family: 'Bebas Neue';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(fonts/bebasneue-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(fonts/inter-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(fonts/inter-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(fonts/inter-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --bg: #14110f;
  --surface: #1f1c19;
  --surface-2: #29251f;
  --line: #36302a;
  --text: #ece6da;
  --muted: #a89f92;
  --pink: #ee6f86;
  --pink-soft: #f7a3b1;
  --acc: var(--pink);
  --radius: 14px;
  --head: 'Bebas Neue', Impact, 'Arial Narrow', sans-serif;
  --body: Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.6 var(--body); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--pink-soft); }
h1, h2, h3 { font-family: var(--head); font-weight: 400; letter-spacing: .02em; line-height: 1.05; margin: 0 0 .4em; }


/* logo que se da vuelta (el oso oculto) */
.logo-flip img { transition: transform .7s cubic-bezier(.5, -0.4, .3, 1.4); }
.logo-flip:hover img, .logo-flip.flip img { transform: rotate(180deg); }

/* barra superior */
.top {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 10px clamp(16px, 4vw, 40px);
  background: rgba(20, 17, 15, .88); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; }
.brand img { width: 40px; height: 40px; }
.brand-name { font-family: var(--head); font-size: 28px; letter-spacing: .06em; padding-top: 3px; }
.top nav { display: flex; align-items: center; gap: clamp(10px, 2.5vw, 26px); }
.top nav a { color: var(--muted); text-decoration: none; font-weight: 600; font-size: 15px; }
.top nav a:hover { color: var(--text); }
.lang {
  font: 700 13px var(--body); color: var(--text) !important; background: var(--surface-2); text-decoration: none;
  border: 1px solid var(--line); border-radius: 999px; padding: 5px 12px; cursor: pointer;
}
.lang:hover { border-color: var(--pink); }

/* portada */
.hero {
  text-align: center; padding: clamp(40px, 8vw, 90px) 16px clamp(40px, 6vw, 70px);
  background: radial-gradient(ellipse at 50% 0%, #2a211c 0%, var(--bg) 65%);
}
.hero-logo { width: clamp(140px, 22vw, 200px); margin: 0 auto 24px; cursor: pointer; }
.hero-logo img { border-radius: 50%; box-shadow: 0 0 0 1px var(--line), 0 18px 60px -18px rgba(238, 111, 134, .45); }
.hero h1 { font-size: clamp(40px, 7vw, 76px); max-width: 22ch; margin: 0 auto .3em; }
.sub { color: var(--muted); font-size: clamp(16px, 2vw, 19px); max-width: 56ch; margin: 0 auto 26px; }
.stats { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px 26px; margin-bottom: 30px; color: var(--muted); font-size: 14px; }
.stats b { color: var(--text); font-family: var(--head); font-size: 22px; font-weight: 400; margin-right: 4px; letter-spacing: .03em; }

.btn {
  display: inline-block; background: var(--acc); color: #1a1512; font-weight: 700; text-decoration: none;
  padding: 12px 24px; border-radius: 999px; transition: transform .15s, filter .15s;
}
.btn:hover { transform: translateY(-2px); filter: brightness(1.08); }
.btn.ghost { background: transparent; color: var(--text); border: 1px solid var(--line); }
.btn.ghost:hover { border-color: var(--pink); }
.btn.off { background: var(--surface-2); color: var(--muted); cursor: default; }
.btn.off:hover { transform: none; filter: none; }

/* secciones */
.wrap { max-width: 1180px; margin: 0 auto; padding: 40px clamp(16px, 4vw, 40px); }
.sec { font-size: clamp(34px, 5vw, 48px); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 24px; }
.chip {
  font: 600 14px var(--body); color: var(--muted); background: var(--surface);
  border: 1px solid var(--line); border-radius: 999px; padding: 7px 15px; cursor: pointer;
}
.chip:hover { color: var(--text); }
.chip.on { color: #1a1512; background: var(--pink); border-color: var(--pink); }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 18px; }
.card {
  display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden; text-decoration: none; color: var(--text);
  transition: transform .18s, border-color .18s, box-shadow .18s;
}
.card:hover { transform: translateY(-4px); border-color: var(--acc); box-shadow: 0 10px 30px -12px var(--acc); }
.card.hide { display: none; }
.thumb { position: relative; aspect-ratio: 1; background: #0e0c0b; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.soon {
  position: absolute; top: 10px; left: 10px; background: var(--pink); color: #1a1512;
  font: 700 12px var(--body); padding: 4px 10px; border-radius: 999px;
}
.card-body { padding: 14px 16px 18px; }
.card h3 { font-size: 26px; margin-bottom: .2em; }
.card p { margin: 0; color: var(--muted); font-size: 14.5px; line-height: 1.45; }

.about p { max-width: 62ch; color: var(--muted); font-size: 17px; margin-bottom: 24px; }

/* pagina de un mod */
.mod { max-width: 980px; margin: 0 auto; padding: clamp(24px, 5vw, 50px) clamp(16px, 4vw, 40px); }
.mod-hero { display: grid; grid-template-columns: minmax(0, 380px) 1fr; gap: clamp(20px, 4vw, 44px); align-items: center; margin-bottom: 40px; }
.mod-hero > * { min-width: 0; }
.mod-hero img { width: 100%; border-radius: var(--radius); border: 1px solid var(--line); box-shadow: 0 20px 50px -20px var(--acc); }
.kicker { color: var(--acc); font-weight: 700; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; margin: 0 0 8px; }
.mod-hero h1 { font-size: clamp(46px, 7vw, 78px); }
.hook { color: var(--muted); font-size: 18px; margin: 0 0 24px; }
.mod-body { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(18px, 4vw, 36px); }
.mod-body h2 { font-size: 32px; margin-top: 1.1em; }
.mod-body h2:first-child { margin-top: 0; }
.mod-body p, .mod-body li { color: #d8d1c4; }
.mod-body strong { color: var(--text); }
.mod-body ul { padding-left: 1.2em; }
.mod-body li { margin-bottom: .35em; }
.mod-body hr { border: 0; border-top: 1px solid var(--line); margin: 28px 0; }
.tbl { overflow-x: auto; margin: 12px 0 18px; }
.mod-body table { border-collapse: collapse; width: 100%; font-size: 15px; }
.mod-body th, .mod-body td { text-align: left; padding: 9px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.mod-body th { color: var(--text); font-weight: 700; background: var(--surface-2); }
.compat th { width: 38%; background: transparent !important; color: var(--muted) !important; font-weight: 600 !important; }
.modnav { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.modnav a { color: var(--muted); text-decoration: none; font-weight: 600; }
.modnav a:hover { color: var(--text); }

/* pie */
.foot { text-align: center; padding: 50px 16px 40px; border-top: 1px solid var(--line); margin-top: 40px; color: var(--muted); font-size: 14px; }
.foot-logo { width: 54px; margin: 0 auto 12px; opacity: .8; }
.foot p { margin: 4px 0; }
.foot .small { font-size: 12.5px; opacity: .7; }

@media (max-width: 720px) {
  .mod-hero { grid-template-columns: 1fr; }
  .mod-hero img { max-width: 420px; margin: 0 auto; }
  .top nav a:not([href$="#mods"]) { display: none; }
  .grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
  .card h3 { font-size: 22px; }
  .card p { font-size: 13.5px; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}

/* guias */
.guide { max-width: 1180px; margin: 0 auto; padding: clamp(24px, 5vw, 50px) clamp(16px, 4vw, 40px); }
.guide-head { max-width: 760px; margin-bottom: 28px; }
.guide-head h1 { font-size: clamp(42px, 6vw, 68px); }
.guide-head .kicker a { color: inherit; text-decoration: none; }
.es-only p { display: inline-block; font-size: 13px; color: var(--muted); background: var(--surface-2); border: 1px solid var(--line); border-radius: 999px; padding: 4px 12px; margin: 0; }
.guide-grid { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 32px; align-items: start; }
.toc { position: sticky; top: 84px; font-size: 14px; }
.toc p { font-weight: 700; color: var(--text); margin: 0 0 8px; }
.toc ol { list-style: none; padding: 0; margin: 0; border-left: 2px solid var(--line); }
.toc li { margin: 0; }
.toc a { display: block; color: var(--muted); text-decoration: none; padding: 5px 0 5px 14px; margin-left: -2px; border-left: 2px solid transparent; line-height: 1.35; }
.toc a:hover { color: var(--text); border-left-color: var(--pink); }
.prose { max-width: 820px; }
.prose h2 { scroll-margin-top: 80px; }
.prose h3 { font-size: 24px; margin-top: 1.2em; scroll-margin-top: 80px; }
.prose code { font: 0.88em ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; background: #2c2722; border: 1px solid var(--line); border-radius: 5px; padding: 1px 5px; color: #f3d9b8; }
.prose .code { position: relative; margin: 14px 0 20px; }
.prose pre { margin: 0; background: #12100e; border: 1px solid var(--line); border-radius: 10px; padding: 16px 18px; overflow-x: auto; line-height: 1.5; }
.prose pre code { background: none; border: 0; padding: 0; font-size: 13.5px; color: #e8e1d3; }
.code-lang { position: absolute; top: 6px; right: 10px; font: 600 11px var(--body); color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.prose .note { background: rgba(238, 111, 134, .08); border: 1px solid rgba(238, 111, 134, .35); border-left: 4px solid var(--pink); border-radius: 10px; padding: 12px 16px; margin: 16px 0 20px; color: #e3dccf; }
.prose li.check { list-style: none; margin-left: -1.2em; }
.prose li.check::before { content: '☐ '; color: var(--pink); }
.prose a { color: var(--pink-soft); }
.prose thead th { background: var(--surface-2); }

.gsec { margin-bottom: 30px; }
.glist { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 14px; }
.gcard { display: flex; gap: 16px; align-items: flex-start; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; text-decoration: none; color: var(--text); transition: transform .18s, border-color .18s; }
.gcard:hover { transform: translateY(-3px); border-color: var(--pink); }
.gnum { font-family: var(--head); font-size: 34px; color: var(--pink); line-height: 1; padding-top: 2px; }
.gcard h3 { font-size: 26px; margin-bottom: .15em; }
.gcard p { margin: 0; color: var(--muted); font-size: 14.5px; line-height: 1.45; }
.guides-teaser p { max-width: 62ch; color: var(--muted); font-size: 17px; margin-bottom: 22px; }

@media (max-width: 860px) {
  .guide-grid { grid-template-columns: 1fr; }
  .toc { position: static; }
  .glist { grid-template-columns: 1fr; }
}
.es-only p:empty { display: none; }
.prose .copy { position: absolute; bottom: 8px; right: 8px; font: 600 12px var(--body); color: var(--text); background: var(--surface-2); border: 1px solid var(--line); border-radius: 6px; padding: 3px 10px; cursor: pointer; opacity: .7; }
.prose .copy:hover { opacity: 1; border-color: var(--pink); }
.notfound { text-align: center; padding-top: 70px; padding-bottom: 70px; } .notfound .hero-logo { margin-bottom: 20px; }

/* ---------- el logo por todo el sitio (ambigrama) ---------- */

/* fondo: pocos logos enormes (carita y oso alternados), muy tenues y fijos; se apagan hacia el centro */
.bg-pattern {
  position: fixed; inset: -25%; z-index: -1; pointer-events: none;
  background: url('pattern.svg') repeat; background-size: 1600px 1600px; background-position: 50% 40%;
  opacity: .05; transform: rotate(-12deg);
  -webkit-mask-image: radial-gradient(ellipse 50% 55% at 50% 45%, transparent 25%, #000 80%);
          mask-image: radial-gradient(ellipse 50% 55% at 50% 45%, transparent 25%, #000 80%);
}
body { position: relative; isolation: isolate; }
.hero { background: radial-gradient(ellipse at 50% 0%, rgba(42, 33, 28, .9) 0%, rgba(20, 17, 15, 0) 65%); }

/* logo de la barra: gira con el scroll (carita arriba, oso al final de la pagina). --spin lo pone site.js */
.brand .logo-flip img { transform: rotate(var(--spin, 0deg)); transition: transform .25s ease-out; }
.brand:hover .logo-flip img { transform: rotate(calc(var(--spin, 0deg) + 180deg)); transition-duration: .7s; }

/* boton "dale la vuelta" bajo el logo grande */
.flip-btn {
  display: inline-block; margin: -8px auto 22px; font: 600 13px var(--body); color: var(--muted);
  background: transparent; border: 1px dashed var(--line); border-radius: 999px; padding: 5px 14px; cursor: pointer;
}
.flip-btn:hover { color: var(--text); border-color: var(--pink); border-style: solid; }
.hero-logo.demo img { animation: demo 2.6s cubic-bezier(.5, -0.3, .3, 1.3) 1; }
@keyframes demo { 0%, 12% { transform: rotate(0); } 40%, 70% { transform: rotate(180deg); } 100% { transform: rotate(360deg); } }

/* separador con el logo chico (alterna carita / oso) */
.divider { display: flex; align-items: center; gap: 18px; max-width: 1100px; margin: 10px auto; padding: 0 clamp(16px, 4vw, 40px); opacity: .55; }
.divider::before, .divider::after { content: ''; flex: 1; height: 1px; background: linear-gradient(90deg, transparent, var(--line)); }
.divider::after { background: linear-gradient(90deg, var(--line), transparent); }
.divider img { width: 34px; height: 34px; transition: transform .7s cubic-bezier(.5, -0.4, .3, 1.4); }
.divider.bear img { transform: rotate(180deg); }
.divider:hover img { transform: rotate(180deg); }
.divider.bear:hover img { transform: rotate(360deg); }

/* seccion "un logo, dos caras" */
.ambi { display: grid; grid-template-columns: 1fr minmax(240px, 360px); gap: clamp(24px, 5vw, 70px); align-items: center; }
.ambi-text p { color: var(--muted); font-size: 17px; max-width: 54ch; }
.ambi-range { display: flex; align-items: center; gap: 14px; margin-top: 22px; font-weight: 700; font-size: 14px; color: var(--text); }
.ambi-range input { flex: 1; max-width: 260px; accent-color: var(--pink); cursor: grab; }
.ambi-fig { margin: 0; text-align: center; }
.ambi-stage { position: relative; aspect-ratio: 1; max-width: 320px; margin: 0 auto 16px; }
.ambi-stage::before { content: ''; position: absolute; inset: 6%; border-radius: 50%; box-shadow: 0 30px 80px -30px rgba(238, 111, 134, .55); }
.ambi-stage img { position: relative; width: 100%; height: 100%; transform: rotate(var(--ambi, 0deg)); }
.ambi-fig figcaption { display: flex; justify-content: center; align-items: center; gap: 12px; font-family: var(--head); font-size: 28px; letter-spacing: .03em; }
.ambi-fig figcaption > span { transition: color .3s, opacity .3s; color: var(--muted); opacity: .5; }
.ambi-fig figcaption > span.on { color: var(--text); opacity: 1; }
.ambi-sep { color: var(--pink) !important; opacity: 1 !important; }

/* pie */
.foot-logo { width: 54px; margin: 0 auto 10px; opacity: .85; cursor: pointer; }
.foot-logo img { width: 100%; }
.foot-hint { font-size: 12.5px; opacity: .6; margin-bottom: 12px !important; }

@media (max-width: 720px) {
  .ambi { grid-template-columns: 1fr; }
  .ambi-fig { order: -1; }
  .bg-pattern { opacity: .045; background-size: 1100px 1100px; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-logo.demo img { animation: none; }
}

/* ruta de navegacion (breadcrumbs) visible */
.crumbs { font-size: 13.5px; color: var(--muted); margin: 0 0 18px; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--text); }
.crumbs span { color: var(--text); }
.guide-head .meta { font-size: 13.5px; color: var(--muted); margin: -6px 0 0; }

/* "quieres hacer un mod asi?": enlace del mod a sus guias */
.learn { margin-top: 26px; background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--acc); border-radius: var(--radius); padding: 18px 22px; }
.learn .kicker { margin-bottom: 6px; }
.learn ul { margin: 0 0 6px; padding-left: 1.1em; }
.learn li { margin: 4px 0; }
.learn a { color: var(--text); font-weight: 600; }
.learn a:hover { color: var(--acc); }
.learn .small { margin: 0; font-size: 13.5px; color: var(--muted); }

/* referencia: tablas con buscador */
.ref .guide-head { max-width: 860px; }
.tfilter-wrap { display: flex; align-items: center; gap: 12px; margin: 18px 0 10px; }
.tfilter { flex: 1; max-width: 420px; font: 15px var(--body); color: var(--text); background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 10px 14px; }
.tfilter:focus { outline: none; border-color: var(--pink); }
.tcount { font-size: 13px; color: var(--muted); }
.ref-table { border-collapse: collapse; width: 100%; font-size: 14.5px; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.ref-table th, .ref-table td { text-align: left; padding: 8px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.ref-table thead th { background: var(--surface-2); color: var(--text); }
.ref-table tbody tr:hover { background: rgba(255, 255, 255, .025); }
.ref-table tr:target { background: rgba(238, 111, 134, .14); }
.ref-table code { font: 13px ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; color: #f3d9b8; }
.ref-table a { color: var(--pink-soft); text-decoration: none; }
.ref-table a:hover { text-decoration: underline; }
.ref-table .num, .ref-table th.num { text-align: right; white-space: nowrap; }
.ref-table .where { font-size: 13px; }
code.small, .ref-table code.small { font-size: 11.5px; color: var(--muted); }
.tag-muted { font-size: 12px; color: var(--muted); font-weight: 400; }
.h1code { font: inherit; font-family: var(--head); color: var(--text); background: none; border: 0; word-break: break-all; }
.chip-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 10px; }
.chip-link { display: inline-flex; gap: 8px; align-items: center; padding: 8px 14px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); color: var(--text); text-decoration: none; font-weight: 600; font-size: 14px; }
.chip-link span { color: var(--muted); font-weight: 400; font-size: 12.5px; }
.chip-link:hover { border-color: var(--pink); }
.body-order { columns: 3 220px; font-size: 14px; color: var(--muted); padding-left: 1.4em; }
.body-order li { break-inside: avoid; margin-bottom: 4px; }
.body-order code { color: #f3d9b8; font-size: 13px; }
.ref h2 { font-size: 30px; margin-top: 1.4em; }
.ref .small { font-size: 13.5px; color: var(--muted); }
.ref .small a { color: var(--pink-soft); }
