/* ═════════════════════════════════════════════════════════════
   the WrongWay — blog de artículos (application/data/articles).
   Mismo sistema de diseño ("cabina de transmisión" verde) que
   content-googlebot.php / image-stream-content-users.php, adaptado
   a un layout de lectura (listado + artículo) en vez de partidos.
   ═════════════════════════════════════════════════════════════ */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --v:        #00E77A;
    --v-mid:    #00B25E;
    --v-deep:   #056B3B;
    --v-ink:    #03130A;
    --lime:     #C9FF57;
    --mint:     #86FFC6;
    --amber:    #FFC93D;

    --bg:       #040B07;
    --bg-2:     #07120C;
    --panel:    #0A1B12;
    --panel-2:  #0F261A;
    --txt:      #E9F7EF;
    --txt-2:    #B4CFC0;
    --dim:      #85A895;
    --edge:     rgba(255,255,255,.07);
    --edge-v:   rgba(0,231,122,.24);

    --r-s:      10px;
    --r:        16px;
    --r-l:      24px;
    --r-xl:     32px;

    --gut:      clamp(14px, 4vw, 48px);
    --max:      880px;
    --nav:      58px;

    --shadow:   0 18px 50px rgba(0,0,0,.45);
}

html { font-size: 16px; -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
    font-family: 'Inter','Segoe UI',system-ui,-apple-system,'Helvetica Neue',sans-serif;
    background: var(--bg);
    color: var(--txt);
    line-height: 1.75;
    overflow-x: hidden;
    overflow-wrap: break-word;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
h1, h2, h3 { line-height: 1.15; letter-spacing: -.5px; text-wrap: balance; }
p { text-wrap: pretty; }
::selection { background: var(--lime); color: var(--v-ink); }
:focus-visible { outline: 2px solid var(--v); outline-offset: 3px; border-radius: 4px; }

.skip-link { position: absolute; left: -9999px; top: 0; z-index: 10050; padding: 12px 20px; background: var(--v); color: var(--v-ink); font-weight: 800; border-radius: 0 0 var(--r-s) 0; }
.skip-link:focus { left: 0; }
.container { max-width: var(--max); margin: 0 auto; padding: 0 var(--gut); }
.muted { color: var(--dim); }

/* ═══════ Barra superior ═══════ */
.site-header { position: sticky; top: 0; z-index: 100; height: var(--nav); display: flex; align-items: center; background: rgba(4,11,7,.94); backdrop-filter: blur(22px); -webkit-backdrop-filter: blur(22px); border-bottom: 1px solid var(--edge); }
.site-header__inner { position: relative; width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gut); display: flex; align-items: center; gap: 14px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-size: 1.05rem; font-weight: 900; letter-spacing: -.6px; }
.brand__b { position: relative; width: 33px; height: 33px; flex: 0 0 33px; border-radius: 50%; display: grid; place-items: center; font-size: .8rem; font-weight: 900; color: var(--v-ink); background: radial-gradient(circle at 34% 26%, #FFFFFF 0 6%, var(--lime) 18%, var(--v) 58%, var(--v-deep) 100%); box-shadow: 0 0 0 2px rgba(0,231,122,.2), 0 6px 18px rgba(0,231,122,.38); }
.brand b { color: var(--v); }
.site-nav { margin-left: auto; }
.site-nav ul { display: flex; gap: 4px; }
.site-nav a { display: block; padding: 8px 14px; border-radius: 30px; font-weight: 700; font-size: .85rem; color: var(--dim); transition: color .2s, background .2s; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--v-ink); background: linear-gradient(135deg, var(--lime), var(--v)); }
.nav-toggle { display: none; }
.nav-burger { display: none; }

/* ═══════ Hero (portada / listado) ═══════ */
.hero { position: relative; margin-top: 18px; border-radius: var(--r-xl); overflow: hidden; border: 1px solid var(--edge-v); background: var(--panel); }
.hero::before { content: ''; position: absolute; inset: 0; pointer-events: none; background:
    radial-gradient(ellipse 52% 78% at 12% -18%, rgba(0,231,122,.26), transparent 66%),
    radial-gradient(ellipse 46% 70% at 88% -14%, rgba(201,255,87,.16), transparent 64%),
    radial-gradient(ellipse 90% 60% at 50% 118%, rgba(0,178,94,.14), transparent 70%); }
.hero__inner { position: relative; z-index: 1; padding: clamp(28px, 4.4vw, 56px) clamp(20px, 4vw, 48px); text-align: center; }
.hero__eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: .71rem; font-weight: 800; letter-spacing: 1.3px; text-transform: uppercase; color: var(--mint); background: rgba(0,231,122,.09); border: 1px solid var(--edge-v); border-radius: 30px; padding: 6px 14px; margin-bottom: 16px; }
.hero h1 { font-size: clamp(1.7rem, 4.6vw, 2.7rem); font-weight: 900; letter-spacing: -1.4px; margin-bottom: 14px; }
.hero h1 em { font-style: normal; color: var(--v); position: relative; white-space: nowrap; }
.hero h1 em::after { content: ''; position: absolute; left: 0; right: 0; bottom: -.04em; height: 3px; background: repeating-linear-gradient(90deg, var(--lime) 0 12px, transparent 12px 20px); opacity: .7; }
.hero .lead { font-size: clamp(.95rem, 1.15vw, 1.05rem); color: var(--txt-2); line-height: 1.85; margin: 0 auto; max-width: 60ch; }

/* ═══════ Listado de artículos ═══════ */
.site-main { padding-bottom: 40px; }
.section { padding: 34px 0; }
.section__head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 20px; }
.section__head h2 { font-size: 1.3rem; font-weight: 900; letter-spacing: -.6px; }
.section__head h2::before { content: '● '; color: var(--v); font-size: .6em; vertical-align: middle; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.card { display: block; padding: 20px; border-radius: var(--r-l); background: var(--panel); border: 1px solid var(--edge-v); box-shadow: var(--shadow); transition: transform .18s ease, border-color .18s ease, background .18s ease; }
.card--link:hover { transform: translateY(-3px); border-color: var(--v); background: var(--panel-2); }
.card__lang { display: inline-flex; align-items: center; gap: 6px; font-size: .68rem; font-weight: 800; letter-spacing: .8px; text-transform: uppercase; color: var(--v-ink); background: linear-gradient(135deg, var(--lime), var(--v)); border-radius: 30px; padding: 3px 10px; margin-bottom: 12px; }
.card h3 { font-size: 1.08rem; font-weight: 800; letter-spacing: -.3px; margin-bottom: 8px; color: var(--txt); }
.card p.muted { font-size: .88rem; line-height: 1.7; margin-bottom: 12px; }
.card__meta { font-size: .78rem; color: var(--dim); font-weight: 600; }
.card__meta time { color: var(--txt-2); }

/* ═══════ Breadcrumbs ═══════ */
.breadcrumbs { padding-top: 20px; font-size: .82rem; color: var(--dim); }
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.breadcrumbs a { color: var(--dim); font-weight: 600; transition: color .2s; }
.breadcrumbs a:hover { color: var(--v); }
.breadcrumbs li:not(:last-child)::after { content: '›'; margin-left: 6px; color: var(--edge-v); }
.breadcrumbs li[aria-current] { color: var(--txt-2); }

/* ═══════ Idiomas disponibles (artículo) ═══════ */
.lang-switch { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 6px; }
.lang-switch a { display: inline-flex; align-items: center; gap: 6px; font-size: .78rem; font-weight: 700; color: var(--dim); background: rgba(0,231,122,.06); border: 1px solid var(--edge-v); border-radius: 30px; padding: 6px 13px; transition: color .2s, background .2s, border-color .2s; }
.lang-switch a:hover { color: var(--v-ink); background: linear-gradient(135deg, var(--lime), var(--v)); border-color: transparent; }
.lang-switch a[aria-current] { color: var(--v-ink); background: linear-gradient(135deg, var(--lime), var(--v)); border-color: transparent; }

/* ═══════ Artículo ═══════ */
article.container { padding-top: 8px; }
article h1 { font-size: clamp(1.5rem, 3.6vw, 2.15rem); font-weight: 900; letter-spacing: -1px; margin: 10px 0 12px; }
.article__banner { width: 100%; border-radius: var(--r-l); margin-bottom: 1.5rem; border: 1px solid var(--edge-v); }
.prose { margin-top: 22px; padding: clamp(20px, 3.4vw, 36px); border-radius: var(--r-l); background: var(--panel); border: 1px solid var(--edge-v); box-shadow: var(--shadow); }
.prose h2 { font-size: 1.2rem; font-weight: 800; color: var(--mint); margin: 1.6em 0 .6em; letter-spacing: -.3px; }
.prose h2:first-child { margin-top: 0; }
.prose p { margin-bottom: 1.1em; color: var(--txt-2); }
.prose code { background: rgba(0,231,122,.1); color: var(--mint); padding: .15em .45em; border-radius: 6px; font-size: .92em; }
.prose a { color: var(--v); text-decoration: underline; text-decoration-color: var(--edge-v); }
.prose [dir="rtl"] p { text-align: right; }

.dl-list { margin-top: 1.5rem; }
.dl-list a { color: var(--v); font-weight: 600; }

/* ═══════ Botones ═══════ */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 10px 20px; border-radius: 30px; font-weight: 800; font-size: .86rem; }
.btn--ghost { color: var(--v); background: rgba(0,231,122,.08); border: 1px solid var(--edge-v); transition: background .2s, color .2s; }
.btn--ghost:hover { background: rgba(0,231,122,.16); }

.hero__actions { display: flex; gap: 10px; }

/* ═══════ Pie ═══════ */
.site-footer { margin-top: 30px; border-top: 1px solid var(--edge-v); background: var(--bg-2); padding: clamp(28px, 4vw, 46px) 0 26px; }
.site-footer__inner { display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; }
.site-footer__brand { display: flex; align-items: center; gap: 10px; font-weight: 800; }
.site-footer__brand p { line-height: 1.6; }
.site-footer__brand span[aria-hidden] { background: radial-gradient(circle at 34% 26%, #FFFFFF 0 6%, var(--lime) 18%, var(--v) 58%, var(--v-deep) 100%) !important; color: var(--v-ink) !important; }
.site-footer__nav ul { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; }
.site-footer__nav a { font-size: .85rem; font-weight: 600; color: var(--dim); transition: color .2s; }
.site-footer__nav a:hover { color: var(--v); }
.site-footer__copy { font-size: .82rem; color: var(--dim); line-height: 1.8; max-width: 70ch; }
.site-footer__copy mark { background: none; color: var(--v); font-weight: 700; }
.site-footer__copy a:hover mark { color: var(--lime); }

@media (max-width: 640px) {
    .site-nav a { padding: 7px 11px; font-size: .8rem; }
}

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