/* Grmnrt Hosting — paleta medida en vivo en grmnrt.com (no de la doc) */
:root{
  --bg:#0C0D21; --card:#1A1A2F; --border:#3C3C5D;
  --primary:#4B33EB; --primary-soft:#8B7AE8;
  --text:#D6D6DC; --muted:#8282A4;
  --ok:#16a249; --err:#f25a5a; --warn:#ffa200;
  --r-box:10px; --r-in:7px;
  --font:Nunito, ui-sans-serif, system-ui, sans-serif;
  --mono:ui-monospace, SFMono-Regular, "Cascadia Mono", Consolas, monospace;
}

*{box-sizing:border-box}
html{color-scheme:dark}
body{
  margin:0; min-height:100vh; font-family:var(--font); font-size:16px;
  color:var(--text); background-color:var(--bg);
  background-image:
    linear-gradient(rgba(12,13,34,.78), rgba(12,13,34,.95)),
    url('panel-login-bg.png');
  background-size:cover; background-position:center; background-attachment:fixed;
  -webkit-font-smoothing:antialiased;
  display:flex; flex-direction:column;
}

/* ---- cabecera y pie, comunes a las dos herramientas ---- */
header{
  display:flex; align-items:center; gap:14px; flex-wrap:wrap;
  padding:14px 22px; border-bottom:1px solid var(--border);
  background:rgba(12,13,34,.72); backdrop-filter:blur(8px);
  position:sticky; top:0; z-index:10;
}
header .brand{display:flex; align-items:center; gap:10px; text-decoration:none; color:var(--text); font-weight:800}
header .brand img{width:30px; height:30px; border-radius:var(--r-in)}
header nav{margin-left:auto; display:flex; align-items:center; gap:6px; flex-wrap:wrap}
header nav a{
  color:var(--muted); text-decoration:none; font-size:.92rem; font-weight:600;
  padding:7px 11px; border-radius:var(--r-in);
}
header nav a:hover{color:var(--text); background:var(--card)}
header nav a.cta{background:var(--primary); color:#fff}
header nav a.cta:hover{background:#5c46ef; color:#fff}

main{flex:1; width:100%; max-width:1080px; margin:0 auto; padding:30px 22px 50px}
h1{font-size:1.85rem; margin:0 0 8px; letter-spacing:-.02em}
.sub{color:var(--muted); margin:0 0 26px; max-width:64ch; line-height:1.55}

.card{
  background:var(--card); border:1px solid var(--border);
  border-radius:var(--r-box); padding:20px; margin-bottom:18px;
}
.card h2{font-size:1rem; margin:0 0 14px; font-weight:700}

label{display:block; font-size:.83rem; color:var(--muted); font-weight:700; margin-bottom:6px}
input[type=text], select, textarea{
  width:100%; padding:10px 12px; font:inherit; font-size:.95rem; color:var(--text);
  background:#2B2B48; border:1px solid var(--border); border-radius:var(--r-in);
}
input[type=text]:focus, select:focus, textarea:focus{outline:2px solid var(--primary); outline-offset:-1px}
input[type=color]{
  width:46px; height:38px; padding:2px; background:#2B2B48;
  border:1px solid var(--border); border-radius:var(--r-in); cursor:pointer;
}
button{
  font:inherit; font-weight:700; font-size:.92rem; cursor:pointer;
  padding:9px 15px; border-radius:var(--r-in);
  background:var(--primary); color:#fff; border:1px solid transparent;
}
button:hover{background:#5c46ef}
button.ghost{background:transparent; color:var(--muted); border-color:var(--border)}
button.ghost:hover{background:#2B2B48; color:var(--text)}

.row{display:flex; gap:12px; flex-wrap:wrap; align-items:flex-end}
.row > .grow{flex:1 1 220px; min-width:0}

footer{
  border-top:1px solid var(--border); background:rgba(12,13,34,.72);
  padding:26px 22px; text-align:center; color:var(--muted); font-size:.9rem;
}
footer a{color:var(--primary-soft); font-weight:700}
footer .cta{
  display:inline-block; margin-bottom:12px; padding:11px 20px;
  background:var(--primary); color:#fff; text-decoration:none;
  border-radius:var(--r-in); font-weight:700;
}
footer .cta:hover{background:#5c46ef}

/* ---- controles del generador ---- */
.stops{display:flex; gap:10px; flex-wrap:wrap; margin-bottom:14px}
.stop{display:flex; align-items:center; gap:6px; background:#2B2B48; border:1px solid var(--border); border-radius:var(--r-in); padding:5px 7px}
.stop input[type=text]{width:88px; font-family:var(--mono); font-size:.85rem; text-transform:uppercase; background:transparent; border:0; padding:4px}
.stop button{background:transparent; color:var(--muted); border:0; padding:2px 6px; font-size:1.1rem; line-height:1}
.stop button:hover{color:var(--err); background:transparent}

.bar{height:12px; border-radius:99px; border:1px solid var(--border); margin-bottom:16px}

.styles{display:flex; gap:8px; flex-wrap:wrap}
.styles label{
  display:flex; align-items:center; gap:7px; margin:0; cursor:pointer;
  padding:8px 12px; border:1px solid var(--border); border-radius:var(--r-in);
  background:#2B2B48; color:var(--text); font-size:.9rem; font-weight:600;
}
.styles input{accent-color:var(--primary); margin:0}
.styles label:has(input:checked){border-color:var(--primary); background:rgba(75,51,235,.22)}

#preview{
  font-family:var(--mono); font-size:1.4rem; line-height:1.6; word-break:break-word;
  background:#0A0A16; border:1px solid var(--border); border-radius:var(--r-in);
  padding:18px; min-height:64px;
}
.mc-b{font-weight:700} .mc-i{font-style:italic}
.mc-u{text-decoration:underline} .mc-s{text-decoration:line-through}
.mc-u.mc-s{text-decoration:underline line-through}

.out{margin-bottom:12px}
.out:last-child{margin-bottom:0}
.out .head{display:flex; align-items:center; gap:10px; margin-bottom:6px}
.out .head strong{font-size:.9rem}
.out .head span{color:var(--muted); font-size:.8rem}
.out .head button{margin-left:auto; padding:5px 11px; font-size:.8rem}
.out pre{
  margin:0; padding:12px 14px; cursor:pointer;
  font-family:var(--mono); font-size:.85rem; line-height:1.5;
  white-space:pre-wrap; word-break:break-all;
  background:#0A0A16; border:1px solid var(--border); border-radius:var(--r-in);
}
.out pre:hover{border-color:var(--primary)}

.presets{display:flex; gap:8px; flex-wrap:wrap}
.presets button{padding:7px 12px; font-size:.85rem; color:#fff; border:1px solid var(--border)}

.hint{color:var(--muted); font-size:.82rem; margin:8px 0 0; line-height:1.5}
.hint code{font-family:var(--mono); color:var(--primary-soft); background:#0A0A16; padding:1px 5px; border-radius:4px}

@media (max-width:640px){
  main{padding:22px 16px 40px}
  h1{font-size:1.5rem}
  #preview{font-size:1.15rem}
}
