:root {
  --blue: #004ba1;
  --gold: #ffbb00;
  --gold-alt: #ffb700;
  --ink: #061425;
  --footer: #061425;
  --footer-bottom: #030a12;
  --white: #ffffff;
  --text: #061425;
  --max: 1170px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: "Open Sans", Helvetica, Arial, sans-serif;
  font-size: 14px;
  color: var(--text);
  background: var(--white);
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}

.container {
  width: min(100% - 30px, var(--max));
  margin-inline: auto;
}

/* Header */
.site-header {
  position: absolute;
  inset: 0 0 auto 0;
  z-index: 60;
  padding: 16px 0;
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}

.header-logo {
  flex-shrink: 0;
}

.header-logo img {
  height: 48px;
  width: auto;
}

.nav-desktop {
  display: block;
}

.nav-desktop ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-desktop > ul > li {
  position: relative;
}

.nav-desktop > ul > li > a {
  display: block;
  font-family: "Roboto", Helvetica, Arial, sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  color: #fff;
  padding: 10px 12px;
  white-space: nowrap;
}

.nav-desktop > ul > li > a:hover,
.nav-desktop > ul > li > a.is-active,
.nav-desktop .has-sub:hover > a,
.nav-desktop .has-sub:focus-within > a {
  color: var(--gold);
}

.nav-desktop .nav-cta {
  background: var(--gold);
  color: #061425 !important;
  border-radius: 30px;
  padding: 10px 20px;
  margin-left: 8px;
}

.nav-desktop .nav-cta:hover,
.nav-desktop .nav-cta.is-active {
  background: #e0a400;
  color: #061425 !important;
}

.nav-desktop .has-sub > a::after {
  content: "";
  display: inline-block;
  width: 0;
  height: 0;
  margin-left: 6px;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid currentColor;
  vertical-align: 2px;
}

.nav-desktop .nav-sub {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 240px;
  background: #fff;
  box-shadow: 0 12px 28px rgba(6, 20, 37, 0.18);
  padding: 10px 0;
  display: block;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
  z-index: 70;
}

.nav-desktop .has-sub:hover .nav-sub,
.nav-desktop .has-sub:focus-within .nav-sub,
.nav-desktop .has-sub.is-open .nav-sub {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-desktop .nav-sub a {
  display: block;
  font-family: "Roboto", Helvetica, Arial, sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  padding: 9px 18px;
  text-transform: none;
  white-space: nowrap;
}

.nav-desktop .nav-sub a:hover,
.nav-desktop .nav-sub a.is-active {
  color: var(--blue);
  background: #f4f7fb;
}

.menu-burger {
  display: none;
  width: 32px;
  height: 22px;
  flex-direction: column;
  justify-content: space-between;
  z-index: 60;
}

.menu-burger span {
  display: block;
  height: 3px;
  background: #fff;
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease, background 0.25s ease;
}

.nav-open .menu-burger span:nth-child(1) {
  transform: translateY(9.5px) rotate(45deg);
}

.nav-open .menu-burger span:nth-child(2) {
  opacity: 0;
}

.nav-open .menu-burger span:nth-child(3) {
  transform: translateY(-9.5px) rotate(-45deg);
}

.nav-open .menu-burger span {
  background: #061425;
}

/* Overlay menu */
.nav-overlay {
  position: fixed;
  inset: 0 0 0 auto;
  width: min(50vw, 720px);
  background: #fff;
  z-index: 50;
  transform: translateX(100%);
  transition: transform 0.35s ease, visibility 0.35s ease;
  display: flex;
  align-items: center;
  padding: 60px;
  visibility: hidden;
  pointer-events: none;
}

.nav-overlay::before {
  content: "";
  position: absolute;
  top: 0;
  right: 100%;
  width: 100vw;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}

.nav-open .nav-overlay {
  transform: translateX(0);
  visibility: visible;
  pointer-events: auto;
}

.nav-open .nav-overlay::before {
  opacity: 1;
  pointer-events: auto;
}

.nav-overlay nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-overlay nav a {
  display: block;
  font-family: "Roboto", Helvetica, Arial, sans-serif;
  font-size: 32px;
  line-height: 48px;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--ink);
}

.nav-overlay nav a:hover,
.nav-overlay nav a.is-active {
  color: var(--blue);
}

.nav-overlay nav a.nav-highlight {
  color: #337ab7;
  font-size: 22px;
  padding-left: 20px;
  text-transform: none;
}

/* Hero */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-align: center;
  overflow: hidden;
  background:
    url("../assets/img/hero-1.jpg")
      center bottom / cover no-repeat;
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center bottom;
  z-index: 0;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.35) 100%);
  z-index: 1;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 120px 20px 140px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
}

.hero-logo {
  width: 379px;
  max-width: 80vw;
  height: auto;
}

.hero h1 {
  margin: 0;
  font-family: "Raleway", Helvetica, Arial, sans-serif;
  font-weight: 900;
  font-size: 48px;
  line-height: 60px;
  letter-spacing: 2px;
  color: #fff;
}

.hero-btn img {
  width: 248px;
  max-width: 80vw;
}

.hero-wave {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  width: 100%;
  height: 90px;
  z-index: 3;
}

@media (prefers-reduced-motion: reduce) {
  .hero-video {
    display: none;
  }
}

/* Sections */
.section {
  padding: 35px 0;
  background: #fff;
}

.section-title {
  margin: 0 0 10px;
  font-family: "Roboto", Helvetica, Arial, sans-serif;
  font-size: 26px;
  line-height: 1.2;
  font-weight: 800;
  text-transform: uppercase;
  text-align: center;
  color: var(--ink);
}

.section-title::after {
  content: "";
  display: block;
  width: 50px;
  height: 3px;
  background: var(--blue);
  margin: 14px auto 0;
}

.lead {
  max-width: 980px;
  margin: 18px auto 0;
  text-align: justify;
  text-align-last: center;
  font-size: 17px;
  line-height: 1.7;
}

/* Services */
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 25px;
  margin-top: 10px;
}

.service-card {
  min-height: 300px;
  background: var(--blue);
  border-radius: 8px;
  box-shadow:
    inset 0 0 0 8px var(--blue),
    inset 0 0 0 10px #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 35px 18px;
  text-align: center;
  cursor: pointer;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.service-card:hover {
  transform: translateY(-3px);
  box-shadow:
    inset 0 0 0 8px var(--blue),
    inset 0 0 0 10px #fff,
    0 10px 24px rgba(6, 20, 37, 0.18);
}

.service-card img {
  width: auto;
  max-height: 92px;
  margin: 0 auto 22px;
}

.service-card h3 {
  margin: 0;
  font-family: "Roboto", Helvetica, Arial, sans-serif;
  font-weight: 800;
  color: #fff;
  text-transform: uppercase;
  font-size: 22px;
  line-height: 1.25;
}

.service-card h3 span {
  color: var(--gold);
}

/* Partners */
.partners {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  align-items: center;
  justify-items: center;
  padding: 10px 0 20px;
}

.partners img {
  max-height: 90px;
  width: auto;
}

/* Footer */
.site-footer {
  background: var(--footer);
  color: #fff;
  padding: 45px 0 20px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 2fr;
  gap: 30px;
}

.footer-brand {
  text-align: center;
}

.footer-brand img {
  margin: 0 auto 18px;
  max-width: 180px;
}

.socials {
  display: flex;
  justify-content: center;
  gap: 16px;
}

.socials a {
  color: #fff;
  display: inline-flex;
}

.socials a:hover {
  opacity: 0.75;
}

.footer-col h3 {
  margin: 0 0 16px;
  font-family: "Roboto", Helvetica, Arial, sans-serif;
  font-size: 16px;
  font-weight: 800;
  color: var(--blue);
}

.footer-col h3::after {
  content: "";
  display: block;
  width: 100%;
  height: 1px;
  background: var(--gold-alt);
  margin-top: 10px;
}

.footer-menu {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-menu a {
  display: block;
  font-size: 14px;
  line-height: 26px;
  color: #fff;
}

.footer-menu a:hover {
  color: var(--gold);
}

.contact-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 24px;
}

.contact-block {
  margin: 0 0 14px;
}

.contact-block p {
  margin: 4px 0;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  color: #fff;
  font-size: 14px;
}

.contact-block svg {
  flex-shrink: 0;
  margin-top: 2px;
}

.footer-credit {
  background: var(--footer-bottom);
  padding: 15px 0;
  text-align: center;
}

.footer-credit img {
  margin: 0 auto;
  max-height: 28px;
  width: auto;
}

/* Chat */
.chat-widget {
  position: fixed;
  right: 25px;
  bottom: 25px;
  z-index: 70;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}

.chat-channels {
  display: none;
  flex-direction: column;
  gap: 10px;
}

.chat-widget.is-open .chat-channels {
  display: flex;
}

.chat-btn {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
}

.chat-btn.whatsapp {
  background: #49e670;
}

.chat-btn.messenger {
  background: #1e88e5;
}

.chat-toggle {
  position: relative;
}

.chat-label {
  position: absolute;
  right: 70px;
  top: 50%;
  transform: translateY(-50%);
  background: #fff;
  color: #dd0000;
  padding: 8px 12px;
  border-radius: 6px;
  white-space: nowrap;
  font-size: 13px;
  font-weight: 600;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12);
}

.chat-label::after {
  content: "";
  position: absolute;
  right: -6px;
  top: 50%;
  transform: translateY(-50%);
  border: 6px solid transparent;
  border-left-color: #fff;
}

.chat-toggle-btn {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: #4f6aca;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
  animation: jump 1.4s ease-in-out infinite;
}

@keyframes jump {
  0%,
  100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-6px);
  }
}

/* Responsive */
@media (max-width: 1024px) {
  .nav-desktop {
    display: none;
  }

  .menu-burger {
    display: flex;
  }

  .header-inner {
    justify-content: space-between;
  }

  .hero h1 {
    font-size: 35px;
    line-height: 48px;
  }

  .services-grid,
  .partners,
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .nav-overlay {
    width: 100%;
    padding: 50px 28px;
  }

  .nav-overlay nav a {
    font-size: 22px;
    line-height: 36px;
  }

  .nav-overlay nav a.nav-highlight {
    padding-left: 0;
    font-size: 18px;
  }

  .hero {
    min-height: 100svh;
  }

  .hero h1 {
    font-size: 22px;
    line-height: 32px;
    letter-spacing: 0;
  }

  .hero-logo {
    width: 280px;
  }

  .hero-btn img {
    width: 260px;
  }

  .services-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }

  .service-card {
    min-height: 250px;
    padding: 24px 12px;
  }

  .service-card h3 {
    font-size: 15px;
    line-height: 20px;
  }

  .partners {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid,
  .contact-cols {
    grid-template-columns: 1fr;
  }

  .site-header {
    background: transparent;
  }
}

/* Inner pages */
.page-hero {
  position: relative;
  min-height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  background: #004ba1 center / cover no-repeat;
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(6, 20, 37, 0.28);
}

.page-hero h1 {
  position: relative;
  z-index: 1;
  margin: 70px 20px 40px;
  font-family: "Raleway", Helvetica, Arial, sans-serif;
  font-weight: 900;
  font-size: 42px;
  letter-spacing: 1px;
  color: #fff;
}

.prose {
  max-width: 980px;
  margin: 0 auto;
  font-size: 17px;
  line-height: 1.7;
  text-align: justify;
}

.prose p {
  margin: 0 0 16px;
}

.prose.center,
.center {
  text-align: center;
}

.icon-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 20px;
}

.icon-box h3 {
  margin: 0 0 10px;
  font-family: "Roboto", Helvetica, Arial, sans-serif;
  font-size: 20px;
  font-weight: 800;
  color: var(--ink);
}

.icon-box p,
.icon-box li {
  font-size: 16px;
  line-height: 1.55;
}

.icon-box img {
  width: 46px;
  height: 46px;
  margin-bottom: 12px;
}

.icon-box ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.content-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 24px;
}

.content-cols.cols-2 {
  grid-template-columns: repeat(2, 1fr);
}

.content-cols h3 {
  margin: 0 0 12px;
  font-family: "Roboto", Helvetica, Arial, sans-serif;
  font-size: 18px;
  font-weight: 800;
  color: var(--ink);
}

.content-cols h3::after {
  content: "";
  display: block;
  width: 40px;
  height: 2px;
  background: var(--blue);
  margin-top: 8px;
}

.content-cols ul {
  margin: 0;
  padding-left: 18px;
  font-size: 15px;
  line-height: 1.7;
}

.cta-band {
  background:
    linear-gradient(rgba(6, 20, 37, 0.45), rgba(6, 20, 37, 0.45)),
    url("../assets/img/cta.png") center / cover no-repeat;
  color: #fff;
  padding: 55px 0;
}

.inner-page .cta-band {
  background:
    linear-gradient(rgba(6, 20, 37, 0.45), rgba(6, 20, 37, 0.45)),
    url("../assets/img/cta.png") center / cover no-repeat;
}

.cta-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 30px;
  align-items: center;
}

.cta-band h2 {
  margin: 0 0 18px;
  font-family: "Roboto", Helvetica, Arial, sans-serif;
  font-size: 26px;
  font-weight: 800;
  color: #fff;
}

.btn-gold {
  display: inline-block;
  background: var(--gold);
  color: #061425;
  font-weight: 700;
  border-radius: 30px;
  padding: 12px 28px;
}

.btn-gold:hover {
  background: #e0a400;
}

.cta-band img {
  max-width: 280px;
  margin-left: auto;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-top: 20px;
}

.gallery-grid a {
  display: block;
  aspect-ratio: 1;
  overflow: hidden;
}

.gallery-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.course-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 20px;
}

.course-card {
  background: var(--gold);
  color: #061425;
  min-height: 280px;
  padding: 28px 18px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
}

.course-card img {
  width: 72px;
  height: 72px;
  margin-bottom: 14px;
}

.course-card h3 {
  margin: 0 0 10px;
  font-family: "Roboto", Helvetica, Arial, sans-serif;
  font-size: 18px;
  font-weight: 800;
  text-transform: uppercase;
}

.course-card p {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
}

.contact-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border: 1px solid #e6e6e6;
}

.contact-card {
  padding: 24px 16px;
  text-align: center;
  border-right: 1px solid #e6e6e6;
}

.contact-card:nth-child(4n) {
  border-right: 0;
}

.contact-card img {
  width: 45px;
  height: 45px;
  margin: 0 auto 12px;
}

.contact-card h3 {
  margin: 0 0 8px;
  font-size: 16px;
  font-weight: 800;
}

.contact-card p {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  max-width: 760px;
  margin: 20px auto 0;
}

.form-grid .full {
  grid-column: 1 / -1;
}

.form-grid input,
.form-grid select,
.form-grid textarea {
  width: 100%;
  border: 0;
  border-bottom: 1px solid #cfcfcf;
  padding: 12px 8px;
  font: inherit;
  background: transparent;
}

.form-grid button {
  background: var(--blue);
  color: #fff;
  border-radius: 30px;
  padding: 12px 28px;
  font-weight: 700;
}

.form-grid button[disabled] {
  opacity: 0.65;
  cursor: wait;
}

.hp-sitio {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-status {
  margin: 0;
  min-height: 1.3em;
  font-size: 14px;
}

.form-status.is-ok {
  color: #1b7f46;
}

.form-status.is-err {
  color: #b42318;
}

.verify-frame {
  display: block;
  width: 100%;
  max-width: 760px;
  height: 420px;
  margin: 20px auto 0;
  border: 0;
}

.notice {
  max-width: 760px;
  margin: 16px auto 0;
  padding: 14px 16px;
  background: #f4f7fb;
  border-left: 4px solid var(--blue);
  font-size: 14px;
}

.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.86);
  z-index: 90;
  align-items: center;
  justify-content: center;
  padding: 30px;
}

.lightbox.is-open {
  display: flex;
}

.lightbox img {
  max-width: min(92vw, 1100px);
  max-height: 88vh;
}

@media (max-width: 1024px) {
  .icon-grid,
  .content-cols,
  .course-grid,
  .contact-cards,
  .cta-inner {
    grid-template-columns: 1fr 1fr;
  }

  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .page-hero h1 {
    font-size: 26px;
  }

  .icon-grid,
  .content-cols,
  .content-cols.cols-2,
  .course-grid,
  .contact-cards,
  .cta-inner,
  .form-grid,
  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .contact-card {
    border-right: 0;
    border-bottom: 1px solid #e6e6e6;
  }
}
