/* Variables y Reset */
:root {
  --maxw: 1200px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  overflow-x: hidden;
}

body.menu-open {
  overflow: hidden;
}

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

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

button {
  font: inherit;
}

p {
  margin: 0;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Tipografia y Layout */
h1, h2, h3, .logo-mark, .stat-number {
  font-family: "Barlow Condensed", Impact, sans-serif;
  letter-spacing: 0;
  margin: 0;
}

.logo-mark {
  font-size: 1.95rem;
  line-height: .82;
  font-weight: 800;
}

.container {
  width: min(100%, var(--maxw));
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  position: relative;
}

.eyebrow {
  display: inline-flex;
  width: fit-content;
  text-transform: uppercase;
}

/* Componentes Globales */
.lead {
  max-width: 760px;
  margin-top: 24px;
  color: var(--muted);
  font-size: clamp(1rem, 1.5vw, 1.18rem);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  cursor: pointer;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--orange), var(--orange-bright));
}

/* Llamado compacto a El Nuevo Gerente, situado cerca del inicio. */
.newsletter-ribbon {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(circle at 18% 50%, rgba(63, 201, 255, .3), transparent 28%),
    linear-gradient(105deg, #07162f 0%, #0b2b55 52%, #087eae 100%);
  border-top: 1px solid rgba(63, 201, 255, .28);
  border-bottom: 1px solid rgba(63, 201, 255, .28);
}

.hero-newsletter {
  padding-top: clamp(126px, 16vh, 172px) !important;
  padding-bottom: clamp(190px, 23vh, 230px) !important;
}

.newsletter-hero-host {
  position: relative;
  min-height: calc(100svh - 84px);
  padding-top: clamp(52px, 7vh, 76px) !important;
  padding-bottom: 132px !important;
}

.page-hero.newsletter-hero-host,
.contact-hero.newsletter-hero-host,
.testi-hero.newsletter-hero-host {
  min-height: calc(100svh - 84px);
}

.testi-hero.newsletter-hero-host {
  height: auto;
  max-height: none;
}

.hero-newsletter .newsletter-ribbon,
.newsletter-hero-host .newsletter-ribbon {
  position: absolute;
  right: 0;
  bottom: var(--fcc-bar-offset, 0px);
  left: 0;
  z-index: 3;
  background:
    radial-gradient(circle at 18% 50%, rgba(63, 201, 255, .24), transparent 28%),
    linear-gradient(105deg, rgba(6, 15, 37, .92), rgba(11, 43, 85, .88) 58%, rgba(8, 126, 174, .86));
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  transition: bottom .32s ease;
}

body:has(.fcc-bar.fcc-visible) .hero-newsletter .newsletter-ribbon,
body:has(.fcc-bar.fcc-visible) .newsletter-hero-host .newsletter-ribbon {
  bottom: max(var(--fcc-bar-offset, 0px), 88px);
}

.newsletter-ribbon::after {
  content: "";
  position: absolute;
  inset: -120% auto -120% -24%;
  z-index: -1;
  width: 18%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .18), transparent);
  transform: rotate(18deg);
  animation: newsletterRibbonSweep 7s ease-in-out infinite;
  pointer-events: none;
}

.newsletter-ribbon__inner {
  min-height: 104px;
  display: grid;
  grid-template-columns: auto minmax(220px, .75fr) minmax(430px, 1.25fr);
  align-items: center;
  gap: clamp(16px, 2.5vw, 34px);
  padding-block: 16px;
}

.newsletter-ribbon__signal {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--cyan-bright, #3fc9ff);
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  white-space: nowrap;
}

.newsletter-ribbon__signal::before {
  content: "";
  width: 9px;
  height: 9px;
  flex: 0 0 auto;
  border-radius: 999px;
  background: currentColor;
  box-shadow: 0 0 0 0 rgba(63, 201, 255, .55);
  animation: newsletterSignalPulse 2.4s ease-out infinite;
}

.newsletter-ribbon__copy {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 4px 10px;
  line-height: 1.35;
}

.newsletter-ribbon__copy strong {
  font-family: "Barlow Condensed", Impact, sans-serif;
  font-size: clamp(1.3rem, 2vw, 1.75rem);
  line-height: 1;
  text-transform: uppercase;
}

.newsletter-ribbon__copy span {
  color: rgba(255, 255, 255, .78);
  font-size: clamp(.82rem, 1vw, .95rem);
}

.newsletter-ribbon__copy b {
  color: #fff;
}

.newsletter-ribbon__form {
  display: grid;
  grid-template-columns: minmax(120px, .75fr) minmax(180px, 1fr) auto;
  align-items: center;
  gap: 8px 10px;
  min-width: 0;
}

.newsletter-ribbon__form input {
  min-width: 0;
  height: 42px;
  padding: 9px 12px;
  border: 1px solid rgba(255, 255, 255, .24);
  border-radius: 10px;
  color: var(--navy-900, #060f25);
  background: #fff;
  font: inherit;
}

.newsletter-ribbon__form input:focus {
  outline: 3px solid rgba(63, 201, 255, .32);
  outline-offset: 1px;
}

.newsletter-ribbon__submit {
  min-height: 42px;
  padding: 10px 20px;
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, var(--orange, #ff7a1a), var(--orange-bright, #ff9a3d));
  box-shadow: 0 10px 28px rgba(255, 122, 26, .3);
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: transform .25s ease, box-shadow .25s ease;
}

.newsletter-ribbon__submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 34px rgba(255, 122, 26, .42);
}

.newsletter-ribbon__privacy {
  grid-column: 1 / -1;
  color: rgba(255, 255, 255, .62);
  font-size: .65rem;
  line-height: 1.25;
}

.newsletter-ribbon__privacy a {
  color: rgba(255, 255, 255, .88);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.newsletter-ribbon__consent {
  grid-column: 1 / -1;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  color: rgba(255, 255, 255, .62);
  font-size: .65rem;
  line-height: 1.25;
  cursor: pointer;
}

.newsletter-ribbon__consent input {
  flex: 0 0 auto;
  width: 14px;
  height: 14px;
  margin-top: 1px;
  accent-color: var(--cyan-bright, #3fc9ff);
}

.newsletter-ribbon__consent a {
  color: rgba(255, 255, 255, .88);
  text-decoration: underline;
  text-underline-offset: 2px;
}

@keyframes newsletterRibbonSweep {
  0%, 68% { left: -24%; }
  100% { left: 124%; }
}

@keyframes newsletterSignalPulse {
  0% { box-shadow: 0 0 0 0 rgba(63, 201, 255, .55); }
  70%, 100% { box-shadow: 0 0 0 10px rgba(63, 201, 255, 0); }
}

@media (max-width: 980px) {
  .hero-newsletter {
    padding-bottom: 250px !important;
  }

  .newsletter-hero-host {
    padding-bottom: 190px !important;
  }

  .newsletter-ribbon__inner {
    grid-template-columns: 1fr;
    gap: 8px 14px;
  }

  .newsletter-ribbon__signal {
    grid-column: 1 / -1;
  }
}

@media (max-width: 620px) {
  .hero-newsletter {
    padding-bottom: 290px !important;
  }

  .newsletter-hero-host {
    min-height: calc(100svh - 72px);
    padding-top: 48px !important;
    padding-bottom: 220px !important;
  }

  .newsletter-ribbon__form {
    grid-template-columns: 1fr 1fr;
  }

  .newsletter-ribbon__submit {
    grid-column: 1 / -1;
    width: 100%;
  }
}

@media (max-width: 440px) {
  .hero-newsletter {
    padding-bottom: 370px !important;
  }

  .newsletter-hero-host {
    min-height: calc(100svh - 72px);
    padding-bottom: 270px !important;
  }

  .newsletter-ribbon__inner {
    padding-block: 18px;
  }

  .newsletter-ribbon__form {
    grid-template-columns: 1fr;
  }

  .newsletter-ribbon__submit,
  .newsletter-ribbon__privacy,
  .newsletter-ribbon__consent {
    grid-column: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .newsletter-ribbon::after,
  .newsletter-ribbon__signal::before {
    animation: none;
  }
}

/* Botón secundario del navbar (Acceso al Webinar): distinto del CTA naranja
   (Acceso a Estudiantes) para que no compitan por la misma jerarquía visual,
   y más compacto para no forzar el wrap de "Online ▾" / "Presenciales ▾". */
.btn-webinar {
  background: rgba(34, 179, 232, .1);
  border: 1.5px solid var(--cyan, #22B3E8);
  color: var(--cyan-dark, #087EAE);
  padding-left: 20px;
  padding-right: 20px;
  transition: background var(--ease, .3s ease), border-color var(--ease, .3s ease), box-shadow var(--ease, .3s ease), transform var(--ease, .3s ease);
}
.btn-webinar:hover {
  background: rgba(34, 179, 232, .15);
  box-shadow: 0 4px 12px rgba(34, 179, 232, .18);
}

.card {
  box-shadow: var(--shadow-soft);
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
}

/* Header y Navegacion */
.site-header.is-scrolled, .site-header.menu-active {
  border-bottom-color: transparent;
}

.nav-shell {
  min-height: 84px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  min-width: max-content;
}

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

.main-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(14px, 1.8vw, 24px);
  flex: 1;
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(8px, 1.1vw, 14px);
  color: var(--ink);
  font-size: .92rem;
}

.nav-item {
  position: relative;
}

/* Dentro del grupo NUESTRAS FORMACIONES, el mega-menu debe centrarse respecto
   al grupo completo (.nav-formaciones), no respecto al trigger individual
   (p.ej. "Online", pegado al borde izquierdo del grupo) — si no, un menu de
   ~920px centrado ahi se sale del viewport por la izquierda. */
.nav-formaciones .nav-item {
  position: static;
}

.nav-link, .nav-trigger {
  display: inline-flex;
  align-items: center;
  border: 0;
  border-radius: 999px;
  color: var(--ink);
  background: transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: color var(--ease), background var(--ease);
}

.mega-menu, .simple-menu {
  position: absolute;
  top: calc(100% + 14px);
  left: 50%;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 12px);
  transition: opacity .22s ease, transform .22s ease;
}

.mega-menu::before, .simple-menu::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -18px;
  height: 18px;
}

.nav-item:hover .mega-menu, .nav-item:hover .simple-menu, .nav-item.is-open .mega-menu, .nav-item.is-open .simple-menu, .nav-item:focus-within .mega-menu, .nav-item:focus-within .simple-menu {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, 0);
}

.mega-menu {
  width: min(920px, calc(100vw - 48px));
  padding: 18px;
  border-radius: 18px;
  box-shadow: 0 24px 70px rgba(11, 27, 58, .18);
  border: 1px solid rgba(11, 27, 58, .08);
}

.mega-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.mega-card {
  min-height: 176px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 20px;
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(238, 242, 251, .76), rgba(255, 255, 255, .96));
  border: 1px solid rgba(11, 27, 58, .07);
  transition: transform var(--ease), border-color var(--ease), box-shadow var(--ease);
}

.mega-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 34px rgba(11, 27, 58, .1);
}

.mega-card strong {
  display: block;
  color: var(--ink);
  font-weight: 800;
  line-height: 1.25;
}

.mega-card p {
  margin-top: 10px;
  color: var(--muted);
  font-size: .88rem;
  line-height: 1.45;
}

.mega-card > span:last-child {
  display: inline-flex;
  margin-top: 18px;
  font-size: .9rem;
  font-weight: 800;
}

/* Logo del programa en el hero de las landings */
.program-logo {
  display: block;
  width: min(280px, 62vw);
  height: auto;
  margin: 22px 0 20px;
  filter: drop-shadow(0 14px 30px rgba(0, 0, 0, .28));
}

/* Logo del programa dentro de cada tarjeta del mega-menú */
.mega-card-logo {
  display: block;
  height: 30px;
  width: auto;
  max-width: 170px;
  margin-bottom: 14px;
  object-fit: contain;
  object-position: left center;
  transition: transform var(--ease);
}

.mega-card:hover .mega-card-logo {
  transform: translateY(-1px) scale(1.03);
}

.simple-menu {
  min-width: 240px;
  display: grid;
  gap: 4px;
  padding: 12px;
  border-radius: 18px;
  box-shadow: 0 24px 70px rgba(11, 27, 58, .16);
  border: 1px solid rgba(11, 27, 58, .08);
}

.simple-menu a {
  padding: 12px 14px;
  border-radius: 12px;
  color: var(--ink);
}

.nav-formaciones {
  position: relative;
  display: inline-flex;
  flex-direction: column;
  align-items: stretch;
  padding: 2px 8px;
  border-radius: 14px;
  transition: background var(--ease);
}

.formaciones-title {
  display: flex;
  justify-content: space-between;
  width: 100%;
  line-height: 1;
  padding: 2px 14px 5px;
  text-transform: uppercase;
  pointer-events: none;
  user-select: none;
}

.formaciones-title i {
  font-style: normal;
}

.formaciones-title i.gap {
  flex: 0 0 1em;
}

.formaciones-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
}

.formaciones-sep {
  color: rgba(11, 27, 58, .28);
  pointer-events: none;
}

.menu-toggle {
  display: none;
  width: 46px;
  height: 46px;
  flex: 0 0 46px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid rgba(11, 27, 58, .16);
  color: var(--ink);
  cursor: pointer;
  position: relative;
  z-index: 3;
}

.menu-toggle span, .menu-toggle span::before, .menu-toggle span::after {
  display: block;
  width: 20px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  transition: transform var(--ease), opacity var(--ease);
  position: relative;
}

.menu-toggle span::before, .menu-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
}

.menu-toggle span::before {
  top: -7px;
}

.menu-toggle span::after {
  top: 7px;
}

.menu-toggle[aria-expanded="true"] span {
  background: transparent;
}

.menu-toggle[aria-expanded="true"] span::before {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span::after {
  transform: translateY(-7px) rotate(-45deg);
}

.site-footer {
  padding: 72px 0 34px;
  background: var(--navy-900);
  border-top: 1px solid rgba(255, 255, 255, .08);
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(220px, 1.3fr) repeat(4, minmax(150px, 1fr));
  gap: 34px;
}

.footer-tagline {
  max-width: 300px;
  margin-top: 18px;
  color: rgba(255, 255, 255, .62);
  font-size: .95rem;
}

/* Footer */
.footer-col h3 {
  margin-bottom: 16px;
  font-size: 1.28rem;
}

.footer-col a, .footer-col p {
  display: block;
  margin: 0 0 12px;
  color: rgba(255, 255, 255, .62);
  font-size: .94rem;
  line-height: 1.45;
  transition: color var(--ease);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 54px;
  font-size: .9rem;
}

/* Suscripción compacta a El Nuevo Gerente, compartida por todos los footers. */
.footer-newsletter {
  display: grid;
  grid-template-columns: minmax(240px, .8fr) minmax(420px, 1.2fr);
  align-items: center;
  gap: clamp(18px, 3vw, 42px);
  margin-top: 42px;
  padding: 22px 0;
  border-top: 1px solid rgba(255, 255, 255, .12);
  border-bottom: 1px solid rgba(255, 255, 255, .12);
}

.footer-newsletter__copy {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 5px 10px;
  margin: 0;
  color: rgba(255, 255, 255, .72);
  font-size: .9rem;
  line-height: 1.4;
}

.footer-newsletter__copy a {
  color: var(--cyan-bright, #3fc9ff);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.footer-newsletter__copy strong {
  color: var(--white, #fff);
  font-family: "Barlow Condensed", Impact, sans-serif;
  font-size: 1.25rem;
  letter-spacing: .02em;
  line-height: 1;
  text-transform: uppercase;
}

.footer-newsletter__form,
.footer-newsletter .AW-Form-766653004 {
  min-width: 0;
  width: 100%;
}

.footer-newsletter #af-form-766653004 {
  width: 100% !important;
  max-width: none !important;
  overflow: visible !important;
  border: 0 !important;
  background: transparent !important;
}

.footer-newsletter #af-body-766653004 {
  display: grid !important;
  grid-template-columns: minmax(125px, .75fr) minmax(190px, 1fr) auto;
  align-items: end;
  gap: 10px;
  padding: 0 !important;
  background: transparent !important;
}

.footer-newsletter #af-form-766653004 .af-element {
  min-width: 0;
  padding: 0 !important;
}

.footer-newsletter #af-form-766653004 label.previewLabel {
  display: block !important;
  float: none !important;
  width: auto !important;
  margin: 0 0 5px !important;
  color: rgba(255, 255, 255, .7) !important;
  font-family: Inter, Arial, sans-serif !important;
  font-size: .72rem !important;
  font-weight: 600 !important;
}

.footer-newsletter #af-form-766653004 .af-textWrap {
  float: none !important;
  width: 100% !important;
}

.footer-newsletter #af-form-766653004 input.text {
  height: 40px;
  margin: 0 !important;
  padding: 8px 12px !important;
  border: 1px solid rgba(255, 255, 255, .2) !important;
  border-radius: 999px !important;
  color: var(--navy-900, #060f25) !important;
  background: #fff !important;
}

.footer-newsletter #af-form-766653004 .buttonContainer {
  display: flex;
  align-items: flex-end;
  height: 100%;
}

.footer-newsletter #af-form-766653004 input.submit {
  min-height: 40px;
  margin: 0 !important;
  padding: 9px 22px !important;
  border-radius: 999px !important;
  color: #fff !important;
  background: var(--orange, #ff7a1a) !important;
  font-family: Inter, Arial, sans-serif !important;
  font-weight: 700 !important;
}

.footer-newsletter #af-form-766653004 .privacyPolicy,
.footer-newsletter #af-form-766653004 .poweredBy,
.footer-newsletter #af-footer-766653004 {
  display: none !important;
}

.footer-newsletter + .footer-bottom {
  margin-top: 26px;
}

.footer-newsletter iframe {
  display: block;
  width: 100% !important;
  max-width: 100% !important;
  border: 0 !important;
}

@media (max-width: 860px) {
  .footer-newsletter {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .footer-newsletter #af-body-766653004 {
    grid-template-columns: 1fr 1fr auto;
  }
}

@media (max-width: 620px) {
  .footer-newsletter #af-body-766653004 {
    grid-template-columns: 1fr 1fr;
  }

  .footer-newsletter #af-form-766653004 .buttonContainer {
    grid-column: 1 / -1;
    width: 100%;
  }

  .footer-newsletter #af-form-766653004 input.submit {
    width: 100% !important;
  }
}

.socials {
  display: flex;
  gap: 10px;
}

.socials a {
  place-items: center;
  border-radius: 999px;
  font-weight: 800;
}
