/* ============================================================
   IMPACTO JOVEN — Sistema de Estilos
   Organizado en: Variables · Base · Layout · Componentes · Secciones · Responsive
   ============================================================ */


/* ============================================================
   1. VARIABLES CSS (Design Tokens)
   ============================================================ */
:root {
  /* --- Paleta Azul (Primarios) --- */
  --navy-900: #07213d;
  --navy-800: #0c2f52;
  --blue-700: #12457a;
  --blue-600: #1a6bab;
  --blue-500: #2b8fd0;

  /* --- Paleta Sky (Secundarios) --- */
  --sky-400: #5db9e6;
  --sky-200: #bfe6f7;
  --sky-100: #eaf7fd;
  --gradient-sky: linear-gradient(180deg, var(--sky-100), #ffffff 70%);

  /* --- Paleta Teal (Acento) --- */
  --teal-500: #3FBFC4;
  --teal-600: #2F9FA5;
  --red-500: #EF476F;
  --yellow-500: #F5D402;

  /* --- Neutros --- */
  --ink:         #0b2036;
  --slate:       #4d6072;
  --slate-light: #8298a9;
  --paper:       #ffffff;
  --line:        #dfeaf2;


  /* --- Tipografía --- */
  --font-body:    'Inter', sans-serif;
  --font-heading: 'Manrope', sans-serif;

  /* --- Sombras --- */
  --shadow-sm: 0 2px 10px rgba(7,33,61,0.06);
  --shadow-md: 0 12px 30px rgba(7,33,61,0.10);
  --shadow-lg: 0 24px 60px rgba(7,33,61,0.16);

  /* --- Bordes --- */
  --radius-lg: 22px;
  --radius-md: 16px;
  --radius-sm: 10px;

  /* --- Layout --- */
  --maxw: 1220px;

  /* --- Espaciados base --- */
  --space-xs:  8px;
  --space-sm:  16px;
  --space-md:  32px;
  --space-lg:  64px;
  --space-xl:  88px;
}


/* ============================================================
   2. BASE / RESET
   ============================================================ */
* { 
  box-sizing: border-box; 
}
html { 
  scroll-behavior: smooth; 
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(20px, 2.4vw, 28px);
  font-weight: 800;
  color: var(--navy-900);
  margin-bottom: 16px;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  margin: 0;
  color: var(--navy-900);
  line-height: 1.15;
}

p  { 
  margin: 0; 
}
a  { 
  color: inherit; 
  text-decoration: none; 
}
img { 
  display: block; 
  max-width: 100%; 
  background-color: var(--line); 
  color: transparent; 
}
button { 
  font-family: inherit; 
  cursor: pointer; 
}

:focus-visible { 
  outline: 3px solid var(--teal-500); 
  outline-offset: 2px; 
}


/* ============================================================
   3. LAYOUT HELPERS
   ============================================================ */
.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--space-md);
}

section { padding: var(--space-xl) 0; }

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 38px;
  flex-wrap: wrap;
}
.section-head h2 { 
  font-size: clamp(24px, 2.6vw, 32px); 
}
.section-sub { 
  color: var(--slate); 
  font-size: 15.5px; 
  margin-top: 8px; 
  max-width: 560px; 
}


/* ============================================================
   4. COMPONENTES REUTILIZABLES
   ============================================================ */

/* ---- Eyebrow ---- */
.eyebrow {
  font-family: var(--font-heading);
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  font-size: 12.5px;
  color: var(--teal-600);
  margin-bottom: 10px;
}

/* ---- Botones ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 100px;
  font-weight: 700;
  font-size: 15px;
  border: 2px solid transparent;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease;
  white-space: nowrap;
}

.btn-primary { 
  background: var(--navy-900); 
  color: #fff; 
  box-shadow: var(--shadow-sm); 
}
.btn-primary:hover { 
  background: var(--blue-700); 
  transform: translateY(-2px); 
  box-shadow: var(--shadow-md); 
}

.btn-teal { 
  background: var(--teal-500); 
  color: var(--navy-900); 
  box-shadow: 0 10px 24px rgba(34,198,168,.35); 
}
.btn-teal:hover { 
  background: var(--teal-600); 
  color: #fff; 
  transform: translateY(-2px); 
}

.btn-outline { 
  background: transparent; 
  color: var(--navy-900); 
  border-color: var(--navy-900); 
}
.btn-outline:hover { 
  background: var(--navy-900); 
  color: #fff; 
}

.btn-outline-white { 
  background: transparent; 
  color: #fff !important; 
  border-color: rgba(255, 255, 255, .6);
}
.btn-outline-white:hover { 
  background: rgba(255, 255, 255, .14); 
  border-color: #fff; 
}

.btn-ghost { 
  background: transparent; 
  color: var(--blue-600); 
  padding: 10px 4px; 
  font-weight: 700; 
  text-decoration: none !important;
}
.btn-ghost:hover { 
  color: var(--teal-600); 
}

.btn-sm { 
  padding: 10px 18px; 
  font-size: 13.5px; 
}

.btn-black {
  background: var(--teal-500);
  color: var(--navy-900);
  width: 100%;
  padding: 16px 30px;
  border-radius: 100px;
  font-weight: 700;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 10px 24px rgba(34,198,168,.35);
}
.btn-black:hover { 
  background: var(--teal-600); 
  color: #fff; 
  transform: translateY(-2px); 
}

/* ---- Tags ---- */
.tag {
  display: inline-block;
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: .03em;
  padding: 6px 12px;
  border-radius: 100px;
  text-transform: uppercase;
}
.tag-empleo  { 
  background: #e4f0fb; 
  color: var(--blue-700); 
}
.tag-beca    { 
  background: #e2f9f3; 
  color: var(--teal-600); 
}
.tag-curso   { 
  background: #eef1fb; 
  color: #4a4fc0; 
}
.tag-programa { 
  background: #fdeee0; 
  color: #b5651d; 
}

/* ---- Flechas carrusel ---- */
.carousel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 30px;
  flex-wrap: wrap;
  gap: 16px;
}

.carousel-head-info {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  width: 100%;
}

.carousel-head-title {
  margin: 0;
  font-size: 24px;
}

.carousel-head-btn {
  font-size: 14px;
  font-weight: 700;
}

.carousel-arrows { display: flex; gap: 10px; }
.arrow-btn {
  width: 42px; height: 42px;
  border-radius: 8px;
  border: 1.5px solid var(--line);
  display: grid; place-items: center;
  background: #fff;
  color: var(--navy-900);
  transition: .18s;
}
.arrow-btn:hover { 
  background: var(--navy-900); 
  color: #fff; 
  border-color: var(--navy-900); 
}

/* ---- Dot nav ---- */
.dot-nav { 
  display: flex; gap: 8px; 
  justify-content: center; margin-top: 24px; 
}
.dot-nav span { 
  width: 7px; height: 7px; 
  border-radius: 50%; 
  background: var(--line); 
}
.dot-nav span.active { 
  background: var(--blue-600); 
  width: 20px; 
  border-radius: 5px; 
}


/* ============================================================
   4b. UTILIDADES GENERALES DE TARJETA / COMPONENTES
   .card            → base visual: bg blanco, borde, sombra, radius-lg
   .card-sm         → radio-md en lugar de lg
   .card-interactive → hover de elevación (translateY + shadow-md)
   .card-col        → flex column layout
   .icon-box        → contenedor cuadrado para ícono
   .heading-sm      → mini-título (font-heading 800 navy-900)
   .text-overline   → etiqueta superior (uppercase, tracking)
   .card-more       → variante "Ver más" (punteada, centrada)
   ============================================================ */

.card {
  background: #fff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}

.card-sm {
  border-radius: var(--radius-md);
}

.card-interactive {
  transition: .2s;
}
.card-interactive:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.card-col {
  display: flex;
  flex-direction: column;
}

.icon-box {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
  color: var(--navy-900);
}

.heading-sm {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 14px;
  color: var(--navy-900);
  margin: 0;
}

.text-overline {
  font-size: 12px;
  font-weight: 800;
  color: var(--slate);
  text-transform: uppercase;
  letter-spacing: .05em;
}

.card-more {
  align-items: center;
  justify-content: center;
  text-align: center;
  cursor: pointer;
  background: var(--sky-100) !important;
  border-style: dashed;
}
.card-more i {
  font-size: 28px;
  color: var(--blue-600);
}
.card-more p {
  font-size: 13px;
  font-weight: 700;
  color: var(--blue-600);
  margin: 0;
}
.card-more:hover {
  background: var(--sky-200) !important;
}


/* ============================================================
   5. HEADER
   ============================================================ */
header.site {
  position: sticky;
  top: 0;
  z-index: 80;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 32px;
  gap: 24px;
}

.logo-container { 
  margin-left: 80px; 
}
.footer-logo-container { 
  /*  */ 
}

.logo {
  display: flex; align-items: center; gap: 10px;
  width: 110px;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 19px;
  color: var(--navy-900);
}

.footer-logo {
  background-color: #fff !important;
  padding: 12px;
  border-radius: 20px;
  width: 140px !important;
}

.logo img { 
  display: block; 
  width: 100%; 
  background-color: transparent; 
}

.logo .mark {
  width: 38px; 
  height: 38px;
  border-radius: 50%;
  background: conic-gradient(from 210deg, var(--teal-500), var(--sky-400), var(--blue-700));
  display: grid; place-items: center;
  position: relative;
}
.logo .mark::after {
  content: "";
  width: 15px; height: 15px;
  background: #fff;
  border-radius: 2px;
  transform: rotate(45deg) scale(.55);
}

nav.primary-menu {
  display: flex; align-items: center; gap: 30px;
  font-weight: 600; 
  font-size: 14.5px; 
  color: var(--slate);
}
nav.primary-menu a { 
  padding: 8px 2px; 
  position: relative; 
  display: flex; 
  align-items: center; gap: 4px; 
}
nav.primary-menu a:hover { 
  color: var(--navy-900); 
  text-decoration: none;
}
nav.primary-menu a.current { 
  color: var(--navy-900); 
}
nav.primary-menu a.current::after {
  content: ""; 
  position: absolute; 
  left: 0; 
  right: 0; 
  bottom: -6px;
  height: 3px; 
  border-radius: 3px;
  background: var(--teal-500);
}

.caret { 
  font-size: 10px; 
  opacity: .6; 
  margin-left: 2px; 
}
.header-actions { 
  display: flex; 
  align-items: center; 
  gap: 10px; 
}

.icon-btn {
  width: 40px; 
  height: 40px;
  border: 0;
  display: grid; place-items: center;
  background-color: transparent;
  color: var(--slate);
  transition: .18s;
}

.icon-btn i{
  font-size: 20px;
  color: var(--navy-900);
  transition: color 0.18s;
}

.icon-btn:hover i { 
  color: var(--teal-600); 
}

.link-login {
  font-weight: 700; 
  font-size: 14.5px;
  padding: 10px 14px;
  color: var(--navy-900);
  border-color: var(--navy-900);
}


/* ============================================================
   7. ACCESOS RAPIDOS
   ============================================================ */
.quick {
  background: var(--paper);
  position: relative;
  z-index: 5;
}

.quick-card {
  background: #fff;
  border-radius: 26px;
  box-shadow: var(--shadow-lg);
  padding: 30px 20px;
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 6px;
}

.quick-item {
  display: flex; 
  flex-direction: column; 
  align-items: center; 
  gap: 10px;
  padding: 14px 6px;
  border-radius: 16px;
  text-align: center;
  transition: .18s;
  text-decoration: none !important;
}
.quick-item:hover { 
  background: var(--blue-700); 
  transform: translateY(-3px); 
}
.quick-item:hover span {
  color: #fff !important;
}

.quick-icon {
  font-size: 32px;
  width: 64px; 
  height: 64px;
  border-radius: 12px;
  display: grid; place-items: center;
  background: transparent;
  border: 1px solid transparent;
  color: #dbe8f2;
}

.quick-item span { 
  font-size: 12.5px; 
  font-weight: 700; 
  color: var(--slate); 
}
.quick-item span i { 
  font-size: 40px; 
}


/* ============================================================
   8. OBSERVATORIO
   ============================================================ */

.observatorio { background: linear-gradient(180deg, var(--sky-100), #ffffff 70%); }

.obs-head { 
  text-align: center; 
  max-width: 660px; 
  margin: 0 auto 46px; 
}
.obs-head .eyebrow { 
  color: var(--blue-600); 
}
.obs-head h2 { 
  margin-top: 12px; 
}
.obs-head p { 
  color: var(--slate); 
  margin-top: 12px; 
  font-size: 16px; 
}

.obs-grid { 
  display: grid; 
  grid-template-columns: repeat(4, 1fr); 
  gap: 22px; 
}

.obs-card {
  padding: 26px;
  /* bg, border, radius-lg, shadow → .card */
}
.obs-card .label { 
  font-size: 13px; 
  font-weight: 700; 
  color: var(--slate); 
  text-transform: uppercase; 
  letter-spacing: .04em; 
}
.obs-stat { 
  font-family: var(--font-heading); 
  font-weight: 800; 
  font-size: 42px; 
  color: var(--navy-900); 
  margin: 0 0 4px; 
}
.obs-delta { 
  font-size: 13px; 
  font-weight: 700; 
  color: var(--teal-600); 
  display: flex; 
  align-items: center; 
  gap: 5px; 
}
.sparkline { 
  margin-top: 16px; 
  opacity: .85; 
}

.obs-list-card { 
  padding: 26px;
  /* bg, border, radius-lg, shadow → .card */
}
.obs-list-card .label { 
  font-size: 13px; 
  font-weight: 700; 
  color: var(--slate); 
  text-transform: uppercase; 
  letter-spacing: .04em; 
  margin-bottom: 16px; 
  display: block; 
}

.bar-row { 
  display: flex; 
  align-items: center; 
  gap: 12px; 
  margin-bottom: 14px; 
  font-size: 14px; 
}
.bar-row .name { 
  width: 30%; 
  flex: none; 
  font-weight: 600; 
  color: var(--ink);
}
@media (max-width: 768px) {
  .bar-row .name {
    width: 45%;
  }
}
.bar-track { 
  flex: 1; 
  height: 9px; 
  border-radius: 6px; 
  background: var(--sky-100); 
  overflow: hidden; 
}
.bar-fill { 
  height: 100%; 
  border-radius: 6px; 
  background: linear-gradient(90deg, var(--blue-600), var(--teal-500)); 
}
.bar-val { 
  font-weight: 700; 
  color: var(--slate); 
  width: 34px; 
  text-align: right; 
}

.rank-row { 
  display: flex; 
  align-items: center; 
  gap: 12px; 
  margin-bottom: 14px; 
  font-size: 14px; 
}
.rank-num { 
  width: 26px; 
  height: 26px; 
  border-radius: 50%; 
  background: var(--navy-900); 
  color: #fff; 
  font-weight: 800; 
  font-size: 12.5px; 
  display: grid; 
  place-items: center; 
  flex: none; 
}

.obs-more { 
  margin-top: 16px; 
  font-weight: 700; 
  font-size: 13.5px; 
  color: var(--blue-600); 
  display: inline-flex; 
  align-items: center; 
  gap: 5px; 
  text-decoration: none !important;
}
.obs-more:hover { 
  color: var(--teal-600); 
}


/* ============================================================
   9. OPORTUNIDADES DESTACADAS
   ============================================================ */



.op-card img { 
  width: 100%; 
  height: 150px; 
  object-fit: cover; 
}




/* ============================================================
/* ============================================================
   13. FOOTER
   ============================================================ */
footer.site {
  background: var(--navy-900);
  color: #c9d9e6;
  padding-top: 80px;
  margin-top: 0;
  position: relative;
}

.footer-wave { 
  position: absolute; 
  top: -2px; 
  left: 0;  
  right: 0; 
  line-height: 0; 
  transform: translateY(-99%); 
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr .8fr .8fr 1.1fr;
  gap: 40px;
  padding-bottom: 50px;
  border-bottom: 1px solid rgba(255,255,255,.12);
}

.footer-brand .logo { 
  color: #fff; 
}
.footer-brand p { 
  margin-top: 16px; 
  font-size: 14.5px; 
  line-height: 1.6; 
  color: #9fb6c8; 
  max-width: 280px; 
}

.socials { 
  display: flex; 
  gap: 10px; 
  margin-top: 22px; 
}
.socials a { 
  width: 38px; 
  height: 38px; 
  border-radius: 20%; 
  border: 1px solid rgba(255,255,255,.2); 
  display: grid; 
  place-items: center; 
  font-size: 14px; 
  color: #fff; 
  transition: .18s; 
  text-decoration: none !important;
}
.socials a:hover { 
  background: var(--teal-500); 
  border-color: var(--sky-400); 
  color: var(--navy-900); 
}

.footer-col h4 { 
  color: #fff; 
  font-size: 14.5px; 
  font-weight: 800; 
  margin-bottom: 18px; 
  letter-spacing: .02em; 
}
.footer-col ul { 
  list-style: none; 
  margin: 0; 
  padding: 0; 
  display: grid; 
  gap: 12px; 
}
.footer-col a { 
  font-size: 14px; 
  color: #a9bfd0; 
  transition: .15s; 
  text-decoration: none !important;
}
.footer-col a:hover { 
  color: #fff; 
}

.contact-item { 
  display: flex; 
  gap: 12px; 
  font-size: 14px; 
  color: #a9bfd0; 
  margin-bottom: 14px; 
  align-items: flex-start; 
}
.contact-item .ic { 
  flex: none; 
  margin-top: 2px; 
  color: var(--sky-400); 
}

.footer-bottom {
  display: flex; 
  align-items: center; 
  /* justify-content: space-between;  */
  justify-content: center;
  flex-wrap: wrap; 
  gap: 12px;
  padding: 26px 0;
  font-size: 13px; 
  color: #8ba3b6;
}
.footer-bottom .legal { 
  display: flex; 
  gap: 26px; 
}
.footer-bottom a {
  text-decoration: none !important;
}
.footer-bottom a:hover { 
  color: #fff; 
}


/* ============================================================
   14. RESPONSIVE
   ============================================================ */
@media (max-width: 1290px) {
  .logo-container {
    margin-left: 40px;
  }
}

@media (max-width: 1200px) {
  .logo-container {
    margin-left: 0px;
  }
}

@media (max-width: 1170px) {
  nav.primary-menu {
    gap: 12px;
  }
}

@media (max-width: 1080px) {
  .obs-grid { 
    grid-template-columns: repeat(2, 1fr); 
  }
  .op-grid, 
  
  .quick-card { 
    grid-template-columns: repeat(4, 1fr); 
  }
  .footer-grid { 
    grid-template-columns: 1fr 1fr; 
  }
}

@media (max-width: 980px) {
  .cta { 
    grid-template-columns: 1fr; 
    text-align: center; 
    justify-items: center; 
  }
  .cta-actions { 
    width: 100%; 
  }
  .cta-list li { 
    justify-content: center; 
  }
}

@media (max-width: 760px) {
  nav.primary { 
    display: none; 
  }
  .header-inner { 
    padding: 14px 18px; 
  }

  .hero-visual { 
    height: 300px; 
    margin-top: 20px; 
  }
  .collage .c1 { 
    width: 190px; 
    height: 190px; 
  }
  .collage .c2 { 
    width: 120px; 
    height: 120px; 
  }
  .collage .c3 { 
    width: 150px; 
    height: 150px; 
  }

  .obs-grid { 
    grid-template-columns: 1fr 1fr; 
  }
  .op-grid {
    grid-template-columns: repeat(4, 1fr); 
  }
  .quick-card { 
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 12px;
    padding: 20px 16px;
    border-radius: 20px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; 
  }
  .quick-card::-webkit-scrollbar {
    display: none;
  }
  .quick-card .quick-item {
    scroll-snap-align: center;
    flex: 0 0 calc(30% - 12px);
    min-width: 86px;
  }
  section { 
    padding: 60px 0; 
  }
  .footer-grid { 
    grid-template-columns: 1fr; 
    padding-bottom: 30px; 
    text-align: center;
    justify-items: center;
  }
  .footer-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .footer-brand p {
    text-align: center;
  }
  .socials {
    justify-content: center;
  }
  .footer-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
  }
  .footer-col ul {
    justify-items: center;
  }
  .contact-item {
    justify-content: center;
    text-align: center;
  }
  .repo-page-hero {
    padding: 70px 0 74px !important;
  }
  .repo-page-hero-inner {
    flex-direction: column;
  }
}



/* ============================================================ 
   UTILITY GRIDS 
   ============================================================ */
.grid-2-cols { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.grid-3-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid-4-cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.grid-5-cols { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; }

/* Responsive adjustments for static column grids */
@media (max-width: 992px) {
  .grid-3-cols, .grid-4-cols, .grid-5-cols {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .grid-2-cols, .grid-3-cols, .grid-4-cols, .grid-5-cols {
    grid-template-columns: 1fr;
  }
}

.grid-auto-240 { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); gap: 20px; }
.grid-auto-260 { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 24px; }
.grid-auto-280 { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: 24px; }
.grid-auto-360 { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 360px), 1fr)); gap: 24px; }


/* --- Generic Carousel Track --- */
.carousel-container > [class*='grid-auto'] {
  display: flex !important;
  flex-wrap: nowrap !important;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding-top: 16px;
  padding-bottom: 24px;
  margin-top: -16px;
  margin-bottom: -24px;
}
.carousel-container > [class*='grid-auto']::-webkit-scrollbar {
  display: none;
}

.carousel-container > [class*='grid-auto']::before,
.carousel-container > [class*='grid-auto']::after {
  content: '';
  margin: auto;
}
.carousel-container > [class*='grid-auto'] > * {
  scroll-snap-align: start;
  flex: 0 0 calc((100% - (3 * 24px)) / 4);
}

@media (max-width: 1080px) {
  .carousel-container > [class*='grid-auto'] > * {
    flex: 0 0 calc((100% - (2 * 24px)) / 3);
  }
}

@media (max-width: 760px) {
  .carousel-container > [class*='grid-auto'] > * {
    flex: 0 0 calc((100% - (1 * 24px)) / 2);
  }
}

@media (max-width: 480px) {
  .carousel-container > [class*='grid-auto'] > * {
    flex: 0 0 100%;
  }
}

/* Adjustments for specific grid types if needed */
.carousel-container .grid-auto-360 > * { flex: 0 0 calc((100% - (2 * 24px)) / 3); }
@media (max-width: 1080px) { .carousel-container .grid-auto-360 > * { flex: 0 0 calc((100% - (1 * 24px)) / 2); } }
@media (max-width: 760px) { .carousel-container .grid-auto-360 > * { flex: 0 0 100%; } }

/* --- UI Carousel Buttons (Global) --- */
.carousel-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--navy-900);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: all .2s;
  flex: none;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
}
.carousel-btn:hover {
  background: var(--navy-900);
  border-color: var(--navy-900);
  color: #fff;
}
.carousel-prev {
  left: -22px;
}
.carousel-next {
  right: -22px;
}

/* ============================================================
   15. UTILIDADES REFACTORIZADAS (Limpieza de estilos inline)
   ============================================================ */

/* 1. Botones de Carrusel */
.arrow-left, .arrow-right {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  box-shadow: var(--shadow-md);
}
.arrow-left { left: -20px; }
.arrow-right { right: -20px; }

/* 2. Navegación por puntos (dots) */
.dot-nav span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.3);
  display: inline-block;
  transition: all 0.3s ease;
}
.dot-nav .active {
  width: 22px;
  height: 8px;
  border-radius: 6px;
  background: var(--teal-500);
}

/* Variante dot-nav para fondos blancos (ej: oportunidades, home cursos) */
.dot-nav-dark span {
  background: var(--line);
}
.dot-nav-dark .active {
  background: var(--ink);
}

/* 3. Botones */
.btn-block {
  width: 100%;
  justify-content: center;
}

/* 4. Imágenes y visuales */
.img-cover {
  width: 100%;
  height: 100%;
  border-radius: 12px;
  object-fit: cover;
}

.status-dot-teal { background: var(--teal-500); }
.status-dot-blue { background: var(--blue-500); }
.status-dot-sky  { background: var(--sky-400); }
.status-dot-red  { background: var(--red-500); }
.status-dot-slate { background: var(--slate-light); }
.status-dot-ink  { background: var(--ink); }

/* Colores de texto genéricos */
.text-teal { color: var(--teal-600) !important; }
.text-blue { color: var(--blue-600) !important; }
.text-navy { color: var(--navy-800) !important; }
.text-slate-light { color: var(--slate-light) !important; }
.text-yellow { color: var(--yellow-500) !important; }
.text-red { color: var(--red-500) !important; }
/* 6. Estilos Hero y fondos */

/* 7. Marcas */
.brand-linkedin { color: #0A66C2; }
.brand-bumeran { color: #e63946; }
.brand-computrabajo { color: var(--navy-900); }
.brand-mtpe { color: var(--teal-600); }



.card-visual .tag {
  position: absolute;
  z-index: 10;
  top: 12px;
  left: 12px;
}

.card-visual .card-bookmark,
.curso-thumb .card-bookmark {
  position: absolute;
  top: 15px;
  z-index: 10;
  right: 15px;
  font-size: 16px;
  color: var(--navy-900);
  cursor: pointer;
  background: rgba(255,255,255,0.9);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.card-visual .card-bookmark:hover,
.curso-thumb .card-bookmark:hover {
  background: #fff;
}

/* 9. Flechas del Hero (banner principal) */
.hero-arrow {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: transparent;
  color: #fff;
  font-size: 18px;
  display: grid;
  place-items: center;
  transition: all 0.3s ease;
  cursor: pointer;
}
.hero-arrow:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: #fff;
}



.btn-pill {
  border-radius: 100px;
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 0.04em;
  font-weight: 700;
}


/* ============================================================
   UI STEPS (CONTENEDOR DE PASOS)
   ============================================================ */
.ui-step-card {
  width: 100%;
  height: 140px;
  max-width: 140px;
  cursor: pointer;
  position: relative;
}


@media (max-width: 768px) {
  .ui-steps-container {
    flex-direction: column;
    align-items: center;
    gap: 40px;
  }
  .ui-steps-container::before {
    top: 0;
    bottom: 0;
    left: 50%;
    right: auto;
    width: 0;
    height: 100%;
    transform: translateX(-50%);
    border-top: none;
    border-left: 2px dashed var(--teal-500);
  }
  .ui-box-tooltip {
    position: static;
    transform: none;
    width: 100%;
    max-width: 300px;
    opacity: 1;
    visibility: visible;
    margin-top: 15px;
    pointer-events: auto;
    background: #fff;
    color: var(--navy-900);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-sm);
  }
  .ui-box-tooltip::after {
    display: none;
  }
}

/* ==========================================================================
   SISTEMA DE MODALES (Global)
   ========================================================================== */
.ui-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(4px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.ui-modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.ui-modal {
  background: #fff;
  border-radius: var(--radius-xl, 16px);
  width: 90%;
  max-width: 800px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-xl, 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04));
  transform: translateY(20px) scale(0.98);
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.ui-modal-overlay.active .ui-modal {
  transform: translateY(0) scale(1);
}

.ui-modal-header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--line, #e2e8f0);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.ui-modal-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--blue-700);
  margin: 0;
}

.ui-modal-close {
  background: transparent;
  border: none;
  font-size: 20px;
  color: var(--slate, #64748b);
  cursor: pointer;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  transition: background 0.2s, color 0.2s;
}

.ui-modal-close:hover {
  background: var(--sky-100, #e0f2fe);
  color: var(--primary, #0f172a);
}

.ui-modal-body {
  padding: 24px;
  overflow-y: auto;
  flex: 1;
}

.ui-modal-footer {
  padding: 16px 24px;
  border-top: 1px solid var(--line, #e2e8f0);
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}



/* ============================================================
   RESPONSIVE HEADER (MENU HAMBURGUESA)
   ============================================================ */
.mobile-controls {
  display: none;
}
.mobile-only-bell {
  display: none;
  background: transparent;
  border: none;
  font-size: 20px;
  color: var(--navy-900);
}
.mobile-menu-toggle {
  display: none;
  background: transparent;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  border: none;
  padding: 0;
}

.mobile-menu-toggle .bar {
  display: block;
  width: 24px;
  height: 3px;
  background-color: var(--navy-900);
  transition: all 0.3s ease-in-out;
  border-radius: 3px;
}

.mobile-menu-toggle.active .bar:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.mobile-menu-toggle.active .bar:nth-child(2) {
  opacity: 0;
}

.mobile-menu-toggle.active .bar:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

.nav-container {
  display: contents;
}

@media (max-width: 1040px) {
  .logo-container {
    margin-left: 0;
  }
  
  .header-inner {
    height: 70px;
    padding: 0 20px;
    position: relative; 
  }

  .logo img {
    max-height: 50px;
    width: auto;
  }

  .mobile-controls {
    display: flex;
    align-items: center;
    gap: 15px;
  }
  .mobile-only-bell {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    cursor: pointer;
  }
  .desktop-only-bell {
    display: none !important;
  }

  .mobile-menu-toggle {
    display: flex;
  }

  .nav-container {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: #ffffff;
    padding: clamp(15px, 4dvh, 30px) 20px;
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.1);
    align-items: center;
    border-top: 1px solid var(--line);
    max-height: calc(100dvh - 70px); /* 70px es el alto exacto del header en mobile */
    overflow-y: auto;
  }

  .nav-container.active {
    display: flex;
  }

  nav.primary-menu {
    display: flex !important;
    flex-direction: column;
    gap: clamp(6px, 2.5dvh, 24px);
    width: 100%;
    text-align: center;
  }

  nav.primary-menu a {
    font-size: 16px;
    color: var(--navy-900);
    padding: clamp(6px, 1.5dvh, 10px);
    justify-content: center;
    display: flex !important;
  }

  nav.primary-menu a.current {
    color: var(--navy-900);
  }

  nav.primary-menu a.current::after {
    background: var(--teal-500);
    height: 3px;
    bottom: -6px;
    border-radius: 3px;
    width: 100%;
    max-width: 80px;
    left: 50%;
    transform: translateX(-50%);
  }

  .header-actions {
    flex-direction: column;
    width: 100%;
    margin-top: clamp(6px, 1.5dvh, 12px);
    gap: clamp(8px, 2dvh, 16px);
  }

  .link-login, 
  .header-actions .btn {
    width: 100%;
    text-align: center;
    justify-content: center;
  }
}

/* ============================================================
   HERO (Compartido por Repositorio y Organizate)
   ============================================================ */
/* --- Hero / Título de página --- */
.repo-page-hero {
  background: linear-gradient(135deg, var(--navy-900) 0%, var(--blue-700) 100%);
  padding: 48px 0 52px;
}

.repo-page-hero-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}

.repo-page-copy {
  flex: 1.2;
  min-width: 280px;
}

/* Breadcrumb dentro del hero */
.repo-page-copy .ge-breadcrumb-list {
  margin-bottom: 14px;
}

.repo-page-copy .ge-breadcrumb-list a,
.repo-page-copy .ge-breadcrumb-list span {
  color: rgba(255, 255, 255, 0.7);
}

.repo-page-copy .ge-breadcrumb-list a:hover {
  color: #fff;
}

.repo-page-copy .ge-breadcrumb-list li[aria-current="page"],
.repo-page-copy .ge-breadcrumb-list span[aria-current="page"] {
  color: #fff;
}

.repo-page-title {
  font-size: clamp(28px, 3.2vw, 40px);
  font-weight: 800;
  color: #fff;
  margin: 0 0 16px;
  line-height: 1.15;
}

.repo-page-subtitle {
  color: #dbe8f2;
  font-size: 16px;
  line-height: 1.6;
  max-width: 560px;
}
/* ---- Perfil ---- */
.user-profile {
  display: flex;
  align-items: center;
  gap: 15px;
  cursor: pointer;
  padding: 12px 14px;
  border-radius: 10px;
  transition: background 0.2s ease;
}
.user-profile:hover {
  background: var(--sky-100);
}
.user-profile a {
  text-decoration: none !important;
  display: flex;
  align-items: center;
  gap: 10px;
}
.user-profile img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
}
.user-profile span {
  font-weight: 600;
  font-size: 14.5px;
  color: var(--navy-900);
  transition: color 0.2s ease;
}
.user-profile:hover span {
  color: var(--blue-600);
}

/* Bookmark icon styles */
.org-curso-bookmark {
  position: absolute;
  top: 15px;
  right: 15px;
  background: rgba(255,255,255,0.9);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--navy-900);
  font-size: 16px;
  cursor: pointer;
  z-index: 10;
  box-shadow: var(--shadow-sm);
}

.bookmark {
  position: absolute;
  top: 15px;
  right: 15px;
  background: rgba(255,255,255,0.9);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  color: var(--navy-900);
  font-size: 16px;
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
}

.sc-bookmark-icon {
  color: var(--navy-900);
  background: rgba(255,255,255,0.9);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
}



/* Sin entradas guardadas en Perfil */
.sin-resultados {
  text-align: center;
  padding: 40px 20px;
}
.sin-resultados-icono {
  font-size: 40px;
  color: var(--line);
  margin-bottom: 16px;
}
.sin-resultados-titulo {
  color: var(--slate);
  font-weight: 600;
}
.sin-resultados-desc {
  color: var(--slate);
  font-size: 14px;
  margin-top: 8px;
}
.sin-resultados-btn {
  margin-top: 20px;
}


/* ============================================================
   6. HERO
   ============================================================ */
.hero {
  position: relative;
  overflow: hidden;
  background: radial-gradient(120% 140% at 82% -10%, #12507f 0%, var(--navy-900) 46%, #061527 100%);
  padding: 64px 0 90px;
}

.hero .bubble { 
  position: absolute; 
  border-radius: 50%; 
  opacity: .5; 
  pointer-events: none; 
}
.hero .bubble.b1 { 
  width: 220px; 
  height: 220px; 
  background: radial-gradient(circle at 35% 30%, var(--teal-500), transparent 70%); 
  top: -60px; 
  right: 12%; 
  opacity: .35; 
}
.hero .bubble.b2 { 
  width: 120px; 
  height: 120px; 
  border: 2px solid rgba(255,255,255,.18); 
  top: 60%; 
  right: 2%; 
}
.hero .bubble.b3 { 
  width: 70px; 
  height: 70px; 
  background: var(--sky-400); 
  opacity: .25; 
  bottom: 6%; 
  left: 44%; 
}


.hero-nav-btn {
  width: 46px; 
  height: 46px;
  border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,.35);
  background: rgba(255,255,255,.06);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 18px;
  flex: none;
  transition: .18s;
}
.hero-nav-btn:hover { 
  background: #fff; 
  color: var(--navy-900); 
}

.hero-copy-row { 
  display: flex; 
  align-items: center; 
  gap: 18px; 
}
.hero-copy { 
  color: #fff; 
  max-width: 560px; 
}
.hero-copy h1 { 
  color: #fff; 
}
.hero-copy p  { 
  color: #fff; 
}
.hero-copy .eyebrow { 
  color: var(--sky-400); 
}
.hero-copy h1 {
  font-size: clamp(32px, 4vw, 46px);
  font-weight: 800;
  margin: 14px 0 18px;
  letter-spacing: -.01em;
}
.hero-copy h1 em { 
  color: var(--sky-400); 
  font-style: normal; 
}
.hero-copy p { 
  color: #ffffff; 
  font-size: 16.5px; 
  line-height: 1.6; 
  max-width: 480px; 
}

.hero-actions { 
  display: flex; 
  flex-wrap: wrap; 
  gap: 14px; 
  margin-top: 30px; 
}

.hero-dots { 
  display: flex; 
  gap: 8px; 
  margin-top: 38px; 
}
.hero-dots span { 
  width: 8px; 
  height: 8px; 
  border-radius: 50%; 
  background: rgba(255,255,255,.3); 
}
.hero-dots span.active { 
  background: var(--teal-500); 
  width: 22px; 
  border-radius: 6px; 
}

.hero-visual { 
  position: relative; 
  height: 430px; 
}
.collage img { 
  position: absolute; 
  object-fit: cover; 
  border-radius: 50%; 
  box-shadow: 0 20px 45px rgba(0,0,0,.35); 
  border: 5px solid rgba(255,255,255,.14); 
}
.collage .c1 { 
  width: 270px; 
  height: 270px; 
  top: 6px; 
  left: 36px; 
}
.collage .c2 { 
  width: 170px; 
  height: 170px; 
  top: 0; 
  right: 12px; 
}
.collage .c3 { 
  width: 210px; 
  height: 210px; 
  bottom: 0; 
  right: 52px; 
}
.collage .ring { 
  position: absolute; 
  border-radius: 50%; 
  border: 2px dashed rgba(255,255,255,.28); 
  width: 130px; 
  height: 130px; 
  bottom: 24px; 
  left: 0; 
}
.collage .dot-solid { 
  position: absolute; 
  width: 26px; 
  height: 26px; 
  border-radius: 50%; 
  background: var(--teal-500); 
  top: 44%; 
  left: 8px; 
  box-shadow: 0 8px 18px rgba(34,198,168,.5); 
}

.hero-wave { 
  position: absolute; 
  left: 0; 
  right: 0; 
  bottom: -2px; 
  line-height: 0; 
}

.hero-blue {
  background: linear-gradient(135deg, var(--navy-900) 0%, var(--blue-700) 100%);
}

.obs-mapa-card {
  /* bg, border, radius-lg, shadow → .card */
  padding: 24px;
  position: relative;
  min-height: 320px;
  display: flex;
  flex-direction: column;
}
.obs-mapa-controls {
  display: flex;
  gap: 6px;
  margin-bottom: 12px;
}
.obs-map-btn {
  width: 30px;
  height: 30px;
  border-radius: 6px;
  border: 1.5px solid var(--line);
  background: #fff;
  color: var(--slate);
  display: grid;
  place-items: center;
  font-size: 14px;
  transition: .18s;
}
.obs-map-btn:hover {
  border-color: var(--blue-600);
  color: var(--blue-600);
}
.obs-mapa-placeholder {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--sky-100);
  border-radius: var(--radius-md);
  padding: 32px;
}

/* Fix for carousel bottom space */
.carousel-container {
    margin-bottom: 40px;
}

/* --- Espaciado dinámico antes del Footer --- */
/* Añade 90px extra al final del contenido de la última sección, sumándose a su padding original */
body > section:last-of-type::after {
    content: "";
    display: block;
    height: 90px;
}

/* --- Shared Observatorio / Guia Empleabilidad Classes --- */
.obs-indicadores-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
}

.obs-politica-card {
  /* bg, border, radius-md, shadow, display col, transition → .card .card-sm .card-interactive .card-col */
  padding: 22px;
  gap: 10px;
}
/* .obs-politica-card:hover → cubierto por .card-interactive:hover */
.obs-politica-card--more {
  /* align-items, justify-content, text-align, cursor, background, border-style → .card-more */
  gap: 12px; /* propio */
}
/* .obs-politica-card--more i/p → cubiertos por .card-more i/p */
/* .obs-politica-card--more:hover → cubierto por .card-more:hover */
.obs-politica-icon {
  font-size: 28px;
  color: var(--blue-600);
}
.obs-politica-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--navy-900);
  line-height: 1.4;
  flex: 1;
}
.obs-politica-entidad {
  /* font-size, weight, uppercase, tracking → .text-overline (valor slate-light propio) */
  color: var(--slate-light); /* propio: distinto al slate de .text-overline */
}

/* ============================================================
   RESPONSIVE GLOBALES & HERO (MOBILE)
   ============================================================ */
@media (max-width: 992px) {
  .hero-copy-row {
    flex-direction: column;
    text-align: center;
  }
  .hero-copy p {
    margin: 0 auto;
  }
  .hero-actions {
    justify-content: center;
  }
  .hero-dots {
    justify-content: center;
  }
  .hero-visual {
    height: 340px;
    margin-top: 30px;
  }
}

@media (max-width: 768px) {
  :root {
    --space-xl: 48px;
    --space-lg: 40px;
    --space-md: 20px;
  }

  .hero {
    padding: 70px 0;
  }

  .hero-visual {
    height: 280px;
  }

  .section-head {
    margin-bottom: 20px;
  }

  /* Reducir el collage de imagenes en movil */
  .collage .c1 {
    width: 180px;
    height: 180px;
    left: 10px;
  }
  .collage .c2 {
    width: 110px;
    height: 110px;
  }
  .collage .c3 {
    width: 130px;
    height: 130px;
    right: 10px;
  }
  
  .collage .ring {
    width: 100px;
    height: 100px;
  }
  
  .hero .bubble.b1 {
    width: 140px;
    height: 140px;
    right: -20px;
  }
  /* Grid de Observatorio / Generador CV a 2 columnas en móvil */
  .obs-indicadores-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 18px;
  }
  .obs-indicadores-grid > * {
    width: calc(50% - 9px);
  }
}
