:root{
  --bg:#0b0b0b; --panel:#111; --muted:#d7d7d7; --brand:#00ff90; --brand2:#2ecc71; --txt:#ffffff;
  --line:#1b1b1b; --soft:#0f0f0f;
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0; font-family:Inter,system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;
  background:var(--bg); color:var(--txt); -webkit-font-smoothing:antialiased; -moz-osx-font-smoothing:grayscale;
}

/* Header */
.site-header{
  width:100%; padding:18px 20px; border-bottom:1px solid var(--line);
  background:linear-gradient(180deg,#0d0d0d,#0a0a0a);
}
.site-header.inner{position:sticky; top:0; z-index:5}
.brand{display:flex; align-items:center; gap:14px; max-width:1200px; margin:0 auto}
.logomark{
  width:40px; height:40px; border-radius:12px;
  background:linear-gradient(135deg,var(--brand),#28d3aa);
  display:grid; place-items:center; font-weight:800; color:#0b1d17;
}
.brand-text h1{font-size:20px; margin:0; color:#fff}
.brand-text p{margin:2px 0 0; color:#fff; opacity:.9; font-size:14px}

/* Back button */
.back{
  display:inline-flex; align-items:center; gap:8px;
  padding:8px 14px; border-radius:999px; text-decoration:none;
  color:#fff; border:1px solid #2a2a2a; background:rgba(255,255,255,0.04);
  backdrop-filter: blur(4px); transition:all .2s ease;
  margin-right:10px;
}
.back:hover{transform:translateY(-1px); border-color:#3a3a3a; background:rgba(255,255,255,0.08)}
.back:active{transform:translateY(0)}
.back::before{content:"↩";}

/* Grid hero (home) */
.grid-hero{max-width:1200px; margin:28px auto; padding:0 16px; display:grid; grid-template-columns:1fr; gap:22px}
@media(min-width:900px){.grid-hero{grid-template-columns:1fr 1fr}}
.hero-card{
  position:relative; display:block; border-radius:16px; overflow:hidden;
  box-shadow:0 10px 30px rgba(0,0,0,.45); outline:none; border:1px solid var(--line);
}
.hero-card img{width:100%; height:360px; object-fit:cover; display:block; transition:transform .6s ease, filter .3s ease}
.hero-card .overlay{
  position:absolute; inset:0; display:flex; flex-direction:column; justify-content:flex-end; gap:6px;
  padding:20px; background:linear-gradient(180deg,transparent 30%,rgba(0,0,0,.65));
}
.hero-card h2{margin:0 0 6px; font-size:26px; color:#fff}
.hero-card p{margin:0 0 10px; color:#fff; opacity:.95}
.hero-card .cta{
  display:inline-block; background:transparent; color:#fff; font-weight:700;
  padding:8px 14px; border-radius:999px; border:1px solid #ffffff55;
}
.hero-card:hover img{transform:scale(1.06); filter:saturate(1.05)}
.hero-card:focus{box-shadow:0 0 0 3px rgba(255,255,255,.25)}

/* Hero interno */
.hero.full{position:relative; max-width:1200px; margin:22px auto; border-radius:18px; overflow:hidden; border:1px solid var(--line)}
.hero.full img{width:100%; height:46vh; min-height:300px; object-fit:cover; display:block}
.hero-mask{position:absolute; inset:0; background:linear-gradient(180deg,rgba(0,0,0,.2),rgba(0,0,0,.6))}
.hero-copy{position:absolute; left:0; right:0; bottom:0; padding:24px}
.hero-copy h2{margin:0 0 8px; font-size:30px; color:#fff}
.hero-copy p{margin:0; color:#fff; opacity:.95}

/* Contenido */
.container{max-width:1200px; margin:22px auto; display:grid; grid-template-columns:1fr; gap:22px; padding:0 16px}
@media(min-width:980px){.container{grid-template-columns:2fr 1fr}}
.info{
  background:var(--panel); border:1px solid var(--line); border-radius:14px; padding:22px;
}
.section-title{font-size:22px; margin:0 0 6px}
.lead{font-size:18px; line-height:1.6; opacity:.95}
.divider{height:1px; background:#222; margin:18px 0}

.cards-3{display:grid; grid-template-columns:1fr; gap:14px; margin-top:4px}
@media(min-width:760px){.cards-3{grid-template-columns:1fr 1fr 1fr}}
.card{
  background:var(--soft); border:1px solid var(--line); border-radius:12px; padding:16px;
}
.lift{transition:transform .2s ease, box-shadow .2s ease}
.lift:hover{transform:translateY(-2px); box-shadow:0 10px 18px rgba(0,0,0,.25)}
.card h4{margin:0 0 8px; color:#fff}
.card p{margin:0; color:#fff; opacity:.95}

.tags{display:flex; flex-wrap:wrap; gap:8px; list-style:none; padding:0; margin:0}
.tags li{
  background:transparent; border:1px solid #ffffff33; color:#fff;
  padding:6px 10px; border-radius:999px; font-size:13px;
}
.tags.green li{border-color:#00ff9040}

.aside{
  background:var(--soft); border:1px solid var(--line); border-radius:12px; padding:16px;
}
.aside h4{margin:0 0 6px; color:#fff}
.aside p{margin:0 0 8px; color:#fff; opacity:.95}
.micro-divider{height:1px; background:#222; margin:12px 0}

/* Footer */
.site-footer{margin:30px 0 20px; text-align:center; color:#fff; opacity:.9}
