.inline-note {
  text-align: center;
  font-size: 0.94rem;
  color: #3a3a3a;
  margin: 0.9rem 0 0.4rem;
}

.inline-note strong {
  font-weight: 700;
}
/* Rebuilt landing page styles after the CSS was corrupted. */

:root {
  --navy: #0c3c63;
  --navy-dark: #071b2e;
  --accent: #f9c024;
  --accent-strong: #f2890f;
  --text: #1f2b3a;
  --muted: #5d6a7b;
  --bg: #f4f6f9;
  --card: #ffffff;
  --shadow: 0 16px 36px rgba(12, 60, 99, 0.08);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Montserrat', system-ui, -apple-system, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  min-height: 100vh;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  width: min(1200px, 92%);
  margin: 0 auto;
}

/* Top navigation */
.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 30;
  background: rgba(7, 27, 46, 0.9);
  backdrop-filter: blur(10px);
  color: #ffffff;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.24);
}
.nav {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: 0.85rem;
  padding: 0.65rem 0;
}
.logo-img {
  width: clamp(64px, 7vw + 22px, 94px);
  height: auto;
}

.menu {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  font-weight: 600;
}

.menu a {
  color: rgba(255, 255, 255, 0.9);
  padding: 0.35rem 0.2rem;
  position: relative;
}

.menu a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -0.25rem;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-strong));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 160ms ease;
}

.menu a:hover::after,
.menu a:focus-visible::after {
  transform: scaleX(1);
}

.menu-toggle {
  display: none;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex-direction: column;
  border-radius: 10px;
  cursor: pointer;
  transition: border-color 160ms ease, background 160ms ease;
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: currentColor;
  transition: transform 160ms ease, opacity 160ms ease;
}

.menu-toggle:hover {
  background: rgba(255, 255, 255, 0.14);
}

.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-strong) 100%);
  color: #1a1a1a;
  padding: 0.65rem 1.15rem;
  font-size: 0.95rem;
  border-radius: 12px;
  font-weight: 700;
  letter-spacing: 0.01em;
  box-shadow: 0 16px 36px rgba(242, 137, 15, 0.35);
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 42px rgba(242, 137, 15, 0.45);
}

/* Hero */
.hero {
  position: relative;
  color: #ffffff;
  min-height: 76vh;
  display: flex;
  align-items: center;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  overflow: hidden;
}

.hero.rutas-hero {
  background-position: center;
}

.hero.rutas-hero .overlay {
  background: linear-gradient(180deg, rgba(7, 34, 58, 0.6) 0%, rgba(7, 34, 58, 0.55) 50%, rgba(7, 34, 58, 0.45) 100%);
}

.hero .overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(7, 34, 58, 0.6) 0%, rgba(7, 34, 58, 0.55) 50%, rgba(7, 34, 58, 0.45) 100%);
}

.hero-content {
  position: relative;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr;
  justify-items: center;
  padding: 3.2rem 0 3rem;
  z-index: 2;
}

.hero-text {
  max-width: 960px;
  text-align: center;
}

.eyebrow {
  margin: 0 0 0.45rem;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.82);
  font-weight: 600;
}

.hero-text h1 {
  font-size: clamp(2.5rem, 3vw + 1.4rem, 3.7rem);
  line-height: 1.08;
  margin: 0 0 1.2rem;
  letter-spacing: -0.01em;
  text-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
}

.hero-text .accent-text {
  color: var(--accent);
}

.subhead {
  color: rgba(255, 255, 255, 0.92);
  font-size: 1.02rem;
  max-width: 800px;
  margin: 0 auto 1.8rem;
  text-shadow: 0 12px 28px rgba(0, 0, 0, 0.25);
}

.hero-actions {
  display: flex;
  gap: 0.9rem;
  flex-wrap: wrap;
  justify-content: center;
}

.hero-actions .btn {
  min-width: 180px;
}

.hero-actions.center {
  justify-content: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.82rem 1.3rem;
  border-radius: 8px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  border: 1px solid #e1e1e1;
  min-width: 190px;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.2);
  background: #ffffff;
  color: #1f1f1f;
}

.btn.primary {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-strong) 100%);
  color: #1a1a1a;
  border-color: transparent;
}

.btn.light {
  background: #ffffff;
  color: #0c3c63;
  border-color: #d5dde6;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.14);
}

.btn.ghost {
  background: rgba(255, 255, 255, 0.94);
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.26);
}

.hero-badge {
  position: absolute;
  right: 6.5%;
  bottom: 9%;
  display: inline-flex;
  align-items: center;
  z-index: 3;
}

.cert-seal {
  width: 180px;
  height: 180px;
  background: url('images/sello-certificacion.png') center/contain no-repeat;
  filter: drop-shadow(0 10px 22px rgba(0, 0, 0, 0.32));
}

.ntc-badge-img {
  width: 240px;
  max-width: 100%;
  height: auto;
  border-radius: 16px;
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.32);
}

.ntc-card {
  display: inline-flex;
  flex-direction: column;
  gap: 0.35rem;
  background: linear-gradient(180deg, #e02b33 0%, #ba1c23 100%);
  color: #ffffff;
  padding: 1rem 1.1rem;
  border-radius: 12px;
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.3);
  min-width: 170px;
  text-align: center;
  font-weight: 800;
  letter-spacing: 0.01em;
}

.ntc-code {
  display: block;
  font-size: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.38);
  padding-bottom: 0.3rem;
}

.ntc-brand {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
}

/* Sections */
.section {
  padding: 4.8rem 0;
}

.section.alt {
  background: #e9eef5;
}

.section h2 {
  font-size: clamp(2.1rem, 1vw + 1.5rem, 2.8rem);
  margin: 0 0 2.4rem;
  text-align: center;
  letter-spacing: -0.01em;
  color: #1f2b3a;
}

.section h2 span {
  font-weight: 800;
  color: #0b1f35;
}

.narrow {
  max-width: 860px;
  margin: 0 auto;
}

.info-section {
  text-align: center;
  padding: 3.4rem 0;
}

.info-section h2 {
  margin-bottom: 1rem;
}

.lead {
  font-size: 1rem;
  margin: 0 auto 1rem;
  max-width: 760px;
  color: #2c2c2c;
  font-weight: 500;
  line-height: 1.55;
}

.small-note {
  text-align: center;
  font-size: 0.94rem;
  color: #2f2f2f;
  margin: 0.85rem auto 0;
  background: #e6e6e6;
  padding: 0.6rem 0.8rem;
  border-radius: 4px;
  max-width: 560px;
  font-weight: 500;
}

.bar-cta {
  display: flex;
  justify-content: center;
  margin: 0.4rem 0 0.2rem;
}

.bar-cta .btn {
  width: 100%;
  max-width: 420px;
  min-width: 280px;
  padding: 0.78rem 1.3rem;
  border-radius: 6px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.16);
  font-size: 0.94rem;
  white-space: nowrap;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.4rem;
}

.rutas-grid {
  gap: 1rem;
}

.card {
  background: var(--card);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid #e8eaed;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 46px rgba(12, 60, 99, 0.16);
}

.card-image {
  aspect-ratio: 4 / 3;
  background-size: cover;
  background-position: center;
}

.card-body {
  padding: 0;
  text-align: center;
}

.card-body h3 {
  margin: 0;
  padding: 0.7rem 0.8rem;
  font-size: 1rem;
  color: #121212;
  border-bottom: 1px solid #e6e6e6;
}

.rutas-card .card-list {
  list-style: none;
  margin: 0;
  padding: 0.75rem 1rem 0.95rem;
  background: #f3f3f3;
  display: grid;
  gap: 0.35rem;
  font-size: 0.93rem;
  color: #1f1f1f;
}

.rutas-card .card-list li {
  position: relative;
  padding-left: 1.05rem;
}

.rutas-card .card-list li::before {
  content: '✔';
  position: absolute;
  left: 0;
  top: 0;
  color: #0f0f0f;
  font-size: 0.85rem;
  line-height: 1.2;
}

.tools {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.2rem;
  align-items: stretch;
}

.tool-card {
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 0;
  text-align: center;
  box-shadow: none;
  transition: transform 0.18s ease;
  overflow: hidden;
  min-height: 360px;
  cursor: pointer;
}

.tool-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 28px rgba(12, 60, 99, 0.14);
  border-color: transparent;
}

.tool-logo {
  width: 100%;
  height: 100%;
  min-height: 360px;
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
  background-color: transparent;
}

.tool-card:focus-visible {
  outline: 3px solid rgba(249, 192, 36, 0.55);
  outline-offset: 6px;
}

.tools .tool-card:nth-child(1) .tool-logo {
  background-image: url('images/SOMIT.png');
}

.tools .tool-card:nth-child(2) .tool-logo {
  background-image: url('images/ELA.png');
}

.tools .tool-card:nth-child(3) .tool-logo {
  background-image: url('images/VERIFOR.png');
}

.cta-band {
  background: linear-gradient(120deg, var(--navy-dark), var(--navy));
  color: #ffffff;
  padding: 2.8rem 0;
}

.cta-band-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.cta-band h3 {
  margin: 0 0 0.3rem;
  font-size: 1.4rem;
}

.cta-band p {
  margin: 0;
  color: rgba(255, 255, 255, 0.88);
}

/* Banners reused in other pages */
.banner-highlight,
.footer-banner {
  position: relative;
  color: #ffffff;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: 3rem 0;
  overflow: hidden;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}

.banner-highlight .overlay,
.footer-banner .overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, rgba(12, 60, 99, 0.42), rgba(12, 60, 99, 0.28));
}

.footer-banner {
  background-image: url('images/FOOTER_RUTA PROFESIONAL.png');
  padding: 3.2rem 0;
  min-height: 220px;
  display: flex;
  align-items: center;
  background-color: #0b2745;
}

.banner-inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.6rem;
  max-width: 1100px;
  margin: 0 auto;
}

.banner-inner h3,
.banner-title {
  margin: 0;
  font-size: clamp(2rem, 2.5vw + 1rem, 3.1rem);
  line-height: 1.08;
  letter-spacing: -0.01em;
}

.banner-inner .subhead,
.banner-sub {
  margin: 0;
  max-width: 900px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.02rem;
}

.banner-light {
  color: #ffffff;
}

.banner-highlight .accent-text,
.footer-banner .accent-text {
  color: var(--accent);
}

/* Formación para el Trabajo page */
.formacion-hero {
  min-height: 76vh;
  background-position: center;
}

.formacion-hero .overlay {
  background: linear-gradient(180deg, rgba(7, 34, 58, 0.6) 0%, rgba(7, 34, 58, 0.55) 50%, rgba(7, 34, 58, 0.45) 100%);
}

.hero-badges {
  display: grid;
  gap: 0.65rem;
  margin: 1.4rem auto 0;
  max-width: 860px;
}

.stat-pill,
.badge-cert {
  background: rgba(255, 255, 255, 0.95);
  color: #0b2035;
  padding: 0.9rem 1rem;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.94rem;
  line-height: 1.45;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.18);
}

.badge-cert {
  background: #f6f6f6;
  border: 1px solid #e5e5e5;
  text-align: center;
}

.info-pane {
  background: #ffffff;
  padding: 2.2rem 2.3rem;
  border-radius: 14px;
  box-shadow: 0 16px 32px rgba(12, 60, 99, 0.08);
  border: 1px solid #e8eaed;
}

.formacion-card .card-body {
  padding: 0;
}

.formacion-card h3 {
  font-size: 1.05rem;
  padding: 0.85rem 1rem;
}

.formacion-card .card-list {
  list-style: none;
  margin: 0;
  padding: 0.75rem 1rem 1rem;
  background: #f5f5f5;
  display: grid;
  gap: 0.35rem;
  font-size: 0.93rem;
  color: #1f1f1f;
}

.formacion-card .card-list li {
  position: relative;
  padding-left: 1.05rem;
}

.formacion-card .card-list li::before {
  content: '✔';
  position: absolute;
  left: 0;
  top: 0;
  color: #0f0f0f;
  font-size: 0.85rem;
  line-height: 1.2;
}

.formacion-banner {
  background-image: url('images/FOOTER_RUTA PARA EL TRABAJO.png');
  text-align: center;
  padding: 3.2rem 0;
  min-height: 220px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-color: #0b2745;
}

.formacion-banner .overlay {
  background: linear-gradient(110deg, rgba(12, 60, 99, 0.42), rgba(12, 60, 99, 0.28));
}

.formacion-banner .banner-eyebrow {
  font-size: 1.1rem;
  margin-bottom: 0.1rem;
  color: rgba(255, 255, 255, 0.94);
}

.formacion-banner .banner-title {
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.4;
  color: #ffffff;
  max-width: 760px;
}

.banner-eyebrow {
  margin: 0;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.9);
}

.formacion-banner .banner-title {
  max-width: 920px;
}

/* Footer */
.footer {
  background: #0a1f35;
  color: #ffffff;
  margin-top: 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
  padding: 2.8rem 0 1.8rem;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}

.footer-brand .logo-placeholder {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.15);
}

.brand-name {
  font-weight: 800;
  letter-spacing: 0.05em;
}

.legal {
  margin: 0.9rem 0 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.92rem;
}

.address {
  margin: 0;
  line-height: 1.5;
}

.social {
  margin-top: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.social-icons {
  display: flex;
  gap: 0.5rem;
}

.icon-placeholder {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
  font-size: 0.85rem;
  font-weight: 700;
  border: 1px solid rgba(255, 255, 255, 0.22);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  text-align: center;
  padding: 1.1rem 1.5rem;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.95rem;
}

/* Responsive tweaks */
@media (max-width: 1100px) {
  .hero-text h1 {
    font-size: clamp(2.2rem, 3vw + 1.1rem, 3.2rem);
  }

  .hero-badges {
    max-width: 720px;
  }
}

@media (max-width: 960px) {
  .nav {
    grid-template-columns: auto 1fr auto;
    grid-template-areas: 'brand . toggle' 'menu menu menu';
    gap: 0.8rem;
  }

  .brand {
    grid-area: brand;
  }

  .menu-toggle {
    display: inline-flex;
    grid-area: toggle;
    justify-self: end;
  }

  .menu {
    grid-area: menu;
    justify-content: flex-start;
    flex-wrap: wrap;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: var(--navy);
    padding: 1rem 1.25rem 1.3rem;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.35);
    display: none;
    z-index: 15;
  }

  .cta {
    grid-area: cta;
    justify-self: end;
  }

  body.nav-open .menu {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
  }

  body.nav-open .menu-toggle span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
  }

  body.nav-open .menu-toggle span:nth-child(2) {
    opacity: 0;
  }

  body.nav-open .menu-toggle span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
  }

  .hero-content {
    padding: 3rem 0 3rem;
  }

  .hero-badge {
    right: 4%;
    bottom: 6%;
  }

  .cert-seal {
    width: 150px;
    height: 150px;
  }

  .hero-text {
    max-width: 740px;
    text-align: left;
    padding: 0 0.5rem;
  }

  .hero-text h1 {
    font-size: clamp(2rem, 2vw + 1.1rem, 2.8rem);
  }

  .subhead {
    font-size: 0.98rem;
    max-width: 640px;
  }

  .hero-badges {
    width: 100%;
  }
}

@media (max-width: 768px) {
  .nav {
    grid-template-columns: auto 1fr;
    grid-template-areas: 'brand toggle';
    gap: 0.75rem;
  }

  .cta {
    display: none;
  }

  .hero {
    min-height: 70vh;
    padding: 1.2rem 0 2.6rem;
  }

  .hero-content {
    padding: 2.6rem 0 2.6rem;
    justify-items: start;
  }

  .hero-text {
    text-align: left;
    max-width: 100%;
    padding: 0;
  }

  .hero-text h1 {
    font-size: clamp(1.9rem, 5vw + 0.8rem, 2.5rem);
  }

  .subhead {
    font-size: 0.93rem;
  }

  .hero-badges {
    gap: 0.55rem;
  }

  .cta-band-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .menu {
    gap: 0.7rem;
    font-size: 0.9rem;
    top: calc(100% + 0.4rem);
    padding: 0.85rem 1rem 1rem;
  }

  .hero {
    min-height: 62vh;
    padding: 1rem 0 2.4rem;
  }

  .hero-content {
    padding: 2.2rem 0 2.4rem;
  }

  .hero-text h1 {
    font-size: clamp(1.65rem, 5.5vw + 0.5rem, 2.15rem);
    line-height: 1.06;
  }

  .hero-actions {
    width: 100%;
    gap: 0.75rem;
    flex-direction: column;
    align-items: stretch;
  }

  .btn {
    width: 100%;
    min-width: auto;
  }

  .hero-badges {
    margin-top: 1rem;
  }

  .hero-badge {
    display: none;
  }

  .card-grid {
    grid-template-columns: 1fr;
  }

  .card-body {
    padding: 1rem;
  }

  .tool-card,
  .tool-logo {
    min-height: 220px;
  }

  .tool-logo {
    background-size: contain;
  }

  .cta-band h3 {
    font-size: 1.25rem;
  }

  .cta-band p {
    font-size: 0.95rem;
  }

  .social {
    align-items: flex-start;
  }
}
