:root {
  --blue: #00245A;
  --blue2: #003A78;
  --blue3: #0B5EA8;
  --cyan: #14BEEA;
  --green: #009D81;
  --green2: #00B99A;
  --ink: #071D38;
  --muted: #64758A;
  --paper: #F6FAFE;
  --white: #fff;
  --line: rgba(0, 36, 90, 0.12);
  --glass: rgba(255, 255, 255, 0.76);
  --shadow: 0 28px 80px rgba(0, 36, 90, 0.13), 0 8px 28px rgba(0, 157, 129, 0.06);
  --radius: 30px;
  --ease: cubic-bezier(.2, .8, .2, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--ink);
  background: transparent;
  min-height: 100vh;
  overflow-x: hidden;
  font-size: 21px; /* +5pt más grande */
}

/* ESCENARIO GLOBAL MULTICAPA 2.5D (FONDO PERMANENTE EN TODA LA PÁGINA) */
.global-scenery-container {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: -10;
  pointer-events: none;
  overflow: hidden;
  background: #00245A;
}

.scenery-layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  will-change: transform;
}

button, a { font: inherit; }
a { text-decoration: none; color: inherit; }
button { color: inherit; }

.glass {
  background: rgba(255, 255, 255, 0.40);
  border: 1px solid rgba(255, 255, 255, 0.72);
  box-shadow: 0 20px 60px rgba(0, 36, 90, 0.16);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.scroll-line {
  position: fixed;
  left: 0;
  top: 0;
  height: 4px;
  width: 0;
  background: linear-gradient(90deg, var(--green), var(--cyan), var(--blue3));
  z-index: 1000;
  box-shadow: 0 0 16px rgba(20, 190, 234, .75);
}

/* NAVEGACIÓN FLOTANTE DISCRETA (NO OBSTRUYE EL CIELO NI EL LOGO) */
.topbar-nav-bar {
  position: fixed;
  top: 18px;
  right: 28px;
  z-index: 120;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.50);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1.5px solid rgba(255, 255, 255, 0.85);
  box-shadow: 0 10px 28px rgba(0, 36, 90, 0.12);
  transition: 0.3s var(--ease);
}
.brand-mini { display: none; }
.topbar-nav-bar .main-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}
.topbar-nav-bar .main-nav a {
  padding: 8px 16px;
  border-radius: 999px;
  color: #072a4d;
  font-weight: 800;
  font-size: 16px;
  transition: 0.2s;
}
.topbar-nav-bar .main-nav a:hover,
.topbar-nav-bar .main-nav a.active {
  background: rgba(0, 36, 90, 0.08);
  color: var(--blue);
}
.topbar-nav-bar .icon-button {
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: rgba(0, 36, 90, 0.08);
  cursor: pointer;
  transition: 0.2s;
}
.topbar-nav-bar .icon-button:hover {
  transform: translateY(-2px);
  background: rgba(0, 157, 129, 0.18);
}
.topbar-nav-bar .github svg { width: 22px; fill: var(--blue); }

/* PARALLAX HERO CONTAINER (4 CAPAS 2.5D CALCADO DE LA REFERENCIA) */
.parallax-hero {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 820px;
  max-height: 1080px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 24px 20px 20px;
  background: transparent;
  overflow: hidden;
  z-index: 10;
}

/* LAYERS COMMON */
.parallax-layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  will-change: transform;
}

/* CAPA 1: CIELO Y NUBES (ALTA RESOLUCIÓN) */
.layer-sky {
  inset: -40px -80px;
  width: calc(100% + 160px);
  height: calc(100% + 80px);
  z-index: 1;
  background-image: url('assets/images/hero_sky.jpg');
  background-size: cover;
  background-position: center top;
  animation: skyPan 26s ease-in-out infinite alternate;
}
@keyframes skyPan {
  0% { transform: scale(1.10) translateX(-30px); }
  100% { transform: scale(1.10) translateX(30px); }
}

/* CAPA 2: VECTORES GEOMÉTRICOS Y RAYOS DIAGONALES */
.layer-vectors {
  z-index: 2;
  pointer-events: none;
  overflow: hidden;
}

/* Matriz de 20 puntos luminosos (4x5) estilo referencia */
.dots-matrix {
  position: absolute;
  display: grid;
  grid-template-columns: repeat(5, 7px);
  gap: 12px;
  opacity: 0.90;
  animation: dotsPulse 6s ease-in-out infinite alternate;
}
.dots-left {
  top: 6%;
  left: 4%;
}
.dots-matrix span {
  width: 7px;
  height: 7px;
  border-radius: 99px;
  background: #00e6b8;
  box-shadow: 0 0 10px #00e6b8;
}
@keyframes dotsPulse {
  0% { opacity: 0.55; transform: scale(0.9); }
  100% { opacity: 1; transform: scale(1.15); filter: drop-shadow(0 0 10px #00e6b8); }
}

/* Franjas diagonales a -42° */
.vector-strip {
  position: absolute;
  border-radius: 20px;
  transform: rotate(-42deg);
  opacity: 0.76;
  will-change: transform;
}
.strip-main-left {
  width: 200px;
  height: 1600px;
  top: -380px;
  left: 12%;
  background: linear-gradient(180deg, rgba(0, 185, 154, 0.52), rgba(20, 190, 234, 0.18) 80%, transparent);
  border-left: 2px solid rgba(0, 255, 200, 0.75);
  border-right: 1.5px solid rgba(20, 190, 234, 0.5);
  animation: vectorSlide1 18s ease-in-out infinite alternate;
}
.strip-left-accent {
  width: 80px;
  height: 1300px;
  top: -260px;
  left: 7%;
  background: linear-gradient(180deg, rgba(20, 190, 234, 0.42), transparent);
  border-left: 1.5px solid rgba(255, 255, 255, 0.65);
  border-radius: 14px;
  animation: vectorSlide2 22s ease-in-out infinite alternate;
}
.strip-right-1 {
  width: 140px;
  height: 1400px;
  top: -360px;
  right: 26%;
  background: linear-gradient(180deg, rgba(20, 190, 234, 0.35), transparent);
  border-right: 1.5px solid rgba(0, 185, 154, 0.45);
  border-radius: 16px;
  animation: vectorSlide1 24s ease-in-out infinite alternate-reverse;
}
.strip-right-2 {
  width: 65px;
  height: 1000px;
  top: -200px;
  right: 10%;
  background: linear-gradient(180deg, rgba(0, 157, 129, 0.32), transparent);
  border-radius: 12px;
  animation: vectorSlide2 16s ease-in-out infinite alternate;
}

.vector-beam {
  position: absolute;
  width: 2.5px;
  height: 1600px;
  transform: rotate(-42deg);
  background: linear-gradient(180deg, transparent, rgba(0, 240, 200, 0.95) 50%, transparent);
  box-shadow: 0 0 16px #00e6b8;
}
.beam-left { top: -420px; left: 18%; animation: vectorSlide2 16s linear infinite; }
.beam-right { top: -450px; right: 29%; animation: vectorSlide1 14s linear infinite; }
.beam-center { top: -400px; right: 21%; animation: vectorSlide2 19s linear infinite; }

.floor-ribbon-accent {
  position: absolute;
  bottom: 3%;
  right: 5%;
  width: 140px;
  height: 50px;
  transform: skewX(-45deg);
  border: 2px solid rgba(0, 240, 180, 0.6);
  box-shadow: 0 0 20px rgba(0, 240, 180, 0.45);
  border-radius: 8px;
  pointer-events: none;
}

@keyframes vectorSlide1 {
  0% { transform: rotate(-42deg) translateY(-80px); }
  100% { transform: rotate(-42deg) translateY(80px); }
}
@keyframes vectorSlide2 {
  0% { transform: rotate(-42deg) translateY(60px); }
  100% { transform: rotate(-42deg) translateY(-60px); }
}

/* CAPA 3: EDIFICIOS Y PISO CON RECORTE 8K (ULTRA-NÍTIDO) */
.layer-buildings {
  inset: -30px -60px;
  width: calc(100% + 120px);
  height: calc(100% + 60px);
  z-index: 3;
  pointer-events: none;
  background-image: url('assets/images/hero_buildings.png');
  background-size: cover;
  background-position: center bottom;
  animation: buildingsPan 26s ease-in-out infinite alternate;
}
@keyframes buildingsPan {
  0% { transform: scale(1.06) translateX(25px); }
  100% { transform: scale(1.06) translateX(-25px); }
}

/* CAPA 4: FRENTE INTERACTIVO (UI CALCADA DE LA REFERENCIA) */
.hero-top-brand {
  text-align: center;
  margin-top: 10px;
  margin-bottom: 4px;
}
.hero-ut-logo {
  height: 82px;
  max-width: 480px;
  object-fit: contain;
  filter: drop-shadow(0 6px 20px rgba(0, 36, 90, 0.18));
}

.hero-composition {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 38px;
  width: 100%;
  max-width: 1280px;
  margin: auto 0;
  position: relative;
}

.hero-center-column {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  width: 100%;
  max-width: 760px;
}

/* TARJETA CENTRAL FLOTANTE GLASSMORPHISM CALCADA DE LA REFERENCIA */
.hero-glass-card {
  position: relative;
  background: rgba(255, 255, 255, 0.44);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 2px solid rgba(255, 255, 255, 0.95);
  border-radius: 38px;
  box-shadow: 0 0 35px rgba(0, 245, 175, 0.70),
              0 0 80px rgba(20, 190, 234, 0.38),
              inset 0 0 22px rgba(255, 255, 255, 0.8),
              0 22px 50px rgba(0, 36, 90, 0.18);
  padding: 30px 42px 26px;
  text-align: center;
  width: 100%;
  box-sizing: border-box;
}

.card-accent-pill {
  position: absolute;
  border-radius: 99px;
}
.top-pill {
  top: 30px;
  left: 36px;
  width: 48px;
  height: 5.5px;
  background: #009d81;
}
.bottom-pill {
  bottom: 56px;
  left: 36px;
  width: 42px;
  height: 5px;
  background: #0075a8;
}

.card-eyebrow {
  font-size: 20px;
  font-weight: 850;
  letter-spacing: 0.36em;
  color: #042544;
  text-transform: uppercase;
  margin: 0;
  line-height: 1.2;
}

.card-huge-title {
  font-family: 'Orbitron', 'Inter', sans-serif;
  font-size: clamp(52px, 5.6vw, 76px);
  font-weight: 950;
  letter-spacing: 0.02em;
  line-height: 0.95;
  margin: 6px 0 8px;
  background: linear-gradient(180deg, #022a46 0%, #006056 42%, #00947e 85%, #00b99a 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 4px 18px rgba(0, 185, 154, 0.30));
}

.card-subtitle {
  font-size: 21px;
  font-weight: 900;
  letter-spacing: 0.38em;
  color: #042544;
  text-transform: uppercase;
  margin: 0 0 8px;
  line-height: 1.2;
}

.card-career {
  font-size: 13px;
  font-weight: 850;
  letter-spacing: 0.14em;
  color: #1e3a59;
  line-height: 1.55;
  margin: 0 auto;
  max-width: 580px;
  text-transform: uppercase;
}

/* 4 BOTONES DE UNIDAD FLOTANTES DEBAJO DE LA TARJETA */
.hero-units-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  width: 100%;
}
.hero-unit-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-width: 150px;
  height: 58px;
  padding: 8px 18px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.60);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1.5px solid rgba(255, 255, 255, 0.92);
  cursor: pointer;
  transition: 0.25s var(--ease);
  color: #072a4d;
  box-shadow: 0 8px 22px rgba(0, 36, 90, 0.08);
  position: relative;
}
.hero-unit-btn svg { stroke: currentColor; flex-shrink: 0; }
.hero-unit-btn span {
  font-size: 15.5px;
  font-weight: 900;
  letter-spacing: 0.08em;
}
.hero-unit-btn i {
  position: absolute;
  bottom: 8px;
  width: 24px;
  height: 3px;
  background: rgba(0, 36, 90, 0.35);
  border-radius: 99px;
  transition: 0.25s;
}
.hero-unit-btn:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.88);
  border-color: #0ea5e9;
  box-shadow: 0 10px 26px rgba(20, 190, 234, 0.22);
}
.hero-unit-btn.active {
  background: linear-gradient(135deg, #009d81 0%, #0ea5e9 100%);
  color: #fff;
  border: 2px solid #5eead4;
  box-shadow: 0 0 28px rgba(0, 230, 160, 0.75),
              0 8px 24px rgba(0, 36, 90, 0.20);
}
.hero-unit-btn.active i {
  background: #fff;
  width: 32px;
}

/* COLUMNA DE VALORES (EXACTA A LA REFERENCIA, SIN BORDE LATERAL) */
.hero-values-column {
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-align: left;
  align-items: flex-start;
  align-self: center;
  margin-top: -30px;
}
.values-bar {
  width: 28px;
  height: 4px;
  background: #00b99a;
  border-radius: 99px;
  margin-bottom: 2px;
}
.hero-values-column span:not(.values-bar) {
  font-size: 13.5px;
  font-weight: 850;
  letter-spacing: 0.22em;
  color: #052646;
  line-height: 2.0;
  text-shadow: 0 1px 10px rgba(255, 255, 255, 0.95);
  transition: 0.2s;
}
.hero-values-column span:not(.values-bar):hover {
  color: var(--green);
  transform: translateX(3px);
}

/* CHIP DE ESTUDIANTE FLOTANTE */
.hero-student-chip {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 8px 22px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1.5px solid rgba(255, 255, 255, 0.85);
  box-shadow: 0 12px 30px rgba(0, 36, 90, 0.10);
  margin-top: 10px;
}
.chip-avatar {
  width: 48px;
  height: 48px;
  border-radius: 999px;
  overflow: hidden;
  border: 2.5px solid var(--green);
  flex-shrink: 0;
}
.chip-avatar img { width: 100%; height: 100%; object-fit: cover; }
.chip-info { display: flex; flex-direction: column; text-align: left; }
.chip-info b { font-size: 17px; color: var(--blue); }
.chip-info small { font-size: 14px; color: #53677e; font-weight: 600; }
.chip-social { display: flex; gap: 8px; margin-left: 14px; }
.chip-social a {
  font-size: 14px;
  font-weight: 800;
  padding: 5px 14px;
  border-radius: 999px;
  background: rgba(0, 36, 90, 0.06);
  color: var(--blue3);
  transition: 0.2s;
}
.chip-social a:hover {
  background: var(--blue);
  color: #fff;
}

/* SECCIÓN PRINCIPAL A ANCHO COMPLETO */
.section-fullwidth {
  width: calc(100% - 48px);
  max-width: 1880px;
  margin: 20px auto 70px;
}

/* PORTFOLIO HEADER */
.portfolio-header {
  border-radius: 30px;
  padding: 26px 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 20px;
}
.header-left h2 {
  font-size: clamp(34px, 3.8vw, 48px); /* +5pt */
  letter-spacing: -.035em;
  margin: 8px 0 0;
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
.unit-pill {
  font-size: 18px; /* +5pt */
  font-weight: 850;
  letter-spacing: .05em;
  text-transform: uppercase;
  background: linear-gradient(135deg, var(--blue3), var(--cyan));
  color: #fff;
  padding: 6px 18px;
  border-radius: 999px;
  box-shadow: 0 6px 18px rgba(20, 190, 234, .28);
}

/* SELECTOR COMPACTO DE LAS 4 UNIDADES */
.units-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(0, 36, 90, .05);
  padding: 6px;
  border-radius: 22px;
  border: 1px solid rgba(0, 36, 90, .09);
}
.unit-tab {
  border: 0;
  background: transparent;
  padding: 12px 22px;
  border-radius: 16px;
  cursor: pointer;
  font-size: 19px; /* +5pt */
  font-weight: 850;
  color: #4c6077;
  transition: .22s var(--ease);
}
.unit-tab:hover {
  background: rgba(255, 255, 255, .8);
  color: var(--blue);
}
.unit-tab.active {
  background: var(--blue);
  color: #fff;
  box-shadow: 0 10px 24px rgba(0, 36, 90, .22);
}

/* BARRA DE SABERES */
.saberes-bar {
  border-radius: 24px;
  padding: 14px 24px;
  margin-bottom: 22px;
  display: flex;
  align-items: center;
}
.saberes-nav {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.saber-tab {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 0;
  background: rgba(0, 36, 90, .04);
  padding: 10px 18px;
  border-radius: 14px;
  cursor: pointer;
  font-size: 18px; /* +5pt */
  font-weight: 800;
  color: #4b5e73;
  transition: .22s var(--ease);
}
.saber-tab:hover {
  background: rgba(255, 255, 255, .8);
  color: var(--ink);
}
.saber-tab.active {
  background: #fff;
  color: var(--blue);
  box-shadow: 0 8px 22px rgba(0, 36, 90, .14);
}
.tab-indicator {
  width: 10px;
  height: 10px;
  border-radius: 99px;
}
.dot-all { background: var(--blue3); }
.dot-blue { background: #0284c7; box-shadow: 0 0 8px rgba(2, 132, 199, .55); }
.dot-green { background: #10b981; box-shadow: 0 0 8px rgba(16, 185, 129, .55); }
.dot-yellow { background: #f59e0b; box-shadow: 0 0 8px rgba(245, 158, 11, .55); }

/* LAYOUT PRINCIPAL: 2 COLUMNAS (REELS + RESUMEN) */
.portfolio-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 420px;
  gap: 28px;
  align-items: start;
}

/* COLUMNA DE REELS */
.reels-column {
  display: flex;
  flex-direction: column;
  gap: 26px;
  min-width: 0;
}

/* ESTADO VACÍO (UNIDADES 2, 3, 4) */
.empty-unit-card {
  min-height: 520px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 30px;
  border-radius: 34px;
  border: 2px dashed rgba(255, 255, 255, .80);
  background: rgba(255, 255, 255, .45);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 20px 50px rgba(0, 36, 90, .10);
}
.empty-icon-wrap {
  width: 108px;
  height: 108px;
  border-radius: 32px;
  background: rgba(0, 36, 90, .05);
  display: grid;
  place-items: center;
  color: var(--blue3);
  margin-bottom: 24px;
}
.empty-unit-card h3 {
  font-size: 36px; /* +5pt */
  margin: 0 0 12px;
  color: var(--blue);
  letter-spacing: -.03em;
}
.empty-unit-card p {
  font-size: 23px; /* +5pt */
  color: #64758a;
  max-width: 520px;
  margin: 0 0 24px;
  line-height: 1.5;
}
.empty-status-badge {
  font-size: 18px; /* +5pt */
  font-weight: 800;
  padding: 10px 24px;
  border-radius: 999px;
  background: rgba(20, 190, 234, .12);
  color: var(--blue3);
  border: 1px solid rgba(20, 190, 234, .25);
}

/* CARDS DE CADA SABER (FILAS) */
.saber-row-card {
  border-radius: 30px;
  padding: 24px 26px 20px;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.saber-row-card.highlight {
  animation: glowPulse 1.2s ease;
}
@keyframes glowPulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.012); box-shadow: 0 0 35px rgba(20, 190, 234, .4); }
  100% { transform: scale(1); }
}

.row-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(0, 36, 90, .07);
}
.row-title-wrap {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
.row-title-wrap h3 {
  font-size: 25px; /* +5pt */
  font-weight: 850;
  margin: 0;
  color: var(--ink);
  letter-spacing: -.02em;
}
.row-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}
.reel-arrow-btn {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  border: 1px solid rgba(0, 36, 90, .1);
  background: rgba(255, 255, 255, .88);
  font-size: 24px; /* +5pt */
  font-weight: 900;
  color: var(--ink);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: .2s var(--ease);
}
.reel-arrow-btn:hover {
  transform: scale(1.08);
  background: #fff;
  box-shadow: 0 4px 14px rgba(0, 36, 90, .15);
}

/* IDENTIDAD CROMÁTICA DE CADA FILA (PANELES SEMI-TRANSPARENTES) */

/* 1. SABER: Tono azul ligero */
.saber-tone-blue {
  background: linear-gradient(135deg, rgba(235, 246, 255, .52), rgba(215, 238, 255, .32));
  border: 1.5px solid rgba(255, 255, 255, .80);
  box-shadow: 0 20px 48px rgba(11, 94, 168, .10);
}
.badge-blue {
  background: linear-gradient(135deg, #0284c7, #0B5EA8);
  color: #fff;
  padding: 6px 14px;
  border-radius: 12px;
  font-size: 16px; /* +5pt */
  font-weight: 900;
  letter-spacing: .08em;
  box-shadow: 0 4px 12px rgba(2, 132, 199, .25);
}
.saber-tone-blue .evidence-card {
  background: rgba(255, 255, 255, .62);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1.5px solid rgba(255, 255, 255, .85);
  box-shadow: 0 10px 26px rgba(14, 165, 233, .09);
}
.saber-tone-blue .evidence-card:hover {
  background: rgba(255, 255, 255, .84);
  border-color: rgba(14, 165, 233, .60);
  box-shadow: 0 16px 36px rgba(14, 165, 233, .20);
}
.saber-tone-blue .preview-btn {
  color: #0284c7;
  background: rgba(14, 165, 233, .12);
}
.saber-tone-blue .preview-btn:hover {
  background: #0284c7;
  color: #fff;
}
.saber-tone-blue .download-btn {
  background: linear-gradient(145deg, #0284c7, #0B5EA8);
}

/* 2. SABER HACER: Tono verdoso ligero */
.saber-tone-green {
  background: linear-gradient(135deg, rgba(235, 253, 245, .52), rgba(210, 250, 230, .32));
  border: 1.5px solid rgba(255, 255, 255, .80);
  box-shadow: 0 20px 48px rgba(0, 157, 129, .10);
}
.badge-green {
  background: linear-gradient(135deg, #059669, #009D81);
  color: #fff;
  padding: 6px 14px;
  border-radius: 12px;
  font-size: 16px; /* +5pt */
  font-weight: 900;
  letter-spacing: .08em;
  box-shadow: 0 4px 12px rgba(16, 185, 129, .25);
}
.saber-tone-green .evidence-card {
  background: rgba(255, 255, 255, .62);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1.5px solid rgba(255, 255, 255, .85);
  box-shadow: 0 10px 26px rgba(16, 185, 129, .09);
}
.saber-tone-green .evidence-card:hover {
  background: rgba(255, 255, 255, .84);
  border-color: rgba(16, 185, 129, .60);
  box-shadow: 0 16px 36px rgba(16, 185, 129, .20);
}
.saber-tone-green .preview-btn {
  color: #059669;
  background: rgba(16, 185, 129, .12);
}
.saber-tone-green .preview-btn:hover {
  background: #059669;
  color: #fff;
}
.saber-tone-green .download-btn {
  background: linear-gradient(145deg, #059669, #009D81);
}

/* 3. SER Y CONVIVIR: Tono amarillento ligero */
.saber-tone-yellow {
  background: linear-gradient(135deg, rgba(254, 252, 232, .56), rgba(254, 245, 205, .34));
  border: 1.5px solid rgba(255, 255, 255, .80);
  box-shadow: 0 20px 48px rgba(217, 119, 6, .10);
}
.badge-yellow {
  background: linear-gradient(135deg, #d97706, #b45309);
  color: #fff;
  padding: 6px 14px;
  border-radius: 12px;
  font-size: 16px; /* +5pt */
  font-weight: 900;
  letter-spacing: .08em;
  box-shadow: 0 4px 12px rgba(245, 158, 11, .25);
}
.saber-tone-yellow .evidence-card {
  background: rgba(255, 255, 255, .62);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1.5px solid rgba(255, 255, 255, .85);
  box-shadow: 0 10px 26px rgba(245, 158, 11, .09);
}
.saber-tone-yellow .evidence-card:hover {
  background: rgba(255, 255, 255, .84);
  border-color: rgba(245, 158, 11, .60);
  box-shadow: 0 16px 36px rgba(245, 158, 11, .20);
}
.saber-tone-yellow .preview-btn {
  color: #b45309;
  background: rgba(245, 158, 11, .12);
}
.saber-tone-yellow .preview-btn:hover {
  background: #d97706;
  color: #fff;
}
.saber-tone-yellow .download-btn {
  background: linear-gradient(145deg, #d97706, #b45309);
}

/* CAROUSEL TRACK Y CONTENEDOR */
.carousel-container {
  position: relative;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 14px 4px 18px;
  mask-image: linear-gradient(to right, transparent, black 20px, black calc(100% - 20px), transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 20px, black calc(100% - 20px), transparent);
}
.carousel-container::-webkit-scrollbar {
  display: none;
}

.carousel-track {
  display: flex;
  gap: 18px;
  width: max-content;
  will-change: transform;
}

/* ANIMACIONES DE REEL CONTINUO */
@keyframes reelScrollLeft {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

@keyframes reelScrollRight {
  0% { transform: translateX(-50%); }
  100% { transform: translateX(0); }
}

.animate-left {
  animation: reelScrollLeft 52s linear infinite;
}

.animate-right {
  animation: reelScrollRight 52s linear infinite;
}

/* PAUSA AL HOVER */
.carousel-container:hover .carousel-track {
  animation-play-state: paused;
}
.carousel-track.is-paused {
  animation-play-state: paused;
}

/* TARJETAS DENTRO DEL REEL */
.carousel-track .evidence-card {
  width: 320px; /* Ampliado para acomodar texto 5pt más grande */
  min-width: 320px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  border-radius: 24px;
  overflow: hidden;
  transition: transform .28s var(--ease), box-shadow .28s var(--ease);
}
.carousel-track .evidence-card:hover {
  transform: translateY(-6px);
}

.thumb-wrap {
  position: relative;
  height: 195px;
  overflow: hidden;
  cursor: pointer;
  background: #eaf2f8;
}
.thumb-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: .35s var(--ease);
}
.evidence-card:hover .thumb-wrap img {
  transform: scale(1.035);
}

.topic-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  padding: 6px 12px;
  border-radius: 999px;
  font-weight: 900;
  font-size: 15px; /* +5pt */
  backdrop-filter: blur(10px);
  background: rgba(255, 255, 255, .94);
  color: var(--blue);
  box-shadow: 0 4px 12px rgba(0, 36, 90, .1);
}

.card-content {
  padding: 18px 18px 16px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.card-content h4 {
  font-size: 20px; /* +5pt */
  font-weight: 750;
  line-height: 1.35;
  margin: 6px 0 12px;
  color: var(--ink);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  height: 54px;
}
.card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 16px; /* +5pt */
  color: #64748b;
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid rgba(0, 36, 90, .06);
}
.card-actions {
  display: flex;
  gap: 10px;
  margin-top: 14px;
}
.preview-btn {
  flex: 1;
  height: 44px;
  border: 0;
  border-radius: 14px;
  font-weight: 850;
  font-size: 17px; /* +5pt */
  cursor: pointer;
  transition: .2s var(--ease);
}
.download-btn {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 900;
  font-size: 19px; /* +5pt */
  transition: .2s var(--ease);
}
.download-btn:hover {
  transform: translateY(-2px);
  filter: brightness(1.1);
}

/* PANEL LATERAL: RESUMEN DE APRENDIZAJE */
.learning-summary-panel {
  position: sticky;
  top: 100px;
  padding: 28px 26px;
  border-radius: 32px;
  border: 1.5px solid rgba(255, 255, 255, .82);
  background: rgba(255, 255, 255, .48);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  box-shadow: 0 20px 60px rgba(0, 36, 90, .14);
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.summary-top-tag {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 16px; /* +5pt */
  font-weight: 900;
  letter-spacing: .1em;
  color: var(--green);
}
.pulse-dot {
  width: 10px;
  height: 10px;
  border-radius: 99px;
  background: var(--green);
  box-shadow: 0 0 10px var(--green);
  animation: pulseDot 2s infinite;
}
@keyframes pulseDot {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(0, 157, 129, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(0, 157, 129, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(0, 157, 129, 0); }
}

.summary-heading {
  font-size: 28px; /* +5pt */
  font-weight: 900;
  letter-spacing: -.03em;
  margin: 0;
  color: var(--blue);
}
.summary-desc {
  font-size: 18px; /* +5pt */
  line-height: 1.55;
  color: #55697f;
  margin: 0;
}

.topics-accordion {
  display: flex;
  flex-direction: column;
  gap: 13px;
}
.topic-item {
  padding: 16px 18px;
  border-radius: 20px;
  background: rgba(255, 255, 255, .48);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, .75);
  transition: .2s var(--ease);
}
.topic-item:hover {
  background: rgba(255, 255, 255, .78);
  border-color: rgba(20, 190, 234, .45);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 36, 90, .08);
}
.topic-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
}
.topic-tag-pill {
  font-size: 15px; /* +5pt */
  font-weight: 900;
  padding: 4px 10px;
  border-radius: 9px;
  background: rgba(0, 36, 90, .06);
  color: var(--blue3);
  letter-spacing: .06em;
}
.topic-item h4 {
  font-size: 19px; /* +5pt */
  font-weight: 800;
  margin: 0;
  color: var(--ink);
}
.topic-item p {
  font-size: 17px; /* +5pt */
  line-height: 1.55;
  color: #55687d;
  margin: 0;
}

.summary-quick-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 4px;
}
.summary-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 50px;
  border-radius: 16px;
  font-size: 18px; /* +5pt */
  font-weight: 850;
  border: 0;
  cursor: pointer;
  transition: .2s var(--ease);
}
.summary-btn.primary {
  background: linear-gradient(135deg, var(--blue), var(--blue3));
  color: #fff;
  box-shadow: 0 10px 24px rgba(0, 36, 90, .18);
}
.summary-btn.primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(0, 36, 90, .26);
}
.summary-btn.secondary {
  background: rgba(255, 255, 255, .75);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(0, 36, 90, .15);
  color: var(--blue);
}
.summary-btn.secondary:hover {
  background: #fff;
  transform: translateY(-2px);
}

.summary-team-badge {
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, .38);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, .65);
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.summary-team-badge small {
  font-size: 15px; /* +5pt */
  font-weight: 900;
  letter-spacing: .08em;
  color: var(--muted);
}
.summary-team-badge b { color: var(--blue); font-size: 18px; } /* +5pt */
.summary-team-badge span { color: #64748b; font-size: 16px; } /* +5pt */

/* FOOTER (FROSTED GLASS CARD) */
footer {
  width: min(1600px, calc(100% - 40px));
  margin: 0 auto 36px;
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 22px 30px;
  background: rgba(255, 255, 255, .45);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1.5px solid rgba(255, 255, 255, .75);
  border-radius: 26px;
  box-shadow: 0 14px 40px rgba(0, 36, 90, .08);
  font-size: 17px; /* +5pt */
}
footer img { width: 220px; height: 50px; object-fit: contain; object-position: left center; }
footer div { display: flex; flex-direction: column; gap: 4px; color: #6e7c8d; font-size: 17px; } /* +5pt */
footer b { color: var(--blue); font-size: 19px; } /* +5pt */
footer > a {
  margin-left: auto;
  width: 48px;
  height: 48px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: rgba(0, 36, 90, .06);
  font-weight: 900;
  font-size: 20px;
  transition: .2s;
}
footer > a:hover { background: rgba(0, 157, 129, .15); }

/* VIEWER MODAL */
.viewer {
  position: fixed;
  inset: 0;
  z-index: 200;
  opacity: 0;
  visibility: hidden;
  transition: .2s;
}
.viewer.open { opacity: 1; visibility: visible; }
.viewer-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 17, 36, .58);
  backdrop-filter: blur(10px);
}
.viewer-panel {
  position: absolute;
  inset: 24px;
  border-radius: 32px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: rgba(250, 253, 255, .95);
  transform: translateY(16px) scale(.985);
  transition: .25s var(--ease);
}
.viewer.open .viewer-panel { transform: none; }
.viewer-panel > header {
  height: 84px;
  padding: 16px 26px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid rgba(0, 36, 90, .1);
}
.viewer-panel header span {
  font-size: 15px; /* +5pt */
  text-transform: uppercase;
  letter-spacing: .14em;
  color: var(--green);
  font-weight: 950;
}
.viewer-panel header h2 { margin: 4px 0 0; font-size: 25px; } /* +5pt */
.viewer-actions { display: flex; align-items: center; gap: 10px; }
.viewer-action-link {
  height: 46px;
  display: flex;
  align-items: center;
  padding: 0 16px;
  border-radius: 14px;
  background: rgba(0, 36, 90, .06);
  font-size: 17px; /* +5pt */
  font-weight: 850;
  color: var(--blue);
}
.viewer-body { flex: 1; min-height: 0; padding: 16px; }
.viewer-body iframe, .viewer-body img {
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 20px;
  background: #fff;
  object-fit: contain;
}
.viewer-open { overflow: hidden; }
.hidden { display: none !important; }

/* REVEAL ANIMATIONS */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.reveal.visible { opacity: 1; transform: none; }
.delay-1 { transition-delay: .08s; }

/* RESPONSIVE BREAKPOINTS */
@media (max-width: 1200px) {
  .portfolio-layout {
    grid-template-columns: 1fr;
  }
  .learning-summary-panel {
    position: static;
  }
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 50px;
  }
}

@media (max-width: 980px) {
  .topbar { height: 76px; }
  .brand { min-width: 0; }
  .brand img { width: 200px; }
  .main-nav { display: none; }
  .portfolio-header {
    flex-direction: column;
    align-items: flex-start;
  }
  .units-nav {
    width: 100%;
    justify-content: space-between;
  }
}

@media (max-width: 640px) {
  .section-fullwidth {
    width: calc(100% - 24px);
  }
  .topbar {
    width: calc(100% - 20px);
    top: 10px;
    margin-top: 10px;
    padding: 10px 14px;
  }
  .brand img { width: 180px; }
  .hero h1 { font-size: 48px; }
  .portfolio-header { padding: 20px; }
  .units-nav {
    flex-wrap: wrap;
    width: 100%;
  }
  .unit-tab {
    flex: 1 1 calc(50% - 8px);
    text-align: center;
    padding: 10px;
  }
  .saber-tab {
    flex: 1 1 calc(50% - 8px);
    justify-content: center;
    padding: 9px 12px;
  }
  .saber-row-card {
    padding: 18px 16px;
  }
  .row-title-wrap h3 {
    font-size: 20px;
  }
  .carousel-track .evidence-card {
    width: 280px;
    min-width: 280px;
  }
  .thumb-wrap { height: 170px; }
  .viewer-panel { inset: 8px; border-radius: 22px; }
  .viewer-panel > header { height: auto; min-height: 72px; padding: 12px; }
  .viewer-panel header h2 { font-size: 18px; }
  .viewer-action-link { display: none; }
}
