﻿/* NONHUMAN — Centro de Experiencia IA Robótica (CEIA) */
@import url("https://fonts.googleapis.com/css2?family=Syne:wght@600;700;800&family=DM+Sans:wght@400;500;600&display=swap");

:root {
  --bg: #050508;
  --bg-card: rgba(255, 255, 255, 0.06);
  --border: rgba(255, 255, 255, 0.12);
  --text: #f4f4f8;
  --muted: #9ca3b8;
  --senati-blue: #0047ba;
  --senati-blue-light: #2d6fd9;
  --ceia-blue: var(--senati-blue);
  --ceia-blue-light: var(--senati-blue-light);
  --nh-white: #ffffff;
  --nh-black: #050508;
  --accent: var(--senati-blue-light);
  --lime: #b8ff3c;
  --amber: #ffb020;
  --glow-senati: 0 0 36px rgba(0, 71, 186, 0.45);
  --glow-white: 0 0 28px rgba(255, 255, 255, 0.2);
}

.reveal-viewport {
  background: var(--bg);
}

.reveal {
  font-family: "DM Sans", system-ui, sans-serif;
  color: var(--text);
}

.reveal .slides {
  text-align: left;
}

.reveal .slides > section {
  background: var(--bg);
  padding: 0 !important;
  height: 100%;
  overflow: hidden;
}

.reveal .slides > section .slide-inner {
  overflow: hidden;
}

.reveal .slide-inner {
  position: relative;
  z-index: 2;
  padding: 1.1em 1.6em;
  height: 100%;
  max-height: 100vh;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
}

.reveal .slide-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.05);
  animation: kenburns 18s ease-in-out infinite alternate;
}

.reveal .slide-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(5, 5, 8, 0.92) 0%,
    rgba(5, 5, 8, 0.75) 45%,
    rgba(5, 5, 8, 0.88) 100%
  );
}

.reveal .slide-bg--mesh::after {
  background: linear-gradient(160deg, rgba(5, 5, 8, 0.95), rgba(20, 10, 40, 0.85)),
    radial-gradient(ellipse at 80% 20%, rgba(0, 71, 186, 0.2), transparent 50%),
    radial-gradient(ellipse at 10% 80%, rgba(255, 255, 255, 0.06), transparent 45%);
}

@keyframes kenburns {
  to {
    transform: scale(1.12);
  }
}

.reveal h1,
.reveal h2,
.reveal h3 {
  font-family: "Syne", sans-serif;
  font-weight: 800;
  text-transform: none;
  letter-spacing: -0.03em;
  color: var(--text);
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.5);
}

.reveal h1 {
  font-size: 2.1em;
  line-height: 1.05;
  background: linear-gradient(90deg, #fff 0%, var(--senati-blue-light) 55%, #fff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.reveal h2 {
  font-size: 1.55em;
  margin-bottom: 0.35em;
  border: none;
}

.reveal h2 .accent {
  color: var(--senati-blue-light);
  -webkit-text-fill-color: var(--senati-blue-light);
}

.reveal h2 .accent-nh {
  color: var(--nh-white);
  -webkit-text-fill-color: var(--nh-white);
}

.reveal .eyebrow {
  font-size: 0.5em;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--senati-blue-light);
  font-weight: 600;
  margin-bottom: 0.5em;
}

.reveal .keywords {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45em;
  margin-top: 0.6em;
  list-style: none;
  padding: 0;
}

.reveal .kw {
  font-size: 0.52em;
  font-weight: 600;
  padding: 0.35em 0.75em;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  backdrop-filter: blur(8px);
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}

.reveal .kw:hover {
  transform: translateY(-2px);
  border-color: var(--senati-blue-light);
  box-shadow: var(--glow-senati);
}

.reveal .kw--senati,
.reveal .kw--ceia { border-color: rgba(0, 71, 186, 0.55); color: var(--ceia-blue-light); }
.reveal .kw--nh { border-color: rgba(255, 255, 255, 0.45); color: var(--nh-white); }
.reveal .kw--lime { border-color: rgba(184, 255, 60, 0.4); color: var(--lime); }
.reveal .kw--amber { border-color: rgba(255, 176, 32, 0.4); color: var(--amber); }

.reveal .slide--hero .slide-inner {
  text-align: center;
  align-items: center;
}

.reveal .logo-bar {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2.5em;
  margin-bottom: 1em;
}

.reveal .logo-bar {
  gap: 2.8em;
  margin-bottom: 1.2em;
}

.reveal .logo-bar img {
  height: 72px;
  width: auto;
  object-fit: contain;
}

.reveal .logo-bar .logo-senati {
  height: 80px;
}

.reveal .logo-bar .logo-nh {
  height: 64px;
  filter: none;
}

.reveal .logo-bar .logo-ceia {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  line-height: 1.1;
  max-width: 11em;
}

.reveal .logo-ceia__acronym {
  font-family: "Syne", sans-serif;
  font-size: 1.35em;
  font-weight: 800;
  letter-spacing: 0.14em;
  color: var(--ceia-blue-light);
}

.reveal .logo-ceia__full {
  font-family: "DM Sans", sans-serif;
  font-size: 0.42em;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 0.35em;
  line-height: 1.25;
}

.reveal .pill-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5em;
  margin-top: 1em;
}

.reveal .pill {
  font-size: 0.48em;
  padding: 0.4em 0.9em;
  border-radius: 6px;
  background: linear-gradient(90deg, rgba(0, 71, 186, 0.35), rgba(255, 255, 255, 0.08));
  border: 1px solid rgba(45, 111, 217, 0.5);
  font-weight: 600;
}

.reveal .split {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 1.5em;
  align-items: center;
  height: 100%;
}

.reveal .split--reverse {
  grid-template-columns: 0.9fr 1.1fr;
}

.reveal .visual-frame {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), var(--glow-senati);
  max-height: 58vh;
}

.reveal .visual-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  min-height: 280px;
}

.reveal .kpi-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.7em;
  margin-top: 0.5em;
}

.reveal .kpi-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.85em 0.5em;
  text-align: center;
  backdrop-filter: blur(12px);
  transition: transform 0.25s, box-shadow 0.25s;
  cursor: default;
}

.reveal .kpi-card:hover {
  transform: scale(1.04);
  box-shadow: var(--glow-senati);
  border-color: rgba(45, 111, 217, 0.55);
}

.reveal .kpi-card .num {
  font-family: "Syne", sans-serif;
  font-size: 1.75em;
  font-weight: 800;
  display: block;
  line-height: 1;
}

.reveal .kpi-card:nth-child(1) .num { color: var(--senati-blue-light); }
.reveal .kpi-card:nth-child(2) .num { color: var(--lime); }
.reveal .kpi-card:nth-child(3) .num { color: var(--nh-white); }

/* Ecosistema: 3 tarjetas visibles completas */
.reveal .alliance-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.65em;
  width: 100%;
  max-width: 100%;
  margin: 0.8em auto 0;
  padding: 0 0.2em;
  box-sizing: border-box;
}

.reveal .alliance-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.85em 0.55em;
  text-align: center;
  backdrop-filter: blur(12px);
  min-width: 0;
  box-sizing: border-box;
}

.reveal .alliance-card--nh {
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.08) 0%,
    rgba(255, 255, 255, 0.03) 100%
  );
}

.reveal .alliance-card .brand {
  font-family: "Syne", sans-serif;
  font-size: 0.58em;
  font-weight: 800;
  display: block;
  margin-bottom: 0.25em;
  letter-spacing: 0.04em;
  word-break: break-word;
}

.reveal .alliance-card--senati,
.reveal .alliance-card--ceia { border-top: 3px solid var(--ceia-blue); }
.reveal .alliance-card--senati .brand,
.reveal .alliance-card--ceia .brand { color: var(--ceia-blue-light); }
.reveal .alliance-card--nh { border-top: 3px solid var(--nh-white); }
.reveal .alliance-card--nh .brand { color: var(--nh-white); }
.reveal .alliance-card--ind { border-top: 3px solid var(--lime); }
.reveal .alliance-card--ind .brand { color: var(--lime); }

.reveal .alliance-card .lbl {
  font-size: 0.42em;
  color: var(--muted);
  line-height: 1.35;
}

/* Perú: grid universidades */
.reveal .peru-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.55em;
  margin-top: 0.5em;
}

.reveal .peru-card {
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: #0a0a10;
  min-width: 0;
}

.reveal .peru-card img {
  width: 100%;
  height: 110px;
  max-height: 18vh;
  object-fit: cover;
  object-position: center center;
  display: block;
}

.reveal .peru-card .meta {
  padding: 0.35em 0.45em;
  font-size: 0.4em;
  line-height: 1.3;
}

.reveal .peru-card .uni {
  font-family: "Syne", sans-serif;
  font-weight: 700;
  color: var(--senati-blue-light);
  font-size: 1.15em;
}

.reveal .peru-card .robot {
  color: var(--muted);
}

.reveal .peru-tagline {
  font-size: 0.5em;
  color: var(--muted);
  margin-top: 0.45em;
  max-width: 90%;
}

/* Robot AGIBOT X2: fondo negro OEM */
.reveal .visual-frame--robot {
  background: #050508;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 280px;
  box-shadow: inset 0 0 60px rgba(0, 71, 186, 0.12);
}

.reveal .visual-frame--hero {
  min-height: 0;
  max-height: 58vh;
  padding: 0.4em;
}

.reveal .split--hero {
  align-items: center;
  gap: 1.2em;
}

.reveal .split--hero h1 {
  font-size: 1.85em;
  text-align: left;
}

.reveal .visual-frame--robot img {
  max-height: 52vh;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  min-height: 0;
}

/* Resumen ejecutivo — 4 bloques */
.reveal .resumen-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.55em;
  margin-top: 0.5em;
}

.reveal .resumen-card {
  border-radius: 12px;
  padding: 0.65em 0.75em;
  border: 1px solid var(--border);
  background: var(--bg-card);
  backdrop-filter: blur(8px);
}

.reveal .resumen-card--accent {
  border-color: rgba(0, 71, 186, 0.55);
  background: rgba(0, 71, 186, 0.12);
}

.reveal .resumen-card__n {
  font-family: "Syne", sans-serif;
  font-size: 0.42em;
  font-weight: 800;
  color: var(--ceia-blue-light);
  letter-spacing: 0.08em;
  display: block;
  margin-bottom: 0.2em;
}

.reveal .resumen-card strong {
  font-size: 0.55em;
  display: block;
  margin-bottom: 0.15em;
}

.reveal .resumen-card p {
  font-size: 0.42em;
  color: var(--muted);
  margin: 0;
  line-height: 1.35;
}

/* Capacidades técnicas */
.reveal .cap-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.45em;
  margin-top: 0.45em;
}

.reveal .cap-item {
  border-radius: 10px;
  padding: 0.5em 0.55em;
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.35);
}

.reveal .cap-item strong {
  display: block;
  font-size: 0.48em;
  color: var(--ceia-blue-light);
  margin-bottom: 0.2em;
}

.reveal .cap-item span {
  font-size: 0.38em;
  color: var(--muted);
  line-height: 1.35;
  display: block;
}

/* Resultados mes 4 */
.reveal .resultados-list {
  list-style: none;
  padding: 0;
  margin: 0.8em auto 0;
  max-width: 720px;
  text-align: left;
}

.reveal .resultados-list li {
  font-size: 0.44em;
  padding: 0.35em 0 0.35em 1em;
  color: var(--muted);
  position: relative;
  line-height: 1.4;
}

.reveal .resultados-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--lime);
}

.reveal .invest-footnote {
  font-size: 0.38em;
  color: var(--muted);
  margin-top: 0.45em;
  text-align: center;
}

/* Stagger: una flecha = slide; animación al entrar */
.reveal .stagger > * {
  opacity: 0;
  transform: translateY(14px);
}

.reveal .stagger.stagger-play > * {
  animation: staggerIn 0.45s ease forwards;
}

.reveal .stagger.stagger-play > *:nth-child(1) { animation-delay: 0.06s; }
.reveal .stagger.stagger-play > *:nth-child(2) { animation-delay: 0.14s; }
.reveal .stagger.stagger-play > *:nth-child(3) { animation-delay: 0.22s; }
.reveal .stagger.stagger-play > *:nth-child(4) { animation-delay: 0.3s; }
.reveal .stagger.stagger-play > *:nth-child(5) { animation-delay: 0.38s; }
.reveal .stagger.stagger-play > *:nth-child(6) { animation-delay: 0.46s; }
.reveal .stagger.stagger-play > *:nth-child(7) { animation-delay: 0.54s; }
.reveal .stagger.stagger-play > *:nth-child(8) { animation-delay: 0.62s; }

@keyframes staggerIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.reveal .kpi-card .lbl {
  font-size: 0.48em;
  color: var(--muted);
  margin-top: 0.35em;
  display: block;
}

.reveal .timeline-interactive {
  display: flex;
  gap: 0.5em;
  margin: 0.6em 0;
}

.reveal .timeline-interactive button {
  flex: 1;
  font-family: "Syne", sans-serif;
  font-size: 0.5em;
  font-weight: 700;
  padding: 0.65em;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg-card);
  color: var(--text);
  cursor: pointer;
  transition: all 0.2s;
}

.reveal .timeline-interactive button.active,
.reveal .timeline-interactive button:hover {
  border-color: var(--senati-blue-light);
  background: rgba(0, 71, 186, 0.2);
  box-shadow: var(--glow-senati);
  color: var(--senati-blue-light);
}

.reveal .timeline-panel {
  display: none;
  padding: 0.7em 0.9em;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  font-size: 0.55em;
  line-height: 1.5;
  min-height: 4.5em;
}

.reveal .timeline-panel.active {
  display: block;
  animation: fadeUp 0.35s ease;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.reveal .diagram-wrap {
  border-radius: 10px;
  border: 1px solid var(--border);
  padding: 0.4em;
  background: rgba(0, 0, 0, 0.4);
  max-height: 32vh;
}

.reveal .diagram-wrap img,
.reveal .diagram-wrap svg {
  width: 100%;
  max-height: 28vh;
  object-fit: contain;
}

.reveal .spec-chips {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.4em;
}

.reveal .spec-chip {
  font-size: 0.5em;
  padding: 0.45em 0.6em;
  border-radius: 8px;
  background: var(--bg-card);
  border-left: 3px solid var(--senati-blue-light);
}

.reveal .spec-chip strong {
  color: var(--senati-blue-light);
  display: block;
  font-size: 1.1em;
  font-family: "Syne", sans-serif;
}

.reveal .team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.7em;
}

.reveal .team-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.55em;
  text-align: center;
  font-size: 0.42em;
  overflow: hidden;
}

.reveal .team-card__photo {
  width: 100%;
  height: 20vh;
  max-height: 175px;
  min-height: 110px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(8, 10, 18, 0.9);
  border-radius: 10px;
  border: 1px solid rgba(45, 111, 217, 0.35);
  margin-bottom: 0.4em;
  overflow: hidden;
  box-sizing: border-box;
}

.reveal .team-card__photo img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  object-position: center center;
  display: block;
  border: none;
  margin: 0;
}

.reveal .team-card strong {
  font-family: "Syne", sans-serif;
  font-size: 1.05em;
  display: block;
  color: var(--text);
}

.reveal .team-card .role {
  font-size: 0.95em;
  color: var(--senati-blue-light);
  font-weight: 600;
  display: block;
  margin-top: 0.15em;
}

.reveal .team-card__highlights {
  margin: 0.45em 0 0;
  padding: 0;
  list-style: none;
  text-align: left;
  font-size: 0.82em;
  line-height: 1.38;
  color: var(--muted);
}

.reveal .team-card__highlights li {
  padding: 0.2em 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.reveal .team-card__highlights li:last-child {
  border-bottom: none;
}

.reveal .team-card__highlights a {
  color: var(--senati-blue-light);
  text-decoration: none;
}

.reveal .team-card__highlights a:hover {
  text-decoration: underline;
}

.reveal .team-slide .slide-inner {
  padding: 0.7em 1.4em 0.6em;
  justify-content: flex-start;
}

.reveal .team-slide h2 {
  font-size: 1.1em;
  margin-bottom: 0.15em;
}

.reveal .team-grid {
  flex: 1;
  min-height: 0;
  align-items: stretch;
  margin-top: 0.15em;
}

.reveal .footnote {
  font-size: 0.42em;
  color: var(--muted);
  margin-top: auto;
  padding-top: 0.5em;
}

.reveal .cta-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.5em;
  margin-top: 0.8em;
}

.reveal .cta-glow {
  display: inline-block;
  margin-top: 0;
  padding: 0.55em 1.2em;
  font-size: 0.55em;
  font-weight: 600;
  color: var(--bg);
  background: linear-gradient(90deg, var(--senati-blue), var(--nh-white));
  border-radius: 8px;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
}

.reveal .cta-glow:hover {
  transform: scale(1.05);
  box-shadow: var(--glow-mag);
  color: #000;
}

.reveal .cta-secondary {
  display: inline-block;
  margin-top: 0;
  margin-left: 0;
  padding: 0.5em 1em;
  font-size: 0.48em;
  font-weight: 600;
  color: var(--ceia-blue-light);
  border: 1px solid rgba(45, 111, 217, 0.55);
  border-radius: 8px;
  text-decoration: none;
  transition: transform 0.2s, background 0.2s;
}

.reveal .cta-secondary:hover {
  transform: scale(1.03);
  background: rgba(0, 71, 186, 0.15);
  color: #fff;
}

.reveal a {
  color: var(--senati-blue-light);
}

.reveal .progress span {
  background: linear-gradient(90deg, var(--senati-blue), #fff) !important;
}

.reveal .controls {
  color: var(--muted);
}

.reveal .fragment.highlight-current-visible {
  color: var(--senati-blue-light);
}

/* fragment stagger */
.reveal .slides section .fragment.fade-up {
  transform: translateY(12px);
  opacity: 0;
  transition: all 0.4s ease;
}

.reveal .slides section .fragment.fade-up.visible {
  transform: translateY(0);
  opacity: 1;
}
