/* ECA Digital — landing (curso) */
:root {
  --bg: #0c1222;
  --bg-elevated: #141c32;
  --surface: #1a2438;
  --border: rgba(255, 255, 255, 0.08);
  --text: #e8edf5;
  --text-muted: #94a3b8;
  --accent: #38bdf8;
  --accent-warm: #fbbf24;
  --accent-soft: rgba(56, 189, 248, 0.15);
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "DM Sans", system-ui, sans-serif;
  --radius: 14px;
  --max: 1100px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  background-image: radial-gradient(ellipse 100% 80% at 50% -30%, rgba(56, 189, 248, 0.12), transparent),
    radial-gradient(ellipse 70% 50% at 100% 50%, rgba(251, 191, 36, 0.06), transparent);
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.container {
  width: min(var(--max), 92vw);
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(12, 18, 34, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.site-header .inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 0;
  gap: 1rem;
}

.logo {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  color: var(--text);
}

.logo span {
  color: var(--accent);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.hero {
  padding: 4rem 0 3.5rem;
}

.hero-grid {
  display: grid;
  gap: 2.5rem;
}

@media (min-width: 900px) {
  .hero-grid {
    grid-template-columns: 1.1fr 0.9fr;
    align-items: center;
  }
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  margin-bottom: 1rem;
}

.eyebrow::before {
  content: "";
  width: 28px;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), transparent);
}

h1 {
  font-family: var(--font-display);
  font-weight: 650;
  font-size: clamp(2.1rem, 4.5vw, 3rem);
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin: 0 0 1rem;
}

.lead {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 36ch;
  margin: 0 0 1.75rem;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hero-ctas--center {
  justify-content: center;
}

.cta-lead {
  margin-bottom: 1rem;
  max-width: 52ch;
  margin-inline: auto;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.35rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.btn-primary {
  background: linear-gradient(135deg, #0ea5e9, #0284c7);
  color: #fff;
  box-shadow: 0 8px 28px rgba(14, 165, 233, 0.35);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 32px rgba(14, 165, 233, 0.45);
  text-decoration: none;
}

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

.btn-ghost:hover {
  background: var(--surface);
  text-decoration: none;
}

.hero-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem 1.5rem 1.35rem;
  position: relative;
  overflow: hidden;
}

.hero-card::after {
  content: "";
  position: absolute;
  inset: -40% -20% auto;
  height: 60%;
  background: radial-gradient(ellipse at center, var(--accent-soft), transparent 70%);
  pointer-events: none;
}

.hero-card h2 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0 0 1rem;
  position: relative;
}

.pill-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  position: relative;
}

.pill-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  font-size: 0.92rem;
  color: var(--text-muted);
}

.pill-list li strong {
  color: var(--text);
  font-weight: 600;
}

.pill-list .dot {
  flex-shrink: 0;
  width: 8px;
  height: 8px;
  margin-top: 0.45rem;
  border-radius: 50%;
  background: var(--accent-warm);
  box-shadow: 0 0 0 3px rgba(251, 191, 36, 0.2);
}

section {
  padding: 3.5rem 0;
}

section.alt {
  background: var(--bg-elevated);
  border-block: 1px solid var(--border);
}

.section-head {
  max-width: 640px;
  margin-bottom: 2rem;
}

.section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(1.65rem, 3vw, 2.1rem);
  margin: 0 0 0.65rem;
  letter-spacing: -0.02em;
}

.section-head p {
  margin: 0;
  color: var(--text-muted);
}

.grid-3 {
  display: grid;
  gap: 1rem;
}

@media (min-width: 700px) {
  .grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.35rem 1.25rem;
  height: 100%;
}

.card h3 {
  font-size: 1.05rem;
  margin: 0 0 0.5rem;
  font-weight: 600;
}

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

.modules {
  display: grid;
  gap: 1rem;
}

@media (min-width: 750px) {
  .modules {
    grid-template-columns: repeat(2, 1fr);
  }
}

.module {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem 1.15rem;
  padding: 1.25rem 1.2rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  align-items: start;
}

.module-num {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
}

.module h3 {
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
  font-weight: 600;
}

.module p {
  margin: 0;
  grid-column: 2;
  font-size: 0.92rem;
  color: var(--text-muted);
}

.cta-band {
  margin-top: 1rem;
  padding: 2.25rem 1.5rem;
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.12), rgba(251, 191, 36, 0.08));
  border: 1px solid var(--border);
  text-align: center;
}

.cta-band h2 {
  font-family: var(--font-display);
  font-size: 1.45rem;
  margin: 0 0 0.5rem;
}

.cta-band p {
  margin: 0 0 1.25rem;
  color: var(--text-muted);
  max-width: 50ch;
  margin-inline: auto;
}

.cta-band--form {
  text-align: left;
}

.cta-band--form .cta-band__intro {
  max-width: 62ch;
  margin-inline: 0;
  margin-bottom: 1.5rem;
}

.cta-band--form h2 {
  text-align: center;
}

.cta-band--form .signup-form {
  max-width: 520px;
  margin-inline: auto;
}

.honeypot {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.signup-form__grid {
  display: grid;
  gap: 1rem 1.25rem;
}

@media (min-width: 560px) {
  .signup-form__grid {
    grid-template-columns: 1fr 1fr;
  }
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  text-align: left;
}

.field--full {
  grid-column: 1 / -1;
}

.field label {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text);
}

.field .optional {
  font-weight: 400;
  color: var(--text-muted);
}

.field input {
  padding: 0.8rem 1rem;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  font-family: inherit;
  font-size: 0.95rem;
}

.field input::placeholder {
  color: var(--text-muted);
  opacity: 0.85;
}

.field input:focus {
  outline: none;
  border-color: rgba(56, 189, 248, 0.5);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.signup-form__privacy {
  margin: 1.25rem 0 1rem !important;
  max-width: none !important;
  font-size: 0.82rem !important;
  color: var(--text-muted) !important;
}

.signup-form__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  justify-content: center;
  margin-top: 0.25rem;
}

.btn--wide {
  min-width: min(100%, 280px);
}

.form-note--config {
  text-align: center;
  max-width: 56ch;
  margin-inline: auto;
  margin-top: 1.5rem !important;
}

.form-note--config code {
  color: var(--accent);
  font-size: 0.78em;
}

.form-inline {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  justify-content: center;
  max-width: 480px;
  margin-inline: auto;
}

.form-inline input {
  flex: 1 1 200px;
  padding: 0.8rem 1rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  font-family: inherit;
  font-size: 0.95rem;
}

.form-inline input::placeholder {
  color: var(--text-muted);
}

.form-note {
  margin-top: 0.85rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.site-footer {
  padding: 2rem 0 2.5rem;
  border-top: 1px solid var(--border);
}

.site-footer p {
  margin: 0;
  font-size: 0.85rem;
  color: var(--text-muted);
  max-width: 70ch;
}

.site-footer .fine {
  margin-top: 0.75rem;
  font-size: 0.78rem;
  opacity: 0.85;
}
