@font-face {
  font-family: "Space Grotesk";
  src: url("fonts/space-grotesk-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Space Grotesk";
  src: url("fonts/space-grotesk-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Space Grotesk";
  src: url("fonts/space-grotesk-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Source Sans 3";
  src: url("fonts/source-sans-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Source Sans 3";
  src: url("fonts/source-sans-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Source Sans 3";
  src: url("fonts/source-sans-400i.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("fonts/jetbrains-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("fonts/jetbrains-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #f3eee3;
  --ink: #1a140f;
  --muted: #3a3129;
  --faint: #5c5146;
  --line: #d9cfc0;
  --card: #fffdf8;
  --orange: #e24a12;
  --orange-2: #7c2d12;
  --cyan: #1a140f;
  --l7: #54247a;
  --l6: #8a2048;
  --l5: #1b3d86;
  --l4: #0c5960;
  --l3: #0e5a30;
  --l2: #7a4800;
  --l1: #8f2e10;
  --display: "Space Grotesk", "Segoe UI", sans-serif;
  --body: "Source Sans 3", "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  --p: 0;
}

* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; background: var(--bg); }
body {
  color: var(--ink);
  font-family: var(--body);
  font-size: 21px;
  line-height: 1.35;
  overflow: hidden;
}

button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
p, h1, h2, h3, ul, ol { margin: 0; }
ul, ol { padding: 0; }
h1, h2, h3 { font-family: var(--display); font-weight: 600; letter-spacing: -0.03em; }
.mono { font-family: var(--mono); }

.c7 { --c: var(--l7); }
.c6 { --c: var(--l6); }
.c5 { --c: var(--l5); }
.c4 { --c: var(--l4); }
.c3 { --c: var(--l3); }
.c2 { --c: var(--l2); }
.c1 { --c: var(--l1); }
.c0 { --c: var(--orange); }

.viewport {
  height: 100%;
  display: grid;
  place-items: center;
  background:
    radial-gradient(880px 420px at 0% 100%, rgba(226, 74, 18, 0.08), transparent 55%),
    var(--bg);
}
.scaler { width: calc(1600px * var(--s, 1)); height: calc(900px * var(--s, 1)); position: relative; }
.deck {
  width: 1600px;
  height: 900px;
  position: absolute;
  left: 0;
  top: 0;
  transform: scale(var(--s, 1));
  transform-origin: top left;
  overflow: hidden;
  background: var(--bg);
  user-select: none;
}
.deck::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(122, 72, 0, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(122, 72, 0, 0.06) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse at 50% 30%, #000 20%, transparent 78%);
  pointer-events: none;
}
.slide {
  position: absolute;
  inset: 0;
  padding: 22px 56px 52px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px);
  transition: opacity 0.42s ease, transform 0.42s ease, visibility 0.42s;
  z-index: 1;
}
.deck.back .slide { transform: translateY(-16px); }
.slide.on { opacity: 1; visibility: visible; transform: none; z-index: 2; }
.head { display: flex; flex-direction: column; gap: 4px; }
.kicker {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--orange-2);
  font-family: var(--mono);
  font-size: 15px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.kicker::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--orange);
}
h2 { font-size: 38px; line-height: 1.12; }
.body { flex: 1; min-height: 0; }

.foot {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 5;
  padding: 10px 56px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: var(--bg);
  border-top: 1px solid #e0d4c2;
}
.footline {
  font-size: 17px;
  color: var(--muted);
  letter-spacing: 0.01em;
}
.footline span { color: var(--orange-2); font-family: var(--mono); }

.navbtn {
  position: absolute;
  top: 50%;
  z-index: 5;
  width: 40px;
  height: 40px;
  margin-top: -20px;
  border-radius: 50%;
  border: 1px solid #cfc3b0;
  background: var(--card);
  color: var(--ink);
  display: grid;
  place-items: center;
  opacity: 0;
  transition: opacity 0.2s ease;
}
.navbtn.prev { left: 12px; }
.navbtn.next { right: 12px; }
.deck:hover .navbtn,
.navbtn:focus-visible { opacity: 1; }
.navbtn:disabled,
.deck:hover .navbtn:disabled { opacity: 0; }
.navbtn svg { width: 18px; height: 18px; display: block; }
.navbtn:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; }

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px 14px;
}
.chip {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 18px;
  line-height: 1.35;
}
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.ico { width: 46px; height: 46px; display: block; }
.ico path, .draw path {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; vertical-align: top; padding: 6px 8px; }
th {
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--faint);
  border-bottom: 1px solid var(--line);
}
td { border-bottom: 1px solid #eadfce; font-size: 20px; }

.caret {
  display: inline-block;
  width: 2px;
  height: 0.95em;
  margin-left: 2px;
  background: var(--orange);
  vertical-align: text-bottom;
  animation: blink 1s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes land {
  from { opacity: 0; transform: translateY(-16px); }
  to { opacity: 1; transform: none; }
}
@keyframes chipfall {
  0% { opacity: 0; transform: translateY(-14px); }
  70% { opacity: 1; transform: translateY(3px); }
  100% { opacity: 1; transform: none; }
}
@keyframes pop {
  0% { opacity: 0; transform: scale(0.55); }
  60% { opacity: 1; transform: scale(1.08); }
  100% { opacity: 1; transform: none; }
}
@keyframes dropin {
  0% { opacity: 0; max-height: 0; min-height: 0; margin-bottom: 0; transform: translateY(-70px); }
  62% { opacity: 1; max-height: 58px; min-height: 54px; margin-bottom: 8px; transform: translateY(7px); }
  100% { opacity: 1; max-height: 58px; min-height: 54px; margin-bottom: 8px; transform: none; }
}
@keyframes rise {
  from { opacity: 0; transform: translate(-50%, -30%); }
  to { opacity: 1; transform: translate(-50%, -50%); }
}
@keyframes groww { from { width: 0; } to { width: 100%; } }
@keyframes growY { from { transform: scaleY(0); } to { transform: scaleY(1); } }

/* Portada */
.s1 .body { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 28px; align-items: center; }
.logo-plate { display: inline-block; background: #fff; border-radius: 12px; padding: 8px 12px; }
.logo-plate img { height: 52px; width: auto; display: block; }
.s1 h1 { font-size: 48px; line-height: 1.05; min-height: 156px; max-width: 16ch; }
.rule { height: 4px; width: 0; border-radius: 4px; margin: 8px 0; background: linear-gradient(90deg, var(--orange), var(--orange-2)); }
.s1.ph-line .rule { width: 210px; transition: width 0.5s cubic-bezier(0.2, 0.8, 0.2, 1); }
.s1.ph-line .caret { display: none; }
.sub, .lede, .who, .member, .meta { opacity: 0; transform: translateY(8px); }
.s1.ph-line .sub, .s1.ph-line .lede, .s1.ph-line .meta { opacity: 1; transform: none; transition: 0.45s ease; }
.sub { color: var(--orange-2); font-size: 22px; margin-top: 8px; }
.lede { color: var(--muted); font-size: 22px; max-width: 46ch; margin-top: 8px; }
.who { margin-top: 16px; font-family: var(--mono); font-size: 15px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--faint); }
.members { list-style: none; display: flex; flex-direction: column; gap: 2px; margin-top: 6px; }
.member { font-size: 22px; }
.s1.ph-members .who, .s1.ph-members .member { opacity: 1; transform: none; transition: 0.4s ease; }
.s1.ph-members .member:nth-child(1) { transition-delay: 0.05s; }
.s1.ph-members .member:nth-child(2) { transition-delay: 0.18s; }
.s1.ph-members .member:nth-child(3) { transition-delay: 0.31s; }
.s1.ph-members .member:nth-child(4) { transition-delay: 0.44s; }
.s1.ph-members .member:nth-child(5) { transition-delay: 0.57s; }
.meta { display: flex; flex-wrap: wrap; gap: 8px 14px; margin-top: 16px; color: var(--muted); font-size: 18px; list-style: none; }
.stack { height: 460px; display: flex; flex-direction: column-reverse; justify-content: flex-start; overflow: hidden; padding-top: 8px; }
.stack .layer {
  --i: 1;
  width: calc(100% - (var(--i) - 1) * 16px);
  margin-left: calc((var(--i) - 1) * 16px);
  max-height: 0;
  opacity: 0;
  margin-bottom: 0;
  overflow: hidden;
  border-radius: 12px;
  background: var(--c);
  color: #fffdf8;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 14px;
  font-family: var(--display);
  font-weight: 600;
  font-size: 24px;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.28);
}
.stack .num {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: rgba(0, 0, 0, 0.22);
  color: #fff;
  font-family: var(--mono);
  font-size: 17px;
  flex: none;
}
.s1.on .stack .layer { animation: dropin 0.62s cubic-bezier(0.2, 1.2, 0.36, 1) forwards; }
.s1.on .stack .layer:nth-child(1) { animation-delay: 0.08s; }
.s1.on .stack .layer:nth-child(2) { animation-delay: 0.3s; }
.s1.on .stack .layer:nth-child(3) { animation-delay: 0.52s; }
.s1.on .stack .layer:nth-child(4) { animation-delay: 0.74s; }
.s1.on .stack .layer:nth-child(5) { animation-delay: 0.96s; }
.s1.on .stack .layer:nth-child(6) { animation-delay: 1.18s; }
.s1.on .stack .layer:nth-child(7) { animation-delay: 1.4s; }

/* Objetivo */
.s2 .body { display: flex; flex-direction: column; gap: 14px; }
.obj { font-size: 26px; line-height: 1.35; min-height: 96px; max-width: 78ch; }
.s2.ph-q .obj .caret { display: none; }
.qbar { opacity: 0; transform: translateY(8px); }
.s2.ph-q .qbar { opacity: 1; transform: none; transition: 0.45s ease; }
.q-k { font-family: var(--mono); font-size: 15px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--faint); margin-bottom: 6px; }
.url {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 10px 16px;
  font-size: 22px;
}
.url .globe { width: 18px; height: 18px; color: var(--muted); flex: none; }
.qtext { font-style: italic; }
.axes { flex: 1; display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; min-height: 0; }
.axis { min-height: 0; height: 100%; display: flex; flex-direction: column; gap: 10px; opacity: 0; transform: translateY(28px); }
.s2.ph-cards .axis { opacity: 1; transform: none; transition: 0.5s cubic-bezier(0.2, 0.8, 0.2, 1); }
.s2.ph-cards .axis:nth-child(2) { transition-delay: 0.15s; }
.s2.ph-cards .axis:nth-child(3) { transition-delay: 0.3s; }
.s2.ph-cards .axis:nth-child(4) { transition-delay: 0.45s; }
.axis-k { font-family: var(--mono); font-size: 14px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--orange-2); }
.axis h3 { font-size: 32px; }
.axis p { color: var(--muted); font-size: 24px; line-height: 1.35; }
.axis .ico { margin-top: auto; width: 320px; height: 320px; align-self: center; color: var(--orange-2); }
.s2 .ico path { stroke-dasharray: 1; stroke-dashoffset: 1; }
.s2.ph-cards .ico path { animation: draw 0.85s calc(0.35s + var(--d, 0s)) forwards; }

/* Elementos */
.s3 .body { display: grid; grid-template-rows: auto 1fr; gap: 12px; }
.flow4 { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; padding-top: 54px; }
.box {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px 12px 14px;
  min-height: 112px;
}
.box h3 { font-size: 24px; margin-bottom: 4px; }
.box p { color: var(--muted); font-size: 19px; }
.arrowjoin {
  position: absolute;
  top: 108px;
  width: 18px;
  height: 2px;
  background: var(--orange);
}
.arrowjoin::after {
  content: "";
  position: absolute;
  right: -2px;
  top: -4px;
  border: 5px solid transparent;
  border-left-color: var(--orange);
}
.aj1 { left: calc(25% - 18px); }
.aj2 { left: calc(50% - 18px); }
.aj3 { left: calc(75% - 18px); }
.env-fly {
  position: absolute;
  top: 8px;
  left: 8%;
  width: 86px;
  height: 36px;
  border-radius: 8px;
  background: #f4efe4;
  color: #1b140c;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-family: var(--display);
  font-weight: 600;
  opacity: 0;
  z-index: 2;
}
.env-fly svg { width: 18px; height: 18px; }
.s3.ph-mail .env-fly { animation: mail 2.5s forwards; }
@keyframes mail {
  0% { left: 8%; opacity: 0; transform: translateY(-6px); }
  12% { opacity: 1; transform: none; }
  36% { left: 31%; }
  60% { left: 55%; }
  84% { left: 76%; }
  100% { left: 76%; opacity: 1; }
}
.arc { position: absolute; left: 8%; right: 8%; top: 0; height: 48px; }
.arc path { fill: none; stroke: var(--orange-2); stroke-width: 1.6; stroke-dasharray: 0.012 0.01; stroke-dashoffset: 1; }
.s3.ph-arc .arc path { animation: draw 0.9s forwards; }
.arc text { fill: var(--orange-2); font-size: 14px; font-family: var(--mono); }
.s3-bottom { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 16px; min-height: 0; }
.why h3 { font-size: 26px; margin-bottom: 6px; }
.why p { color: var(--muted); font-size: 20px; }
.split { margin-top: 12px; position: relative; height: 138px; }
.block-label {
  position: absolute;
  inset: 28px 10% auto;
  text-align: center;
  background: color-mix(in srgb, var(--orange) 12%, #fffdf8);
  border: 1px solid var(--orange);
  color: var(--ink);
  border-radius: 10px;
  padding: 12px;
  font-family: var(--display);
  font-weight: 600;
}
.s3.ph-split .block-label { opacity: 0; transition: 0.35s; }
.pieces i {
  position: absolute;
  left: 18%;
  right: 18%;
  height: 16px;
  top: 48px;
  border-radius: 5px;
  background: var(--c);
  opacity: 0;
}
.s3.ph-split .pieces i { opacity: 1; transition: top 0.55s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.3s; }
.s3.ph-split .pieces i:nth-child(1) { top: 8px; }
.s3.ph-split .pieces i:nth-child(2) { top: 30px; transition-delay: 0.05s; }
.s3.ph-split .pieces i:nth-child(3) { top: 52px; transition-delay: 0.1s; }
.s3.ph-split .pieces i:nth-child(4) { top: 74px; transition-delay: 0.15s; }
.s3.ph-split .pieces i:nth-child(5) { top: 96px; transition-delay: 0.2s; }
.adv { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.adv li { display: flex; gap: 10px; align-items: flex-start; font-size: 20px; }
.tick { width: 22px; height: 22px; flex: none; margin-top: 2px; }
.tick path { fill: none; stroke: var(--l3); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; }
.s3.ph-checks .tick path { animation: draw 0.45s forwards; }
.s3.ph-checks li:nth-child(2) .tick path { animation-delay: 0.2s; }
.s3.ph-checks li:nth-child(3) .tick path { animation-delay: 0.4s; }

/* OSI general */
.s4 .body { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 22px; }
.pile4 { display: flex; flex-direction: column; gap: 6px; position: relative; padding-left: 54px; }
.lv {
  display: grid;
  grid-template-columns: 32px 1fr auto;
  align-items: center;
  gap: 8px;
  height: 52px;
  border-radius: 9px;
  padding: 0 10px;
  background: var(--c);
  color: #fffdf8;
  font-family: var(--display);
  font-weight: 600;
  opacity: 0;
}
.lv .num { font-family: var(--mono); }
.lv .pdu {
  background: #fffdf8;
  color: #1a140f;
  border-radius: 999px;
  padding: 2px 8px;
  font-family: var(--mono);
  font-size: 15px;
  font-weight: 500;
}
.s4.on .lv { animation: land 0.4s var(--d) both; }
.s4.on .lv .pdu { animation: typepdu 0.35s calc(var(--d) + 0.12s) both; }
@keyframes typepdu {
  from { opacity: 0; clip-path: inset(0 100% 0 0); }
  to { opacity: 1; clip-path: none; }
}
.flows { position: absolute; left: 0; top: 8px; bottom: 8px; width: 46px; }
.flow { position: absolute; left: 18px; width: 2px; background: var(--cyan); }
.flow span { position: absolute; left: 8px; font-family: var(--mono); font-size: 14px; color: var(--cyan); white-space: nowrap; }
.flow.down { top: 0; height: 46%; transform-origin: top; transform: scaleY(0); }
.flow.up { bottom: 0; height: 46%; background: var(--orange-2); transform-origin: bottom; transform: scaleY(0); }
.flow.up span { color: var(--orange-2); }
.flow.down span { top: -2px; }
.flow.up span { bottom: -2px; }
.s4.ph-down .flow.down { animation: growY 1.05s forwards; }
.s4.ph-up .flow.up { animation: growY 1.05s forwards; }
.s4-copy { display: flex; flex-direction: column; gap: 10px; }
.s4-copy h3 { font-size: 22px; color: var(--orange-2); }
.s4-copy .def { font-size: 19.5px; color: var(--ink); }
.gcards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.gcard { border: 1px solid var(--line); border-radius: 12px; padding: 10px; background: var(--card); transition: 0.3s ease; }
.gcard h3 { font-size: 19px; margin-bottom: 4px; color: var(--c); }
.gcard p { font-size: 17.5px; color: var(--muted); }
.s4[data-lit="high"] .lv[data-g="high"],
.s4[data-lit="mid"] .lv[data-g="mid"],
.s4[data-lit="low"] .lv[data-g="low"] { outline: 2px solid #1a140f; }
.s4[data-lit="high"] .gcard[data-g="high"],
.s4[data-lit="mid"] .gcard[data-g="mid"],
.s4[data-lit="low"] .gcard[data-g="low"] {
  border-color: var(--c);
  box-shadow: 0 0 0 1px var(--c), 0 10px 24px rgba(0, 0, 0, 0.25);
}
.order { font-size: 18px; color: var(--muted); }

/* Capas altas */
.s5 .body { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.col { border: 1px solid var(--line); border-radius: 16px; overflow: hidden; background: var(--card); display: flex; flex-direction: column; }
.tab { display: flex; align-items: center; gap: 8px; padding: 10px 14px; background: var(--c); color: #fffdf8; font-family: var(--display); font-weight: 600; font-size: 26px; }
.tab .num { font-family: var(--mono); font-size: 18px; background: rgba(0, 0, 0, 0.28); color: #fffdf8; border-radius: 6px; padding: 2px 7px; }
.col-body { flex: 1; padding: 12px 16px 16px; transform: scaleY(0.04); transform-origin: top; opacity: 0; display: flex; flex-direction: column; gap: 10px; justify-content: space-between; }
.s5.ph-tabs .col-body { transform: none; opacity: 1; transition: 0.45s cubic-bezier(0.2, 0.8, 0.2, 1); }
.s5.ph-tabs .col:nth-child(2) .col-body { transition-delay: 0.12s; }
.s5.ph-tabs .col:nth-child(3) .col-body { transition-delay: 0.24s; }
.col h3 { font-size: 16px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--c); font-family: var(--mono); font-weight: 500; }
.col p { font-size: 17.5px; color: var(--ink); }
.scene { height: 168px; position: relative; border-radius: 10px; background: color-mix(in srgb, var(--c) 8%, #fffdf8); overflow: hidden; }
.mailpop {
  position: absolute;
  left: 50%;
  top: 10px;
  width: 120px;
  margin-left: -60px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 6px;
  opacity: 0;
  transform: translateY(8px);
}
.s5.ph-mail .mailpop { opacity: 1; transform: none; transition: 0.4s; }
.popbar { display: flex; gap: 4px; margin-bottom: 4px; }
.popbar i { width: 6px; height: 6px; border-radius: 50%; background: #8a7d6e; display: block; }
.env { width: 28px; height: 20px; display: block; margin: 0 auto; color: var(--orange-2); }
.cipher { height: 100%; display: flex; align-items: center; justify-content: center; gap: 10px; font-family: var(--mono); font-size: 40px; }
.lock { width: 22px; height: 22px; opacity: 0; color: var(--l3); }
.s5.ph-lock .lock { opacity: 1; transition: 0.3s; }
.talk svg.person { position: absolute; bottom: 8px; width: 54px; height: 66px; color: var(--ink); }
.talk .person.a { left: 18px; }
.talk .person.b { right: 18px; }
.talk .mic { position: absolute; bottom: 16px; left: 28px; width: 16px; height: 22px; color: var(--orange-2); transition: left 0.7s ease; }
.s5.ph-mic .mic { left: calc(100% - 64px); }
.s5.ph-mic2 .mic { left: 28px; }
.s5 .chip { opacity: 0; }
.s5.ph-chips .chip { animation: chipfall 0.4s calc(var(--col, 0s) + var(--i) * 70ms) forwards; }
.col .chip { border-color: var(--c); background: color-mix(in srgb, var(--c) 10%, #fffdf8); }
.s5 .col p { font-size: 20px; line-height: 1.35; }
.pdu-tag { margin-top: 4px; font-family: var(--mono); font-size: 16px; color: var(--c); }

/* Transporte */
.s6 .body { display: flex; flex-direction: column; gap: 8px; }
.s6-top { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 14px; }
.s6 ul { padding-left: 18px; color: var(--ink); font-size: 19px; }
.s6 li { margin: 3px 0; }
.hs { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 8px 12px 10px; }
.hs-top { display: flex; justify-content: space-between; font-family: var(--display); font-weight: 600; font-size: 17px; padding: 0 8% 4px; }
.hs-body { position: relative; height: 132px; }
.vline { position: absolute; top: 0; bottom: 0; width: 2px; background: #cfc3b0; }
.vline.l { left: 12%; }
.vline.r { right: 12%; }
.msg { position: absolute; left: 12%; right: 12%; height: 18px; }
.m1 { top: 16px; }
.m2 { top: 58px; }
.m3 { top: 100px; }
.msg .tag { position: absolute; top: -14px; left: 42%; font-family: var(--mono); font-size: 15px; color: var(--l4); opacity: 0; }
.msg i { display: block; height: 2px; width: 0; background: var(--l4); position: relative; }
.m2 i { margin-left: auto; }
.msg i::after { content: ""; position: absolute; top: -4px; border: 5px solid transparent; }
.m1 i::after, .m3 i::after { right: -2px; border-left-color: var(--l4); }
.m2 i::after { left: -2px; border-right-color: var(--l4); }
.s6.ph-syn .m1 i { animation: groww 0.9s forwards; }
.s6.ph-syn .m1 .tag { animation: land 0.3s 0.65s forwards; }
.s6.ph-synack .m2 i { animation: groww 0.9s forwards; }
.s6.ph-synack .m2 .tag { animation: land 0.3s 0.65s forwards; }
.s6.ph-ack .m3 i { animation: groww 0.9s forwards; }
.s6.ph-ack .m3 .tag { animation: land 0.3s 0.65s forwards; }
.hs-ok {
  text-align: center;
  margin-top: 4px;
  font-family: var(--display);
  font-weight: 600;
  color: #0e5a30;
  opacity: 0;
}
.hs-list { list-style: none; display: flex; justify-content: space-between; gap: 8px; font-size: 15px; color: var(--muted); margin-top: 4px; }
.s6.ph-ok .hs-ok { opacity: 1; transition: 0.35s; }
.s6 table { font-size: 16.5px; }
.s6 td, .s6 th { padding: 4px 8px; }
.s6 tbody tr { opacity: 0; transform: translateX(-8px); }
.s6.ph-table tbody tr { opacity: 1; transform: none; transition: 0.35s ease; }
.s6.ph-table tbody tr:nth-child(1) { transition-delay: 0.05s; }
.s6.ph-table tbody tr:nth-child(2) { transition-delay: 0.28s; }
.s6.ph-table tbody tr:nth-child(3) { transition-delay: 0.48s; }
.s6.ph-table tbody tr:nth-child(4) { transition-delay: 0.66s; }
.s6.ph-table tbody tr:nth-child(5) { transition-delay: 0.82s; }
.s6.ph-table tbody tr:nth-child(6) { transition-delay: 0.96s; }
.s6.ph-table tbody tr:nth-child(7) { transition-delay: 1.1s; }
.s6 td.tcp { background: color-mix(in srgb, var(--l4) 14%, #fffdf8); }
.s6 td.udp { background: color-mix(in srgb, var(--l1) 10%, #fffdf8); }
.lane { display: block; position: relative; height: 10px; margin-top: 4px; }
.lane i, .lane b {
  position: absolute;
  left: 0;
  top: 1px;
  width: 16px;
  height: 8px;
  border-radius: 2px;
  opacity: 0;
}
.lane.tcp i, .lane.tcp b { background: var(--l4); }
.lane.udp i { background: var(--l1); }
.s6.ph-table .lane.tcp i { animation: tcplost 1.3s 0.45s forwards; }
.s6.ph-table .lane.tcp b { animation: tcpretry 1.1s 1.5s forwards; }
.s6.ph-table .lane.udp i { animation: udplost 1.3s 0.45s forwards; }
@keyframes tcplost {
  0% { opacity: 1; left: 0; }
  55% { opacity: 1; left: 42%; }
  100% { opacity: 0; left: 48%; }
}
@keyframes tcpretry {
  0% { opacity: 1; left: 0; }
  100% { opacity: 1; left: 78%; }
}
@keyframes udplost {
  0% { opacity: 1; left: 0; }
  60% { opacity: 1; left: 40%; }
  100% { opacity: 0; left: 52%; }
}
.socket { font-size: 17.5px; color: var(--muted); }

/* Red */
.s7 .body { display: grid; grid-template-columns: 0.72fr 1.28fr; gap: 16px; }
.s7 ul { padding-left: 18px; font-size: 19px; }
.s7 h3 { font-size: 17px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--l3); font-family: var(--mono); font-weight: 500; margin-top: 8px; }
.s7 .proto { margin-top: 6px; }
.route { position: relative; height: 100%; min-height: 520px; }
.cloud {
  position: absolute;
  left: 34%;
  right: 2%;
  top: 8%;
  bottom: 34%;
  border: 2px dashed color-mix(in srgb, var(--l3) 75%, #1a140f);
  border-radius: 80px;
  background: color-mix(in srgb, var(--l3) 8%, transparent);
}
.node {
  position: absolute;
  left: calc(var(--x) * 1%);
  top: calc(var(--y) * 1%);
  transform: translate(-50%, -50%);
  text-align: center;
  width: 108px;
  z-index: 1;
}
.node svg { width: 44px; height: 44px; color: var(--ink); }
.node .nm { display: block; font-family: var(--display); font-weight: 600; font-size: 17px; }
.node .cap { display: block; color: var(--muted); font-size: 15px; }
.node.dim { opacity: 0.38; }
.node.dim svg { color: var(--faint); }
.links { position: absolute; inset: 0; width: 100%; height: 100%; }
.links path { fill: none; stroke: #5c5146; stroke-width: 2.4; }
.links path.alt { stroke: #b7aa98; stroke-dasharray: 4 4; }
.packet {
  position: absolute;
  z-index: 3;
  transform: translate(-50%, -50%);
  min-width: 112px;
  padding: 4px 8px;
  border-radius: 8px;
  background: #1a140f;
  color: #fffdf8;
  border: 2px solid var(--orange);
  box-shadow: 0 8px 16px rgba(26, 20, 15, 0.18);
  font-family: var(--mono);
  font-size: 14px;
  line-height: 1.25;
  transition: left 0.7s linear, top 0.7s linear, opacity 0.25s;
}
.packet span { display: block; }
.route-note { position: absolute; left: 0; right: 0; bottom: 0; font-size: 17.5px; color: var(--muted); }

/* Capas bajas */
.s8 .body { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.s8 h3 { font-size: 26px; }
.s8 h4 { font-size: 16px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--c); font-family: var(--mono); font-weight: 500; margin: 6px 0 2px; }
.s8 .colp p, .s8 ul { font-size: 17.5px; }
.s8 ul { padding-left: 16px; }
.lab { margin-top: 8px; display: grid; grid-template-columns: 1fr 150px; gap: 8px; align-items: center; }
.sw, .hub {
  position: relative;
  height: 118px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--card);
  padding: 8px;
}
.sw-body, .hub-body { font-family: var(--display); font-weight: 600; font-size: 17px; }
.ports { display: flex; gap: 8px; position: absolute; left: 10px; bottom: 10px; }
.ports span { width: 12px; height: 10px; border-radius: 2px; background: #cfc3b0; display: block; transition: 0.3s; }
.frame {
  position: absolute;
  left: 10px;
  bottom: 28px;
  font-family: var(--mono);
  font-size: 14px;
  padding: 2px 6px;
  border-radius: 4px;
  background: var(--l2);
  color: #fffdf8;
  opacity: 0;
  transition: left 0.7s linear, opacity 0.3s;
}
.s8.ph-in .frame { opacity: 1; left: 8px; }
.s8.ph-in .sw [data-port="1"] { background: var(--cyan); }
.s8.ph-out .frame { left: 62px; }
.s8.ph-out .sw [data-port="3"] { background: var(--l2); box-shadow: 0 0 8px var(--l2); }
.mact { font-size: 15px; }
.mact td, .mact th { padding: 3px 4px; }
.mact tr.reveal { opacity: 0; }
.s8.ph-learn .mact tr.reveal { opacity: 1; transition: 0.35s; }
.sigs { display: flex; flex-direction: column; gap: 6px; margin-top: 8px; }
.wave { display: grid; grid-template-columns: 70px 1fr; gap: 8px; align-items: center; opacity: 0; }
.wave span { font-family: var(--mono); font-size: 15px; color: var(--muted); }
.s8.ph-signals .wave { opacity: 1; transition: 0.4s; }
.s8.ph-signals .wave:nth-child(2) { transition-delay: 0.15s; }
.s8.ph-signals .wave:nth-child(3) { transition-delay: 0.3s; }
.wave svg { width: 100%; height: 28px; }
.wave path, .wave circle { fill: none; stroke: var(--c); stroke-width: 2; stroke-linecap: round; }
.bitsrc { font-family: var(--mono); letter-spacing: 0.18em; font-size: 19px; color: var(--orange-2); }
.s8.ph-hub .hub .ports span { background: var(--l1); box-shadow: 0 0 8px var(--l1); }
.s8.ph-hub .hub .ports span:nth-child(2) { transition-delay: 0.08s; }
.s8.ph-hub .hub .ports span:nth-child(3) { transition-delay: 0.16s; }
.s8.ph-hub .hub .ports span:nth-child(4) { transition-delay: 0.24s; }
.hub { height: 74px; margin-top: 8px; }

/* TCP/IP */
.s9 .body { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 18px; }
.merge { position: relative; height: 100%; }
.ghost, .real { position: absolute; inset: 0; display: flex; flex-direction: column; gap: 6px; }
.grow {
  flex: 1;
  border-radius: 8px;
  display: flex;
  align-items: center;
  padding: 0 12px;
  background: var(--c);
  color: #fffdf8;
  border: 1px solid color-mix(in srgb, var(--c) 50%, transparent);
  font-family: var(--display);
  font-weight: 600;
  transition: transform 0.55s ease, opacity 0.55s ease;
}
.s9.ph-merge .ghost { opacity: 0; }
.s9.ph-merge .ghost [data-g="app"]:nth-child(1) { transform: translateY(22px); }
.s9.ph-merge .ghost [data-g="app"]:nth-child(3) { transform: translateY(-22px); }
.s9.ph-merge .ghost [data-g="acc"]:nth-child(6) { transform: translateY(14px); }
.s9.ph-merge .ghost [data-g="acc"]:nth-child(7) { transform: translateY(-14px); }
.real { opacity: 0; }
.s9.ph-merge .real { opacity: 1; transition: opacity 0.5s ease 0.25s; }
.trow {
  border-radius: 12px;
  border: 1px solid color-mix(in srgb, var(--c) 45%, transparent);
  background: color-mix(in srgb, var(--c) 12%, #fffdf8);
  padding: 8px 10px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-height: 0;
}
.trow.app { flex: 1.7; }
.trow.tr, .trow.net { flex: 0.85; }
.trow.acc { flex: 1.15; }
.trow header { font-family: var(--display); font-weight: 600; font-size: 19px; color: var(--c); }
.trow header span { font-family: var(--mono); margin-right: 6px; }
.trow p { font-size: 16.5px; color: var(--muted); }
.s9 .chip { opacity: 0; transform: translateX(14px); }
.s9.ph-chips .chip { opacity: 1; transform: none; transition: 0.35s ease; }
.s9.ph-chips .chip:nth-child(2) { transition-delay: 0.05s; }
.s9.ph-chips .chip:nth-child(3) { transition-delay: 0.1s; }
.s9.ph-chips .chip:nth-child(4) { transition-delay: 0.15s; }
.s9.ph-chips .chip:nth-child(5) { transition-delay: 0.2s; }
.s9.ph-chips .chip:nth-child(6) { transition-delay: 0.25s; }
.s9.ph-chips .chip:nth-child(7) { transition-delay: 0.3s; }
.side9 { display: flex; flex-direction: column; gap: 10px; }
.side9 h3 { font-size: 19px; color: var(--orange-2); margin-bottom: 4px; }
.side9 p { font-size: 18.5px; color: var(--ink); }
.tl { position: relative; display: flex; justify-content: space-between; margin-top: 12px; padding-top: 14px; }
.tl::before { content: ""; position: absolute; left: 0; right: 0; top: 4px; height: 2px; background: var(--line); transform: scaleX(0); transform-origin: left; }
.s9.ph-time .tl::before { transform: none; transition: transform 0.6s ease; }
.tl div { font-size: 16px; opacity: 0; }
.tl strong { display: block; font-family: var(--mono); font-weight: 500; color: var(--orange-2); }
.s9.ph-time .tl div { opacity: 1; transition: 0.4s 0.35s; }
.hybrid { color: var(--muted); font-size: 17.5px; }

/* Comparación */
.s10 .body { display: flex; flex-direction: column; gap: 8px; }
.cmp { display: grid; grid-template-columns: 280px 150px 280px; gap: 8px; align-items: center; height: 286px; }
.pile { display: grid; gap: 8px; height: 286px; }
.pile.osi { grid-template-rows: repeat(7, 34px); }
.pile.tcp { grid-template-rows: 118px 34px 34px 76px; }
.pile .cell {
  border-radius: 8px;
  display: flex;
  align-items: center;
  padding: 0 10px;
  font-family: var(--display);
  font-weight: 600;
  font-size: 17px;
  background: var(--c);
  color: #fffdf8;
  opacity: 0;
}
.s10.on .pile .cell { animation: land 0.35s var(--d) both; }
.wires { width: 150px; height: 286px; }
.wires path { fill: none; stroke: var(--orange-2); stroke-width: 1.7; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; }
.s10.ph-wires .wires path { animation: draw 0.55s var(--d) forwards; }
.legend { display: grid; grid-template-columns: 1fr 1fr; gap: 2px 16px; font-size: 16.5px; color: var(--muted); }
.s10 table { font-size: 16.5px; }
.s10 td, .s10 th { padding: 3px 8px; }
.s10 tbody tr { opacity: 0; }
.s10.ph-rows tbody tr { opacity: 1; transition: 0.3s; }
.s10.ph-rows tbody tr:nth-child(1) { transition-delay: 0.05s; }
.s10.ph-rows tbody tr:nth-child(2) { transition-delay: 0.18s; }
.s10.ph-rows tbody tr:nth-child(3) { transition-delay: 0.31s; }
.s10.ph-rows tbody tr:nth-child(4) { transition-delay: 0.44s; }
.s10.ph-rows tbody tr:nth-child(5) { transition-delay: 0.57s; }
.s10.ph-rows tbody tr:nth-child(6) { transition-delay: 0.7s; }
.finalnote { display: flex; gap: 14px; align-items: center; font-size: 17.5px; color: var(--muted); }
.badges { display: flex; gap: 8px; flex: none; }
.badge {
  display: flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 4px 8px;
  opacity: 0;
  transform: translateY(6px);
  font-family: var(--mono);
  font-size: 15px;
  color: var(--ink);
}
.badge svg { width: 22px; height: 22px; }
.s10.ph-badges .badge { opacity: 1; transform: none; transition: 0.4s; }
.s10.ph-badges .badge:nth-child(2) { transition-delay: 0.2s; }

/* Tabla integradora */
.s11 .body { min-height: 0; }
.s11 table { font-size: 16px; line-height: 1.28; height: 100%; }
.s11 td, .s11 th { padding: 5px 7px; }
.s11 [data-col] { opacity: 0; transform: translateY(6px); }
.s11.ph-c1 [data-col="1"],
.s11.ph-c2 [data-col="2"],
.s11.ph-c3 [data-col="3"],
.s11.ph-c4 [data-col="4"],
.s11.ph-c5 [data-col="5"],
.s11.ph-c6 [data-col="6"],
.s11.ph-c7 [data-col="7"] { opacity: 1; transform: none; transition: 0.35s ease; }
.s11 tbody tr { cursor: pointer; }
.s11 tr[data-layer="7"] td:first-child { box-shadow: inset 8px 0 0 var(--l7); }
.s11 tr[data-layer="6"] td:first-child { box-shadow: inset 3px 0 0 var(--l6); }
.s11 tr[data-layer="5"] td:first-child { box-shadow: inset 3px 0 0 var(--l5); }
.s11 tr[data-layer="4"] td:first-child { box-shadow: inset 3px 0 0 var(--l4); }
.s11 tr[data-layer="3"] td:first-child { box-shadow: inset 3px 0 0 var(--l3); }
.s11 tr[data-layer="2"] td:first-child { box-shadow: inset 3px 0 0 var(--l2); }
.s11 tr[data-layer="1"] td:first-child { box-shadow: inset 3px 0 0 var(--l1); }
.s11 tr[data-layer="7"]:hover td { background: color-mix(in srgb, var(--l7) 14%, #fffdf8); }
.s11 tr[data-layer="6"]:hover td { background: color-mix(in srgb, var(--l6) 14%, #fffdf8); }
.s11 tr[data-layer="5"]:hover td { background: color-mix(in srgb, var(--l5) 14%, #fffdf8); }
.s11 tr[data-layer="4"]:hover td { background: color-mix(in srgb, var(--l4) 14%, #fffdf8); }
.s11 tr[data-layer="3"]:hover td { background: color-mix(in srgb, var(--l3) 14%, #fffdf8); }
.s11 tr[data-layer="2"]:hover td { background: color-mix(in srgb, var(--l2) 14%, #fffdf8); }
.s11 tr[data-layer="1"]:hover td { background: color-mix(in srgb, var(--l1) 14%, #fffdf8); }
td.grp { position: relative; padding-left: 22px; font-family: var(--display); font-weight: 600; }
.brace { position: absolute; left: 2px; top: 6px; bottom: 6px; width: 16px; height: auto; }
.brace path { fill: none; stroke: var(--l7); stroke-width: 2; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; }
td.grp.acc .brace path { stroke: var(--l2); }
.s11.ph-c2 .brace path { animation: draw 0.6s forwards; }

/* Encapsulado */
.s12 .lead { font-size: 19px; color: var(--orange-2); }
.enc-grid { display: grid; grid-template-columns: 1.35fr 0.65fr; gap: 14px; min-height: 0; }
.ladder { display: flex; flex-direction: column; gap: 6px; }
.lr { display: grid; grid-template-columns: 108px 1fr 92px; gap: 8px; align-items: center; }
.ln { font-family: var(--display); font-weight: 600; font-size: 17px; color: var(--c); }
.pktslot {
  min-height: 40px;
  display: flex;
  align-items: center;
  gap: 4px;
  border: 1px dashed #cfc3b0;
  border-radius: 8px;
  padding: 4px;
  overflow: hidden;
}
.h {
  font-family: var(--mono);
  font-size: 16px;
  font-weight: 600;
  padding: 6px 8px;
  border-radius: 6px;
  color: #fffdf8;
  opacity: 0;
}
.h.datos { background: #1a140f; color: #fffdf8; }
.h.tcp { background: var(--l4); }
.h.ip { background: var(--l3); }
.h.eth { background: var(--l2); }
.h.fcs { background: var(--l1); }
.lr .pdu { font-family: var(--mono); font-size: 15px; color: var(--muted); text-align: right; }
.s12.ph-datos .lr[data-k="app"] .h.datos { animation: falldata 0.5s forwards; }
.s12.ph-tcp .lr[data-k="tcp"] .h { animation: pop 0.42s forwards; }
.s12.ph-ip .lr[data-k="ip"] .h { animation: pop 0.42s forwards; }
.s12.ph-eth .lr[data-k="eth"] .h { animation: pop 0.42s forwards; }
@keyframes falldata {
  0% { opacity: 0; transform: translateY(-64px); }
  70% { opacity: 1; transform: translateY(4px); }
  100% { opacity: 1; transform: none; }
}
.bits { font-family: var(--mono); font-size: 16px; letter-spacing: 0.06em; opacity: 0; white-space: nowrap; }
.s12.ph-bits .bits { animation: runbits 1.15s forwards; }
@keyframes runbits {
  0% { opacity: 0; transform: translateX(-8%); }
  20% { opacity: 1; }
  55% { transform: translateX(16%); }
  100% { opacity: 1; transform: translateX(0); }
}
.calls { display: flex; flex-direction: column; gap: 6px; }
.call { font-size: 16.5px; border-left: 3px solid var(--c); }
.rx { margin-top: 6px; opacity: 0; }
.s12.ph-rev .rx { opacity: 1; transition: 0.3s; }
.rx-title { font-size: 16px; color: var(--orange-2); margin-bottom: 2px; }
.rx-seq { font-size: 15px; color: var(--muted); margin-bottom: 4px; }
.rx-pkt { display: flex; gap: 4px; min-height: 32px; align-items: center; }
.rx-bits { font-family: var(--mono); font-size: 15px; opacity: 0; }
.s12.ph-rx-bits .rx-bits { opacity: 1; }
.s12.ph-rx-trama .rx-bits { opacity: 0; }
.s12.ph-rx-trama .rx .h { opacity: 1; }
.s12.ph-rx-paq .rx .h.eth, .s12.ph-rx-paq .rx .h.fcs { opacity: 0; }
.s12.ph-rx-seg .rx .h.eth, .s12.ph-rx-seg .rx .h.fcs, .s12.ph-rx-seg .rx .h.ip { opacity: 0; }
.s12.ph-rx-datos .rx .h { opacity: 0; }
.s12.ph-rx-datos .rx .h.datos { opacity: 1; }
.rx ol { display: flex; gap: 6px; list-style: none; margin-top: 6px; }
.rx li { font-family: var(--mono); font-size: 14px; color: var(--faint); }
.s12.ph-rx-bits .rx li:nth-child(1),
.s12.ph-rx-trama .rx li:nth-child(2),
.s12.ph-rx-paq .rx li:nth-child(3),
.s12.ph-rx-seg .rx li:nth-child(4),
.s12.ph-rx-datos .rx li:nth-child(5) { color: var(--orange-2); }
.enc-foot { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.enc-foot h3 { font-size: 18px; margin-bottom: 3px; color: var(--orange-2); }
.enc-foot p, .fine { font-size: 16.5px; color: var(--muted); }

/* Caso */
.s13 .top { display: grid; grid-template-columns: 1fr 200px; gap: 12px; align-items: stretch; }
.browser { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--card); min-height: 148px; }
.chrome { display: flex; align-items: center; gap: 8px; padding: 8px; background: #efe8dc; }
.dots { display: flex; gap: 4px; }
.dots i { width: 8px; height: 8px; border-radius: 50%; background: #c4b8a6; display: block; }
.browser .url { flex: 1; padding: 6px 12px; font-family: var(--mono); font-size: 17px; }
.s13.ph-enter .browser .url { box-shadow: 0 0 0 2px var(--orange); }
.lock { width: 14px; height: 14px; color: var(--muted); opacity: 0.4; }
.s13.st3 .lock, .s13.st4 .lock, .s13.st5 .lock, .s13.st6 .lock, .s13.st7 .lock, .s13.st8 .lock { opacity: 1; color: var(--l3); }
.page { padding: 12px 14px; display: flex; flex-direction: column; gap: 6px; opacity: 0; }
.s13.ph-page .page { opacity: 1; transition: 0.45s; }
.page .ttl { font-family: var(--display); font-weight: 600; font-size: 19px; }
.page .bar { height: 10px; border-radius: 4px; background: #e4d9c8; }
.page .w2 { width: 80%; }
.page .w3 { width: 55%; }
.page .blocks { display: flex; gap: 8px; }
.page .blocks i { display: block; height: 28px; flex: 1; border-radius: 6px; background: color-mix(in srgb, var(--l5) 35%, transparent); }
.mini { list-style: none; display: flex; flex-direction: column; gap: 4px; position: relative; }
.mini li {
  height: 18px;
  border-radius: 5px;
  display: flex;
  align-items: center;
  padding: 0 8px;
  font-family: var(--mono);
  font-size: 14px;
  background: color-mix(in srgb, var(--c) 14%, #fffdf8);
  color: var(--c);
  transition: 0.25s ease;
}
.mini li.on { background: var(--c); color: #fffdf8; box-shadow: none; }
.back-arrow { position: absolute; right: -4px; top: 20%; bottom: 20%; width: 14px; opacity: 0; }
.back-arrow path { fill: none; stroke: var(--orange-2); stroke-width: 2; stroke-dasharray: 1; stroke-dashoffset: 1; }
.s13.ph-back .back-arrow { opacity: 1; }
.s13.ph-back .back-arrow path { animation: draw 0.6s forwards; }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 8px; }
.step { border: 1px solid var(--line); border-radius: 12px; padding: 8px 8px 8px 10px; background: var(--card); opacity: 0; transform: translateY(8px); border-top: 3px solid var(--c); }
.s13.st1 .step[data-n="1"],
.s13.st2 .step[data-n="2"],
.s13.st3 .step[data-n="3"],
.s13.st4 .step[data-n="4"],
.s13.st5 .step[data-n="5"],
.s13.st6 .step[data-n="6"],
.s13.st7 .step[data-n="7"],
.s13.st8 .step[data-n="8"] { opacity: 1; transform: none; transition: 0.35s ease; }
.step h3 { font-size: 17px; }
.step .sm { font-family: var(--mono); font-size: 14px; color: var(--c); }
.step p { font-size: 15.5px; color: var(--muted); margin-top: 2px; }
.moral { margin-top: 8px; font-size: 16.5px; color: var(--muted); opacity: 0; }
.s13.ph-page .moral { opacity: 1; transition: 0.4s; }

/* Oficina */
.s14 .body { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 14px; }
.topo { position: relative; height: 100%; min-height: 560px; }
.s14 .node { width: 132px; opacity: 0; }
.s14 .packet { min-width: 0; width: 18px; height: 18px; padding: 0; border-radius: 4px; background: var(--orange); border-color: #7c2d12; }
.s14.on .node { animation: rise 0.45s var(--d) both; }
.s14 .node svg { color: var(--c, var(--cyan)); }
.s14 .links path { stroke-dasharray: 1; stroke-dashoffset: 1; stroke: #5c5146; }
.s14.on .links path { animation: draw 0.7s var(--d) forwards; }
.s14.vlan .srv { --c: var(--l6); }
.s14.vlan .links .v20 { stroke: var(--l6); }
.diag { list-style: none; display: flex; flex-direction: column; gap: 6px; margin-top: 8px; }
.diag li { display: flex; gap: 8px; align-items: flex-start; font-size: 17.5px; }
.boxck { width: 16px; height: 16px; border: 1px solid var(--line); border-radius: 4px; flex: none; margin-top: 2px; display: grid; place-items: center; }
.boxck path { fill: none; stroke: var(--l3); stroke-width: 2.4; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; }
.s14.ph-check .diag li .boxck path { animation: draw 0.35s var(--d) forwards; }
.star { font-size: 15px; color: var(--faint); margin-top: 4px; }
.medio { position: absolute; left: 0; right: 8px; bottom: 0; font-size: 16px; color: var(--muted); }

/* Cierre */
.s15 .body { display: flex; flex-direction: column; gap: 12px; }
.flips { flex: 1; display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; perspective: 1200px; min-height: 0; }
.flip { min-height: 0; }
.flip-inner { position: relative; height: 100%; transform-style: preserve-3d; transition: transform 0.7s cubic-bezier(0.2, 0.8, 0.2, 1); }
.face { position: absolute; inset: 0; backface-visibility: hidden; border-radius: 16px; border: 1px solid var(--line); padding: 14px; }
.face.front { background: #1a140f; display: flex; align-items: flex-end; font-family: var(--display); font-size: 64px; color: #f3eee3; }
.face.back { background: var(--card); transform: rotateY(180deg); display: flex; flex-direction: column; gap: 8px; justify-content: space-between; }
.face.back h3 { font-size: 26px; }
.face.back p { font-size: 20px; color: var(--muted); }
.face.back .ico { margin-top: 0; color: var(--c); width: 300px; height: 300px; flex: none; align-self: center; }
.s15.ph-flip .flip:nth-child(1) .flip-inner { transform: rotateY(180deg); transition-delay: 0.05s; }
.s15.ph-flip .flip:nth-child(2) .flip-inner { transform: rotateY(180deg); transition-delay: 0.28s; }
.s15.ph-flip .flip:nth-child(3) .flip-inner { transform: rotateY(180deg); transition-delay: 0.51s; }
.s15.ph-flip .flip:nth-child(4) .flip-inner { transform: rotateY(180deg); transition-delay: 0.74s; }
.close { display: grid; grid-template-columns: 140px 1fr; gap: 16px; align-items: center; }
.ministack { display: flex; flex-direction: column; gap: 4px; }
.ministack i { display: block; height: 12px; border-radius: 4px; background: var(--c); opacity: 0.28; width: calc(64% + var(--i) * 5%); }
.s15.ph-stack .ministack i { animation: light 0.35s var(--d) forwards; }
@keyframes light { to { opacity: 1; box-shadow: 0 0 10px var(--c); } }
.close p { font-size: 19px; }
.uline { width: 100%; height: 12px; display: block; margin-top: 4px; }
.uline path { fill: none; stroke: var(--orange); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; }
.s15.ph-line .uline path { animation: draw 0.9s forwards; }

@media (prefers-reduced-motion: reduce) {
  .slide, .slide *, .slide *::before, .slide *::after {
    animation: none !important;
    transition: none !important;
  }
  .slide.ph-final .layer { max-height: 58px !important; min-height: 54px !important; opacity: 1 !important; margin-bottom: 8px !important; transform: none !important; }
  .slide.ph-final .sub,
  .slide.ph-final .lede,
  .slide.ph-final .who,
  .slide.ph-final .member,
  .slide.ph-final .meta,
  .slide.ph-final .axis,
  .slide.ph-final .qbar,
  .slide.ph-final .chip,
  .slide.ph-final .h,
  .slide.ph-final .bits,
  .slide.ph-final .step,
  .slide.ph-final .page,
  .slide.ph-final .moral,
  .slide.ph-final .rx,
  .slide.ph-final .real,
  .slide.ph-final .badge,
  .slide.ph-final [data-col],
  .slide.ph-final tbody tr,
  .slide.ph-final .cell,
  .slide.ph-final .lv,
  .slide.ph-final .env-fly,
  .slide.ph-final .pieces i,
  .slide.ph-final .col-body,
  .slide.ph-final .node,
  .slide.ph-final .wave,
  .slide.ph-final .frame,
  .slide.ph-final .hs-ok,
  .slide.ph-final .mailpop {
    opacity: 1 !important;
    transform: none !important;
  }
  .slide.ph-final .rule { width: 210px !important; }
  .slide.ph-final .flip-inner { transform: rotateY(180deg) !important; }
}
