:root {
    --bg: #0D0D0D;
    --bg2: #161616;
    --panel: #1C1C1C;
    --linea: #2A2A2A;
    --tinta: #FFFFFF;
    --tinta2: #B5B5B5;
    --tinta3: #7A7A7A;
    --rosa: #FF1E7E;
    --rojo: #FF2D55;
    --titulo: 'Montserrat', sans-serif;
    --cuerpo: 'Inter', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: var(--cuerpo); background: var(--bg); color: var(--tinta); min-height: 100vh; }

/* ═══ HEADER ═══ */
header { position: sticky; top: 0; z-index: 50; background: rgba(13,13,13,0.96); backdrop-filter: blur(10px); border-bottom: 1px solid var(--linea); }
header::before { content: ''; display: block; height: 3px; background: var(--rosa); }
.header-inner { max-width: 1200px; margin: 0 auto; padding: 16px 28px; display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.logo { text-decoration: none; display: flex; align-items: center; gap: 10px; }
.logo-flame { width: 30px; height: 30px; }
.logo-text { font-family: var(--titulo); font-weight: 900; font-size: 24px; letter-spacing: -0.5px; color: var(--tinta); }
.logo-text b { color: var(--rosa); }
nav { display: flex; gap: 26px; }
nav a { color: var(--tinta2); text-decoration: none; font-family: var(--titulo); font-weight: 700; font-size: 13px; letter-spacing: 1.5px; text-transform: uppercase; transition: color 0.2s; }
nav a:hover { color: var(--rosa); }
nav a.active { color: var(--tinta); border-bottom: 3px solid var(--rosa); padding-bottom: 4px; }

.main { max-width: 1200px; margin: 0 auto; padding: 0 28px 60px; }

/* ═══ HERO ═══ */
.hero { padding: 70px 0 40px; text-align: center; }
.hero-label { display: inline-block; font-family: var(--titulo); font-weight: 800; font-size: 12px; letter-spacing: 3px; color: var(--rosa); border: 1px solid var(--rosa); border-radius: 100px; padding: 8px 18px; margin-bottom: 24px; }
.hero h1, .hero-title { font-family: var(--titulo); font-weight: 900; font-size: clamp(36px, 6vw, 68px); letter-spacing: -1.5px; line-height: 1.02; text-transform: uppercase; margin-bottom: 20px; }
.hero h1 span, .hero-title span { color: var(--rosa); }
.hero-subtitle { font-size: 17px; color: var(--tinta2); max-width: 620px; margin: 0 auto 36px; line-height: 1.6; }

.search-box { max-width: 700px; margin: 0 auto 28px; display: flex; background: var(--bg2); border: 2px solid var(--linea); border-radius: 100px; padding: 6px 6px 6px 26px; transition: all 0.2s; }
.search-box:focus-within { border-color: var(--rosa); box-shadow: 0 0 0 4px rgba(255,30,126,0.15); }
.search-box input { flex: 1; background: none; border: 0; outline: 0; font: 500 16px var(--cuerpo); color: var(--tinta); }
.search-box input::placeholder { color: var(--tinta3); }
.btn-search { font-family: var(--titulo); font-weight: 800; font-size: 14px; letter-spacing: 1.5px; text-transform: uppercase; background: var(--rosa); color: #fff; border: 0; border-radius: 100px; padding: 14px 30px; cursor: pointer; transition: all 0.2s; }
.btn-search:hover { background: var(--rojo); }

.chips { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.chip { font-size: 13px; font-weight: 600; color: var(--tinta2); background: var(--bg2); border: 1px solid var(--linea); border-radius: 100px; padding: 8px 16px; cursor: pointer; transition: all 0.2s; font-family: var(--cuerpo); }
.chip:hover { color: var(--rosa); border-color: var(--rosa); }

.recientes { margin-top: 32px; }
.recientes-label { font-family: var(--titulo); font-weight: 800; font-size: 12px; letter-spacing: 2px; color: var(--tinta3); margin-bottom: 12px; text-transform: uppercase; }

/* ═══ RESULTADOS HEADER ═══ */
.resultados { padding-top: 40px; }
.resultados-header { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 28px; flex-wrap: wrap; padding-bottom: 20px; border-bottom: 1px solid var(--linea); }
.btn-volver { display: inline-flex; align-items: center; gap: 8px; font-family: var(--titulo); font-weight: 800; font-size: 13px; letter-spacing: 1.5px; color: var(--rosa); background: transparent; border: 2px solid var(--rosa); border-radius: 100px; padding: 10px 20px; cursor: pointer; text-transform: uppercase; transition: all 0.2s; text-decoration: none; }
.btn-volver:hover { background: var(--rosa); color: #fff; }
.meta-busqueda { font-size: 14px; color: var(--tinta2); }
.meta-busqueda b { color: var(--tinta); }

.loader { background: var(--bg2); border: 1px solid var(--linea); border-radius: 14px; padding: 40px; text-align: center; }
.loader-icon { font-size: 48px; margin-bottom: 16px; animation: bounce 1s ease-in-out infinite; }
@keyframes bounce { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
.loader-text { font-family: var(--titulo); font-weight: 800; font-size: 15px; letter-spacing: 2px; color: var(--tinta2); margin-bottom: 20px; text-transform: uppercase; }
.loader-bar { max-width: 320px; height: 6px; background: var(--linea); border-radius: 100px; margin: 0 auto; overflow: hidden; }
.loader-bar i { display: block; height: 100%; width: 5%; border-radius: 100px; background: var(--rosa); transition: width 0.5s ease; }

.panel-fuera, .panel-error { background: var(--bg2); border: 2px solid var(--rojo); border-radius: 14px; padding: 48px; text-align: center; }
.panel-fuera h3, .panel-error h3 { font-family: var(--titulo); font-weight: 900; letter-spacing: 2px; margin-bottom: 12px; font-size: 28px; color: var(--rojo); text-transform: uppercase; }

.resumen-card { background: var(--bg2); border: 1px solid var(--linea); border-left: 5px solid var(--rosa); border-radius: 14px; padding: 28px 32px; margin-bottom: 32px; }
.etiqueta-ia { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; font-family: var(--titulo); font-weight: 800; font-size: 13px; letter-spacing: 2px; color: var(--rosa); text-transform: uppercase; }
.resumen-card p { font-size: 16px; line-height: 1.7; color: var(--tinta2); }

/* ═══ ETIQUETAS POR CATEGORÍA ═══ */
.cat-badge, .tag {
    display: inline-block;
    font-family: var(--titulo); font-weight: 800;
    font-size: 11px; padding: 6px 12px;
    letter-spacing: 1.5px; text-transform: uppercase;
    border-radius: 4px;
}
.cat-trucos, .tag-trucos { background: var(--rosa); color: #fff; }
.cat-guias, .tag-guias { background: transparent; color: var(--rosa); border: 1px solid var(--rosa); }
.cat-codigos, .tag-codigos { background: #fff; color: #0D0D0D; }
.cat-noticias, .tag-noticias { background: var(--rojo); color: #fff; }
.cat-gaming { background: var(--rosa); color: #fff; } /* compatibilidad con artículos viejos */
.cat-noticia { background: var(--rojo); color: #fff; } /* compatibilidad con artículos viejos */

.grid-resultados { display: grid; grid-template-columns: 1fr 320px; gap: 32px; align-items: start; }
.lista { display: grid; gap: 24px; }

/* ═══ TARJETAS ═══ */
.card { background: var(--bg2); border: 1px solid var(--linea); border-radius: 14px; padding: 28px; transition: all 0.25s; }
.card:hover { border-color: var(--rosa); transform: translateY(-3px); box-shadow: 0 12px 32px rgba(255,30,126,0.12); }
.card-head { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; flex-wrap: wrap; }
.tag { font-family: var(--titulo); font-weight: 800; font-size: 11px; letter-spacing: 1.5px; padding: 6px 12px; border-radius: 4px; text-transform: uppercase; }
.tag-guia { background: transparent; color: var(--rosa); border: 1px solid var(--rosa); }
.tag-codigo { background: var(--rosa); color: #fff; }
.tag-noticia { background: var(--rojo); color: #fff; }
.tag-plat { background: transparent; color: var(--tinta3); border: 1px solid var(--linea); font-weight: 700; }
.card h3 { font-family: var(--titulo); font-weight: 800; font-size: 22px; letter-spacing: -0.3px; line-height: 1.25; margin-bottom: 14px; }

.codigo { background: #0A0A0A; border: 1px solid var(--linea); border-left: 4px solid var(--rosa); border-radius: 8px; padding: 14px 18px; margin: 16px 0; display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.codigo code { font-family: 'JetBrains Mono', monospace; font-size: 15px; color: var(--rosa); font-weight: 700; }
.codigo button { font-family: var(--titulo); font-weight: 800; font-size: 11px; letter-spacing: 1px; background: transparent; color: var(--tinta2); border: 1px solid var(--linea); border-radius: 6px; padding: 8px 14px; cursor: pointer; transition: all 0.2s; }
.codigo button:hover { border-color: var(--rosa); color: var(--rosa); }

.guia { list-style: none; counter-reset: paso; margin: 16px 0; display: grid; gap: 10px; }
.guia li { counter-increment: paso; position: relative; padding: 14px 18px 14px 58px; background: var(--panel); border: 1px solid var(--linea); border-radius: 10px; font-size: 14px; line-height: 1.65; color: var(--tinta2); }
.guia li::before { content: counter(paso, decimal-leading-zero); position: absolute; left: 16px; top: 14px; font-family: var(--titulo); font-weight: 900; font-size: 16px; color: var(--rosa); }

.como { font-size: 14px; line-height: 1.6; color: var(--tinta2); margin: 14px 0; }
.como b { color: var(--tinta); }

/* Secciones de valor */
.seccion { margin-top: 14px; padding: 16px 18px; border-radius: 10px; }
.seccion h5 { font-family: var(--titulo); font-weight: 800; font-size: 12px; letter-spacing: 1.5px; margin-bottom: 8px; text-transform: uppercase; }
.seccion p, .seccion li { font-size: 14px; line-height: 1.6; color: var(--tinta2); }
.seccion ul { padding-left: 18px; display: grid; gap: 6px; }
.sec-experta { background: var(--panel); border-left: 4px solid var(--rosa); }
.sec-experta h5 { color: var(--rosa); }
.sec-uso { background: var(--panel); border-left: 4px solid var(--tinta3); }
.sec-uso h5 { color: var(--tinta2); }
.sec-errores { background: rgba(255,45,85,0.06); border-left: 4px solid var(--rojo); }
.sec-errores h5 { color: var(--rojo); }
.sec-alt { background: var(--panel); border-left: 4px solid var(--tinta3); }
.sec-alt h5 { color: var(--tinta2); }

/* Noticia */
.noticia-cuerpo p { font-size: 15px; line-height: 1.7; color: var(--tinta2); margin-bottom: 14px; }
.bullets-30 { background: #0A0A0A; border: 2px solid var(--rojo); border-radius: 12px; padding: 20px 22px; margin-top: 18px; }
.bullets-30 h5 { font-family: var(--titulo); font-weight: 900; font-size: 14px; letter-spacing: 2px; color: var(--rojo); margin-bottom: 12px; text-transform: uppercase; }
.bullets-30 ul { list-style: none; display: grid; gap: 10px; }
.bullets-30 li { position: relative; padding-left: 24px; font-size: 14px; line-height: 1.55; color: var(--tinta); }
.bullets-30 li::before { content: '▸'; position: absolute; left: 4px; color: var(--rojo); font-weight: 900; }

.notas { margin-top: 14px; font-size: 13px; line-height: 1.6; color: var(--tinta2); background: var(--panel); padding: 12px 16px; border-radius: 8px; border-left: 3px solid var(--rojo); }

.card-pie { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--linea); font-size: 13px; color: var(--tinta3); flex-wrap: wrap; }
.card-pie a { color: var(--rosa); text-decoration: none; font-weight: 700; }
.card-pie a:hover { text-decoration: underline; }

/* ═══ BOTONES DE COMPARTIR ═══ */
.share { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.share-label { font-size: 12px; color: var(--tinta3); font-weight: 600; }
.share a {
    font-family: var(--titulo); font-weight: 800; font-size: 11px;
    letter-spacing: 0.5px; text-transform: uppercase;
    padding: 6px 12px; border-radius: 100px;
    text-decoration: none; transition: all 0.2s;
    border: 1px solid var(--linea); color: var(--tinta2); background: var(--panel);
}
.share-wa:hover { background: #25D366; border-color: #25D366; color: #0D0D0D; }
.share-tw:hover { background: #fff; border-color: #fff; color: #0D0D0D; }
.share-fb:hover { background: #1877F2; border-color: #1877F2; color: #fff; }
.share-em:hover { background: var(--rosa); border-color: var(--rosa); color: #fff; }

.card-fuente { margin-top: 12px; font-size: 13px; }
.card-fuente a { color: var(--rosa); text-decoration: none; font-weight: 700; }
.card-fuente a:hover { text-decoration: underline; }

/* Sidebar / fuentes */
.fuentes { position: sticky; top: 90px; background: var(--bg2); border: 1px solid var(--linea); border-radius: 14px; padding: 22px; }
.fuentes h4 { font-family: var(--titulo); font-weight: 800; font-size: 14px; letter-spacing: 2px; margin-bottom: 16px; text-transform: uppercase; }
.fuentes h4 span { color: var(--rosa); }
.fuentes ol { list-style: none; display: grid; gap: 14px; counter-reset: f; }
.fuentes li { counter-increment: f; font-size: 13px; line-height: 1.45; }
.fuentes li a { color: var(--tinta2); text-decoration: none; font-weight: 600; display: block; }
.fuentes li a::before { content: "[" counter(f, decimal-leading-zero) "] "; color: var(--rosa); font-family: var(--titulo); font-size: 11px; font-weight: 800; }
.fuentes li a:hover { color: var(--rosa); }
.fuentes li small { color: var(--tinta3); font-size: 11px; display: block; margin-top: 3px; word-break: break-all; }

/* Ads (solo se renderizan si hay código) */
.ad-container { background: var(--bg2); border: 1px solid var(--linea); border-radius: 12px; padding: 20px; text-align: center; }
.ad-home { margin: 32px 0; text-align: center; }
.ad-footer { max-width: 1200px; margin: 40px auto; padding: 0 28px; text-align: center; }

/* ═══ HOME ═══ */
.layout-home { margin-top: 50px; }
.destacada { background: linear-gradient(135deg, var(--bg2) 0%, #1a0f15 100%); border: 2px solid var(--rosa); border-radius: 16px; padding: 32px; position: relative; overflow: hidden; margin-bottom: 40px; }
.destacada::after { content: '🔥'; position: absolute; right: -20px; bottom: -30px; font-size: 140px; opacity: 0.08; transform: rotate(-12deg); }
.destacada-badge { display: inline-block; background: var(--rosa); color: #fff; font-family: var(--titulo); font-weight: 800; font-size: 11px; letter-spacing: 2px; padding: 6px 14px; border-radius: 4px; margin-bottom: 16px; text-transform: uppercase; }
.destacada h2 { font-family: var(--titulo); font-weight: 900; font-size: 28px; letter-spacing: -0.5px; margin-bottom: 10px; text-transform: uppercase; }
.destacada h2 a { color: var(--tinta); text-decoration: none; }
.destacada h2 a:hover { color: var(--rosa); }
.destacada p { color: var(--tinta2); line-height: 1.6; max-width: 700px; }

.section-header { margin-bottom: 28px; }
.section-label { display: inline-block; font-family: var(--titulo); font-weight: 800; font-size: 12px; letter-spacing: 3px; color: var(--rosa); border: 1px solid var(--rosa); border-radius: 100px; padding: 6px 14px; margin-bottom: 12px; }
.section-title { font-family: var(--titulo); font-weight: 900; font-size: clamp(28px, 4vw, 44px); letter-spacing: -1px; text-transform: uppercase; }
.no-articulos { text-align: center; color: var(--tinta3); padding: 40px; }

.grid-articulos { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 22px; }
.card-articulo { position: relative; text-decoration: none; color: inherit; background: var(--bg2); border: 1px solid var(--linea); border-radius: 14px; padding: 24px; transition: all 0.2s; display: flex; flex-direction: column; }
.card-articulo:hover { border-color: var(--rosa); transform: translateY(-3px); box-shadow: 0 12px 32px rgba(255,30,126,0.12); }
.card-articulo .cat-badge { align-self: flex-start; margin-bottom: 14px; }
.card-articulo h3 { font-family: var(--titulo); font-weight: 800; font-size: 18px; letter-spacing: -0.3px; color: var(--tinta); margin-bottom: 10px; line-height: 1.3; text-transform: uppercase; }
.card-articulo p { font-size: 13px; color: var(--tinta2); line-height: 1.6; flex-grow: 1; }
.card-footer-articulo { margin-top: 16px; font-size: 12px; color: var(--tinta3); display: flex; justify-content: space-between; padding-top: 12px; border-top: 1px solid var(--linea); font-weight: 600; }
.leer-mas { color: var(--rosa); font-weight: 800; letter-spacing: 1px; font-family: var(--titulo); }

/* ═══ FOOTER ═══ */
footer { background: #0A0A0A; border-top: 3px solid var(--rosa); margin-top: 60px; }
.footer-inner { max-width: 1200px; margin: 0 auto; padding: 44px 28px; text-align: center; }
.footer-logo { font-family: var(--titulo); font-weight: 900; font-size: 28px; letter-spacing: -0.5px; }
.footer-logo b { color: var(--rosa); }
.footer-tag { color: var(--tinta3); font-size: 14px; margin: 10px 0 6px; }
.footer-text { font-size: 13px; color: var(--tinta3); margin-bottom: 16px; }
.footer-links { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; font-size: 13px; }
.footer-links a { color: var(--tinta2); text-decoration: none; }
.footer-links a:hover { color: var(--rosa); }

@media (max-width: 960px) {
    .grid-resultados { grid-template-columns: 1fr; }
    .fuentes { position: static; }
    nav { display: none; }
}
@media (max-width: 600px) {
    .header-inner { padding: 14px 18px; }
    .logo-text { font-size: 20px; }
    .hero { padding: 48px 0 30px; }
    .search-box { padding: 6px 6px 6px 16px; }
    .btn-search { padding: 12px 20px; font-size: 13px; }
    .share { justify-content: flex-start; }
}