:root {
  --background: #f6fbff;
  --foreground: #173147;
  --blue: #0f74bc;
  --green: #35aa4a;
  --navy: #102b43;
  --line: #d8e9f5;
  --muted: #5d7281;
  --white: #ffffff;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--background);
  color: var(--foreground);
  font-family: Arial, Helvetica, sans-serif;
}

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

.site-shell {
  min-height: 100vh;
  overflow: hidden;
}

.topbar {
  align-items: center;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 28px;
  justify-content: space-between;
  left: 0;
  padding: 16px clamp(20px, 5vw, 70px);
  position: sticky;
  right: 0;
  top: 0;
  z-index: 10;
}

.brand {
  align-items: center;
  display: flex;
  gap: 12px;
  min-width: 210px;
}

.brand-logo {
  height: 58px;
  object-fit: contain;
  width: 58px;
}

.brand strong,
.brand small {
  display: block;
  line-height: 1.1;
}

.brand small {
  color: var(--muted);
  font-size: 12px;
  margin-top: 4px;
}

.nav {
  align-items: center;
  display: flex;
  gap: clamp(14px, 3vw, 32px);
  justify-content: center;
}

.nav a {
  color: #29495e;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
}

.header-action,
.primary-button,
.secondary-button {
  border-radius: 4px;
  display: inline-flex;
  font-weight: 800;
  justify-content: center;
  min-height: 44px;
  padding: 13px 20px;
}

.header-action,
.primary-button {
  background: var(--green);
  color: var(--white);
}

.secondary-button {
  background: var(--white);
  border: 1px solid #bdd7e8;
  color: var(--navy);
}

.hero {
  background: #0f74bc;
  color: var(--white);
  display: grid;
  gap: 40px;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.65fr);
  min-height: 600px;
  padding: clamp(68px, 10vw, 120px) clamp(20px, 5vw, 70px) 140px;
  position: relative;
}

.hero::before {
  background:
    linear-gradient(105deg, rgba(13, 75, 119, 0.94), rgba(15, 116, 188, 0.7)),
    radial-gradient(circle at 85% 18%, rgba(53, 170, 74, 0.55), transparent 28%);
  content: "";
  inset: 0;
  position: absolute;
  z-index: 1;
}

.hero::after {
  background: var(--background);
  bottom: -1px;
  content: "";
  height: 78px;
  left: -4%;
  position: absolute;
  right: -4%;
  transform: skewY(-2deg);
  transform-origin: left bottom;
  z-index: 2;
}

.hero-slider {
  inset: 0;
  overflow: hidden;
  position: absolute;
  z-index: 0;
}

.slide {
  animation: heroFade 18s infinite;
  background-position: center;
  background-size: cover;
  filter: saturate(1.08);
  inset: 0;
  opacity: 0;
  position: absolute;
  transform: scale(1.06);
}

.slide-one {
  background-image: url("inube-media/slide-capacitacion.jpg");
}

.slide-two {
  animation-delay: 6s;
  background-image: url("og.png");
}

.slide-three {
  animation-delay: 12s;
  background-image: url("inube-media/slide-colocacion.jpg");
  background-position: center 25%;
}

@keyframes heroFade {
  0% {
    opacity: 0;
    transform: scale(1.06);
  }

  8%,
  31% {
    opacity: 1;
  }

  42%,
  100% {
    opacity: 0;
    transform: scale(1.14);
  }
}

.hero-content,
.hero-panel {
  position: relative;
  z-index: 3;
}

.eyebrow,
.section-kicker {
  color: var(--green);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero h1 {
  font-size: clamp(44px, 7vw, 82px);
  line-height: 0.95;
  margin: 18px 0;
  max-width: 860px;
}

.hero p {
  font-size: clamp(18px, 2vw, 24px);
  line-height: 1.55;
  max-width: 690px;
}

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

.hero-panel {
  align-self: center;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 8px;
  min-height: 320px;
  overflow: hidden;
  padding: 30px;
}

.hero-logo {
  display: block;
  height: auto;
  margin: 0 auto 22px;
  max-width: 190px;
  object-fit: contain;
  width: 100%;
}

.orbit {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(4, 76px);
  justify-content: center;
}

.orbit span {
  align-items: center;
  background: rgba(255, 255, 255, 0.92);
  border-radius: 50%;
  color: var(--blue);
  display: flex;
  font-size: 16px;
  font-weight: 900;
  height: 76px;
  justify-content: center;
  text-align: center;
  width: 76px;
}

.metric {
  background: var(--white);
  border-radius: 6px;
  color: var(--navy);
  margin-top: 24px;
  padding: 22px;
}

.metric strong {
  color: var(--green);
  display: block;
  font-size: 58px;
  line-height: 1;
}

.quick-access {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: -78px auto 60px;
  max-width: 1180px;
  padding: 0 20px;
  position: relative;
  z-index: 3;
}

.quick-card {
  background: var(--white);
  border-radius: 8px;
  box-shadow: 0 18px 50px rgba(16, 43, 67, 0.12);
  display: flex;
  gap: 18px;
  min-height: 190px;
  padding: 26px;
}

.quick-icon {
  background: linear-gradient(145deg, var(--blue), var(--green));
  border-radius: 50%;
  flex: 0 0 54px;
  height: 54px;
  position: relative;
  width: 54px;
}

.quick-icon::after {
  background: var(--white);
  border-radius: 2px;
  content: "";
  height: 22px;
  left: 18px;
  position: absolute;
  top: 16px;
  width: 18px;
}

.quick-card h2 {
  font-size: 22px;
  margin: 0 0 10px;
}

.quick-card p,
.section p,
.service-item p,
.value-list p {
  color: var(--muted);
  line-height: 1.65;
}

.quick-card a {
  color: var(--green);
  display: inline-block;
  font-weight: 900;
  margin-top: 8px;
}

.section {
  margin: 0 auto;
  max-width: 1180px;
  padding: 44px 20px 72px;
}

.parallax-band {
  align-items: center;
  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  color: var(--white);
  display: flex;
  min-height: 300px;
  padding: 64px max(20px, calc((100vw - 1180px) / 2 + 20px));
  position: relative;
}

.parallax-band::before {
  background:
    linear-gradient(90deg, rgba(16, 43, 67, 0.92), rgba(15, 116, 188, 0.58)),
    rgba(16, 43, 67, 0.4);
  content: "";
  inset: 0;
  position: absolute;
}

.parallax-band div {
  max-width: 640px;
  position: relative;
  z-index: 1;
}

.parallax-band span {
  color: #80e095;
  display: block;
  font-size: 13px;
  font-weight: 900;
  margin-bottom: 12px;
  text-transform: uppercase;
}

.parallax-band strong {
  display: block;
  font-size: clamp(30px, 5vw, 58px);
  line-height: 1.05;
}

.parallax-learning,
.parallax-services,
.parallax-channels {
  background-image: url("inube-media/slide-capacitacion.jpg");
}

.parallax-company,
.parallax-contact {
  background-image: url("og.png");
}

.parallax-programs,
.parallax-testimony {
  background-image: url("inube-media/slide-colocacion.jpg");
}

.section h2 {
  color: var(--navy);
  font-size: clamp(32px, 5vw, 54px);
  line-height: 1.05;
  margin: 10px 0 24px;
  max-width: 780px;
}

.intro-grid {
  display: grid;
  gap: 36px;
  grid-template-columns: minmax(0, 0.8fr) minmax(320px, 1fr);
}

.value-list {
  display: grid;
  gap: 14px;
}

.value-list article,
.service-item {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 22px;
}

.value-list h3,
.service-item h3 {
  margin: 0 0 8px;
}

.services {
  background: var(--white);
  max-width: none;
  padding-left: max(20px, calc((100vw - 1180px) / 2 + 20px));
  padding-right: max(20px, calc((100vw - 1180px) / 2 + 20px));
}

.service-grid,
.program-grid,
.testimonial-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 28px;
}

.service-item span {
  background: var(--green);
  border-radius: 50%;
  display: block;
  height: 14px;
  margin-bottom: 18px;
  width: 14px;
}

.program-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-left: 5px solid var(--green);
  border-radius: 8px;
  min-height: 220px;
  padding: 24px;
}

.program-card h3 {
  color: var(--navy);
  font-size: 22px;
  margin: 0 0 12px;
}

.program-card p {
  color: var(--muted);
  line-height: 1.65;
}

.program-card a {
  color: var(--blue);
  display: inline-block;
  font-weight: 900;
  margin-top: 10px;
}

.contact-band {
  background:
    linear-gradient(100deg, rgba(16, 43, 67, 0.96), rgba(15, 116, 188, 0.88)),
    #102b43;
  color: var(--white);
  display: grid;
  gap: 34px;
  grid-template-columns: minmax(0, 0.7fr) minmax(320px, 1fr);
  padding: 72px max(20px, calc((100vw - 1180px) / 2 + 20px));
}

.contact-band h2 {
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.1;
  margin: 10px 0 0;
}

.contact-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.contact-grid article {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  padding: 22px;
}

.contact-grid h3,
.contact-grid p {
  margin: 0;
}

.contact-grid p {
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.55;
  margin-top: 8px;
}

.contact-form {
  background: rgba(255, 255, 255, 0.96);
  border-radius: 8px;
  color: var(--navy);
  display: grid;
  gap: 18px;
  grid-column: 1 / -1;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding: 26px;
}

.form-field {
  display: grid;
  gap: 8px;
}

.form-field.full,
.contact-form button,
.form-success,
.form-error {
  grid-column: 1 / -1;
}

.form-field label {
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.form-field input,
.form-field textarea {
  background: #f6fbff;
  border: 1px solid #c7ddeb;
  border-radius: 6px;
  color: var(--navy);
  font: inherit;
  min-height: 48px;
  padding: 13px 14px;
  width: 100%;
}

.form-field textarea {
  min-height: 130px;
  resize: vertical;
}

.contact-form button {
  background: var(--green);
  border: 0;
  border-radius: 4px;
  color: var(--white);
  cursor: pointer;
  font: inherit;
  font-weight: 900;
  min-height: 48px;
  padding: 14px 22px;
}

.form-success,
.form-error {
  border-radius: 6px;
  font-weight: 800;
  line-height: 1.5;
  margin: 0;
  padding: 14px 16px;
}

.form-success {
  background: #e8f8ed;
  border: 1px solid #bde8c8;
  color: #146526;
}

.form-error {
  background: #fff3f0;
  border: 1px solid #ffc1b8;
  color: #8a1f10;
}

.contact-map {
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  grid-column: 1 / -1;
  min-height: 360px;
  overflow: hidden;
}

.contact-map iframe {
  border: 0;
  display: block;
  height: 360px;
  width: 100%;
}

.channels {
  text-align: center;
}

.channels h2 {
  margin-left: auto;
  margin-right: auto;
}

.channel-row,
.resource-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 30px;
}

.channel-row {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.channel-row span,
.resource-grid a {
  align-items: center;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--navy);
  display: flex;
  font-weight: 900;
  justify-content: center;
  min-height: 100px;
  padding: 18px;
  text-align: center;
}

.resource-grid a {
  color: var(--blue);
  justify-content: flex-start;
  min-height: auto;
  padding: 22px;
}

.testimonials {
  background: #edf7fb;
  max-width: none;
  padding-left: max(20px, calc((100vw - 1180px) / 2 + 20px));
  padding-right: max(20px, calc((100vw - 1180px) / 2 + 20px));
}

.testimonial-card {
  background: var(--white);
  border-radius: 8px;
  box-shadow: 0 12px 35px rgba(16, 43, 67, 0.08);
  padding: 26px;
}

.testimonial-card img {
  border-radius: 50%;
  height: 76px;
  object-fit: cover;
  width: 76px;
}

.testimonial-card p {
  color: var(--muted);
  line-height: 1.7;
}

.testimonial-card h3 {
  margin: 18px 0 4px;
}

.testimonial-card span {
  color: var(--blue);
  font-weight: 800;
}

.resources {
  padding-bottom: 54px;
}

.footer {
  background: #102b43;
  color: var(--white);
  display: grid;
  gap: 30px;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.45fr);
  padding: 54px max(20px, calc((100vw - 1180px) / 2 + 20px)) 34px;
}

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

.footer p {
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.6;
}

.copyright {
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  grid-column: 1 / -1;
  padding-top: 22px;
}

@media (max-width: 900px) {
  .topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .nav {
    flex-wrap: wrap;
    justify-content: flex-start;
  }

  .hero,
  .intro-grid,
  .quick-access,
  .service-grid,
  .program-grid,
  .contact-band,
  .testimonial-grid,
  .resource-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-bottom: 118px;
  }

  .orbit {
    grid-template-columns: repeat(2, 72px);
  }

  .orbit span {
    font-size: 15px;
    height: 72px;
    width: 72px;
  }

  .parallax-band {
    background-attachment: scroll;
    min-height: 240px;
  }

  .channel-row,
  .contact-form {
    grid-template-columns: 1fr;
  }

  .footer {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 540px) {
  .topbar {
    gap: 16px;
    padding: 14px 18px;
  }

  .brand {
    min-width: 0;
  }

  .nav a {
    font-size: 12px;
  }

  .hero h1 {
    font-size: 40px;
  }

  .hero-logo {
    max-width: 150px;
  }

  .quick-card {
    flex-direction: column;
  }

  .contact-grid,
  .channel-row {
    grid-template-columns: 1fr;
  }

  .contact-map,
  .contact-map iframe {
    min-height: 300px;
  }

  .contact-map iframe {
    height: 300px;
  }
}
