* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg-dark: #020617;
  --bg-darker: #020314;
  --accent: #3b82f6;
  --accent-soft: #60a5fa;
  --accent-warm: #f97316;
  --text-main: #e5e7eb;
  --text-muted: #9ca3af;
  --border-subtle: #1f2937;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg-dark);
  color: var(--text-main);
}

/* contenedor */

.container {
  width: min(1120px, 100%);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* HEADER */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(10px);
  background: linear-gradient(to bottom, rgba(2,6,23,0.95), rgba(2,6,23,0.85));
  border-bottom: 1px solid var(--border-subtle);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 0;
}

/* LOGO */

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: inherit;
}

.brand-icon {
  width: 40px;
  height: 40px;
}

/* Limitar tamaño del svg para que NO sea gigante */
.brand-icon svg {
  width: 40px;
  height: 40px;
  display: block;
}

.logo-bg {
  fill: #020617;
  stroke: var(--accent-soft);
  stroke-width: 2;
}
.logo-pencil-body { fill: var(--accent); }
.logo-pencil-tip { fill: var(--accent-warm); }
.logo-pencil-eraser { fill: #e5e7eb; }
.logo-pencil-detail { fill: #bfdbfe; }

.brand-text { display: flex; flex-direction: column; }
.brand-name { font-weight: 700; letter-spacing: 0.03em; font-size: 1.05rem; }
.brand-tagline { font-size: 0.75rem; color: var(--text-muted); }

/* NAV */

.main-nav {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.9rem;
}

.main-nav a {
  color: var(--text-muted);
  text-decoration: none;
  padding: 0.3rem 0.6rem;
  border-radius: 999px;
}

.main-nav a:hover {
  color: #f9fafb;
  background: rgba(15,23,42,0.8);
}

.nav-cta {
  background: #1e293b;
  color: #e5e7eb;
  border: 1px solid #334155;
}

/* HERO */

.hero {
  background: radial-gradient(circle at top left, #1d4ed8, #020617 45%, #020314);
  border-bottom: 1px solid var(--border-subtle);
  padding: 2.5rem 0 2.75rem 0;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0,1.3fr) minmax(0,1fr);
  gap: 2.25rem;
  align-items: center;
}

.hero-left h1 {
  font-size: clamp(1.9rem, 2.6vw + 1rem, 2.6rem);
  line-height: 1.15;
  margin-bottom: 0.75rem;
}

.hero-sub {
  font-size: 0.95rem;
  max-width: 34rem;
  color: #e5e7eb;
  opacity: 0.92;
}

.hero-ctas {
  margin-top: 1rem;
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.6rem 1.1rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
}

.btn-primary {
  background: var(--accent);
  color: #f9fafb;
}
.btn-primary:hover { background: #2563eb; }

.btn-ghost {
  background: rgba(15,23,42,0.6);
  color: var(--text-main);
  border: 1px solid #334155;
}
.btn-ghost:hover { background: rgba(15,23,42,0.9); }

.hero-bullets {
  list-style: none;
  margin-top: 0.9rem;
  font-size: 0.88rem;
  color: var(--text-muted);
}
.hero-bullets li + li { margin-top: 0.1rem; }

/* CARD DERECHA */

.hero-right { display: flex; justify-content: flex-end; }

.hero-card {
  background: rgba(15,23,42,0.9);
  border-radius: 1.2rem;
  border: 1px solid rgba(148,163,184,0.4);
  padding: 1.25rem 1.3rem;
  max-width: 360px;
  box-shadow: 0 20px 50px rgba(15,23,42,0.7);
}

.hero-card-label {
  font-size: 0.8rem;
  color: var(--accent-soft);
  margin-bottom: 0.35rem;
}
.hero-card-title { font-size: 1rem; margin-bottom: 0.7rem; }
.hero-card-list { list-style: none; font-size: 0.85rem; color: var(--text-muted); }
.hero-card-list li + li { margin-top: 0.25rem; }
.hero-card-note { margin-top: 0.9rem; font-size: 0.8rem; color: #e5e7eb; }

/* SECCIONES */

.section {
  padding: 2.5rem 0;
  background: var(--bg-dark);
}

.section-alt {
  background: var(--bg-darker);
}

.section h2 {
  font-size: 1.5rem;
  margin-bottom: 0.4rem;
}

.section-sub {
  font-size: 0.9rem;
  color: var(--text-muted);
  max-width: 34rem;
}

/* STEPS */

.steps-grid {
  margin-top: 1.5rem;
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit,minmax(190px,1fr));
}

.step {
  background: #020617;
  border-radius: 0.9rem;
  border: 1px solid var(--border-subtle);
  padding: 0.95rem 1rem;
}

.step-number {
  width: 26px;
  height: 26px;
  border-radius: 999px;
  background: var(--accent);
  color: #f9fafb;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  margin-bottom: 0.4rem;
}

.step h3 {
  font-size: 1rem;
  margin-bottom: 0.3rem;
}

.step p {
  font-size: 0.86rem;
  color: var(--text-muted);
}

/* PARA QUIÉN ES */

.two-col {
  margin-top: 1.5rem;
  display: grid;
  gap: 1.75rem;
  grid-template-columns: minmax(0,1.2fr) minmax(0,1fr);
}

.checklist {
  list-style: none;
  margin-top: 0.9rem;
  font-size: 0.9rem;
}
.checklist li + li { margin-top: 0.3rem; }
.checklist li::before {
  content: "✔ ";
  color: var(--accent-soft);
}

.pill-list {
  list-style: none;
  margin-top: 0.8rem;
  font-size: 0.85rem;
}
.pill-list li {
  display: inline-block;
  margin: 0.15rem;
  padding: 0.3rem 0.6rem;
  border-radius: 999px;
  background: #020617;
  border: 1px solid #1f2937;
  color: var(--text-muted);
}

/* PRICING */

.pricing-card {
  margin-top: 1.7rem;
  max-width: 420px;
  background: #020617;
  border-radius: 1rem;
  border: 1px solid var(--border-subtle);
  padding: 1.3rem 1.4rem;
  box-shadow: 0 18px 40px rgba(15,23,42,0.7);
}

.pricing-card h3 { font-size: 1.1rem; margin-bottom: 0.3rem; }
.price { font-size: 1.3rem; font-weight: 700; margin-top: 0.4rem; }
.price-note { font-size: 0.8rem; color: var(--text-muted); }

.pricing-list {
  list-style: none;
  font-size: 0.87rem;
  color: var(--text-muted);
  margin: 0.9rem 0 1rem 0;
}
.pricing-list li + li { margin-top: 0.25rem; }

.btn-full { width: 100%; }

/* GENERADOR */

.generator-grid {
  margin-top: 1.6rem;
  display: grid;
  grid-template-columns: minmax(0,1.05fr) minmax(0,1.3fr);
  gap: 1.5rem;
}

.generator-form,
.generator-preview {
  background: #020617;
  border-radius: 1rem;
  border: 1px solid var(--border-subtle);
  padding: 1.1rem 1.2rem;
}

.generator-form h3,
.generator-preview h3 {
  font-size: 1rem;
  margin-bottom: 0.8rem;
}

form label {
  display: block;
  font-size: 0.85rem;
  margin-bottom: 0.7rem;
}

form input,
form textarea,
form select {
  width: 100%;
  margin-top: 0.25rem;
  padding: 0.5rem 0.6rem;
  border-radius: 0.6rem;
  border: 1px solid #374151;
  background: #020617;
  color: #e5e7eb;
  font-size: 0.9rem;
}

form input:focus,
form textarea:focus,
form select:focus {
  outline: 2px solid var(--accent);
  border-color: var(--accent);
}

button {
  margin-top: 0.75rem;
  padding: 0.6rem 1rem;
  border-radius: 0.75rem;
  border: none;
  font-weight: 600;
  cursor: pointer;
  background: var(--accent);
  color: #f9fafb;
  font-size: 0.9rem;
}

button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.status-msg {
  margin-top: 0.5rem;
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* PREVIEW */

.preview-frame {
  margin-top: 0.2rem;
  background: #020617;
  border-radius: 0.9rem;
  border: 1px solid var(--border-subtle);
  padding: 1rem;
  overflow-y: auto;
  max-height: 460px;
}

.preview-placeholder {
  font-size: 0.86rem;
  color: var(--text-muted);
  text-align: center;
  padding-top: 2rem;
}

/* WEB GENERADA */

.generated-site {
  background: #f9fafb;
  color: #111827;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  border-radius: 0.75rem;
  overflow: hidden;
  box-shadow: 0 18px 40px rgba(15,23,42,0.5);
}

/* FOOTER */

.site-footer {
  border-top: 1px solid var(--border-subtle);
  background: #020617;
  padding: 1rem 0 1rem 0;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* RESPONSIVE */

@media (max-width: 900px) {
  .header-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .main-nav {
    flex-wrap: wrap;
  }

  .hero-grid {
    grid-template-columns: 1fr;
  }

  .hero-right {
    justify-content: flex-start;
  }

  .two-col {
    grid-template-columns: 1fr;
  }

  .generator-grid {
    grid-template-columns: 1fr;
  }
}
