:root {
  --red: #E5484D;
  --blue: #3B82F6;
  --yellow: #F5B301;
  --green: #22A06B;

  --bg: #ffffff;
  --bg-alt: #F7F8FA;
  --text: #1A1D23;
  --text-muted: #5B6270;
  --border: #E4E7EC;

  --radius: 14px;
  --shadow: 0 10px 30px -12px rgba(26, 29, 35, 0.15);
  --container-w: 1120px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.55;
}

.container {
  max-width: var(--container-w);
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3 { line-height: 1.2; margin: 0 0 12px; font-weight: 700; }
h1 { font-size: clamp(32px, 5vw, 48px); }
h2 { font-size: clamp(24px, 3.5vw, 32px); }
h3 { font-size: 18px; margin-bottom: 8px; }
p { margin: 0 0 16px; color: var(--text-muted); }

a { color: inherit; }

/* ---- Brand mark ---- */
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
}
.brand-mark {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 2px;
  width: 22px;
  height: 22px;
  border-radius: 6px;
  overflow: hidden;
}
.dot { display: block; width: 100%; height: 100%; }
.dot-red { background: var(--red); }
.dot-blue { background: var(--blue); }
.dot-yellow { background: var(--yellow); }
.dot-green { background: var(--green); }
.brand-name { font-size: 20px; font-weight: 800; letter-spacing: -0.02em; }

/* ---- Header ---- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  gap: 24px;
}
.site-nav {
  display: flex;
  gap: 28px;
  flex: 1;
  justify-content: center;
}
.site-nav a {
  text-decoration: none;
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 600;
}
.site-nav a:hover { color: var(--text); }

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  background: var(--blue);
  color: #fff;
  box-shadow: 0 8px 20px -8px rgba(59, 130, 246, 0.55);
}
.btn-primary:hover { box-shadow: 0 12px 26px -10px rgba(59, 130, 246, 0.6); }
.btn-secondary {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}
.btn-secondary:hover { background: var(--bg-alt); }
.btn-small { padding: 9px 18px; font-size: 14px; }
.btn-large { padding: 16px 32px; font-size: 17px; }

/* ---- Hero ---- */
.hero { padding: 72px 0 96px; }
.hero-inner {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}
.eyebrow {
  display: inline-block;
  color: var(--blue);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.lead { font-size: 18px; max-width: 480px; }
.hero-actions { display: flex; gap: 14px; margin-top: 28px; flex-wrap: wrap; }

/* ---- Hero visual mock ---- */
.mock-window {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.mock-titlebar {
  display: flex;
  gap: 6px;
  padding: 12px 16px;
  background: #fff;
  border-bottom: 1px solid var(--border);
}
.mock-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--border); }
.mock-body { display: flex; min-height: 260px; }
.mock-sidebar {
  width: 56px;
  background: #fff;
  border-right: 1px solid var(--border);
  padding: 16px 10px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.mock-sidebar-item { height: 10px; border-radius: 5px; background: var(--border); }
.mock-sidebar-item--active { background: var(--blue); }
.mock-content { flex: 1; padding: 20px; }
.mock-stat-row { display: flex; gap: 12px; margin-bottom: 18px; }
.mock-stat { flex: 1; height: 54px; border-radius: 10px; opacity: 0.85; }
.mock-stat--red { background: color-mix(in srgb, var(--red) 18%, white); }
.mock-stat--blue { background: color-mix(in srgb, var(--blue) 18%, white); }
.mock-stat--green { background: color-mix(in srgb, var(--green) 18%, white); }
.mock-table { display: flex; flex-direction: column; gap: 10px; }
.mock-row { height: 14px; border-radius: 6px; background: var(--border); }
.mock-row:nth-child(2) { width: 90%; }
.mock-row:nth-child(3) { width: 75%; }
.mock-row:nth-child(4) { width: 85%; }

/* ---- Section heading ---- */
.section-heading { text-align: center; max-width: 620px; margin: 0 auto 48px; }
.section-heading p { font-size: 16px; }

/* ---- Features ---- */
.features { padding: 88px 0; background: var(--bg-alt); }
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.feature-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
}
.feature-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin-bottom: 16px;
}
.feature-icon--red { background: color-mix(in srgb, var(--red) 15%, white); }
.feature-icon--blue { background: color-mix(in srgb, var(--blue) 15%, white); }
.feature-icon--yellow { background: color-mix(in srgb, var(--yellow) 20%, white); }
.feature-icon--green { background: color-mix(in srgb, var(--green) 15%, white); }
.feature-card p { margin: 0; font-size: 15px; }

/* ---- How it works ---- */
.how-it-works { padding: 88px 0; }
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.step { text-align: center; padding: 0 12px; }
.step-number {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--text);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  margin: 0 auto 16px;
}
.step p { font-size: 15px; }

/* ---- CTA banner ---- */
.cta-banner {
  background: var(--text);
  color: #fff;
  padding: 64px 0;
}
.cta-banner-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
}
.cta-banner h2 { color: #fff; margin: 0; }

/* ---- Contact ---- */
.contact { padding: 88px 0; text-align: center; background: var(--bg-alt); }

/* ---- Footer ---- */
.site-footer { padding: 48px 0; border-top: 1px solid var(--border); }
.footer-inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
}
.footer-brand p { margin: 8px 0 0; font-size: 13px; }
.footer-nav { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-nav a { text-decoration: none; font-size: 14px; color: var(--text-muted); font-weight: 600; }
.footer-nav a:hover { color: var(--text); }
.footer-nav-muted { opacity: 0.55; cursor: default; }
.footer-copy { width: 100%; font-size: 13px; color: var(--text-muted); margin: 24px 0 0; }

/* ---- Registro (registro.html) ---- */
.register-section { padding: 72px 0 96px; }
.register-container {
  max-width: 480px;
  text-align: center;
}
.register-intro .lead { margin: 0 auto 36px; }
.register-card {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  text-align: left;
}
.form-field { margin-bottom: 18px; }
.form-field label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--text);
}
.form-field input,
.form-field select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 15px;
  font-family: inherit;
  background: #fff;
  color: var(--text);
}
.form-field input:focus,
.form-field select:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--blue) 18%, transparent);
}
.form-field-hidden {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.form-error {
  background: color-mix(in srgb, var(--red) 10%, white);
  color: var(--red);
  border: 1px solid color-mix(in srgb, var(--red) 30%, white);
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 14px;
  margin: 0 0 16px;
}
.register-card .btn { width: 100%; margin-top: 6px; }
.register-success { text-align: center; padding: 12px 0; }
.success-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--green) 18%, white);
  color: var(--green);
  font-size: 26px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}
.register-success h2 { margin-bottom: 8px; }
.register-success p { margin: 0; }

/* ---- Responsive ---- */
@media (max-width: 860px) {
  .site-nav { display: none; }
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { order: -1; }
  .features-grid { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr; gap: 40px; }
  .cta-banner-inner { flex-direction: column; text-align: center; }
}

@media (max-width: 560px) {
  .features-grid { grid-template-columns: 1fr; }
  .header-inner { height: 60px; }
}
