/* VYRE Mono — NexoWave dark minimal (compactado) */
:root{
  --bg:#0b0c10;
  --surface:#111218;
  --text:#f7f7fb;
  --muted:#9a9aac;
  --accent:#8ef0ff;
  --accent2:#e4b9ff;
  --line:#232433;
  --shadow: 0 16px 40px rgba(0,0,0,.40);
}

/* Base */
*{ box-sizing:border-box; }
html,body{ height:100%; }
html,body{
  margin:0; padding:0;
  background:var(--bg); color:var(--text);
  font:16px/1.5 'Space Grotesk', system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, sans-serif;
}
a{ color:var(--muted); text-decoration:none; }
a:hover{ color:var(--text); }

/* NAV (compacto y limpio) */
.nav{
  position:sticky; top:0; z-index:50;
  background:rgba(10,11,14,.6);
  backdrop-filter:blur(8px);
  border-bottom:1px solid var(--line);
  box-shadow: var(--shadow);
}
.nav .inner,
.nav{
  max-width:1100px;
  margin:0 auto;
  padding:12px 20px; /* compacto */
  display:flex; align-items:center; justify-content:space-between;
}
.brand{ display:flex; align-items:center; gap:10px; font-weight:800; letter-spacing:.2px; }
.brand img{ width:28px; height:28px; filter:invert(0); }
.brand .thin{ font-weight:300; opacity:.7; }
.links{ display:flex; gap:10px; align-items:center; }
.links a{
  padding:8px 10px; border-radius:10px;
  border:1px solid transparent;
  color:var(--muted);
}
.links a:hover{ color:var(--text); }
.links a.active{
  border-color:var(--line);
  background:transparent; color:var(--text);
}

/* WRAP / contenedores */
.container{ max-width:1100px; margin:0 auto; padding:8px 20px 48px; }
.hero{ 
  display:grid; grid-template-columns: 1.1fr 0.9fr; gap:16px;
  padding:16px 20px 10px; max-width:1100px; margin:0 auto;
}
@media (max-width: 900px){ .hero{ grid-template-columns:1fr; } }

/* HERO */
.hero h1{
  margin:0 0 6px;
  font-size:clamp(34px, 5.2vw, 60px);
  line-height:1.02; font-weight:800; letter-spacing:-.5px;
}
.hero .stroke{ -webkit-text-stroke: 1px var(--text); color:transparent; }
.hero p{ color:var(--muted); max-width:800px; margin-top:6px; }
.actions{ display:flex; gap:10px; margin:12px 0; }
.trust{ font-size:.9rem; color:var(--muted); display:flex; align-items:center; gap:8px; }
.trust .dot{ width:8px; height:8px; background:#38f87d; border-radius:50%; box-shadow:0 0 8px #38f87d; }

/* HERO preview */
.hero-art{
  border:1px solid var(--line);
  border-radius:16px;
  padding:10px;
  background:linear-gradient(180deg, rgba(142,240,255,.05), rgba(228,185,255,.04));
  box-shadow:var(--shadow);
  display:block;
}
.hero-art canvas, #heroCanvas{ width:100%; height:auto; border-radius:12px; display:block; margin:0; }

/* Features / tarjetas */
.features{
  display:grid; grid-template-columns: repeat(3,1fr); gap:12px;
  padding:24px 20px 36px; max-width:1100px; margin:0 auto;
}
@media (max-width: 900px){ .features{ grid-template-columns:1fr; } }
.features article{
  padding:14px;
  border:1px solid var(--line);
  border-radius:14px;
  background:var(--surface);
  box-shadow:var(--shadow);
}
.features h3{ margin:4px 0; }

/* Paneles y formularios */
.panel{
  margin:14px 0 18px;
  background:var(--surface);
  border:1px solid var(--line);
  box-shadow:var(--shadow);
  padding:14px;
  border-radius:14px;
}
label{ display:block; font-size:.88rem; font-weight:700; color:var(--muted); margin-bottom:6px; }
input[type=text], select, input[type=color]{
  width:100%; padding:12px 12px; border-radius:12px;
  background:#0c0c0f; color:var(--text); border:1px solid var(--line);
  outline:none;
}
input::placeholder{ color:#5c5c62; }
.grid-2{ display:grid; grid-template-columns: 1fr 1fr; gap:12px; }
.grid-3{ display:grid; grid-template-columns: 1fr 1fr 1fr; gap:12px; }
@media (max-width: 900px){ .grid-3{ grid-template-columns:1fr; } }

/* Pickers oscuros (alineados al estilo) */
input[type="color"]{
  -webkit-appearance:none; appearance:none;
  height:42px; padding:0; cursor:pointer;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,0);
}
input[type="color"]::-webkit-color-swatch-wrapper{ padding:0; border-radius:12px; }
input[type="color"]::-webkit-color-swatch{ border:none; border-radius:10px; }
input[type="color"]::-moz-color-swatch{ border:none; border-radius:10px; }

/* Botones (CTA y ghost) */
.button, .cta{
  appearance:none; border:none;
  background:linear-gradient(135deg, var(--accent), var(--accent2));
  color:#0a0a0a; font-weight:800;
  font-family:'Montserrat', system-ui, sans-serif;
  padding:12px 16px; border-radius:12px;
  cursor:pointer;
  transition:transform .06s ease, filter .2s;
  box-shadow:var(--shadow);
}
.button:active, .cta:active{ transform:translateY(1px); }
.button.ghost, .ghost{
  appearance:none; border:1px solid var(--line); background:transparent; color:var(--text);
  padding:8px 10px; border-radius:10px; cursor:pointer;
  font-family:'Montserrat', system-ui, sans-serif; font-weight:700;
  box-shadow:none;
}
a.button{ display:inline-flex; align-items:center; gap:8px; }

/* Interacciones sutiles (sin neon) */
a.button, .button, .links a, .template-card{
  transition: transform .15s ease, filter .2s ease, box-shadow .2s ease, border-color .2s ease;
}
a.button:hover, .button:hover{
  filter:brightness(1.02);
  transform:translateY(-1px);
}
.links a:hover{ transform:none; }
.button.ghost:hover{ border-color:#2c2d3a; }

/* Templates */
.templates{ display:grid; grid-template-columns: repeat(4, 1fr); gap:10px; margin-top:10px; }
@media (max-width: 1100px){ .templates{ grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 720px){ .templates{ grid-template-columns: repeat(2, 1fr); } }
.template-card{
  border:1px solid var(--line);
  border-radius:12px; padding:10px;
  background:var(--surface); cursor:pointer;
  transition: transform .15s ease, box-shadow .2s ease, border-color .2s ease;
}
.template-card:hover{ transform: translateY(-2px); box-shadow:var(--shadow); }
.template-card canvas{ width:100%; height:auto; display:block; border-radius:8px; }
.template-card.active{ outline:2px solid var(--text); }

/* Canvases sueltos */
#bannerCanvas, #iconCanvas{
  width:100%; height:auto; border-radius:16px;
  border:1px solid var(--line); background:#000;
}

/* Hero centrado opcional */
.hero-centered{ grid-template-columns: 1fr; text-align:center; }
.hero-centered .hero-copy{ margin:0 auto; }
.hero-centered .hero-art{ max-width:820px; margin: 18px auto 0; }
.features{ padding-bottom:24px; }

/* Footer */
.footer{
  border-top:1px solid var(--line);
  color:var(--muted);
  padding:18px 0;
  text-align:center;
  max-width:1100px; margin:0 auto;
}

/* Página Home — retoques suaves con mismo estilo */
body.home{
  background:
    radial-gradient(800px 400px at 20% -10%, rgba(142,240,255,.06), transparent 60%),
    radial-gradient(600px 300px at 120% 10%, rgba(228,185,255,.05), transparent 60%),
    var(--bg);
}
body.home .nav{
  background:rgba(10,11,14,.6);
  border-bottom:1px solid var(--line);
}
body.home .nav .inner{ max-width:1200px; margin:0 auto; padding:12px 20px; }
body.home .nav .links a{
  display:inline-flex; align-items:center; gap:8px;
  padding:8px 10px; border-radius:10px;
  background: transparent; border:1px solid var(--line);
  font-weight:700; font-size:.93rem; color:var(--muted);
}
body.home .nav .links a:hover{ color:var(--text); border-color:#2c2d3a; }
body.home .nav .links a[aria-current="page"], 
body.home .nav .links a.active{ border-color:#2c2d3a; color:var(--text); }

body.home .hero{
  max-width:1200px; margin: 24px auto 0; padding: 16px 20px;
  display:grid; grid-template-columns: 1.05fr .95fr; gap: 24px; align-items:center;
}
@media (max-width: 980px){ body.home .hero{ grid-template-columns:1fr; gap:20px; } }
body.home .hero-copy h1{
  font-size: clamp(36px, 5vw, 60px);
  line-height:1.02; margin:0 0 6px; font-weight:900; letter-spacing:-.5px;
}
body.home .hero-copy p.lead{
  color:var(--muted); font-size:clamp(15px, 2.1vw, 18px);
  margin: 0 0 18px 0;
}
body.home .hero-actions{ display:flex; gap:10px; flex-wrap:wrap; }

body.home .button{
  display:inline-flex; align-items:center; gap:10px;
  padding:12px 16px; border-radius:12px; border:none;
  background:linear-gradient(135deg, var(--accent), var(--accent2));
  color:#0a0a0a; font-weight:800; box-shadow:var(--shadow);
}
body.home .button.secondary{
  background:transparent; color:var(--text);
  border:1px solid var(--line); box-shadow:none; font-weight:700;
}

body.home .hero-art{
  border-radius:16px; overflow:clip;
  border:1px solid var(--line);
  background:linear-gradient(180deg, rgba(142,240,255,.05), rgba(228,185,255,.04));
  box-shadow:var(--shadow);
}
body.home .hero-badge{ display:flex; align-items:center; gap:8px; margin-top: 10px; color: var(--muted); font-size:.9rem; }
body.home .dot{ width:8px; height:8px; border-radius:50%; background:#00e676; box-shadow: 0 0 6px #00e676; }

body.home .features{ 
  max-width:1200px; margin: 10px auto 36px; padding: 0 20px;
  display:grid; grid-template-columns: repeat(3,1fr); gap:12px;
}
@media (max-width: 900px){ body.home .features{ grid-template-columns: 1fr; } }
body.home .feature{
  padding:14px; border-radius:14px; border:1px solid var(--line);
  background:var(--surface); box-shadow:var(--shadow);
}
body.home .feature h3{ margin:0 0 6px; font-size:1.05rem; }
body.home .feature p{ margin:0; color:var(--muted); font-size:.95rem; }

body.home .footer{
  max-width:1200px; margin: 40px auto; padding: 20px;
  color: var(--muted); border-top: 1px solid var(--line);
  display:flex; flex-wrap:wrap; gap:12px; align-items:center; justify-content:space-between;
}

/* Ajustes responsivos extra */
@media (max-width: 900px){
  .templates{ grid-template-columns: repeat(2, 1fr); }
}

/* Compactación adicional en pantallas grandes */
@media (min-width: 992px){
  .container{ padding-bottom:36px; }
  .hero h1{ font-size:clamp(34px, 4.6vw, 56px); }
}
