@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Space+Grotesk:wght@400;500;600;700&display=swap');

/* ==========================================================
   VN16 — DGPC | INDEX
   Archivo: css/estilos.css
   Estilos reconstruidos para el HTML de RAÍZ
   ========================================================== */

:root {
  --ink: #202722;
  --ink-soft: #37453b;
  --paper: #f5f4ed;
  --white: #ffffff;
  --muted: #727b72;
  --green: #547e53;
  --green-bright: #c9ed9c;
  --sage: #e2eddf;
  --sage-deep: #bacfb4;
  --peach: #efd1bd;
  --lilac: #dedbf3;
  --line: #d8dfd7;
  --font-display: 'Space Grotesk', 'Arial', sans-serif;
  --font-body: 'DM Sans', 'Arial', sans-serif;
  --page-width: 1220px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font: 400 16px/1.55 var(--font-body);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-family: var(--font-display); }
a { color: inherit; text-decoration: none; }
a:focus-visible { outline: 3px solid #92b66b; outline-offset: 4px; }
::selection { background: var(--green-bright); color: var(--ink); }

/* ----- Barra superior del equipo ----- */
.nav-equipo {
  position: relative;
  z-index: 20;
  min-height: 86px;
  padding: 0 clamp(24px, 5.4vw, 88px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  color: #f9f9f5;
  background: #202722;
  border-bottom: 1px solid rgba(255,255,255,.13);
}
.nav-brand { display: inline-flex; align-items: center; gap: 13px; min-width: 0; }
.nav-badge {
  flex: none;
  display: grid;
  place-items: center;
  width: 56px;
  height: 37px;
  border-radius: 4px;
  color: #1b2b1d;
  background: var(--green-bright);
  font: 700 15px/1 var(--font-display);
  letter-spacing: -.035em;
}
.nav-brand-text { font-size: 12px; font-weight: 600; letter-spacing: .025em; white-space: nowrap; }
.nav-right { display: flex; align-items: center; gap: clamp(20px, 3.1vw, 52px); }
.nav-links { display: flex; align-items: center; flex-wrap: wrap; gap: clamp(12px, 2vw, 27px); }
.nav-link {
  padding: 9px 0;
  color: #c9d2c9;
  font-size: 13px;
  font-weight: 600;
  transition: color .2s ease;
}
.nav-link:hover, .nav-link.activo { color: var(--green-bright); }
.nav-link.activo { border-bottom: 2px solid var(--green-bright); }
.nav-semestre {
  color: #acb9ac;
  padding-left: 23px;
  border-left: 1px solid #516054;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.5;
  white-space: nowrap;
}

/* ----- Portada principal ----- */
.landing {
  min-height: min(780px, calc(100svh - 86px));
  min-height: max(620px, min(780px, calc(100svh - 86px)));
  color: #f6f6f0;
  background: radial-gradient(circle at 87% 39%, #34473b 0%, #202722 39%, #1b211e 80%);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(52px, 7vw, 102px) clamp(24px, 8vw, 130px) 35px;
}
.landing::after {
  content: '';
  pointer-events: none;
  position: absolute;
  top: 6%;
  right: max(-16vw, -200px);
  width: min(62vw, 770px);
  aspect-ratio: 1;
  border: 1px solid rgba(201,237,156,.32);
  border-radius: 50%;
  box-shadow:
    0 0 0 75px rgba(201,237,156,.025),
    0 0 0 145px rgba(201,237,156,.028),
    inset 0 0 0 68px rgba(201,237,156,.032);
}
.landing::before {
  content: 'VN / 16';
  position: absolute;
  right: 12vw;
  top: 41%;
  transform: rotate(-24deg);
  font: 700 clamp(36px, 6vw, 96px)/1 var(--font-display);
  color: rgba(205,234,187,.07);
  pointer-events: none;
  white-space: nowrap;
}
.hero-main { position: relative; z-index: 1; width: 100%; max-width: var(--page-width); margin: auto 0; }
.subtitulo {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-size: clamp(12px, 1.1vw, 14px);
  font-weight: 600;
  color: var(--green-bright);
  letter-spacing: .035em;
  margin-bottom: clamp(20px, 3.4vw, 48px);
}
.subtitulo::before { content: ''; width: 28px; height: 2px; background: var(--green-bright); }
.hero-main h1 {
  font-size: clamp(65px, 10.4vw, 150px);
  line-height: .93;
  letter-spacing: -.075em;
  font-weight: 700;
  position: relative;
  z-index: 1;
}
.hero-meta {
  margin-top: clamp(43px, 6vw, 83px);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: 750px;
  gap: 18px;
}
.hero-meta-item { padding-top: 13px; border-top: 1px solid rgba(255,255,255,.32); }
.hero-meta-item small {
  display: block;
  margin-bottom: 7px;
  color: #a4b5a7;
  text-transform: uppercase;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .1em;
}
.hero-meta-item strong { display: block; font: 600 clamp(12px, 1.15vw, 16px)/1.4 var(--font-display); }
.hero-footer {
  z-index: 1;
  border-top: 1px solid rgba(255,255,255,.23);
  padding-top: 25px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  color: #d9e4d7;
  font-size: 12px;
  font-weight: 600;
}
.ver-info { color: var(--green-bright); }
.ver-info:hover { text-decoration: underline; text-underline-offset: 5px; }

/* ----- Accesos Mapa / Plan / App ----- */
.accesos-proyecto { background: #f3f4ee; padding: clamp(80px, 9vw, 145px) clamp(24px, 6vw, 94px); }
.accesos-shell, .section-shell { width: min(100%, var(--page-width)); margin-inline: auto; }
.accesos-encabezado {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 30px;
  margin-bottom: 35px;
}
.accesos-kicker { font: 700 12px var(--font-display); color: var(--green); letter-spacing: .12em; text-transform: uppercase; }
.accesos-bajada { display: block; margin-top: 9px; color: var(--muted); font-size: 15px; }
.accesos-encabezado h2 {
  max-width: 480px;
  font-size: clamp(36px, 5.4vw, 72px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -.065em;
  text-align: right;
}
.accesos-encabezado h2 span { color: var(--green); }
.accesos-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.acceso-card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-width: 0;
  min-height: 345px;
  padding: 25px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid rgba(53, 87, 58, .15);
  border-radius: 19px;
  transition: transform .22s ease, box-shadow .22s ease;
}
.acceso-card::before {
  content: attr(data-label);
  position: absolute;
  z-index: -1;
  bottom: 70px;
  right: -12px;
  color: rgba(31,61,39,.055);
  font: 700 clamp(80px, 8vw, 123px)/1 var(--font-display);
  letter-spacing: -.09em;
  pointer-events: none;
}
.acceso-card:not(.acceso-pendiente):hover { transform: translateY(-5px); box-shadow: 0 22px 42px rgba(34,56,40,.12); }
.acceso-mapa { background: #e2e8e1; }
.acceso-plan { background: #d6ebcb; }
.acceso-app { background: #f0ddd3; }
.acceso-pendiente { cursor: default; }
.acceso-top { display: flex; justify-content: space-between; align-items: start; gap: 14px; }
.acceso-top > span:first-child { font-size: 12px; font-weight: 700; color: #48624d; }
.acceso-icono {
  width: 39px;
  height: 39px;
  border: 1px solid rgba(43,70,50,.3);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font: 600 19px/1 var(--font-display);
}
.acceso-contenido { margin-top: auto; margin-bottom: 27px; }
.acceso-contenido h3 { font-size: clamp(40px, 4.5vw, 60px); letter-spacing: -.07em; line-height: 1; }
.acceso-contenido p { max-width: 320px; margin-top: 12px; font-size: 14px; color: #58655a; line-height: 1.52; }
.acceso-estado {
  display: inline-flex;
  align-self: flex-start;
  border-top: 1px solid rgba(40,65,43,.28);
  min-width: 100%;
  padding-top: 16px;
  font-size: 12px;
  font-weight: 700;
  color: #556d56;
}
.acceso-disponible {
  display: inline-block;
  background: var(--green);
  color: #fff;
  padding: 5px 10px;
  border-radius: 999px;
  margin-bottom: 13px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .03em;
}

/* ----- Aviso académico ----- */
.aviso {
  color: #f6f4eb;
  background: #26372b;
  padding: 54px clamp(24px, 6vw, 94px);
}
.aviso-contenido {
  max-width: var(--page-width);
  margin-inline: auto;
  display: grid;
  grid-template-columns: minmax(140px, .5fr) minmax(0, 2fr) 80px;
  align-items: start;
  gap: 27px;
}
.aviso-label {
  color: var(--green-bright);
  font: 700 12px/1.3 var(--font-display);
  letter-spacing: .08em;
  text-transform: uppercase;
}
.aviso-texto p { font-size: 14px; line-height: 1.7; max-width: 850px; color: #d5e2d5; }
.aviso-numero { font: 700 49px/1 var(--font-display); color: rgba(236,245,229,.22); text-align: right; }

/* ----- Información institucional ----- */
.informacion { padding: clamp(80px, 10vw, 150px) clamp(24px, 6vw, 94px) clamp(105px, 11vw, 175px); }
.info-intro { margin-bottom: clamp(38px, 5vw, 73px); }
.eyebrow { font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.eyebrow.dark { color: var(--green); }
.info-intro h2 {
  margin-top: 20px;
  font-size: clamp(50px, 7.4vw, 100px);
  line-height: .98;
  letter-spacing: -.07em;
  font-weight: 700;
}
.info-intro h2 span { display: block; color: var(--green); }
.institucion {
  display: grid;
  grid-template-columns: minmax(100px, .5fr) minmax(0, 1.65fr) minmax(200px, .9fr);
  gap: clamp(20px, 3vw, 47px);
  padding: clamp(30px, 3.6vw, 49px) 0;
  border-top: 1px solid var(--line);
}
.institucion-codigo { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.institucion-codigo .codigo {
  color: var(--green);
  font: 700 clamp(34px, 3.8vw, 51px)/1 var(--font-display);
  letter-spacing: -.05em;
}
.institucion-codigo small { color: var(--muted); font-size: 11px; font-weight: 600; }
.institucion-nombre h3 { max-width: 580px; font-size: clamp(25px, 3vw, 38px); line-height: 1.15; letter-spacing: -.045em; }
.institucion-nombre p { margin-top: 14px; max-width: 560px; font-size: 14px; color: var(--muted); }
.autoridades, .datos-academicos { display: grid; grid-template-columns: minmax(0, 1fr); gap: 19px; }
.autoridad, .dato-academico { display: flex; flex-direction: column; gap: 3px; }
.autoridad span, .dato-academico span {
  color: var(--green);
  font-size: 10px;
  letter-spacing: .11em;
  text-transform: uppercase;
  font-weight: 700;
}
.autoridad strong, .dato-academico strong { font-size: 14px; line-height: 1.35; font-weight: 700; }
.fadu { border-bottom: 1px solid var(--line); }

/* ----- Cátedra ----- */
.catedra-wrap { padding-top: clamp(40px, 5vw, 70px); }
.catedra-card {
  color: #f7f8f1;
  background: #23352b;
  border-radius: 20px;
  overflow: hidden;
  padding: clamp(30px, 4.4vw, 65px);
  display: grid;
  grid-template-columns: minmax(95px, .55fr) minmax(0, 1.3fr) minmax(240px, 1.1fr);
  gap: clamp(24px, 4vw, 65px);
}
.catedra-identidad { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.catedra-identidad .marca {
  width: 82px; height: 82px; border: 2px solid #c9ed9c; border-radius: 50%;
  display: grid; place-items: center; font: 700 29px var(--font-display); color: var(--green-bright);
}
.catedra-identidad small { font-size: 11px; color: #a9bbab; }
.label-mini { font-size: 11px; color: #a9bbab; text-transform: uppercase; font-weight: 700; letter-spacing: .08em; }
.catedra-titulo h3 {
  font-size: clamp(48px, 6.3vw, 86px);
  line-height: 1;
  margin-top: 15px;
  letter-spacing: -.07em;
  overflow-wrap: anywhere;
}
.catedra-titulo h3 span { color: var(--green-bright); }
.catedra-personas { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 22px 18px; }
.persona { border-top: 1px solid #4c6553; padding-top: 11px; }
.persona span { color: #a5c59d; display: block; font-size: 11px; margin-bottom: 8px; font-weight: 700; }
.persona strong { display: block; font-size: 13px; font-weight: 600; line-height: 1.4; }

/* ----- Tema elegido: RAÍZ ----- */
.tema { padding-top: clamp(60px, 7vw, 105px); }
.tema-top { display: flex; justify-content: space-between; gap: 25px; padding: 0 0 16px; border-bottom: 1px solid #adc0ae; }
.tema-top span { font: 700 12px/1.4 var(--font-display); color: var(--green); letter-spacing: .08em; text-transform: uppercase; }
.tema-placeholder {
  display: grid;
  grid-template-columns: minmax(260px, .95fr) minmax(0, 1.25fr);
  min-height: 345px;
  overflow: hidden;
  border-radius: 0 0 22px 22px;
  background: #dfe9d8;
}
.tema-identidad {
  position: relative;
  padding: clamp(30px, 4vw, 55px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 310px;
  background: linear-gradient(145deg, #cfe0c8, #e7f0df);
  overflow: hidden;
}
.tema-identidad::after {
  content: '';
  position: absolute;
  width: 210px; height: 210px;
  right: -75px; bottom: -88px;
  border: 35px solid rgba(78,125,76,.12);
  border-radius: 50%;
  pointer-events: none;
}
.tema-identidad small { font: 700 11px var(--font-display); letter-spacing: .07em; text-transform: uppercase; color: #527957; }
.tema-identidad h3 {
  color: #3c6d45;
  font-size: clamp(75px, 10vw, 150px);
  line-height: .9;
  letter-spacing: -.09em;
  font-weight: 700;
}
.tema-lema { align-self: flex-start; padding: 9px 15px; background: rgba(255,255,255,.65); color: #4a644d; border-radius: 100px; font-size: 12px; font-weight: 700; }
.tema-descripcion {
  padding: clamp(30px, 4vw, 55px);
  background: #f0f1e9;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.tema-descripcion small { color: var(--green); font: 700 11px var(--font-display); letter-spacing: .1em; text-transform: uppercase; margin-bottom: 25px; }
.tema-descripcion p { max-width: 650px; color: #415146; font-size: clamp(15px, 1.3vw, 18px); line-height: 1.8; }

/* ----- Adaptación a tablets y celulares ----- */
@media (max-width: 1020px) {
  .nav-equipo { padding-inline: 28px; flex-wrap: wrap; padding-block: 19px; }
  .nav-right { flex: 1; justify-content: flex-end; }
  .nav-links { gap: 16px; }
  .nav-semestre { display: none; }
  .catedra-card { grid-template-columns: 120px 1fr; }
  .catedra-personas { grid-column: 1 / -1; }
  .institucion { grid-template-columns: 120px minmax(0,1fr); }
  .autoridades, .datos-academicos { grid-column: 2; grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 730px) {
  .nav-equipo { min-height: 0; align-items: flex-start; gap: 16px; }
  .nav-brand-text { white-space: normal; }
  .nav-right { width: 100%; flex: auto; justify-content: flex-start; }
  .nav-links { width: 100%; gap: 11px 18px; }
  .nav-link { font-size: 12px; }
  .landing { min-height: 620px; padding: 70px 25px 25px; }
  .landing::after { width: 520px; right: -370px; top: 25%; }
  .hero-main h1 { font-size: clamp(61px, 12vw, 98px); }
  .hero-meta { gap: 10px; }
  .hero-meta-item strong { font-size: 12px; }
  .hero-footer { font-size: 11px; }
  .accesos-proyecto, .informacion { padding-inline: 24px; }
  .accesos-encabezado { flex-direction: column; align-items: flex-start; }
  .accesos-encabezado h2 { text-align: left; }
  .accesos-grid { grid-template-columns: 1fr; }
  .acceso-card { min-height: 280px; }
  .acceso-card::before { font-size: 110px; }
  .aviso-contenido { grid-template-columns: 1fr auto; }
  .aviso-texto { grid-column: 1 / -1; grid-row: 2; }
  .aviso-numero { grid-column: 2; grid-row: 1; }
  .institucion { grid-template-columns: 1fr; gap: 19px; }
  .institucion-codigo { flex-direction: row; align-items: flex-end; }
  .autoridades, .datos-academicos { grid-column: 1; }
  .catedra-card { grid-template-columns: 1fr; }
  .catedra-personas { grid-column: 1; }
  .tema-placeholder { grid-template-columns: 1fr; }
  .tema-identidad { min-height: 280px; gap: 25px; }
}
@media (max-width: 440px) {
  .nav-badge { width: 48px; height: 34px; }
  .hero-meta { grid-template-columns: 1fr 1fr; gap: 15px; }
  .hero-meta-item:last-child { grid-column: 1 / -1; }
  .hero-footer { flex-direction: column; align-items: flex-start; gap: 11px; }
  .aviso { padding-block: 36px; }
  .autoridades, .datos-academicos { grid-template-columns: 1fr; }
  .catedra-personas { grid-template-columns: 1fr; }
  .tema-top { font-size: 11px; }
  .tema-identidad h3 { font-size: 83px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}

/* ==========================================================
   RAÍZ / SUBPÁGINAS — MAPA Y APP
   Mantiene la paleta y tipografías originales del sitio VN16.
   ========================================================== */
.subpage { overflow-x: hidden; }
.sub-shell { width: min(100%, var(--page-width)); margin-inline: auto; }
.sub-hero {
  position: relative; overflow: hidden; background: #202722; color: #f5f6f0;
  padding: 34px clamp(24px, 6vw, 94px) 0;
  isolation: isolate;
}
.sub-hero::before { content:""; position:absolute; width:690px; height:690px; border:1px solid rgba(201,237,156,.16); border-radius:50%; right:-170px; top:-170px; box-shadow: 0 0 0 66px rgba(201,237,156,.023), 0 0 0 145px rgba(201,237,156,.022); z-index:-1; }
.sub-hero::after { content:"RAÍZ"; position:absolute; font:700 220px/1 var(--font-display); letter-spacing:-.1em; color:rgba(201,237,156,.035); right:8%; top:34%; pointer-events:none; z-index:-1; }
.sub-hero-app::before { border-color: rgba(239,209,189,.21); box-shadow:0 0 0 70px rgba(239,209,189,.018),0 0 0 146px rgba(239,209,189,.018); }
.sub-topline { display:flex; justify-content:space-between; align-items:center; gap:15px; font:700 11px/1.5 var(--font-display); letter-spacing:.1em; color:#a8baa8; }
.back-link { color:#e1edcd; letter-spacing:0; transition:color .2s; }
.back-link:hover { color:var(--green-bright); }
.sub-hero-grid { display:grid; grid-template-columns:minmax(0,1.8fr) minmax(235px,.7fr); gap:50px; align-items:end; padding:clamp(70px,9vw,134px) 0 55px; }
.sub-kicker { display:flex; align-items:center; gap:11px; color:var(--green-bright); font:700 12px/1.4 var(--font-display); letter-spacing:.09em; margin-bottom:29px; }
.kicker-dot { display:block; height:8px; width:8px; border-radius:50%; background:var(--green-bright); }
.sub-hero h1 { font-size:clamp(64px,8.8vw,126px); letter-spacing:-.075em; line-height:.96; font-weight:700; }
.sub-hero h1 em { font-style:normal; color:var(--green-bright); }
.sub-hero-app h1 em { color:#efd1bd; }
.sub-hero-aside { padding-bottom:6px; border-left:1px solid rgba(225,240,214,.23); padding-left:30px; }
.sub-big-index { font:700 12px/1 var(--font-display); color:var(--green-bright); letter-spacing:.13em; }
.sub-hero-aside p { margin-top:35px; color:#c0cec1; font-size:14px; line-height:1.75; max-width:330px; }
.project-tabs { display:grid; grid-template-columns:repeat(3,1fr); border-top:1px solid rgba(255,255,255,.23); position:relative; }
.project-tabs a { min-width:0; padding:23px 18px 24px 0; display:flex; justify-content:space-between; gap:12px; align-items:center; color:#bbc6bc; font:700 14px/1.2 var(--font-display); transition:color .2s, background .2s; }
.project-tabs a + a { padding-left:25px; border-left:1px solid rgba(255,255,255,.18); }
.project-tabs a:hover { color:var(--green-bright); }
.project-tabs a[aria-current="page"] { color:var(--green-bright); }
.project-tabs a span { font-size:18px; }
.section-heading-inline { display:flex; justify-content:space-between; align-items:flex-end; gap:40px; margin-bottom:33px; }
.section-heading-inline h2 { margin-top:17px; font:700 clamp(40px,5.4vw,75px)/1.05 var(--font-display); letter-spacing:-.07em; }
.section-heading-inline h2 span { color:var(--green); }
.section-heading-inline > p { color:#6a786c; font-size:15px; max-width:405px; line-height:1.75; padding-bottom:5px; }
.sub-footer { padding:31px clamp(24px,6vw,94px); background:#202722; color:#d0ded1; }
.sub-footer > .sub-shell { display:flex; justify-content:space-between; align-items:center; gap:20px; }
.sub-footer .sub-shell > div { display:flex; gap:22px; align-items:center; }
.sub-footer strong { font:700 26px/1 var(--font-display); color:var(--green-bright); letter-spacing:-.07em; }
.sub-footer span { font-size:11px; letter-spacing:.08em; }
.sub-footer a { font-size:12px; font-weight:700; color:#d6e6cd; }
.sub-footer a:hover { color:var(--green-bright); }

/* App / pantalla de prototipo */
.app-hero-section { padding:clamp(78px,9vw,125px) clamp(24px,6vw,94px) 80px; background:var(--paper); }
.prototype-stage { display:grid; grid-template-columns:minmax(250px,.82fr) minmax(0,1.58fr); min-height:720px; overflow:hidden; border-radius:21px; border:1px solid #cfdcce; box-shadow:0 15px 50px rgba(42,73,45,.055); }
.prototype-aside { background:linear-gradient(145deg,#cfe6bd 0%,#d9eabf 45%,#e5eed6 100%); display:flex; flex-direction:column; justify-content:space-between; padding:35px clamp(25px,3.6vw,53px); position:relative; overflow:hidden; isolation:isolate; }
.prototype-aside::after { content:""; pointer-events:none; position:absolute; bottom:-140px; left:-125px; width:450px; aspect-ratio:1; border:1px solid rgba(33,73,37,.19); border-radius:50%; box-shadow:0 0 0 51px rgba(39,85,38,.035),0 0 0 112px rgba(39,85,38,.035); z-index:-1; }
.prototype-label { display:flex; align-items:center; gap:10px; font:700 10px var(--font-display); letter-spacing:.1em; color:#416b44; }
.live-dot { height:7px; width:7px; background:#50794b; border-radius:50%; box-shadow:0 0 0 4px rgba(80,121,75,.13); }
.overline { color:#557552; font:700 11px var(--font-display); letter-spacing:.11em; }
.prototype-aside-main h3 { font:700 clamp(74px,8vw,125px)/.95 var(--font-display); color:#285b37; letter-spacing:-.09em; margin:15px 0 25px; }
.seed-mark { font:400 34px/1 var(--font-body); margin-left:15px; vertical-align:top; }
.prototype-aside-main > p:last-of-type { color:#426446; font-size:16px; line-height:1.6; max-width:285px; }
.prototype-themes { display:flex; gap:8px; flex-wrap:wrap; margin-top:30px; }
.prototype-themes span { color:#3d6644; background:rgba(255,255,255,.65); border:1px solid rgba(76,121,73,.14); border-radius:99px; padding:6px 10px; font:700 10px var(--font-body); }
.prototype-aside-foot { display:flex; justify-content:space-between; align-items:end; gap:16px; padding-top:16px; border-top:1px solid rgba(62,99,61,.29); font:700 10px/1.5 var(--font-display); color:#547453; letter-spacing:.04em; }
.icon-arrow { font-size:30px; font-weight:400; }
.prototype-view { background:#e8eee8; display:flex; flex-direction:column; min-width:0; }
.preview-head { padding:18px 25px; background:#fafbf6; border-bottom:1px solid #d2dcd1; display:flex; justify-content:space-between; align-items:center; gap:15px; }
.preview-head-label { display:flex; align-items:center; gap:10px; font-size:12px; }
.preview-head-label strong { font:700 13px var(--font-display); }
.preview-head-label > span:last-child { color:#839085; }
.preview-dot { width:8px; height:8px; border-radius:50%; background:#8fac7f; }
.icon-only-btn { width:34px; height:34px; border:1px solid #d0dccc; background:#fff; color:#34563b; border-radius:8px; cursor:pointer; font:700 21px var(--font-body); }
.icon-only-btn:hover { background:#e6f0de; }
.preview-body { flex:1; display:flex; justify-content:center; align-items:center; padding:30px 20px; overflow:hidden; position:relative; }
.preview-glow { position:absolute; width:500px; height:500px; border-radius:50%; background:radial-gradient(circle,#bedac0 0,transparent 68%); opacity:.75; }
.preview-footer { display:flex; justify-content:space-between; gap:18px; align-items:center; padding:18px 25px; background:#fafbf6; border-top:1px solid #d2dcd1; }
.preview-footer > span { font-size:11px; line-height:1.4; color:#768478; }
.preview-external { flex:none; display:inline-flex; justify-content:center; align-items:center; padding:10px 14px; border-radius:8px; color:#f6f7f3; font-size:12px; font-weight:700; background:#2f5639; transition:background .2s; }
.preview-external:hover { background:#193e24; }
.prototype-view:fullscreen { width:100vw; height:100vh; }
.prototype-view:fullscreen .preview-body { padding:20px; }

.app-meta-row { display:flex; justify-content:space-between; align-items:center; gap:20px; border-bottom:1px solid var(--line); padding:22px 0; }
.app-meta-row p { font-size:13px; color:#6e7b70; }
.app-meta-row p strong { color:#2c5535; }
.text-link { white-space:nowrap; color:#3c7443; font:700 13px var(--font-display); }
.text-link:hover { text-decoration:underline; text-underline-offset:5px; }
.feature-section { background:#edf0e7; padding:clamp(65px,8vw,105px) clamp(24px,6vw,94px) clamp(95px,9vw,135px); }
.feature-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:14px; }
.feature-card { min-height:315px; border-radius:17px; padding:29px; display:flex; flex-direction:column; border:1px solid rgba(65,104,66,.12); }
.feature-activity { background:#d8ebd2; }
.feature-community { background:#e4e0f2; }
.feature-rewards { background:#f1dfd3; }
.feature-number { font:700 11px var(--font-display); color:#506b53; letter-spacing:.1em; }
.feature-icon { font:500 50px/1 var(--font-display); margin:18px 0 auto; color:#44744f; }
.feature-card h3 { font-size:clamp(26px,3vw,39px); letter-spacing:-.06em; line-height:1.1; margin:18px 0 11px; }
.feature-card p { font-size:13px; line-height:1.7; color:#5a695b; }

/* Mapa / visualización de flujos */
.map-intro { padding:clamp(75px,9vw,120px) clamp(24px,6vw,94px) 25px; background:var(--paper); }
.map-legend { display:flex; flex-wrap:wrap; align-items:center; gap:12px 24px; padding:19px 0 21px; border-top:1px solid #d4ded2; }
.map-legend > span { display:flex; align-items:center; gap:8px; font-size:11px; font-weight:700; color:#6c7a6e; }
.legend-square { display:block; width:13px; height:13px; border-radius:4px; border:1.5px solid; }
.legend-common { background:#e5efdb; border-color:#829b77; }
.legend-activity { background:#cdebd3; border-color:#67a87f; }
.legend-community { background:#e6dff2; border-color:#a794d6; }
.legend-reward { background:#f5ded0; border-color:#d99974; }
.legend-diamond { display:block; width:13px; height:13px; transform:rotate(45deg) scale(.78); border:1.5px solid #d1aa53; background:#f9eec8; }
.legend-dashed { width:22px; height:0; border-top:2px dashed #8b8aab; }
.map-section { padding:0 clamp(16px,3vw,48px) 36px; background:var(--paper); }
.map-shell { max-width:1510px; margin:0 auto; }
.map-frame { background:#fff; border:1px solid #cbd8ca; border-radius:20px; overflow:hidden; box-shadow:0 22px 55px rgba(35,74,41,.05); }
.map-frame-header { padding:24px 29px; display:flex; gap:20px; justify-content:space-between; align-items:center; background:#f8faf4; }
.map-frame-title > p { font:700 11px var(--font-display); color:#527b53; letter-spacing:.14em; }
.map-frame-title h3 { font:700 clamp(19px,2.1vw,28px)/1.2 var(--font-display); letter-spacing:-.04em; margin-top:5px; }
.map-frame-title h3 span { font-weight:500; color:#779078; }
.map-expand { white-space:nowrap; display:flex; align-items:center; gap:9px; background:transparent; padding:10px 14px; border:1px solid #c5d6c2; border-radius:8px; color:#3e6344; font:700 12px var(--font-display); cursor:pointer; }
.map-expand:hover { background:#eaf2e5; }
.map-toolbar { display:flex; justify-content:space-between; align-items:center; gap:20px; padding:0 28px 18px; background:#f8faf4; border-bottom:1px solid #dce5db; }
.map-filter { display:flex; flex-wrap:wrap; gap:7px; }
.map-tab { font:700 12px var(--font-display); cursor:pointer; color:#55715a; padding:10px 14px; border:1px solid #d5e2d4; border-radius:8px; background:transparent; transition:background .15s; }
.map-tab:hover { background:#e6f0e2; }
.map-tab.is-active { background:#2b5136; color:white; border-color:#2b5136; }
.map-zoom { display:flex; border:1px solid #d4dfd1; overflow:hidden; border-radius:8px; flex:none; }
.map-zoom button { color:#3f6044; font:700 20px var(--font-display); cursor:pointer; background:white; border:0; width:41px; height:39px; }
.map-zoom button + button { border-left:1px solid #d4dfd1; }
.map-zoom button:hover { background:#e7f0e2; }
.map-svg-wrap { height:clamp(575px,68vw,830px); position:relative; background:radial-gradient(circle at 12% 7%,rgba(213,234,206,.21),transparent 45%),#fbfcf9; overflow:hidden; cursor:grab; touch-action:none; }
.map-svg-wrap.is-dragging { cursor:grabbing; }
#flow-svg { width:100%; height:100%; display:block; user-select:none; }
#flow-svg .flow-node { cursor:pointer; outline:none; }
#flow-svg .flow-node:hover .node-shape, #flow-svg .flow-node:focus-visible .node-shape { stroke-width:4px; filter:drop-shadow(0 6px 7px rgba(36,61,41,.1)); }
#flow-svg .flow-node.is-selected .node-shape { stroke-width:4.5px; }
#flow-svg .flow-node:hover { filter:brightness(.99); }
.map-help { pointer-events:none; position:absolute; bottom:15px; left:18px; max-width:calc(100% - 36px); background:rgba(255,255,255,.92); border:1px solid #e3e9e0; padding:9px 14px; border-radius:9px; box-shadow:0 3px 14px rgba(15,35,22,.04); color:#607361; font:600 11px/1.4 var(--font-body); }
.map-help-icon { font-size:15px; margin-right:4px; }
.map-bottom { display:flex; justify-content:space-between; gap:20px; align-items:center; padding:17px 27px; background:#f9fbf7; border-top:1px solid #dce6dc; min-height:99px; }
.map-selected { display:flex; gap:16px; align-items:flex-start; max-width:930px; }
.map-selected-symbol { width:40px; height:40px; background:#e5efdb; border-radius:50%; display:grid; place-items:center; flex:none; font-size:21px; color:#427446; }
.map-selected strong { font:700 14px/1.3 var(--font-display); color:#304f36; }
.map-selected p { color:#6a786b; font-size:12px; line-height:1.5; margin-top:3px; }
.map-download { border:1px solid #c4d7c1; padding:11px 14px; background:#fff; color:#365e3c; white-space:nowrap; border-radius:8px; font:700 12px var(--font-display); cursor:pointer; }
.map-download:hover { background:#e4f1dc; }
.map-frame:fullscreen { display:flex; flex-direction:column; background:#fff; }
.map-frame:fullscreen .map-svg-wrap { flex:1; height:auto; min-height:0; }
.map-explain { padding:clamp(60px,7vw,95px) clamp(24px,6vw,94px) clamp(95px,10vw,140px); }
.explain-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:14px; margin-top:38px; }
.explain-card { border-radius:17px; padding:30px; min-height:355px; display:flex; flex-direction:column; border:1px solid rgba(29,68,31,.08); }
.explain-activity { background:#dcebdd; }
.explain-community { background:#e8e4f1; }
.explain-reward { background:#f1e1d7; }
.explain-top { display:flex; justify-content:space-between; align-items:center; gap:10px; color:#58725a; font:700 11px var(--font-display); letter-spacing:.08em; }
.explain-top span:last-child { font:700 24px var(--font-display); }
.explain-card h3 { font:700 clamp(36px,4.1vw,52px)/1.02 var(--font-display); letter-spacing:-.065em; margin:24px 0 22px; }
.explain-card p { font-size:13px; color:#526458; line-height:1.7; margin-bottom:35px; }
.explain-foot { margin-top:auto; padding-top:17px; border-top:1px solid rgba(73,106,75,.23); font:700 11px var(--font-display); color:#4c6650; display:flex; align-items:center; justify-content:space-between; }
.explain-foot span { font-size:22px; font-weight:400; }
.map-connection { margin-top:17px; background:#263a2b; border-radius:17px; color:#f2f7ee; display:grid; grid-template-columns:60px minmax(0,1fr) auto; align-items:center; gap:24px; padding:28px 32px; }
.connection-icon { font-size:42px; color:var(--green-bright); }
.map-connection p { max-width:730px; font-size:13px; line-height:1.65; color:#d7e5d6; }
.map-connection strong { color:#e6f5d1; }
.map-connection a { padding:12px 14px; border-radius:8px; border:1px solid #719879; color:#dcf1c9; font:700 12px var(--font-display); white-space:nowrap; }
.map-connection a:hover { background:#344c38; }

@media(max-width:1040px) {
  .sub-hero-grid { grid-template-columns:1.6fr .8fr; }
  .prototype-stage { grid-template-columns:minmax(240px,.75fr) minmax(0,1.25fr); }
  .prototype-aside { padding:30px 24px; }
  .map-toolbar { flex-wrap:wrap; }
}
@media(max-width:740px) {
  .sub-hero { padding:25px 24px 0; }
  .sub-hero::before { width:470px; height:470px; right:-300px; }
  .sub-hero-grid { grid-template-columns:1fr; gap:32px; padding:65px 0 40px; }
  .sub-hero h1 { font-size:clamp(56px,11vw,88px); }
  .sub-hero-aside { padding-left:17px; }
  .sub-hero-aside p { margin-top:12px; max-width:440px; }
  .sub-topline { font-size:10px; }
  .project-tabs a { font-size:12px; padding-block:19px; }
  .project-tabs a + a { padding-left:15px; }
  .section-heading-inline { flex-direction:column; align-items:flex-start; gap:15px; }
  .section-heading-inline > p { max-width:600px; }
  .app-hero-section,.map-intro,.map-explain,.feature-section { padding-inline:24px; }
  .prototype-stage { grid-template-columns:1fr; }
  .prototype-aside { min-height:285px; }
  .prototype-aside-main { margin-block:20px 22px; }
  .prototype-aside-main h3 { font-size:79px; margin:6px 0 10px; }
  .prototype-themes { margin-top:15px; }
  .prototype-view { min-height:750px; }
  .preview-body { padding:25px 15px; }

  .feature-grid,.explain-grid { grid-template-columns:1fr; }
  .feature-card,.explain-card { min-height:250px; }
  .feature-card h3 { margin-top:25px; }
  .feature-card .feature-icon { margin-bottom:0; }
  .map-connection { grid-template-columns:40px 1fr; gap:12px; }
  .map-connection a { grid-column:2; justify-self:start; }
  .map-frame-header { padding:20px; }
  .map-toolbar { padding:0 15px 15px; gap:12px; }
  .map-filter { width:100%; }
  .map-tab { flex:1; font-size:10px; padding:10px 9px; }
  .map-zoom { margin-left:auto; }
  .map-svg-wrap { height:630px; }
  .map-bottom { flex-direction:column; align-items:stretch; padding:17px; }
  .map-foot-actions { align-self:flex-end; }
  .sub-footer>.sub-shell { align-items:flex-start; }
  .sub-footer .sub-shell>div { flex-direction:column; gap:8px; align-items:flex-start; }
}
@media(max-width:460px) {
  .sub-hero h1 { font-size:57px; }
  .project-tabs a { font-size:11px; }
  .prototype-view { min-height:710px; }

  .preview-footer { flex-direction:column; align-items:stretch; }
  .preview-external { align-self:flex-start; }
  .app-meta-row { flex-direction:column; align-items:flex-start; }
  .map-expand { padding:9px; }
  .map-expand span { display:none; }
  .map-frame-title h3 { font-size:19px; }
  .map-help { font-size:10px; }
  .map-legend { gap:10px 14px; }
  .map-legend>span { font-size:10px; }
  .map-connection { padding:22px; }
}


/* =========================================================
   RAÍZ / Visor de prototipo Figma: escala de origen, SIN
   segundo marco de celular ni zoom artificial de CSS.
   ========================================================= */
.preview-actions { display:flex; align-items:center; gap:12px; }
.preview-external-top { white-space:nowrap; }
/* Se prioriza el tamaño útil del prototipo sobre la columna decorativa. */
.prototype-stage {
  grid-template-columns: minmax(220px, .48fr) minmax(0, 1.95fr);
  min-height: 990px;
}
.prototype-aside { min-width:0; }
.prototype-aside-main h3 { font-size: clamp(64px, 6vw, 98px); }
.prototype-themes { gap:6px; }
.prototype-view { min-width:0; min-height:990px; }
/* El canvas reproduce el escenario Figma dentro del espacio disponible.
   Se evita el ancho fijo de 320px que hacía diminuta la pantalla. */
.preview-body {
  display:flex;
  flex:1 1 auto;
  min-height: 920px;
  padding:0;
  overflow:hidden;
  position:relative;
  background:#e8eee8;
}
.figma-embed-canvas {
  flex:1;
  min-width:0;
  min-height: 920px;
  overflow:hidden;
  background:#e8eee8;
}
.figma-embed-canvas iframe {
  display:block;
  width:100%;
  height:100%;
  min-height: 920px;
  border:0;
  background:#e8eee8;
}
/* Pantalla completa = pantalla completa del VISOR, no del teléfono. */
.prototype-view:fullscreen {
  width:100vw;
  height:100vh;
  height:100dvh;
  min-height:0;
  display:flex;
  flex-direction:column;
  overflow:hidden;
  background:#e8eee8;
}
.prototype-view:fullscreen .preview-head { flex:none; padding:11px 24px; }
.prototype-view:fullscreen .preview-body { flex:1 1 auto; min-height:0; height:0; padding:0; }
.prototype-view:fullscreen .figma-embed-canvas { height:100%; min-height:0; }
.prototype-view:fullscreen .figma-embed-canvas iframe { height:100%; min-height:0; }
@media (max-width:1000px) {
  .prototype-stage { grid-template-columns:minmax(185px,.43fr) minmax(0,1.8fr); }
  .prototype-aside { padding:25px 20px; }
}
@media (max-width:740px) {
  .prototype-stage { grid-template-columns:1fr; min-height:0; }
  .prototype-aside { min-height:225px; }
  .prototype-aside-main { margin-block:12px 18px; }
  .prototype-aside-main h3 { font-size:75px; margin:7px 0 10px; }
  .prototype-themes { margin-top:12px; }
  .prototype-view { min-height:750px; }
  .preview-body, .figma-embed-canvas, .figma-embed-canvas iframe { min-height:700px; }
  .prototype-view:fullscreen .preview-body,
  .prototype-view:fullscreen .figma-embed-canvas,
  .prototype-view:fullscreen .figma-embed-canvas iframe { min-height:0; }
}
@media (max-width:460px) {
  .preview-head { padding:12px 12px; }
  .preview-head-label > span:last-child { display:none; }
  .preview-external-top { font-size:10px; padding:9px 10px; }
  .preview-actions { gap:7px; }
  .prototype-view { min-height:710px; }
  .preview-body, .figma-embed-canvas, .figma-embed-canvas iframe { min-height:650px; }
  .prototype-view:fullscreen .preview-body,
  .prototype-view:fullscreen .figma-embed-canvas,
  .prototype-view:fullscreen .figma-embed-canvas iframe { min-height:0; }
}
