/* Variables de marca: azul corporativo, neutros y acento dorado. */
:root {
  --navy: #0b1f36;
  --navy-soft: #123452;
  --blue: #1d5f8f;
  --gold: #c8a24a;
  --gold-dark: #a9842c;
  --white: #ffffff;
  --off-white: #f7f9fc;
  --gray: #dfe5ec;
  --text: #203040;
  --muted: #667483;
  --shadow: 0 20px 45px rgba(11, 31, 54, 0.12);
  --radius: 8px;
  --header-height: 78px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
}

body {
  margin: 0;
  overflow-x: hidden;
  color: var(--text);
  font-family: Avenir, "Avenir Next", "Segoe UI", Arial, sans-serif;
  line-height: 1.6;
  background: var(--white);
}

body.menu-open {
  overflow: hidden;
}

body:not(.is-loaded) .site-header,
body:not(.is-loaded) .hero-content,
body:not(.is-loaded) .hero-visual {
  opacity: 0;
}

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

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

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

h1,
.footer-brand {
  font-family: "Perpetua Titling MT", Avenir, "Segoe UI", serif;
}

h1 {
  max-width: 950px;
  margin-bottom: 24px;
  color: var(--white);
  font-size: 3.3rem;
  line-height: 1.06;
  font-weight: 700;
  overflow-wrap: break-word;
}

h2 {
  margin-bottom: 18px;
  color: var(--navy);
  font-size: 3rem;
  line-height: 1.12;
  overflow-wrap: break-word;
}

h3 {
  margin-bottom: 10px;
  color: var(--navy);
  font-size: 1.2rem;
  line-height: 1.25;
}

p {
  margin-bottom: 16px;
}

.container {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

.section {
  padding: 96px 0;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  height: var(--header-height);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(11, 31, 54, 0.9);
  backdrop-filter: blur(16px);
}

.navbar {
  width: min(1180px, calc(100% - 40px));
  height: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  min-width: 0;
}

.brand-logo {
  width: 270px;
  height: auto;
  max-height: 66px;
  object-fit: contain;
  filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.14));
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 28px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-menu a {
  position: relative;
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.95rem;
  font-weight: 600;
}

.nav-menu a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -8px;
  width: 0;
  height: 2px;
  background: var(--gold);
  transition: width 0.2s ease;
}

.nav-menu a:hover,
.nav-menu a:focus-visible,
.nav-menu a.active {
  color: var(--white);
}

.nav-menu a:hover::after,
.nav-menu a:focus-visible::after,
.nav-menu a.active::after {
  width: 100%;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius);
  background: transparent;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: var(--white);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle.is-active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle.is-active span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.is-active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.hero {
  position: relative;
  min-height: calc(100vh - 42px);
  padding-top: calc(var(--header-height) + 72px);
  padding-bottom: 58px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--navy);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(115deg, rgba(11, 31, 54, 0.98), rgba(11, 31, 54, 0.78) 52%, rgba(29, 95, 143, 0.76)),
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0 1px, transparent 1px 20px);
}

.hero-watermark {
  position: absolute;
  right: -4vw;
  bottom: 2vh;
  color: rgba(255, 255, 255, 0.035);
  font-family: "Perpetua Titling MT", Avenir, "Segoe UI", serif;
  font-size: clamp(7rem, 18vw, 18rem);
  font-weight: 700;
  line-height: 1;
  pointer-events: none;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(390px, 0.82fr);
  align-items: center;
  gap: 58px;
}

.eyebrow {
  margin-bottom: 14px;
  color: var(--gold);
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
}

.hero-logo-card {
  display: inline-flex;
  align-items: center;
  margin-bottom: 24px;
  padding: 10px 14px;
  border: 1px solid rgba(200, 162, 74, 0.32);
  border-radius: var(--radius);
  color: var(--white);
  background: linear-gradient(140deg, rgba(11, 31, 54, 0.72), rgba(18, 52, 82, 0.54));
  backdrop-filter: blur(14px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.16);
}

.hero-logo-card img {
  width: min(310px, 100%);
  height: auto;
}

.hero-copy {
  max-width: 760px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 1.24rem;
  overflow-wrap: break-word;
}

.hero-actions,
.cta-content {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

.btn {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 13px 22px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

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

.btn-primary {
  color: var(--navy);
  background: var(--gold);
  box-shadow: 0 14px 28px rgba(200, 162, 74, 0.24);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background: #d7b45a;
}

.btn-secondary {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.34);
  background: rgba(255, 255, 255, 0.08);
}

.hero-visual {
  position: relative;
  min-height: 590px;
  isolation: isolate;
}

.hero-visual::before {
  content: "";
  position: absolute;
  inset: 34px -18px -18px 46px;
  z-index: -1;
  border: 1px solid rgba(200, 162, 74, 0.55);
  border-radius: var(--radius);
}

.hero-visual img {
  width: 100%;
  height: 520px;
  object-fit: cover;
  border-radius: var(--radius);
  filter: saturate(0.92) contrast(1.04);
  box-shadow: 0 34px 80px rgba(0, 0, 0, 0.28);
}

.hero-stat {
  position: absolute;
  top: 28px;
  right: -8px;
  width: min(260px, 68%);
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--radius);
  color: var(--white);
  background: rgba(11, 31, 54, 0.82);
  backdrop-filter: blur(12px);
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.22);
}

.hero-stat strong,
.hero-stat span {
  display: block;
}

.hero-stat strong {
  margin-bottom: 4px;
  color: var(--gold);
  font-size: 1rem;
}

.hero-stat span {
  font-size: 0.92rem;
  line-height: 1.45;
}

.hero-panel {
  position: absolute;
  left: -34px;
  right: 34px;
  bottom: 0;
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius);
  color: var(--white);
  background: linear-gradient(140deg, rgba(18, 52, 82, 0.94), rgba(11, 31, 54, 0.9));
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow);
}

.panel-label {
  display: block;
  margin-bottom: 16px;
  color: var(--gold);
  font-weight: 800;
}

.hero-panel h2 {
  color: var(--white);
  font-size: 1.7rem;
}

.hero-panel p {
  color: rgba(255, 255, 255, 0.76);
}

.panel-link {
  color: var(--gold);
  font-weight: 800;
}

.split-layout,
.media-layout {
  display: grid;
  grid-template-columns: minmax(260px, 0.85fr) minmax(0, 1.15fr);
  gap: 64px;
  align-items: start;
}

.media-layout {
  grid-template-columns: minmax(320px, 0.86fr) minmax(0, 1fr);
  align-items: center;
}

.media-layout.reverse {
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.86fr);
}

.section-media,
.intro-image,
.method-image {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--navy);
  box-shadow: var(--shadow);
}

.section-media::after,
.intro-image::after,
.method-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(145deg, rgba(11, 31, 54, 0.16), rgba(200, 162, 74, 0.13));
  pointer-events: none;
}

.section-media img,
.intro-image img,
.method-image img {
  width: 100%;
  height: 100%;
  min-height: 360px;
  object-fit: cover;
  transition: transform 0.55s ease, filter 0.55s ease;
}

.section-media:hover img,
.intro-image:hover img,
.method-image:hover img {
  transform: scale(1.045);
  filter: saturate(1.05) contrast(1.04);
}

.rich-text {
  color: var(--muted);
  font-size: 1.08rem;
}

.services,
.methodology {
  background: var(--off-white);
}

.section-heading {
  max-width: 780px;
  margin-bottom: 42px;
}

.services-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 42px;
  align-items: end;
  margin-bottom: 42px;
}

.services-intro .section-heading {
  margin-bottom: 0;
}

.intro-image img {
  min-height: 230px;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.service-card {
  position: relative;
  overflow: hidden;
  min-height: 250px;
  padding: 28px;
  border: 1px solid var(--gray);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 12px 30px rgba(11, 31, 54, 0.06);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.service-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 5px;
  background: linear-gradient(90deg, var(--gold), var(--blue));
}

.service-card:hover {
  transform: translateY(-7px);
  border-color: rgba(200, 162, 74, 0.48);
  box-shadow: 0 22px 42px rgba(11, 31, 54, 0.12);
}

.card-icon {
  display: inline-flex;
  width: 44px;
  height: 44px;
  margin-bottom: 34px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--navy);
  background: rgba(200, 162, 74, 0.18);
  font-weight: 900;
}

.service-card p {
  margin-bottom: 0;
  color: var(--muted);
}

.courses {
  background: var(--white);
}

.course-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.course-list span {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  padding: 10px 16px;
  border: 1px solid var(--gray);
  border-radius: 999px;
  color: var(--navy);
  background: var(--off-white);
  font-weight: 700;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.course-list span:hover {
  transform: translateY(-3px);
  border-color: rgba(200, 162, 74, 0.56);
  background: #fffaf0;
}

.method-card {
  display: grid;
  grid-template-columns: 0.72fr 0.78fr 1fr;
  gap: 48px;
  align-items: center;
  padding: 44px;
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
}

.method-image img {
  min-height: 330px;
}

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

.method-steps article {
  padding-left: 18px;
  border-left: 3px solid var(--gold);
  transition: transform 0.2s ease;
}

.method-steps article:hover {
  transform: translateX(4px);
}

.method-steps p {
  margin-bottom: 0;
  color: var(--muted);
}

.cta-band {
  padding: 76px 0;
  color: var(--white);
  background: linear-gradient(120deg, var(--navy), var(--blue));
}

.cta-content {
  justify-content: space-between;
}

.cta-content h2 {
  max-width: 720px;
  margin-bottom: 0;
  color: var(--white);
}

.site-footer {
  padding: 58px 0 24px;
  color: rgba(255, 255, 255, 0.78);
  background: #071728;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 1fr;
  gap: 40px;
}

.footer-brand {
  display: inline-block;
  margin-bottom: 14px;
  color: var(--white);
  font-size: 1.5rem;
  font-weight: 700;
}

.site-footer h2 {
  margin-bottom: 14px;
  color: var(--white);
  font-family: Avenir, "Avenir Next", "Segoe UI", Arial, sans-serif;
  font-size: 1rem;
}

.site-footer a {
  color: rgba(255, 255, 255, 0.9);
}

.site-footer a:hover,
.site-footer a:focus-visible {
  color: var(--gold);
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.social-links a {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.06);
}

.social-links svg {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  fill: currentColor;
}

.footer-bottom {
  margin-top: 38px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
  margin-bottom: 0;
  font-size: 0.92rem;
}

.floating-contact {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 40;
  display: inline-flex;
  width: 58px;
  height: 58px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--navy);
  background: var(--gold);
  box-shadow: 0 18px 34px rgba(11, 31, 54, 0.24);
  font-size: 1.45rem;
  font-weight: 900;
  animation: contactPulse 2.8s ease-in-out infinite;
}

.floating-contact:hover,
.floating-contact:focus-visible {
  background: #d7b45a;
}

.site-header {
  animation: slideDown 0.7s ease both;
}

.hero-content {
  animation: heroCopyIn 0.85s ease 0.08s both;
}

.hero-visual {
  animation: heroVisualIn 0.95s ease 0.18s both;
}

.hero-stat {
  animation: softFloat 5s ease-in-out infinite;
}

.hero-panel {
  animation: softFloat 5.5s ease-in-out infinite reverse;
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes heroCopyIn {
  from {
    opacity: 0;
    transform: translateY(26px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes heroVisualIn {
  from {
    opacity: 0;
    transform: translateX(36px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
}

@keyframes softFloat {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

@keyframes contactPulse {
  0%,
  100% {
    box-shadow: 0 18px 34px rgba(11, 31, 54, 0.24), 0 0 0 0 rgba(200, 162, 74, 0.38);
  }
  50% {
    box-shadow: 0 18px 34px rgba(11, 31, 54, 0.24), 0 0 0 12px rgba(200, 162, 74, 0);
  }
}

@media (max-width: 940px) {
  :root {
    --header-height: 70px;
  }

  .section {
    padding: 76px 0;
  }

  h1 {
    font-size: 3.2rem;
  }

  h2 {
    font-size: 2.35rem;
  }

  .hero-copy {
    font-size: 1.12rem;
  }

  .nav-toggle {
    display: block;
  }

  .nav-menu {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    display: grid;
    gap: 0;
    padding: 18px 20px 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(11, 31, 54, 0.98);
    transform: translateY(-120%);
    transition: transform 0.22s ease;
  }

  .nav-menu.is-open {
    transform: translateY(0);
  }

  .nav-menu a {
    display: block;
    padding: 14px 0;
  }

  .hero {
    min-height: auto;
    padding-top: calc(var(--header-height) + 56px);
  }

  .hero-grid,
  .split-layout,
  .media-layout,
  .media-layout.reverse,
  .services-intro,
  .method-card,
  .footer-grid {
    grid-template-columns: 1fr;
    min-width: 0;
  }

  .hero-visual {
    min-height: 610px;
  }

  .hero-panel {
    left: 24px;
    right: 24px;
  }

  .hero-panel {
    max-width: 520px;
  }

  .card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .method-card {
    padding: 34px;
  }
}

@media (max-width: 640px) {
  .container,
  .navbar {
    width: min(100% - 28px, 1120px);
  }

  .section {
    padding: 62px 0;
  }

  h1 {
    font-size: 2.18rem;
    line-height: 1.1;
  }

  h2 {
    font-size: 2rem;
  }

  h3,
  .hero-panel h2 {
    font-size: 1.35rem;
  }

  .hero-copy {
    font-size: 1rem;
  }

  .hero {
    padding-bottom: 66px;
  }

  .brand-logo {
    width: 78px;
    max-height: 48px;
    object-fit: cover;
    object-position: left center;
  }

  .hero-logo-card {
    width: 100%;
    padding: 12px;
  }

  .hero-logo-card img {
    width: min(100%, 360px);
  }

  .hero-actions,
  .cta-content {
    align-items: stretch;
  }

  .btn {
    width: 100%;
  }

  .hero-panel,
  .hero-stat,
  .method-card,
  .service-card {
    padding: 24px;
    min-width: 0;
  }

  .hero-visual {
    min-height: auto;
    padding-bottom: 0;
  }

  .hero-visual::before {
    display: none;
  }

  .hero-visual img {
    height: 290px;
  }

  .hero-stat,
  .hero-panel {
    position: static;
    width: auto;
    margin-top: 14px;
  }

  .section-media img,
  .method-image img {
    min-height: 250px;
  }

  .intro-image img {
    min-height: 210px;
  }

  .card-grid,
  .method-steps {
    grid-template-columns: 1fr;
  }

  .course-list span {
    width: 100%;
    justify-content: center;
    text-align: center;
  }

  .floating-contact {
    width: 52px;
    height: 52px;
    right: 16px;
    bottom: 16px;
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
