:root {
  --color-bg: #0f1220;
  --color-text: #1a1a1a;
  --color-text-dim: #5b5f73;
  --color-accent: #2a5adf;
  --ground-height: 100px;
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
}

body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--color-text);
  line-height: 1.6;
  background: #fdfaf4;
}

a {
  color: var(--color-accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* ---------- header ---------- */

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 20;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 2rem;
  mix-blend-mode: difference;
}

.logo {
  font-family: "Caveat", "Segoe UI", sans-serif;
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #fff;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.header-social {
  display: flex;
  align-items: center;
  gap: 1.1rem;
}

.social-link {
  display: flex;
  color: #fff;
  opacity: 0.85;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.social-link:hover,
.social-link:focus-visible {
  opacity: 1;
  transform: translateY(-2px);
}

.header-contact {
  font-size: 0.9rem;
  color: #fff;
}

@media (max-width: 480px) {
  .site-header {
    padding: 1rem 1.25rem;
  }

  .logo {
    font-size: 1.5rem;
  }

  .header-right {
    gap: 0.9rem;
  }

  .header-social {
    gap: 0.7rem;
  }

  .social-link svg {
    width: 17px;
    height: 17px;
  }

  .header-contact {
    font-size: 0.78rem;
  }
}

.scroll-cue {
  position: fixed;
  z-index: 20;
  left: 2rem;
  bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: #fff;
  mix-blend-mode: difference;
  opacity: 1;
  transition: opacity 0.4s ease;
}

.scroll-cue.hidden {
  opacity: 0;
  pointer-events: none;
}

.scroll-cue-arrow {
  animation: nudge 1.6s ease-in-out infinite;
}

@keyframes nudge {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(6px); }
}

.game-legend {
  position: absolute;
  z-index: 20;
  top: 4.75rem;
  right: 1.5rem;
  max-width: 340px;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(6px);
  padding: 1.4rem 1.6rem;
  border-radius: 20px;
  border: 2px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.18);
}

.game-legend-title {
  margin: 0 0 0.6rem;
  font-family: "Caveat", "Segoe UI", sans-serif;
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--color-text);
}

.game-legend-text {
  margin: 0 0 1rem;
  font-size: 1.05rem;
  line-height: 1.5;
  color: var(--color-text-dim);
}

.game-stats {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.stat-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.stat-icon {
  font-size: 1.7rem;
  width: 1.9rem;
  text-align: center;
}

.stat-track {
  flex: 1;
  height: 13px;
  background: rgba(0, 0, 0, 0.08);
  border-radius: 999px;
  overflow: hidden;
}

.stat-fill {
  height: 100%;
  width: 0%;
  border-radius: 999px;
}

.stat-value {
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-text-dim);
  width: 3.1rem;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.fill-battery { background: linear-gradient(90deg, #ffcf5c, #ff5c5c); }
.fill-love { background: #e0607e; }
.fill-health { background: #4c8c6b; }
.fill-knowledge { background: #7c9cff; }

@media (max-width: 700px) {
  .game-legend {
    top: auto;
    bottom: 1.5rem;
    right: 1rem;
    max-width: 250px;
    padding: 1rem 1.2rem;
  }

  .game-legend-title {
    font-size: 1.7rem;
  }

  .game-legend-text {
    font-size: 0.85rem;
  }

  .game-stats {
    gap: 0.55rem;
  }

  .stat-icon {
    font-size: 1.3rem;
    width: 1.5rem;
  }

  .stat-value {
    font-size: 0.85rem;
    width: 2.4rem;
  }
}

/* ---------- scene (pinned walking stage) ---------- */

.scene {
  position: relative;
  height: 100vh;
  overflow: hidden;
  background: #cfe8f2;
}

.sky {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right,
    #2b2f5c 0%, #ffd9a0 8%, #ffe8c2 14%,
    #cfe8f2 20%, #cfe8f2 58%,
    #ffcf9e 76%, #f2a76b 86%,
    #b39ddb 94%, #4a3d7a 100%
  );
  background-size: 11200px 100%;
}

.clouds {
  position: absolute;
  inset: 0;
  opacity: 0.6;
  background-image:
    radial-gradient(ellipse 60px 24px at 10% 20%, #fff, transparent 70%),
    radial-gradient(ellipse 40px 18px at 60% 15%, #fff, transparent 70%),
    radial-gradient(ellipse 50px 20px at 85% 30%, #fff, transparent 70%);
  background-repeat: repeat-x;
  background-size: 900px 100%;
}

.world {
  position: absolute;
  inset: 0;
  display: flex;
  will-change: transform;
}

.zone {
  position: relative;
  width: 1600px;
  height: 100%;
  flex-shrink: 0;
}

.building-back {
  position: absolute;
  bottom: var(--ground-height);
  left: 45%;
  width: 220px;
  height: 140px;
  background: rgba(120, 130, 160, 0.35);
  border-radius: 6px 6px 0 0;
}

.sign {
  position: absolute;
  bottom: calc(var(--ground-height) + 260px);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 0.4rem;
  background: #fff;
  padding: 0.5rem 1.1rem;
  border-radius: 999px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
  font-weight: 600;
  white-space: nowrap;
}

.sign-icon {
  font-size: 1.3rem;
}

.sign-label {
  font-family: "Caveat", "Segoe UI", sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-accent);
}

/* buildings */

.building {
  position: absolute;
  bottom: var(--ground-height);
  left: 50%;
}

.house1 {
  width: 150px;
  height: 170px;
  left: calc(50% - 130px);
  background: #f2d9a1;
  border-radius: 4px 4px 0 0;
}

.house2 {
  width: 190px;
  height: 210px;
  left: calc(50% + 20px);
  background: #e3b4a4;
  border-radius: 4px 4px 0 0;
}

.roof {
  position: absolute;
  top: -50px;
  left: -10px;
  width: 0;
  height: 0;
  border-left: 85px solid transparent;
  border-right: 85px solid transparent;
  border-bottom: 55px solid #b5544a;
}

.roof2 {
  border-left: 105px solid transparent;
  border-right: 105px solid transparent;
  border-bottom: 60px solid #7a4f6e;
}

.door {
  position: absolute;
  bottom: 0;
  left: 20px;
  width: 34px;
  height: 62px;
  background: #7a4f3a;
  border-radius: 4px 4px 0 0;
}

.door.lit, .window.lit {
  background: #ffd97a;
  box-shadow: 0 0 20px 4px rgba(255, 217, 122, 0.7);
}

.window {
  position: absolute;
  top: 40px;
  right: 24px;
  width: 32px;
  height: 32px;
  background: #dff0f7;
  border: 3px solid #fff;
  border-radius: 2px;
}

.window2 {
  right: auto;
  left: 30px;
  top: 90px;
}

.office {
  width: 260px;
  height: 400px;
  left: calc(50% - 130px);
  background: #5f7a99;
  border-radius: 3px 3px 0 0;
}

.office-windows {
  position: absolute;
  inset: 24px 20px;
  background-image:
    repeating-linear-gradient(to right, rgba(255,255,255,0.55) 0 22px, transparent 22px 34px),
    repeating-linear-gradient(to bottom, rgba(255,255,255,0.55) 0 22px, transparent 22px 34px);
}

.verti-office {
  width: 260px;
  height: 400px;
  left: calc(50% - 130px);
  background: linear-gradient(165deg, #ff9800 0%, #f4511e 55%, #d84315 100%);
  border-radius: 3px 3px 0 0;
}

.sign-verti {
  gap: 0.5rem;
}

.verti-logo {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-weight: 800;
  font-size: 1.4rem;
  letter-spacing: -0.02em;
  background: linear-gradient(100deg, #d84315, #ff9800);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.verti-runner {
  display: inline-block;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #ff9800, #d84315);
}

.school {
  width: 320px;
  height: 230px;
  left: calc(50% - 160px);
  background: #e0b23f;
  border-radius: 3px 3px 0 0;
}

.roof-school {
  top: -40px;
  left: -20px;
  border-left: 180px solid transparent;
  border-right: 180px solid transparent;
  border-bottom: 45px solid #a5651f;
}

.flagpole {
  position: absolute;
  top: -110px;
  left: 50%;
  width: 4px;
  height: 70px;
  background: #8a8a8a;
}

.flag {
  position: absolute;
  top: 0;
  left: 4px;
  width: 30px;
  height: 20px;
  background: #d64550;
}

.window-school {
  position: absolute;
  top: 60px;
  width: 40px;
  height: 50px;
  background: #dff0f7;
  border: 3px solid #fff;
  border-radius: 2px;
}

.window-school.w1 { left: 40px; }
.window-school.w2 { right: 40px; }

.door-school {
  left: 50%;
  transform: translateX(-50%);
  width: 46px;
  height: 80px;
  background: #7a4f3a;
}

.market {
  width: 260px;
  height: 210px;
  left: calc(50% - 130px);
  background: #f5f1e6;
  border: 3px solid #ddd4bd;
  border-radius: 3px 3px 0 0;
}

.awning {
  position: absolute;
  top: -14px;
  left: -10px;
  width: 280px;
  height: 34px;
  background: repeating-linear-gradient(to right, #d64550 0 28px, #fff 28px 56px);
  border-radius: 4px 4px 0 0;
}

.market-window {
  position: absolute;
  top: 40px;
  left: 20px;
  width: 220px;
  height: 100px;
  background: #dff0f7;
  border: 4px solid #fff;
}

.door-market {
  left: 50%;
  transform: translateX(-50%);
  bottom: 0;
  width: 60px;
  height: 70px;
  background: #cfe8f2;
  border: 3px solid #fff;
}

.gym {
  width: 240px;
  height: 240px;
  left: calc(50% - 120px);
  background: #2e2b3d;
  border-radius: 3px 3px 0 0;
}

.gym-window {
  position: absolute;
  top: 30px;
  left: 20px;
  width: 200px;
  height: 90px;
  background: #7c9cff;
  opacity: 0.5;
  border-radius: 2px;
}

.door-gym {
  left: 50%;
  transform: translateX(-50%);
  bottom: 0;
  width: 50px;
  height: 80px;
  background: #ff5c8a;
}

.sign-gym {
  background: #2e2b3d;
  color: #fff;
}

.sign-gym .sign-label {
  color: #fff;
}

.street-prop {
  position: absolute;
  bottom: var(--ground-height);
}

.street-prop.lamp {
  left: 30%;
  width: 6px;
  height: 130px;
  background: #8a8a8a;
}

.street-prop.lamp::before {
  content: "";
  position: absolute;
  top: -6px;
  left: -7px;
  width: 20px;
  height: 14px;
  background: #ffd97a;
  border-radius: 4px;
  box-shadow: 0 0 16px 4px rgba(255, 217, 122, 0.6);
}

.street-prop.tree {
  left: 68%;
  width: 12px;
  height: 60px;
  background: #7a5a44;
}

.street-prop.tree::before {
  content: "";
  position: absolute;
  bottom: 46px;
  left: -24px;
  width: 60px;
  height: 60px;
  background: #5c9a6b;
  border-radius: 50%;
}

/* ---------- ground ---------- */

.ground {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: var(--ground-height);
  background: #cbb995;
  border-top: 4px solid #b3a07c;
  background-image: repeating-linear-gradient(to right, #b3a07c 0 30px, transparent 30px 70px);
  background-position-y: 14px;
  z-index: 5;
}

/* ---------- character group ---------- */

.character-group {
  position: absolute;
  left: 26%;
  bottom: var(--ground-height);
  z-index: 6;
  display: flex;
  align-items: flex-end;
  gap: 10px;
}

.kids-group {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  opacity: 0;
}

.family-car {
  position: absolute;
  left: 6px;
  bottom: 0;
  width: 120px;
  height: 60px;
  opacity: 0;
  pointer-events: none;
}

.car-body {
  position: absolute;
  bottom: 14px;
  left: 0;
  width: 120px;
  height: 34px;
  background: #d64550;
  border-radius: 10px 10px 6px 6px;
}

.car-window {
  position: absolute;
  top: -22px;
  left: 24px;
  width: 62px;
  height: 26px;
  background: #cfe8f2;
  border: 3px solid #d64550;
  border-radius: 14px 14px 4px 4px;
  overflow: hidden;
}

.car-head {
  position: absolute;
  bottom: -6px;
  left: 50%;
  transform: translateX(-50%);
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #f2c199;
}

.car-hair {
  position: absolute;
  top: -3px;
  left: 50%;
  transform: translateX(-50%);
  width: 24px;
  height: 14px;
  border-radius: 50% 50% 0 0;
  background: #e8c468;
}

.car-wheel {
  position: absolute;
  bottom: 0;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #2e2b3d;
  border: 4px solid #706a63;
}

.wheel-a { left: 14px; }
.wheel-b { right: 14px; }

.figure {
  position: relative;
}

.head {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 50%;
  background: #f2c199;
  z-index: 2;
}

.hair {
  position: absolute;
  border-radius: 50% 50% 0 0;
  background: #4a3327;
}

.arm, .leg {
  position: absolute;
  transform-origin: top center;
  border-radius: 6px;
}

.girl {
  width: 32px;
  height: 80px;
}

.girl .head {
  width: 22px;
  height: 22px;
}

.girl .hair {
  width: 22px;
  height: 18px;
  top: -5px;
  left: 50%;
  transform: translateX(-50%);
  background: #e8c468;
  border-radius: 50% 50% 40% 40%;
}
.girl .hair::before,
.girl .hair::after {
  content: "";
  position: absolute;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: #e8c468;
  top: 7px;
}
.girl .hair::before { left: -7px; }
.girl .hair::after { right: -7px; }

.girl .body-girl {
  position: absolute;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 12px solid transparent;
  border-right: 12px solid transparent;
  border-bottom: 34px solid #e0607e;
}

.girl .arm {
  width: 5px;
  height: 24px;
  top: 24px;
  background: #f2c199;
}
.girl .arm-left { left: 3px; }
.girl .arm-right { right: 3px; }

.girl .leg {
  width: 7px;
  height: 26px;
  top: 54px;
  background: #5a4a63;
}
.girl .leg-left { left: 8px; }
.girl .leg-right { right: 8px; }

.boy {
  width: 36px;
  height: 92px;
}

.boy .head {
  width: 24px;
  height: 24px;
}

.boy .hair {
  width: 26px;
  height: 12px;
  top: -1px;
  left: 50%;
  transform: translateX(-50%);
}

.boy .body-boy {
  position: absolute;
  top: 22px;
  left: 50%;
  transform: translateX(-50%);
  width: 22px;
  height: 36px;
  background: #4c8c6b;
  border-radius: 5px;
}

.boy .arm {
  width: 6px;
  height: 28px;
  top: 26px;
  background: #f2c199;
}
.boy .arm-left { left: 2px; }
.boy .arm-right { right: 2px; }

.boy .leg {
  width: 8px;
  height: 34px;
  top: 58px;
  background: #33475c;
}
.boy .leg-left { left: 9px; }
.boy .leg-right { right: 9px; }

.mum-jump {
  position: relative;
}

.mum {
  width: 50px;
  height: 144px;
}

/* Mario-style reward block: static, sits near each zone's exit (not attached to mum) */
.question-block {
  position: absolute;
  bottom: calc(var(--ground-height) + 150px);
  left: 1440px;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fbd000;
  border: 4px solid #8a5a1a;
  border-radius: 8px;
  box-shadow: inset -4px -4px 0 rgba(0, 0, 0, 0.15), inset 4px 4px 0 rgba(255, 255, 255, 0.35);
  z-index: 3;
}

.question-mark {
  font-weight: 800;
  font-size: 2rem;
  color: #8a5a1a;
  transition: opacity 0.2s ease;
}

.question-block.hit {
  background: #b0925a;
  box-shadow: inset -4px -4px 0 rgba(0, 0, 0, 0.2), inset 4px 4px 0 rgba(255, 255, 255, 0.15);
}

.question-block.hit .question-mark {
  opacity: 0;
}

.stat-popup {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 2.4rem;
  pointer-events: none;
  z-index: 4;
}

.mum .head {
  width: 30px;
  height: 30px;
}

.mum .hair {
  width: 34px;
  height: 20px;
  top: -2px;
  left: 50%;
  transform: translateX(-50%);
  background: #e8c468;
  border-radius: 50% 50% 10px 10px;
}
.mum .hair::before,
.mum .hair::after {
  content: "";
  position: absolute;
  width: 9px;
  height: 62px;
  background: #e8c468;
  border-radius: 0 0 8px 8px;
  top: 6px;
}
.mum .hair::before { left: -4px; }
.mum .hair::after { right: -4px; }

.mum .body-mum {
  position: absolute;
  top: 28px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 19px solid transparent;
  border-right: 19px solid transparent;
  border-bottom: 62px solid #7c5cbf;
}

.mum .arm {
  width: 7px;
  height: 44px;
  top: 34px;
  background: #f2c199;
}
.mum .arm-left { left: 3px; }
.mum .arm-right { right: 3px; }

.mum .leg {
  width: 10px;
  height: 54px;
  top: 90px;
  background: #2e2b3d;
}
.mum .leg-left { left: 15px; }
.mum .leg-right { right: 15px; }

/* stroller */

.stroller {
  position: relative;
  width: 100px;
  height: 116px;
}

.stroller-handle {
  position: absolute;
  bottom: 46px;
  left: 8px;
  width: 6px;
  height: 46px;
  background: #706a63;
  border-radius: 4px;
  transform: rotate(-32deg);
  transform-origin: bottom center;
}

.stroller-canopy {
  position: absolute;
  top: 10px;
  left: 18px;
  width: 50px;
  height: 28px;
  background: #ff8fa3;
  border-radius: 30px 30px 4px 4px;
  z-index: 2;
}

.stroller-body {
  position: absolute;
  top: 40px;
  left: 20px;
  width: 66px;
  height: 44px;
  background: #ff8fa3;
  border-radius: 8px 8px 16px 16px;
}

.stroller-wheel {
  position: absolute;
  bottom: 0;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #2e2b3d;
  border: 4px solid #706a63;
}

.wheel-back { left: 18px; }
.wheel-front { right: 8px; }

/* ---------- caption ---------- */

.caption {
  position: absolute;
  z-index: 10;
  top: 12%;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  max-width: 420px;
  padding: 0 1rem;
}

.caption-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-size: 0.8rem;
  color: var(--color-accent);
  margin: 0 0 0.35rem;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.caption-title {
  font-family: "Caveat", "Segoe UI", sans-serif;
  font-size: 3.4rem;
  font-weight: 700;
  color: var(--color-accent);
  margin: 0 0 0.4rem;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.caption-subtitle {
  font-size: 1.05rem;
  color: var(--color-text-dim);
  margin: 0;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.caption.visible .caption-eyebrow,
.caption.visible .caption-title,
.caption.visible .caption-subtitle {
  opacity: 1;
}

/* ---------- progress bar ---------- */

.progress-track {
  position: absolute;
  z-index: 10;
  left: 0;
  right: 0;
  bottom: 0;
  height: 4px;
  background: rgba(0, 0, 0, 0.08);
}

.progress-fill {
  height: 100%;
  width: 0%;
  background: var(--color-accent);
}

/* ---------- worklife (whiteboard sketch) ---------- */

.worklife {
  padding: 5rem 1.5rem;
  background: #fdfaf4;
}

.worklife-intro {
  max-width: 640px;
  margin: 0 auto 2.5rem;
  text-align: center;
}

.worklife-title {
  font-family: "Caveat", "Segoe UI", sans-serif;
  font-size: 2.6rem;
  font-weight: 700;
  margin: 0;
  color: var(--color-text);
}

.worklife-hint {
  margin: 0.6rem 0 0;
  font-size: 0.95rem;
  color: var(--color-text-dim);
}

.worklife-board {
  position: relative;
  max-width: 1100px;
  margin: 0 auto;
  padding: 3rem 2rem;
  background:
    radial-gradient(circle, rgba(0, 0, 0, 0.05) 1px, transparent 1.5px) 0 0 / 26px 26px,
    #fffdf7;
  border-radius: 28px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08), inset 0 0 0 2px rgba(0, 0, 0, 0.05);
}

.worklife-board::before,
.worklife-board::after {
  content: "";
  position: absolute;
  pointer-events: none;
  opacity: 0.3;
  font-size: 2rem;
  line-height: 1;
}

.worklife-board::before {
  content: "✎";
  top: -16px;
  left: 28px;
  transform: rotate(-16deg);
  color: var(--color-text);
}

.worklife-board::after {
  content: "★";
  bottom: -10px;
  right: 34px;
  font-size: 1.4rem;
  transform: rotate(14deg);
  color: var(--color-accent);
}

@media (max-width: 600px) {
  .worklife-board::before,
  .worklife-board::after {
    display: none;
  }
}

.worklife-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-areas:
    "formacion rol trayectoria"
    "equipo center hago"
    "valores voz familia";
  gap: 1.5rem;
  align-items: start;
}

.wl-formacion { grid-area: formacion; }
.wl-rol { grid-area: rol; }
.wl-trayectoria { grid-area: trayectoria; }
.wl-equipo { grid-area: equipo; }
.wl-center { grid-area: center; }
.wl-hago { grid-area: hago; }
.wl-valores { grid-area: valores; }
.wl-voz { grid-area: voz; }
.wl-familia { grid-area: familia; }

.wl-node {
  --node-color: var(--color-accent);
  --rot: 0deg;
  min-width: 0;
  background: #fff;
  border: 2px solid var(--node-color);
  border-radius: 16px 20px 18px 22px;
  box-shadow: 3px 4px 0 rgba(0, 0, 0, 0.06);
  padding: 1.2rem 1.4rem;
  overflow-wrap: break-word;
  cursor: pointer;
  transform: rotate(var(--rot));
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.wl-node:nth-child(odd) { --rot: -0.6deg; }
.wl-node:nth-child(even) { --rot: 0.6deg; }

.wl-node:hover,
.wl-node:focus-visible {
  box-shadow: 5px 6px 0 rgba(0, 0, 0, 0.08);
  transform: rotate(var(--rot)) translateY(-3px);
}

@keyframes wl-wiggle {
  0%, 100% { transform: rotate(0deg); }
  25% { transform: rotate(-10deg); }
  75% { transform: rotate(10deg); }
}

.wl-node:hover .wl-icon {
  display: inline-block;
  animation: wl-wiggle 0.4s ease-in-out;
}

@keyframes wl-pop {
  0% { transform: scale(1) rotate(0); }
  35% { transform: scale(1.35) rotate(-10deg); }
  65% { transform: scale(0.95) rotate(6deg); }
  100% { transform: scale(1) rotate(0); }
}

.wl-node.open .wl-head .wl-icon {
  display: inline-block;
  animation: wl-pop 0.5s ease;
}

.wl-pop-emoji {
  position: absolute;
  top: -4px;
  left: 50%;
  font-size: 1.3rem;
  pointer-events: none;
}

.wl-node:focus-visible {
  outline: 2px solid var(--node-color);
  outline-offset: 3px;
}

.wl-formacion { --node-color: #2a5adf; }
.wl-rol { --node-color: #7c5cbf; }
.wl-trayectoria { --node-color: #4c8c6b; }
.wl-equipo { --node-color: #ff9800; }
.wl-hago { --node-color: #7c9cff; }
.wl-valores { --node-color: #e0607e; }
.wl-voz { --node-color: #d84315; }
.wl-familia { --node-color: #ff5c8a; }

.wl-head {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.wl-node h3 {
  font-family: "Caveat", "Segoe UI", sans-serif;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--node-color);
  margin: 0;
  flex: 1;
}

.wl-icon {
  position: relative;
  font-size: 1.5rem;
}

.wl-chevron {
  flex-shrink: 0;
  width: 1.6rem;
  height: 1.6rem;
  border-radius: 50%;
  border: 2px solid var(--node-color);
  position: relative;
  transition: transform 0.3s ease;
}

.wl-chevron::before,
.wl-chevron::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  background: var(--node-color);
  transform: translate(-50%, -50%);
}

.wl-chevron::before {
  width: 0.7rem;
  height: 2px;
}

.wl-chevron::after {
  width: 2px;
  height: 0.7rem;
}

.wl-node.open .wl-chevron {
  transform: rotate(45deg);
}

.wl-body {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.35s ease;
}

.wl-node.open .wl-body {
  grid-template-rows: 1fr;
}

.wl-body-inner {
  overflow: hidden;
  min-height: 0;
  padding-top: 0.7rem;
}

.wl-node p {
  margin: 0 0 0.4rem;
  font-size: 0.92rem;
  color: var(--color-text-dim);
  line-height: 1.5;
}

.wl-node p:last-child {
  margin-bottom: 0;
}

.wl-tag {
  display: inline-block;
  font-size: 0.75rem !important;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--node-color) !important;
}

.wl-people {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-size: 0.92rem;
  color: var(--color-text-dim);
}

.wl-people li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.wl-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.9rem;
  height: 1.9rem;
  border-radius: 50%;
  font-size: 1rem;
  flex-shrink: 0;
  color: #fff;
}

.wl-avatar-a { background: #ff9800; }
.wl-avatar-b { background: #7c9cff; }
.wl-avatar-c { background: #4c8c6b; }

.wl-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.wl-photo-wrap {
  position: relative;
  width: 140px;
  height: 140px;
}

.wl-photo-wrap::after {
  content: "";
  position: absolute;
  inset: -10px;
  border: 3px dashed var(--color-accent);
  border-radius: 50%;
  transform: rotate(-8deg);
}

.wl-photo {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid #1a1a1a;
  filter: saturate(0.92) contrast(1.02);
  position: relative;
  z-index: 1;
}

.wl-name {
  font-family: "Caveat", "Segoe UI", sans-serif;
  font-size: 1.7rem;
  font-weight: 700;
  margin: 0.9rem 0 0;
  color: var(--color-text);
}

@media (max-width: 860px) {
  .worklife-grid {
    grid-template-columns: 1fr;
    grid-template-areas:
      "formacion"
      "rol"
      "trayectoria"
      "equipo"
      "center"
      "hago"
      "valores"
      "voz"
      "familia";
  }

  .wl-node:nth-child(odd),
  .wl-node:nth-child(even) {
    transform: none;
  }
}

/* ---------- content sections ---------- */

main {
  max-width: 640px;
  margin: 0 auto;
  padding: 1rem;
}

.content-section {
  padding: 4rem 1rem;
  border-bottom: 1px solid #eee;
}

.content-section:last-child {
  border-bottom: none;
}

.section-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-size: 0.8rem;
  color: var(--color-accent);
  margin: 0 0 0.5rem;
}

.content-section p {
  color: var(--color-text-dim);
  font-size: 1.1rem;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.25rem;
  margin: 1.5rem 0 0;
}

.project-card {
  --pc: var(--color-accent);
  background: #fff;
  border: 2px dashed var(--pc);
  border-radius: 16px;
  padding: 1.75rem 1.25rem;
  text-align: center;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05);
  transform: rotate(var(--rot, 0deg));
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.project-card:nth-child(3n+1) { --pc: #2a5adf; --rot: -1deg; }
.project-card:nth-child(3n+2) { --pc: #e0607e; --rot: 1deg; }
.project-card:nth-child(3n+3) { --pc: #4c8c6b; --rot: -1deg; }

.project-card:hover {
  transform: rotate(var(--rot, 0deg)) translateY(-4px);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.1);
}

.project-card:hover .project-icon {
  animation: wl-wiggle 0.4s ease-in-out;
}

.project-icon {
  font-size: 1.8rem;
  display: inline-block;
  margin-bottom: 0.6rem;
}

.project-card h3 {
  font-family: "Caveat", "Segoe UI", sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 0 0.35rem;
  color: var(--pc);
}

.project-card p {
  margin: 0;
  color: var(--color-text-dim);
}

.contact-link {
  display: inline-block;
  margin-top: 1rem;
  font-size: 1.25rem;
}

.site-footer {
  text-align: center;
  padding: 1.5rem 1rem;
  color: var(--color-text-dim);
  font-size: 0.85rem;
}

@media (max-width: 700px) {
  .character-group {
    left: 18%;
  }

  .caption {
    max-width: 90%;
  }

  .caption-title {
    font-size: 2.3rem;
  }

  .sign-label {
    font-size: 1.15rem;
  }

  .sign-icon {
    font-size: 1.05rem;
  }
}
