:root {
  --bg: #112a42;
  --surface: #ffffff;
  --surface-2: #edf4fb;
  --ink: #122238;
  --text: #eaf2fb;
  --muted: #607086;
  --line: rgba(18, 34, 56, 0.13);
  --blue: #1d5fae;
  --blue-2: #163f73;
  --teal: #128b8a;
  --violet: #6548d7;
  --green: #1d8f72;
  --amber: #d6a13a;
  --shadow: 0 16px 38px rgba(27, 58, 96, 0.12);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 14% 8%, rgba(62, 192, 186, 0.42), transparent 31%),
    radial-gradient(circle at 88% 4%, rgba(123, 97, 255, 0.34), transparent 28%),
    linear-gradient(135deg, #0f2238 0%, #17636f 46%, #243063 100%);
  background-attachment: fixed;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px clamp(18px, 5vw, 64px);
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(16px);
  position: sticky;
  top: 0;
  z-index: 10;
}

.brand {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  gap: 12px;
  color: var(--ink);
  font-weight: 900;
}

.brand-logo {
  display: block;
  width: min(230px, 42vw);
  max-height: 42px;
  object-fit: contain;
}

.brand-mark {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background:
    linear-gradient(135deg, var(--blue), var(--teal));
  box-shadow: 0 10px 24px rgba(29, 95, 174, 0.22);
}

nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  color: #51647a;
  font-size: 14px;
  font-weight: 850;
}

nav a {
  padding: 10px 13px;
  border: 1px solid transparent;
  border-radius: 8px;
}

nav a:hover {
  color: var(--blue);
  background: rgba(31, 116, 255, 0.08);
}

nav a.active {
  color: #ffffff;
  background: var(--blue-2);
  box-shadow: 0 10px 22px rgba(29, 95, 174, 0.22);
}

nav a.nav-cta {
  color: var(--blue-2);
  border-color: rgba(29, 95, 174, 0.22);
  background: rgba(255, 255, 255, 0.72);
}

nav a.nav-cta.active {
  color: #ffffff;
  border-color: transparent;
  background: var(--teal);
}

.page-shell {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 44px 0 58px;
}

.hero {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(26px, 5vw, 64px);
  align-items: center;
}

.hero-bg {
  position: relative;
  min-height: clamp(410px, 55vh, 610px);
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: clamp(30px, 6vw, 70px);
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 255, 255, 0.86) 43%, rgba(255, 255, 255, 0.2) 78%),
    var(--hero-bg);
  background-position: center;
  background-size: cover;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.home-title-block {
  padding: clamp(18px, 4vw, 42px) 0 12px;
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 8px;
  background: var(--teal);
}

.hero-bg .hero-copy {
  position: relative;
  max-width: 780px;
  z-index: 1;
}

.hero-bg h1 {
  margin-bottom: 18px;
  max-width: 820px;
  color: var(--ink);
  font-size: 64px;
  text-wrap: balance;
}

.hero-title {
  display: grid;
  gap: 8px;
  max-width: 1040px;
  margin-bottom: 0;
  color: #f7fbff;
}

.title-main,
.title-rest,
.title-accent {
  display: block;
}

.title-main {
  width: fit-content;
  color: #ffffff;
  font-weight: 950;
}

.title-rest {
  color: #dce9f8;
  font-size: 46px;
  font-weight: 800;
}

.title-accent {
  display: inline;
  color: #92e2dc;
  font-weight: 950;
  text-shadow: none;
}

.title-accent::after {
  content: none;
}

.hero-bg p:not(.eyebrow) {
  max-width: 650px;
  margin-bottom: 0;
  color: #31465f;
  font-weight: 650;
}

.build-note {
  max-width: 860px;
  margin: 16px auto 0;
  text-align: center;
  color: rgba(235, 245, 255, 0.72);
  font-size: 12px;
  font-weight: 650;
  line-height: 1.55;
}

.eyebrow {
  width: fit-content;
  margin: 0 0 14px;
  padding: 7px 10px;
  color: #075e69;
  background: rgba(0, 183, 177, 0.13);
  border: 1px solid rgba(0, 183, 177, 0.24);
  border-radius: 6px;
  font-size: 11px;
  font-weight: 950;
  letter-spacing: 0;
  text-transform: uppercase;
}

.section-kicker {
  display: block;
  margin-bottom: 10px;
  color: var(--teal);
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 680px;
  margin-bottom: 18px;
  font-size: 64px;
  line-height: 0.98;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 10px;
  color: var(--ink);
  font-size: 23px;
  line-height: 1.12;
}

h3 {
  margin-bottom: 10px;
  color: var(--ink);
  font-size: 26px;
  line-height: 1.1;
}

p {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.6;
}

.price-line {
  width: fit-content;
  margin-top: 28px;
  padding: 18px 22px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow);
}

.price-line strong {
  display: block;
  color: var(--ink);
  font-size: 38px;
  line-height: 1;
}

.price-line span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
}

.hero-image,
.module-page img {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.hero-image img,
.module-page img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.quick-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 34px;
}

.quick-grid article,
.cta-band,
.module-page {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.75);
  border-radius: 20px;
  box-shadow: var(--shadow);
}

.quick-grid article {
  padding: 24px;
}

.quick-grid p,
.cta-band p {
  margin-bottom: 0;
  font-size: 15px;
}

.module-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 22px;
}

.module-card {
  position: relative;
  display: grid;
  gap: 14px;
  min-height: 254px;
  overflow: hidden;
  padding: 22px;
  color: var(--ink);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(247, 251, 255, 0.94)),
    var(--card-bg);
  background-position: center;
  background-size: cover;
  border: 1px solid var(--module-border);
  border-radius: 8px;
  box-shadow: 0 12px 28px rgba(27, 58, 96, 0.1);
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.module-card:nth-child(1) {
  --module-accent: var(--blue);
  --module-accent-2: #5fa7ff;
  --module-border: rgba(95, 167, 255, 0.34);
  --module-rule: rgba(29, 95, 174, 0.52);
  --card-bg: url("assets/hero-capacitacion-ia.webp");
}

.module-card:nth-child(2) {
  --module-accent: var(--teal);
  --module-accent-2: #55d1c8;
  --module-border: rgba(85, 209, 200, 0.34);
  --module-rule: rgba(18, 139, 138, 0.52);
  --card-bg: url("assets/automatizacion-flujos-aeroespacial.webp");
}

.module-card:nth-child(3) {
  --module-accent: var(--violet);
  --module-accent-2: #a892ff;
  --module-border: rgba(168, 146, 255, 0.34);
  --module-rule: rgba(101, 72, 215, 0.52);
  --card-bg: url("assets/prototipo-erp-aeroespacial.webp");
}

.module-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: var(--module-accent);
}

.module-card::after {
  content: none;
}

.module-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 40px rgba(26, 69, 126, 0.16);
}

.module-card span {
  position: relative;
  z-index: 1;
  width: fit-content;
  color: var(--module-accent);
  background: transparent;
  padding: 0;
  font-size: 11px;
  font-weight: 950;
  letter-spacing: 0;
  text-transform: uppercase;
}

.module-card h2,
.module-card p,
.module-card strong {
  position: relative;
  z-index: 1;
}

.module-card h2 {
  margin-bottom: 0;
  max-width: 280px;
}

.module-card p {
  margin-bottom: 0;
  max-width: 320px;
  color: #4b5f76;
  font-size: 15px;
}

.module-meta {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 6px;
  margin: 4px 0 0;
  padding: 0 0 0 16px;
  list-style: disc;
}

.module-meta li {
  min-height: 0;
  display: list-item;
  padding: 0;
  color: #25384e;
  background: transparent;
  border: 0;
  border-radius: 0;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.3;
}

.module-card strong {
  align-self: end;
  width: fit-content;
  color: var(--module-accent);
  background: transparent;
  padding: 0 0 4px;
  border-bottom: 2px solid var(--module-rule);
  border-radius: 0;
  font-size: 14px;
  box-shadow: none;
}

.cta-band {
  margin-top: 14px;
  padding: 24px;
  display: grid;
  grid-template-columns: 0.7fr 1fr;
  gap: 24px;
  align-items: center;
}

.cta-band h2 {
  margin-bottom: 0;
}

.info-strip {
  position: relative;
  margin-top: 26px;
  padding: 30px 0;
  display: grid;
  grid-template-columns: 0.65fr 1fr;
  gap: 28px;
  align-items: start;
  overflow: visible;
  background: transparent;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  box-shadow: none;
}

.info-strip::before {
  content: none;
}

.info-strip h2 {
  margin-bottom: 0;
}

.info-strip ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.info-strip li {
  padding: 12px 14px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(18, 34, 56, 0.09);
  border-radius: 8px;
  font-size: 15px;
  line-height: 1.45;
}

.info-strip strong {
  color: var(--ink);
}

.info-strip p {
  margin-bottom: 0;
  font-size: 15px;
}

.detail-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
}

.detail-list div {
  padding: 14px;
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid rgba(18, 34, 56, 0.09);
  border-radius: 8px;
}

.detail-list dt {
  margin-bottom: 5px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 950;
}

.detail-list dd {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.gantt-card {
  margin-top: 18px;
  padding: 28px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 22px;
  box-shadow: var(--shadow);
}

.gantt-title {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
}

.gantt-title h2,
.gantt-title .eyebrow {
  margin-bottom: 0;
}

.gantt-title span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 850;
}

.gantt-scale {
  display: grid;
  grid-template-columns: 112px 92px 190px repeat(10, minmax(22px, 1fr));
  gap: 8px;
  margin-bottom: 10px;
  color: #6a7f96;
  font-size: 12px;
  font-weight: 900;
}

.gantt-scale span:nth-child(n + 4) {
  text-align: center;
}

.gantt-row {
  display: grid;
  grid-template-columns: 112px 92px 190px 1fr;
  grid-template-areas:
    "time duration topic line"
    "time duration detail detail";
  gap: 7px 8px;
  align-items: center;
  padding: 11px 0;
  border-top: 1px solid rgba(16, 32, 51, 0.09);
}

.gantt-time {
  grid-area: time;
  color: var(--ink);
  font-size: 12px;
  font-weight: 950;
}

.gantt-duration {
  grid-area: duration;
  width: fit-content;
  padding: 6px 9px;
  color: #ffffff;
  background: var(--blue);
  border-radius: 999px;
  font-size: 12px;
  line-height: 1;
}

.gantt-topic {
  grid-area: topic;
  color: var(--ink);
  font-size: 13px;
  font-weight: 900;
}

.gantt-detail {
  grid-area: detail;
  margin: 0;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.35;
}

.gantt-line {
  grid-area: line;
  display: grid;
  grid-template-columns: repeat(36, minmax(0, 1fr));
  height: 28px;
  padding: 3px;
  background:
    repeating-linear-gradient(90deg, rgba(16, 32, 51, 0.08) 0 1px, transparent 1px 10%),
    #edf4fb;
  border: 1px solid rgba(16, 32, 51, 0.11);
  border-radius: 999px;
}

.gantt-line b {
  grid-column: var(--start) / var(--end);
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  white-space: nowrap;
  color: #ffffff;
  background: var(--blue);
  border-radius: 999px;
  font-size: 10.5px;
  font-weight: 950;
  line-height: 1;
  min-width: 52px;
  padding: 0 7px;
}

.gantt-line.lunch b {
  color: #4a2a00;
  background: #f0d58a;
}

.simple-page {
  min-height: calc(100vh - 68px);
  display: grid;
  align-items: center;
  gap: 14px;
}

.module-page {
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  gap: 32px;
  align-items: center;
  padding: clamp(24px, 4vw, 42px);
}

.module-page h1 {
  font-size: 54px;
}

.signup-layout {
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  gap: 32px;
  align-items: start;
}

.signup-copy {
  padding: 18px 0 0;
}

.signup-copy h1 {
  color: #f7fbff;
  font-size: 58px;
}

.signup-copy p {
  color: #d7e4f4;
}

.signup-notes {
  display: grid;
  gap: 10px;
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
}

.signup-notes li {
  padding: 13px 14px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(18, 34, 56, 0.09);
  border-radius: 8px;
  font-size: 15px;
  font-weight: 750;
}

.signup-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  padding: 24px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(18, 34, 56, 0.11);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.signup-form label {
  display: grid;
  gap: 7px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 850;
}

.form-row-full {
  grid-column: 1 / -1;
}

.signup-form input,
.signup-form select,
.signup-form textarea {
  width: 100%;
  min-width: 0;
  padding: 12px 13px;
  color: var(--ink);
  background: #ffffff;
  border: 1px solid rgba(18, 34, 56, 0.16);
  border-radius: 6px;
  font: inherit;
  font-weight: 550;
}

.signup-form textarea {
  resize: vertical;
}

.signup-form input:focus,
.signup-form select:focus,
.signup-form textarea:focus {
  border-color: var(--teal);
  outline: 3px solid rgba(18, 139, 138, 0.16);
}

.primary-button {
  width: fit-content;
  min-height: 44px;
  padding: 0 16px;
  color: #ffffff;
  background: var(--blue-2);
  border: 0;
  border-radius: 8px;
  font: inherit;
  font-size: 15px;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 12px 24px rgba(29, 95, 174, 0.16);
}

.primary-button:hover {
  filter: brightness(1.04);
}

.form-status {
  align-self: center;
  margin: 0;
  color: var(--teal);
  font-size: 14px;
  font-weight: 800;
}

.forms-panel {
  min-height: 540px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(18, 34, 56, 0.11);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.forms-placeholder {
  display: grid;
  align-content: center;
  gap: 16px;
  min-height: 540px;
  padding: 34px;
}

.forms-placeholder h2 {
  margin-bottom: 0;
  font-size: 34px;
}

.forms-placeholder p {
  max-width: 620px;
  margin-bottom: 6px;
}

.forms-embed {
  display: block;
  width: 100%;
  min-height: 720px;
  border: 0;
}

@media (max-width: 860px) {
  .site-header {
    align-items: stretch;
    flex-direction: column;
    gap: 12px;
    padding: 12px 14px 10px;
    position: static;
  }

  .brand {
    justify-content: center;
    width: 100%;
  }

  nav {
    width: 100%;
    flex-wrap: nowrap;
    gap: 6px;
    overflow-x: auto;
    padding: 2px 0 8px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  nav::-webkit-scrollbar {
    display: none;
  }

  nav a {
    flex: 0 0 auto;
    padding: 9px 10px;
    white-space: nowrap;
    font-size: 13px;
  }

  .hero,
  .hero-bg,
  .quick-grid,
  .module-grid,
  .cta-band,
  .info-strip,
  .module-page,
  .gantt-title {
    grid-template-columns: 1fr;
  }

  .hero-bg {
    min-height: 430px;
    padding: 28px;
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.52) 0%, rgba(255, 255, 255, 0.96) 68%),
      var(--hero-bg);
    background-position: center;
    align-items: end;
  }

  .hero-bg h1 {
    font-size: 42px;
  }

  .title-rest {
    font-size: 30px;
  }

  .home-title-block {
    padding: 8px 0 10px;
  }

  .gantt-scale {
    display: none;
  }

  .gantt-row {
    grid-template-columns: 1fr;
    grid-template-areas:
      "time"
      "duration"
      "topic"
      "detail"
      "line";
    gap: 7px;
    padding: 14px 0;
  }

  .page-shell {
    width: min(100% - 28px, 720px);
    padding-top: 30px;
  }

  h1,
  .signup-copy h1,
  .module-page h1 {
    font-size: 42px;
  }

  .brand-logo {
    width: min(210px, 78vw);
    max-height: 40px;
  }

  .detail-list,
  .signup-form,
  .signup-layout {
    grid-template-columns: 1fr;
  }


  .forms-panel,
  .forms-placeholder {
    min-height: 460px;
  }

  .forms-placeholder {
    padding: 24px;
  }
}
