:root {
  --bg: #ffffff;
  --bg-soft: #f4fafe;
  --card: #ffffff;
  --border: #d3e7f5;
  --text: #1b3a4b;
  --text-muted: #5d7a8c;
  --primary: #3b9fd9;
  --primary-dark: #1b6ea3;
  --accent: #d7edfc;
  --accent-strong: #7ec8e3;
  --sparkle: #4dd8f5;
  --radius: 16px;
  --shadow: 0 20px 45px -25px rgba(27, 58, 75, 0.35);
  font-size: 16px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

.wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding-inline: 24px;
}

a {
  color: var(--primary-dark);
}

h1,
h2,
h3 {
  line-height: 1.15;
  margin: 0 0 0.5em;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  padding-block: 14px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.1rem;
  text-decoration: none;
  color: var(--text);
  margin-right: auto;
}

.brand-logo {
  width: 32px;
  height: 32px;
  display: block;
}

.nav {
  display: flex;
  gap: 24px;
}

.nav a {
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.nav a:hover {
  color: var(--primary-dark);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  white-space: nowrap;
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--primary);
  color: #ffffff;
  box-shadow: 0 12px 24px -12px rgba(59, 159, 217, 0.6);
}

.btn-primary:hover {
  background: var(--primary-dark);
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-ghost:hover {
  border-color: var(--primary);
  color: var(--primary-dark);
}

.btn-small {
  padding: 8px 18px;
  font-size: 0.85rem;
}

/* Hero */
.hero {
  padding-block: 72px 96px;
  background: linear-gradient(160deg, #ffffff 0%, #f7fcff 55%, #eaf6fd 100%);
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 56px;
  align-items: center;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--primary-dark);
  margin: 0 0 12px;
}

.hero h1 {
  font-size: clamp(2rem, 4vw, 2.75rem);
}

.lead {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 46ch;
}

.hero-actions {
  display: flex;
  gap: 14px;
  margin-top: 28px;
  flex-wrap: wrap;
}

.browser-frame {
  background: var(--card);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.browser-bar {
  display: flex;
  gap: 6px;
  padding: 10px 14px;
  background: var(--bg-soft);
  border-bottom: 1px solid var(--border);
}

.browser-bar .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent-strong);
  opacity: 0.6;
}

.browser-frame img {
  display: block;
  width: 100%;
  height: auto;
}

/* Profiles */
.profiles {
  padding-block: 88px;
  background: var(--bg-soft);
  border-block: 1px solid var(--border);
}

.section-lead {
  text-align: center;
  color: var(--text-muted);
  max-width: 56ch;
  margin: 0 auto 48px;
}

.profile-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}

.profile-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 26px;
  text-align: center;
  box-shadow: var(--shadow);
}

.profile-icon {
  font-size: 2rem;
  margin-bottom: 16px;
}

.profile-card h3 {
  font-size: 1.15rem;
}

.profile-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin: 0;
}

/* Features */
.features {
  padding-block: 88px;
}

.features h2,
.how h2 {
  text-align: center;
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  margin-bottom: 48px;
}

.profiles h2 {
  text-align: center;
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  margin-bottom: 16px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 24px;
}

.feature-card {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
}

.feature-icon {
  font-size: 1.8rem;
  margin-bottom: 14px;
}

.feature-card h3 {
  font-size: 1.1rem;
}

.feature-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin: 0;
}

/* How it works */
.how {
  padding-block: 88px;
  background: var(--bg-soft);
  border-block: 1px solid var(--border);
}

.steps {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  max-width: 640px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.steps li {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.step-num {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

.steps h3 {
  font-size: 1.05rem;
}

.steps p {
  color: var(--text-muted);
  margin: 4px 0 0;
}

/* CTA banner */
.cta-banner {
  padding-block: 80px;
  text-align: center;
}

.cta-banner p {
  color: var(--text-muted);
  margin-bottom: 28px;
}

/* Demo form */
.demo-form {
  max-width: 480px;
  margin: 0 auto;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.demo-form-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.demo-form-row label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
}

.demo-form-row input,
.demo-form-row textarea {
  font: inherit;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--text);
  resize: vertical;
}

.demo-form-row input:focus,
.demo-form-row textarea:focus {
  outline: 2px solid var(--primary);
  outline-offset: 1px;
}

.demo-form button {
  align-self: flex-start;
  border: none;
  cursor: pointer;
  margin-top: 4px;
}

.demo-form-note {
  display: none;
  max-width: 480px;
  margin: 20px auto 0;
  padding: 14px 18px;
  border-radius: 10px;
  background: var(--accent);
  color: var(--primary-dark);
  font-weight: 600;
  text-align: center;
}

#demo-enviado:target {
  display: block;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding-block: 32px;
  background: var(--bg-soft);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 24px;
  justify-content: space-between;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.footer-inner .brand {
  margin-right: 0;
  font-size: 1rem;
}

@media (max-width: 860px) {
  .hero-inner {
    grid-template-columns: 1fr;
  }
  .nav {
    display: none;
  }
}
