:root {
  --bg: #0e0e10;
  --panel: #17171b;
  --line: #2a2a31;
  --text: #ececf1;
  --muted: #9a9aa6;
  --accent: #f2c14e;
  --ok: #5ccf8a;
  --err: #ff6b6b;
  --radius: 14px;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: dark;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); line-height: 1.6; }
a { color: var(--accent); }
.wrap { max-width: 760px; margin: 0 auto; padding: 32px 20px 64px; }
header.site { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-bottom: 24px; border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; letter-spacing: .02em; color: var(--text); text-decoration: none; }
.brand .dot { width: 28px; height: 28px; border-radius: 8px; background: var(--accent); display: grid; place-items: center; color: #111; font-size: 15px; }
nav a { color: var(--muted); text-decoration: none; margin-left: 18px; font-size: 14px; }
nav a:hover { color: var(--text); }
h1 { font-size: clamp(30px, 6vw, 46px); line-height: 1.1; margin: 48px 0 16px; }
h2 { font-size: 20px; margin: 36px 0 8px; }
p.lead { font-size: 18px; color: var(--muted); max-width: 600px; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; margin: 36px 0; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.card h3 { margin: 0 0 6px; font-size: 16px; }
.card p { margin: 0; color: var(--muted); font-size: 14px; }
footer.site { margin-top: 56px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; display: flex; flex-wrap: wrap; gap: 8px 18px; }
footer.site a { color: var(--muted); }
.legal p, .legal li { color: #cfcfd8; }
.legal .updated { color: var(--muted); font-size: 14px; }

/* Formularios y panel */
label { display: block; font-size: 14px; color: var(--muted); margin: 14px 0 6px; }
input, textarea, select { width: 100%; background: #101013; color: var(--text); border: 1px solid var(--line); border-radius: 10px; padding: 11px 12px; font: inherit; }
textarea { min-height: 110px; resize: vertical; }
input:focus, textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: transparent; }
button { background: var(--accent); color: #111; border: 0; border-radius: 10px; padding: 11px 18px; font: inherit; font-weight: 700; cursor: pointer; }
button.ghost { background: transparent; color: var(--muted); border: 1px solid var(--line); font-weight: 500; }
button:disabled { opacity: .5; cursor: not-allowed; }
.msg { margin-top: 12px; font-size: 14px; min-height: 1.4em; }
.msg.err { color: var(--err); }
.msg.ok { color: var(--ok); }
.checks label { display: flex; align-items: center; gap: 10px; margin: 6px 0; color: var(--text); }
.checks input { width: auto; }
.badge { display: inline-block; font-size: 12px; padding: 2px 8px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); }
.badge.published { color: var(--ok); border-color: var(--ok); }
.badge.error { color: var(--err); border-color: var(--err); }
.badge.publishing { color: var(--accent); border-color: var(--accent); }
.post { display: grid; gap: 6px; }
.post .meta { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: 14px; color: var(--muted); }
.list { display: grid; gap: 12px; }
.row { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.small { font-size: 13px; color: var(--muted); }

/* ----- portada ----- */
body.home {
  background-image:
    radial-gradient(900px 520px at 90% -10%, rgba(255, 122, 89, .16), transparent 60%),
    radial-gradient(700px 480px at -10% 20%, rgba(242, 193, 78, .10), transparent 60%);
  background-attachment: fixed;
}
body.home .wrap { max-width: 1080px; }
.home h1, .home h2, .brand { font-family: "Space Grotesk", "Inter", system-ui, sans-serif; }
.brand .dot { background: linear-gradient(135deg, #ffc94d, #ff7a59); box-shadow: 0 6px 20px rgba(255, 122, 89, .35); }
.hero { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; padding: 28px 0 10px; }
.hero h1 { margin-top: 18px; letter-spacing: -.02em; }
.hero h1 em { font-style: normal; background: linear-gradient(90deg, #ffc94d, #ff7a59); -webkit-background-clip: text; background-clip: text; color: transparent; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 5px 12px; background: rgba(255,255,255,.02); }
.eyebrow i { width: 7px; height: 7px; border-radius: 50%; background: #4fd18b; box-shadow: 0 0 0 4px rgba(79,209,139,.15); }
.cta { display: flex; gap: 12px; margin-top: 26px; flex-wrap: wrap; }
.cta a { text-decoration: none; border-radius: 12px; padding: 12px 18px; font-weight: 600; }
.cta .p { background: linear-gradient(135deg, #ffc94d, #ff7a59); color: #1a1208; box-shadow: 0 10px 28px rgba(255,122,89,.3); }
.cta .g { color: var(--text); border: 1px solid var(--line); }
.mock { position: relative; justify-self: center; width: 290px; aspect-ratio: 9/18.5; border-radius: 40px; padding: 10px; background: linear-gradient(145deg, #2a2a33, #111116); box-shadow: 0 40px 100px rgba(0,0,0,.6), inset 0 0 0 1px #3a3a44; transform: rotate(3deg); }
.mock .scr { height: 100%; border-radius: 31px; background: #0f0f13; padding: 40px 14px 14px; overflow: hidden; }
.mock .mt { font: 700 15px "Space Grotesk", sans-serif; margin-bottom: 10px; display: flex; justify-content: space-between; }
.mock .mt span { color: var(--muted); font-weight: 500; font-size: 12px; }
.mcal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; margin-bottom: 14px; }
.mcal b { font-size: 9px; color: var(--muted); text-align: center; font-weight: 600; }
.mcal i { aspect-ratio: 1; border-radius: 7px; background: #1a1a21; font-style: normal; font-size: 10px; display: grid; place-items: center; color: #8f8e9c; position: relative; }
.mcal i.on::after { content: ""; position: absolute; bottom: 3px; width: 4px; height: 4px; border-radius: 50%; background: #ffc94d; }
.mcal i.ok::after { background: #4fd18b; }
.mcal i.t { background: #ffc94d; color: #1a1208; font-weight: 700; }
.mpost { display: flex; gap: 9px; align-items: center; background: #1a1a21; border-radius: 12px; padding: 8px; margin-bottom: 8px; }
.mpost .th { width: 30px; height: 48px; border-radius: 7px; background: linear-gradient(160deg, #ff7a59, #962fbf); flex: none; }
.mpost:nth-child(odd) .th { background: linear-gradient(160deg, #25f4ee, #fe2c55); }
.mpost b { font: 700 13px "Space Grotesk", sans-serif; display: block; }
.mpost span { font-size: 11px; color: var(--muted); }
.float { position: absolute; left: -70px; bottom: 70px; background: #17171b; border: 1px solid var(--line); border-radius: 14px; padding: 10px 14px; font-size: 13px; box-shadow: 0 20px 50px rgba(0,0,0,.5); transform: rotate(-3deg); }
.float b { color: #4fd18b; }
.card { transition: transform .2s, border-color .2s; }
.card:hover { transform: translateY(-3px); border-color: #3a3a44; }
.card .ic { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; margin-bottom: 12px; background: rgba(255,201,77,.1); font-size: 18px; }
.plats { display: flex; gap: 10px; flex-wrap: wrap; margin: 10px 0 0; }
.plats span { border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; font-size: 14px; }
@media (max-width: 820px) {
  .hero { grid-template-columns: 1fr; }
  .mock { transform: none; width: 250px; }
  .float { left: -20px; }
}
