:root {
  --brand-navy: #082c4b;
  --brand-blue: #0d5c8a;
  --brand-teal: #1d9bb7;
  --brand-gold: #d9a441;
  --brand-sand: #f5efe6;
  --brand-ink: #112533;
  --brand-muted: #64748b;
  --brand-white: #ffffff;
  --brand-surface: #edf5f8;
  --shadow-soft: 0 18px 40px rgba(17, 37, 51, 0.08);
  --shadow-strong: 0 24px 52px rgba(17, 37, 51, 0.12);
  --radius-card: 1.3rem;
  --radius-button: 0.85rem;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  color: var(--brand-ink);
  background: linear-gradient(180deg, #f7fafb 0%, #eef3f7 100%);
  line-height: 1.7;
}

img {
  max-width: 100%;
  display: block;
}

main {
  background: linear-gradient(180deg, rgba(247, 250, 251, 0.96), rgba(238, 243, 247, 0.94));
}

h1, h2, h3, h4, h5, h6 {
  color: var(--brand-ink);
  line-height: 1.2;
  letter-spacing: -0.04em;
}

p {
  margin-bottom: 0;
}

main {
  overflow: hidden;
}

.site-navbar {
  background: rgba(8, 44, 75, 0.96);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  transition: background-color 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.site-navbar.scrolled {
  background: rgba(8, 44, 75, 0.98);
  box-shadow: 0 12px 30px rgba(8, 44, 75, 0.18);
  border-color: rgba(255, 255, 255, 0.12);
}

.navbar-brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  color: var(--brand-white);
  font-weight: 700;
  letter-spacing: 0.03em;
}

.navbar-brand:hover,
.footer-brand:hover {
  color: var(--brand-white);
  text-decoration: none;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 0.6rem;
  background: linear-gradient(135deg, var(--brand-gold), #f7d98d);
  color: var(--brand-navy);
  font-weight: 900;
  margin-right: 0.65rem;
}

.brand-text {
  font-size: 1.05rem;
}

.site-navbar .nav-link {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.7rem 0.9rem;
  border-radius: 0.7rem;
  transition: color 0.2s ease, background-color 0.2s ease;
}

.site-navbar .nav-link:hover,
.site-navbar .nav-link:focus,
.site-navbar .nav-link.active {
  color: var(--brand-white);
  background: rgba(255, 255, 255, 0.06);
}

.btn-primary {
  background: linear-gradient(135deg, var(--brand-blue), var(--brand-teal));
  border: none;
  padding: 0.8rem 1.45rem;
  font-weight: 700;
  border-radius: var(--radius-button);
  box-shadow: 0 16px 30px rgba(13, 92, 138, 0.22);
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.btn-primary:hover,
.btn-primary:focus {
  background: linear-gradient(135deg, var(--brand-navy), var(--brand-blue));
  transform: translateY(-2px);
  box-shadow: 0 20px 38px rgba(13, 92, 138, 0.28);
  filter: saturate(1.04);
}

.navbar .btn-primary {
  box-shadow: 0 12px 22px rgba(13, 92, 138, 0.24);
}

.btn-outline-light {
  border-radius: var(--radius-button);
  padding: 0.8rem 1.45rem;
  font-weight: 600;
  transition: transform 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

.btn-outline-light:hover,
.btn-outline-light:focus {
  transform: translateY(-2px);
}

.hero-section {
  position: relative;
  padding: 7rem 0 5rem;
  background:
    linear-gradient(120deg, rgba(8, 44, 75, 0.9), rgba(8, 44, 75, 0.72)),
    url('https://images.unsplash.com/photo-1586528116311-ad8dd3c8310d?auto=format&fit=crop&w=1600&q=80') center/cover no-repeat;
  color: var(--brand-white);
}

.hero-grid {
  min-height: 520px;
}

.hero-section .col-lg-7,
.hero-section .col-lg-5 {
  position: relative;
  z-index: 1;
}

.eyebrow {
  display: inline-block;
  margin-bottom: 1rem;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #cfe9f4;
}

.eyebrow-dark {
  color: var(--brand-blue);
}

.hero-section h1 {
  max-width: 620px;
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  line-height: 1.05;
  font-weight: 800;
  letter-spacing: -0.06em;
  margin-bottom: 1.25rem;
  color: var(--brand-white);
}

.lead {
  max-width: 620px;
  font-size: 1.1rem;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.8);
}

.hero-section .eyebrow {
  color: #cfe9f4;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin: 2rem 0 1.75rem;
}

.hero-pills {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  padding: 0;
  margin: 0;
}

.hero-pills li {
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.06);
  padding: 0.55rem 0.9rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.hero-panel {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 1.5rem;
  padding: 2rem;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(6px);
}

.panel-badge {
  display: inline-block;
  background: rgba(217, 164, 65, 0.16);
  border: 1px solid rgba(217, 164, 65, 0.35);
  color: #fdd782;
  border-radius: 999px;
  padding: 0.35rem 0.75rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-panel h3 {
  margin: 1.25rem 0 1.5rem;
  font-size: 2rem;
  font-weight: 700;
  color: var(--brand-white);
}

.panel-list {
  display: grid;
  gap: 1rem;
}

.panel-list div {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.panel-list strong {
  font-size: 1.4rem;
  color: var(--brand-white);
}

.panel-list span,
.panel-link {
  color: rgba(255, 255, 255, 0.8);
}

.panel-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1rem;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s ease, transform 0.2s ease;
}

.panel-link:hover,
.panel-link:focus {
  color: var(--brand-white);
  transform: translateX(3px);
}

.metrics-section {
  margin-top: -3rem;
  padding-bottom: 1rem;
}

.metric-card {
  background: var(--brand-white);
  border: 1px solid rgba(13, 92, 138, 0.1);
  border-radius: 1.1rem;
  padding: 1.5rem 1rem;
  box-shadow: 0 20px 40px rgba(17, 37, 51, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.metric-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 44px rgba(17, 37, 51, 0.1);
}

.metric-card strong {
  display: block;
  font-size: clamp(1.7rem, 3vw, 2.2rem);
  color: var(--brand-navy);
  margin-bottom: 0.25rem;
}

.metric-card span {
  color: var(--brand-muted);
  font-weight: 600;
}

.page-contact-hero {
  padding-top: 5rem;
  padding-bottom: 3rem;
}

.page-contact-hero h1 {
  max-width: 470px;
  font-size: clamp(2.4rem, 4vw, 4rem);
  margin-bottom: 1rem;
  color: var(--brand-navy);
}

.lead-dark {
  max-width: 560px;
  color: var(--brand-muted);
}

.btn-outline-navy {
  border: 1px solid rgba(8, 44, 75, 0.2);
  color: var(--brand-navy);
  background: transparent;
}

.btn-outline-navy:hover,
.btn-outline-navy:focus {
  background: var(--brand-navy);
  color: var(--brand-white);
  border-color: var(--brand-navy);
}

.section-block {
  padding: 6rem 0;
}

.section-block:nth-of-type(even):not(.certification-section):not(.cta-banner) {
  background: rgba(13, 92, 138, 0.025);
}

.section-block + .section-block {
  border-top: 1px solid rgba(13, 92, 138, 0.04);
}

.row.g-4 {
  --bs-gutter-y: 2.5rem;
  margin-top: 1rem;
}

.section-heading {
  max-width: 720px;
  margin-bottom: 2.25rem;
}

@media (max-width: 767.98px) {
  .row.g-4 {
    --bs-gutter-y: 1.5rem;
    margin-top: 0.5rem;
  }
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(2.1rem, 3vw, 3.15rem);
  font-weight: 800;
  letter-spacing: -0.05em;
}

.feature-card,
.program-card,
.contact-card {
  background: var(--brand-white);
  border: 1px solid rgba(13, 92, 138, 0.08);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-soft);
}

.feature-card {
  padding: 2rem 1.4rem;
  height: 100%;
}

.icon-wrap {
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(13, 92, 138, 0.08);
  color: var(--brand-blue);
  font-size: 1.3rem;
  margin-bottom: 1.2rem;
}

.feature-card h3 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.feature-card p {
  margin: 0;
  line-height: 1.8;
  color: var(--brand-muted);
}

.program-card {
  display: flex;
  flex-direction: column;
  padding: 1.8rem;
  height: 100%;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.program-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 48px rgba(17, 37, 51, 0.12);
  border-color: rgba(13, 92, 138, 0.18);
}

.program-visual {
  overflow: hidden;
  border-radius: 1rem;
  margin-bottom: 1.2rem;
  border: 1px solid rgba(13, 92, 138, 0.08);
}

.program-visual img {
  display: block;
  width: 100%;
  height: 220px;
  object-fit: cover;
  transition: transform 0.35s ease, filter 0.35s ease;
}

.program-card:hover .program-visual img {
  transform: scale(1.05);
  filter: saturate(1.08);
}

.program-card.active {
  background: linear-gradient(180deg, #0a3258 0%, #0d5c8a 100%);
  color: var(--brand-white);
  border-color: rgba(13, 92, 138, 0.2);
  box-shadow: 0 28px 52px rgba(8, 44, 75, 0.18);
}

.program-card.active h3,
.program-card.active p,
.program-card.active li,
.program-card.active a,
.program-card.active .program-tag {
  color: var(--brand-white);
}

.program-card.active .program-tag {
  background: rgba(255, 255, 255, 0.12);
  color: #f1d38f;
}

.program-tag {
  display: inline-block;
  background: rgba(217, 164, 65, 0.14);
  color: var(--brand-gold);
  border-radius: 999px;
  padding: 0.4rem 0.7rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: background-color 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

.program-card:hover .program-tag {
  background: rgba(217, 164, 65, 0.22);
  color: #8f6823;
  transform: translateX(2px);
}

.program-card h3 {
  margin: 1rem 0 0.8rem;
  font-size: 1.7rem;
  font-weight: 700;
}

.program-card p,
.program-card li {
  color: rgba(17, 37, 51, 0.76);
  line-height: 1.8;
}

.program-card.active p,
.program-card.active li,
.program-card.active a {
  color: rgba(255, 255, 255, 0.82);
}

.program-card.active a {
  color: var(--brand-white);
}

.program-card.active:hover a {
  color: #f6f4ef;
}

.hero-section h1,
.hero-section .lead,
.hero-panel h3,
.hero-panel strong,
.hero-panel span,
.panel-link,
.cta-inner,
.cta-inner h2,
.site-footer,
.site-footer h5,
.site-footer a,
.site-footer li,
.btn-arriba {
  color: var(--brand-white);
}

.program-details {
  display: grid;
  gap: 0.7rem;
  margin: 1rem 0 1.2rem;
}

.program-detail {
  display: flex;
  flex-direction: column;
  gap: 0.18rem;
  padding: 0.7rem 0.8rem;
  border-radius: 0.85rem;
  border: 1px solid rgba(13, 92, 138, 0.08);
  background: rgba(13, 92, 138, 0.04);
}

.detail-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(17, 37, 51, 0.62);
}

.program-detail strong {
  font-size: 0.96rem;
  color: var(--brand-navy);
  line-height: 1.5;
}

.program-card.active .program-detail {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.14);
}

.program-card.active .detail-label,
.program-card.active .program-detail strong {
  color: var(--brand-white);
}

.program-card ul {
  padding-left: 1.2rem;
  margin: 1rem 0 1.3rem;
}

.program-card a {
  color: var(--brand-blue);
  font-weight: 700;
  text-decoration: none;
  transition: color 0.25s ease, transform 0.25s ease;
}

.program-card > a:last-child {
  margin-top: auto;
  display: inline-block;
  width: fit-content;
}

.program-card:hover a {
  color: var(--brand-navy);
  transform: translateX(3px);
}

.certification-section {
  background: var(--brand-sand);
}

.certification-visual {
  position: relative;
  overflow: hidden;
  border-radius: 1.5rem;
  box-shadow: 0 25px 60px rgba(17, 37, 51, 0.12);
}

.certification-visual img {
  width: 100%;
  height: 100%;
  min-height: 420px;
  object-fit: cover;
}

.certification-list {
  display: grid;
  gap: 1rem;
  margin-top: 1.75rem;
}

.certification-list div {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-weight: 600;
  color: var(--brand-ink);
}

.certification-list i {
  color: #1d9bb7;
  font-size: 1.15rem;
}

.cta-banner {
  padding: 0 1rem;
}

.cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  background: linear-gradient(135deg, var(--brand-navy), var(--brand-blue));
  border-radius: 1.5rem;
  color: var(--brand-white);
  padding: 2rem 2.25rem;
  box-shadow: 0 28px 50px rgba(8, 44, 75, 0.18);
}

.cta-inner h2 {
  margin: 0;
  font-size: clamp(1.8rem, 3vw, 2.7rem);
  font-weight: 800;
  letter-spacing: -0.04em;
}

.site-footer {
  background: linear-gradient(180deg, #061d2f 0%, #041926 100%);
  color: rgba(255, 255, 255, 0.82);
  padding: 4rem 0 2rem;
}

.site-footer .footer-brand {
  margin-bottom: 1rem;
}

.footer-copy {
  max-width: 300px;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.9;
}

.site-footer h5 {
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.site-footer h5 {
  color: var(--brand-white);
  margin-bottom: 1rem;
  font-weight: 700;
}

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.7rem;
}

.footer-links a,
.footer-links li {
  color: rgba(255, 255, 255, 0.72);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-links a:hover,
.footer-links a:focus {
  color: var(--brand-white);
}

.footer-bottom {
  margin-top: 2.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
}

.contact-card {
  padding: 2rem;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(237, 245, 248, 0.9));
  border: 1px solid rgba(13, 92, 138, 0.08);
  box-shadow: var(--shadow-soft);
}

.contact-card .contact-item:hover {
  background: rgba(13, 92, 138, 0.02);
  border-radius: 0.8rem;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid rgba(17, 37, 51, 0.08);
}

.contact-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.contact-item i {
  width: 2.7rem;
  height: 2.7rem;
  border-radius: 0.85rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(13, 92, 138, 0.08);
  color: var(--brand-blue);
}

.contact-item label {
  display: block;
  font-size: 0.72rem;
  color: var(--brand-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.25rem;
}

.contact-item a,
.contact-item span {
  color: var(--brand-ink);
  text-decoration: none;
  font-weight: 600;
}

.btn-arriba {
  opacity: 0;
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 99;
  border: 2px solid var(--brand-blue);
  background: var(--brand-blue);
  color: white;
  outline: none;
  padding: 15px;
  border-radius: 50%;
  box-shadow: 0 18px 28px rgba(13, 92, 138, 0.28);
  transition: 0.5s;
  visibility: hidden;
}

.btn-arriba:hover {
  background: var(--brand-white);
  color: var(--brand-blue);
}

@media (max-width: 991.98px) {
  .hero-section {
    padding-top: 5.5rem;
  }

  .hero-grid {
    min-height: auto;
  }

  .hero-panel {
    margin-top: 2rem;
  }

  .cta-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 767.98px) {
  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .hero-pills {
    gap: 0.5rem;
  }

  .hero-pills li {
    width: 100%;
    text-align: center;
  }

  .metrics-section .row > [class*='col-'] {
    width: 50%;
    flex: 0 0 50%;
    max-width: 50%;
  }
}

@media (max-width: 575.98px) {
  .hero-actions,
  .site-footer .row,
  .section-heading {
    text-align: left;
  }

  .hero-section h1 {
    font-size: 2.5rem;
  }

  .metrics-section .row > [class*='col-'] {
    width: 100%;
    flex: 0 0 100%;
    max-width: 100%;
  }

  .contact-card,
  .hero-panel {
    padding: 1.25rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  * {
    animation: none !important;
    transition: none !important;
  }
}
