:root {
  --ink: #101820;
  --muted: #5b6b75;
  --line: #d7e0e6;
  --paper: #ffffff;
  --canvas: #eef3f6;
  --soft: #f4f8fa;
  --deep: #0b1f2a;
  --field: #1f7a4d;
  --field-deep: #145c39;
  --coral: #e05c4d;
  --coral-deep: #c44a3d;
  --gold: #e6b23a;
  --mist: rgba(255, 255, 255, 0.86);
  --shadow: 0 18px 48px rgba(11, 31, 42, 0.14);
  --radius: 14px;
  --font-display: "Sora", "Segoe UI", sans-serif;
  --font-body: "Source Sans 3", "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html { scroll-padding-top: 5rem; }

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  font-size: 1.0625rem;
  line-height: 1.55;
}

img { max-width: 100%; height: auto; display: block; }

h1, h2, h3, p { margin: 0; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.12;
}

a { color: var(--field); }

.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.wrap {
  width: min(1140px, calc(100% - 2rem));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(11, 31, 42, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.header-bar {
  display: flex;
  align-items: center;
  gap: 0.75rem 1rem;
  min-height: 4.25rem;
  padding: 0.55rem 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: #fff;
  text-decoration: none;
  font-weight: 700;
}

.brand img {
  width: 2rem;
  height: 2rem;
  border-radius: 8px;
}

.brand-text {
  display: grid;
  gap: 0.05rem;
  line-height: 1.1;
}

.brand-text strong { font-size: 0.98rem; }
.brand-text span {
  color: var(--mist);
  font-size: 0.78rem;
  font-weight: 600;
}

.nav-toggle {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.75rem;
  min-height: 2.75rem;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 10px;
  background: transparent;
  color: #fff;
  cursor: pointer;
}

.site-nav {
  display: none;
  width: 100%;
  flex-direction: column;
  gap: 0.35rem;
  padding-bottom: 0.75rem;
}

.site-nav.is-open { display: flex; }

.site-nav a {
  color: var(--mist);
  text-decoration: none;
  font-weight: 600;
  padding: 0.55rem 0.2rem;
}

.site-nav a:hover,
.site-nav a:focus-visible { color: #fff; }

.header-cta {
  display: none;
  align-items: center;
  gap: 0.5rem;
  margin-left: auto;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 3rem;
  padding: 0.75rem 1.2rem;
  border-radius: 12px;
  border: 0;
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.18s ease, background 0.18s ease, color 0.18s ease;
}

.btn:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.btn:hover { transform: translateY(-1px); }

.btn-solid {
  background: var(--coral);
  color: #fff;
}

.btn-solid:hover { background: var(--coral-deep); }

.btn-field {
  background: var(--field);
  color: #fff;
}

.btn-field:hover { background: var(--field-deep); }

.btn-ghost {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.7);
}

.btn-ghost:hover { background: rgba(255, 255, 255, 0.1); }

.btn-wa {
  background: #25d366;
  color: #063518;
  border: 2px solid #1ebe57;
  font-weight: 700;
}

.btn-wa:hover {
  background: #1ebe57;
  color: #04280f;
}

.btn-line {
  background: #fff;
  color: var(--deep);
  border: 2px solid var(--field);
}

.btn-line:hover { background: var(--soft); }
.btn-block { width: 100%; }

.btn-small {
  min-height: 2.55rem;
  padding: 0.45rem 0.9rem;
  font-size: 0.95rem;
}

.hero {
  position: relative;
  min-height: min(92vh, 860px);
  color: #fff;
  overflow: hidden;
  background: var(--deep);
  display: grid;
  align-items: end;
}

.hero-media {
  position: absolute;
  inset: 0;
}

.hero-media picture,
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(11, 31, 42, 0.42) 0%, rgba(11, 31, 42, 0.78) 52%, rgba(11, 31, 42, 0.94) 100%),
    linear-gradient(90deg, rgba(11, 31, 42, 0.72) 0%, rgba(11, 31, 42, 0.28) 70%);
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: 4.5rem 0 3.2rem;
}

.product-label {
  margin-bottom: 1rem;
  color: var(--mist);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.82rem;
}

.hero h1 {
  max-width: 14ch;
  font-size: clamp(2.25rem, 6vw, 4rem);
}

.lede {
  max-width: 38rem;
  margin-top: 1rem;
  color: rgba(255, 255, 255, 0.92);
  font-size: clamp(1.08rem, 2.2vw, 1.28rem);
}

.hero-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 1.15rem;
}

.hero-chips span {
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.16);
  font-size: 0.9rem;
  font-weight: 600;
}

.hero-actions {
  display: grid;
  gap: 0.75rem;
  margin-top: 1.35rem;
  max-width: 28rem;
}

.hero-stage {
  position: relative;
  z-index: 1;
  margin-top: 2rem;
}

.section {
  padding: 4.2rem 0;
}

.section-alt { background: var(--canvas); }
.section-deep {
  background: var(--deep);
  color: #fff;
}

.section-kicker {
  color: var(--field);
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-size: 0.82rem;
  margin-bottom: 0.7rem;
}

.section-deep .section-kicker { color: #9ad4b5; }

.section h2 {
  max-width: 18ch;
  font-size: clamp(1.75rem, 3.6vw, 2.55rem);
}

.section-lead {
  max-width: 42rem;
  margin-top: 0.9rem;
  color: var(--muted);
  font-size: 1.12rem;
}

.section-deep .section-lead { color: rgba(255, 255, 255, 0.84); }

.section-close {
  margin-top: 1.6rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.2rem;
  max-width: 36rem;
}

.grid-cards {
  display: grid;
  gap: 0.9rem;
  margin-top: 1.8rem;
}

.problem-card,
.feature-card,
.role-card,
.faq-item,
.module-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.1rem 1.15rem;
}

.problem-card h3,
.feature-card h3,
.role-card h3,
.module-card h3 {
  font-size: 1.05rem;
  margin-bottom: 0.35rem;
}

.problem-card p,
.feature-card p,
.role-card p,
.module-card p {
  color: var(--muted);
  font-size: 0.98rem;
}

.problem-card {
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.problem-card:hover {
  border-color: #9fbfb0;
  transform: translateY(-2px);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.22rem 0.55rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.badge-ok {
  background: #e4f5eb;
  color: var(--field-deep);
}

.badge-dev {
  background: #fff4d8;
  color: #8a6412;
}

.badge-int {
  background: #eceff5;
  color: #3d4c63;
}

.module-map {
  display: grid;
  gap: 0.65rem;
  margin-top: 1.8rem;
}

.module-map span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 3.1rem;
  padding: 0.7rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-weight: 700;
  text-align: center;
}

.split {
  display: grid;
  gap: 1.6rem;
  margin-top: 1.8rem;
  align-items: center;
}

.checklist {
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.55rem;
}

.checklist li {
  position: relative;
  padding-left: 1.45rem;
}

.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45rem;
  width: 0.65rem;
  height: 0.65rem;
  border-radius: 50%;
  background: var(--field);
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.2rem;
}

.chip {
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  background: var(--soft);
  border: 1px solid var(--line);
  font-weight: 600;
  font-size: 0.92rem;
}

.visual-panel {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.visual-caption {
  padding: 0.75rem 1rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9rem;
}

.mock-note {
  display: inline-block;
  margin-bottom: 0.55rem;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  background: #fff4d8;
  color: #8a6412;
  font-size: 0.78rem;
  font-weight: 700;
}

.laptop {
  background: #1a2430;
  padding: 0.9rem 0.9rem 1.1rem;
}

.laptop-screen {
  background: #f5f7fa;
  border-radius: 10px;
  overflow: hidden;
  color: var(--ink);
}

.dash-top {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem;
  padding: 0.85rem;
}

.dash-kpi {
  background: #fff;
  border: 1px solid #e3e8ee;
  border-radius: 10px;
  padding: 0.7rem;
}

.dash-kpi small {
  display: block;
  color: var(--muted);
  font-size: 0.75rem;
}

.dash-kpi strong {
  display: block;
  margin-top: 0.2rem;
  font-size: 1.15rem;
  font-family: var(--font-display);
}

.dash-body {
  display: grid;
  gap: 0.7rem;
  padding: 0 0.85rem 0.95rem;
}

.dash-chart {
  background: #fff;
  border: 1px solid #e3e8ee;
  border-radius: 10px;
  padding: 0.8rem;
  min-height: 140px;
}

.chart-bars {
  display: flex;
  align-items: flex-end;
  gap: 0.4rem;
  height: 96px;
  margin-top: 0.7rem;
}

.chart-bars span {
  flex: 1;
  border-radius: 6px 6px 2px 2px;
  background: linear-gradient(180deg, #2bb673, #145c39);
}

.phones {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
  padding: 1rem;
  background:
    radial-gradient(circle at 20% 20%, rgba(32, 122, 77, 0.18), transparent 40%),
    linear-gradient(160deg, #0b1f2a, #163447);
}

.phone {
  background: #111820;
  border: 2px solid #2b3846;
  border-radius: 22px;
  overflow: hidden;
  min-height: 280px;
  color: #fff;
}

.phone-top {
  height: 1.1rem;
  background: #0a1016;
}

.phone-body { padding: 0.9rem; }

.phone-avatar {
  width: 3.4rem;
  height: 3.4rem;
  border-radius: 50%;
  background: linear-gradient(135deg, #4aa8ff, #1f7a4d);
  margin: 0.3rem auto 0.8rem;
}

.phone-actions {
  display: grid;
  gap: 0.45rem;
}

.phone-actions span {
  display: block;
  text-align: center;
  padding: 0.55rem;
  border-radius: 10px;
  background: var(--gold);
  color: #1a1405;
  font-weight: 700;
  font-size: 0.86rem;
}

.phone-qr {
  background: var(--gold);
  color: #1a1405;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 1rem;
  min-height: 280px;
}

.qr-box {
  width: 7.5rem;
  height: 7.5rem;
  background:
    repeating-linear-gradient(0deg, #111 0 8px, #f0b429 8px 16px),
    repeating-linear-gradient(90deg, #111 0 8px, #f0b429 8px 16px);
  background-blend-mode: difference;
  border-radius: 8px;
  margin: 0 auto 0.8rem;
}

.collage {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 0.55rem;
  min-height: 280px;
}

.collage figure {
  margin: 0;
  position: relative;
  overflow: hidden;
  border-radius: 16px;
}

.collage img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 180px;
}

.collage figcaption {
  position: absolute;
  left: 0.8rem;
  bottom: 0.8rem;
  padding: 0.3rem 0.55rem;
  border-radius: 8px;
  background: rgba(11, 31, 42, 0.78);
  color: #fff;
  font-weight: 700;
  font-size: 0.85rem;
}

.ficha {
  padding: 1rem;
}

.ficha-head {
  display: flex;
  gap: 0.85rem;
  align-items: center;
  margin-bottom: 0.9rem;
}

.ficha-photo {
  width: 4.2rem;
  height: 4.2rem;
  border-radius: 14px;
  background: linear-gradient(135deg, #94b8d6, #1f7a4d);
}

.ficha-grid {
  display: grid;
  gap: 0.55rem;
}

.ficha-grid div {
  display: flex;
  justify-content: space-between;
  gap: 0.8rem;
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.95rem;
}

.ficha-grid span { color: var(--muted); }

.cuenta {
  padding: 1rem;
}

.cuenta table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}

.cuenta th,
.cuenta td {
  text-align: left;
  padding: 0.55rem 0.2rem;
  border-bottom: 1px solid var(--line);
}

.cuenta th { color: var(--muted); font-weight: 600; }
.estado-ok { color: var(--field-deep); font-weight: 700; }
.estado-deuda { color: var(--coral-deep); font-weight: 700; }

.asistencia {
  padding: 1rem;
  background: #111820;
  color: #fff;
}

.asistencia-row {
  display: flex;
  justify-content: space-between;
  gap: 0.7rem;
  padding: 0.7rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.dot {
  width: 0.8rem;
  height: 0.8rem;
  border-radius: 50%;
  background: #2bb673;
  display: inline-block;
}

.levels {
  display: grid;
  gap: 0.8rem;
  margin-top: 1.5rem;
}

.level {
  display: grid;
  gap: 0.35rem;
  padding: 1rem 1.1rem;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--paper);
}

.faq-list {
  display: grid;
  gap: 0.7rem;
  margin-top: 1.6rem;
}

.faq-item summary {
  cursor: pointer;
  font-weight: 700;
  font-family: var(--font-display);
  list-style: none;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item p {
  margin-top: 0.65rem;
  color: var(--muted);
}

.cta-final {
  padding: 4.4rem 0;
  background:
    radial-gradient(circle at 85% 20%, rgba(224, 92, 77, 0.28), transparent 35%),
    radial-gradient(circle at 10% 80%, rgba(31, 122, 77, 0.28), transparent 40%),
    var(--deep);
  color: #fff;
}

.cta-final h2 {
  max-width: 16ch;
  font-size: clamp(1.9rem, 4vw, 2.8rem);
}

.cta-actions {
  display: grid;
  gap: 0.75rem;
  margin-top: 1.5rem;
  max-width: 28rem;
}

.contact {
  padding: 4.2rem 0;
  background: var(--canvas);
}

.contact-grid {
  display: grid;
  gap: 1.4rem;
  margin-top: 1.6rem;
}

.form-card,
.aside-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 1.2rem;
  box-shadow: var(--shadow);
}

.form-grid {
  display: grid;
  gap: 0.85rem;
}

.field label {
  display: block;
  margin-bottom: 0.35rem;
  font-weight: 700;
  font-size: 0.95rem;
}

.field .control,
.field select,
.field textarea {
  width: 100%;
  min-height: 3rem;
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  font: inherit;
  background: #fff;
}

.field textarea { min-height: 7rem; resize: vertical; }

.field .errorlist {
  margin: 0.35rem 0 0;
  padding: 0;
  list-style: none;
  color: var(--coral-deep);
  font-size: 0.9rem;
}

.hp {
  position: absolute;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-note {
  margin-top: 0.8rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.messages {
  margin-bottom: 1rem;
}

.msg {
  padding: 0.85rem 1rem;
  border-radius: 12px;
  font-weight: 600;
}

.msg-ok {
  background: #e4f5eb;
  color: var(--field-deep);
}

.msg-err {
  background: #fdeceb;
  color: var(--coral-deep);
}

.aside-card h3 { margin-bottom: 0.5rem; }
.aside-card p { color: var(--muted); margin-bottom: 0.9rem; }

.contact-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.55rem;
}

.contact-list a {
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
}

.site-footer {
  background: #08151d;
  color: rgba(255, 255, 255, 0.86);
  padding: 3rem 0 2rem;
}

.footer-grid {
  display: grid;
  gap: 1.4rem;
}

.site-footer a { color: #fff; }
.site-footer h3 {
  font-size: 1rem;
  margin-bottom: 0.6rem;
}

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.4rem;
}

.footer-bottom {
  margin-top: 1.8rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
}

.wa-float {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 50;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 3.4rem;
  padding: 0.7rem 1rem 0.7rem 0.85rem;
  border-radius: 999px;
  background: #25d366;
  color: #fff;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.25);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
}

.wa-float svg { width: 1.55rem; height: 1.55rem; fill: currentColor; flex: 0 0 auto; }

@media (max-width: 640px) {
  .wa-float span { display: none; }
  .wa-float {
    width: 3.4rem;
    padding: 0;
    border-radius: 50%;
  }
}

.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (min-width: 720px) {
  .nav-toggle { display: none; }

  .header-bar {
    flex-wrap: nowrap;
  }

  .site-nav {
    display: flex;
    flex-direction: row;
    align-items: center;
    width: auto;
    margin-left: 1rem;
    padding: 0;
    gap: 0.95rem;
  }

  .header-cta {
    display: inline-flex;
  }

  .hero-actions,
  .cta-actions {
    grid-template-columns: auto auto;
    max-width: none;
  }

  .hero-actions .btn,
  .cta-actions .btn { width: auto; }

  .grid-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .module-map {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .dash-top {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .levels {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .footer-grid {
    grid-template-columns: 1.4fr 1fr 1fr;
  }
}

@media (min-width: 980px) {
  .hero-content {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 2rem;
    align-items: end;
    padding-top: 5.5rem;
  }

  .hero-stage { margin-top: 0; }

  .grid-cards {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .split {
    grid-template-columns: 1.05fr 0.95fr;
    gap: 2.2rem;
  }

  .split.reverse > :first-child { order: 2; }

  .module-map {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .contact-grid {
    grid-template-columns: 1.35fr 0.85fr;
    align-items: start;
  }

  .form-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .field-wide { grid-column: 1 / -1; }
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .btn:hover { transform: none; }
}
