/* ==========================================================================
   PROFESSIONAL DECK V16 · FINAL
   Identity → evidence → operating model → career.
   Loaded last on purpose. New components avoid legacy cascade dependencies.
   ========================================================================== */

.pd16-cover {
  position: relative;
  overflow: hidden;
  justify-content: center;
  background:
    radial-gradient(circle at 18% 16%, rgba(196,165,116,.09), transparent 28rem),
    radial-gradient(circle at 86% 62%, rgba(223,219,214,.055), transparent 32rem),
    var(--black);
}

.pd16-cover::after {
  opacity: .35;
}

.pd16-cover-field {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.pd16-grid {
  position: absolute;
  inset: 0;
  opacity: .16;
  background-image:
    linear-gradient(rgba(247,243,236,.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(247,243,236,.08) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 85% 78% at 56% 44%, #000 8%, transparent 78%);
}

.pd16-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(78px);
  opacity: .18;
}

.pd16-glow-gold {
  width: 27rem;
  aspect-ratio: 1;
  left: -8rem;
  top: 12%;
  background: var(--gold);
}

.pd16-glow-cyan {
  width: 24rem;
  aspect-ratio: 1;
  right: -8rem;
  bottom: 2%;
  background: var(--ice);
}

.pd16-cover-shell {
  position: relative;
  z-index: 2;
  width: min(100%, 1260px);
  margin: 0 auto;
  padding-top: clamp(.8rem, 1.8vh, 1.35rem);
  display: grid;
  gap: clamp(1.2rem, 2vw, 2rem);
}

.pd16-cover-top {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: .8rem;
  border-bottom: 1px solid var(--line-dark);
  color: #78736d;
  font: 700 9px var(--mono);
  letter-spacing: .14em;
}

.pd16-cover-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(19rem, .72fr);
  gap: clamp(2rem, 5vw, 5.5rem);
  align-items: center;
}

.pd16-cover-copy {
  min-width: 0;
}

.pd16-cover .eyebrow {
  margin-bottom: .75rem;
}

.pd16-name {
  display: grid;
  width: min(100%, 50rem);
  line-height: .78;
  letter-spacing: -.065em;
}

.pd16-name span,
.pd16-name strong {
  display: block;
  white-space: nowrap;
  font-family: var(--display);
  font-weight: 500;
}

.pd16-name span {
  font-size: clamp(4rem, 7.3vw, 7.2rem);
  color: var(--white);
}

.pd16-name strong {
  margin-left: .12em;
  font-size: clamp(4.5rem, 8.15vw, 8rem);
  color: var(--gold);
  font-style: italic;
}

.pd16-role {
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  margin: clamp(1.2rem, 2vw, 1.8rem) 0 .65rem;
  color: var(--white);
  font: 700 10px var(--mono);
  letter-spacing: .11em;
  text-transform: uppercase;
}

.pd16-role::before {
  content: "";
  width: 2.7rem;
  height: 1px;
  background: linear-gradient(90deg, var(--ice), transparent);
}

.pd16-thesis {
  max-width: 27ch;
  margin: 0;
  color: var(--white);
  font: 500 clamp(1.9rem, 3vw, 3.15rem)/1.02 var(--display);
  letter-spacing: -.035em;
}

.pd16-thesis em {
  color: #aaa39a;
  font-weight: 400;
}

.pd16-lead {
  max-width: 48rem;
  margin: .9rem 0 0;
  color: #aaa39a;
  font-size: clamp(.94rem, 1.15vw, 1.06rem);
  line-height: 1.68;
}

.pd16-cover-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .55rem;
  margin-top: 1.25rem;
}

.pd16-cover-actions .button {
  min-height: 44px;
  border-radius: 999px;
}

.pd16-proof-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 1.35rem;
  border-block: 1px solid var(--line-dark);
}

.pd16-proof-strip > span {
  display: grid;
  gap: .15rem;
  padding: .8rem .8rem .8rem 0;
  border-right: 1px solid var(--line-dark);
}

.pd16-proof-strip > span:not(:first-child) {
  padding-left: .8rem;
}

.pd16-proof-strip > span:last-child {
  border-right: 0;
}

.pd16-proof-strip b {
  color: var(--white);
  font: 500 1rem var(--display);
}

.pd16-proof-strip small {
  color: #77716b;
  font: 700 7.5px/1.35 var(--mono);
  letter-spacing: .08em;
  text-transform: uppercase;
}

.pd16-os {
  overflow: hidden;
  border: 1px solid rgba(247,243,236,.14);
  border-radius: 18px;
  background:
    radial-gradient(circle at 90% 0, rgba(223,219,214,.07), transparent 13rem),
    rgba(23,21,19,.76);
  box-shadow: 0 32px 80px rgba(0,0,0,.3);
  backdrop-filter: blur(12px);
}

.pd16-os > header,
.pd16-os > footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .8rem;
  padding: .85rem 1rem;
  color: #77716b;
  font: 700 8px var(--mono);
  letter-spacing: .12em;
}

.pd16-os > header {
  border-bottom: 1px solid var(--line-dark);
}

.pd16-os > header b {
  color: var(--ice);
  font-size: 7px;
}

.pd16-os ol {
  list-style: none;
  margin: 0;
  padding: 0;
}

.pd16-os li {
  position: relative;
  display: grid;
  grid-template-columns: 2.3rem 1fr;
  gap: .1rem .7rem;
  padding: .8rem 1rem;
  border-bottom: 1px solid var(--line-dark);
}

.pd16-os li > span {
  grid-row: 1 / 3;
  color: var(--ice);
  font: 700 8px var(--mono);
}

.pd16-os li strong {
  display: block;
  color: var(--white);
  font: 500 1rem var(--display);
}

.pd16-os li small {
  display: block;
  margin-top: .15rem;
  color: #77716b;
  font: 600 8px var(--mono);
}

.pd16-os > footer {
  justify-content: flex-start;
  font-size: 7px;
}

.pd16-os > footer i {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--gold), var(--ice), transparent);
}

/* Public proof */
.pd16-proof-slide .gb-demos {
  width: min(100%, 1240px);
}

.pd16-proof-card {
  position: relative;
  overflow: hidden;
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(223,219,214,.022), transparent 42%),
    var(--black-2);
}

.pd16-proof-card::before {
  content: "";
  position: absolute;
  left: 1rem;
  top: 0;
  width: 4.5rem;
  height: 2px;
  background: linear-gradient(90deg, var(--gold), var(--ice));
}

.pd16-proof-card .gb-demo-actions .button {
  min-height: 42px;
  border-radius: 999px;
}

.pd16-proof-card .gb-demo-actions .primary {
  background: var(--gold);
  color: #1b1815;
}

.pd16-proof-card .gb-demo-actions .ghost {
  border-color: rgba(223,219,214,.26);
}

.pd16-proof-foot a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 .8rem;
  border: 1px solid rgba(223,219,214,.28);
  border-radius: 999px;
  background: rgba(223,219,214,.045);
  color: var(--ice);
}

/* Operating model */
.pd16-operating {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 75% 30%, rgba(223,219,214,.05), transparent 26rem),
    var(--black);
}

.pd16-operating-shell,
.pd16-career-shell,
.pd16-timeline-shell {
  width: min(100%, 1240px);
  margin: 0 auto;
}

.pd16-operating-shell {
  display: grid;
  gap: clamp(1.5rem, 3vh, 2.4rem);
}

.pd16-operating-head,
.pd16-career-head {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(16rem, .58fr);
  gap: .65rem 2rem;
  align-items: end;
}

.pd16-operating-head .slide-index,
.pd16-career-head .slide-index {
  grid-column: 1 / -1;
}

.pd16-operating-head > p:last-child,
.pd16-career-head > p:last-child {
  margin: 0;
  color: #969089;
  font-size: 13px;
  line-height: 1.6;
}

.pd16-model-flow {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  list-style: none;
  margin: 0;
  padding: 0;
  border-block: 1px solid var(--line-dark);
}

.pd16-model-flow li {
  position: relative;
  min-height: 10rem;
  padding: 1rem .78rem;
  border-right: 1px solid var(--line-dark);
}

.pd16-model-flow li:last-child {
  border-right: 0;
}

.pd16-model-flow li::before {
  content: "";
  position: absolute;
  left: 0;
  top: -1px;
  width: 2.2rem;
  height: 1px;
  background: var(--ice);
}

.pd16-model-flow span {
  color: var(--ice);
  font: 700 8px var(--mono);
}

.pd16-model-flow strong {
  display: block;
  margin-top: 1.1rem;
  color: var(--white);
  font: 500 1.05rem var(--display);
}

.pd16-model-flow small {
  display: block;
  margin-top: .45rem;
  color: #77716b;
  font: 600 7.5px/1.5 var(--mono);
}

.pd16-model-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.2rem;
  padding: .8rem 1rem;
  border: 1px solid rgba(196,165,116,.22);
  border-radius: 10px;
  background: rgba(196,165,116,.04);
  color: #9b948b;
  font-size: 12px;
}

.pd16-model-footer b {
  flex: 0 0 auto;
  color: var(--gold);
  font: 700 8px var(--mono);
  letter-spacing: .12em;
}

/* Career architecture */
.pd16-career {
  background:
    radial-gradient(circle at 12% 84%, rgba(196,165,116,.06), transparent 22rem),
    var(--black);
}

.pd16-career-shell {
  display: grid;
  gap: 1.5rem;
}

.pd16-career-steps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  overflow: hidden;
  border: 1px solid var(--line-dark);
  border-radius: 14px;
  background: rgba(255,255,255,.012);
}

.pd16-career-steps article {
  position: relative;
  min-height: 16rem;
  padding: 1rem;
  border-right: 1px solid var(--line-dark);
}

.pd16-career-steps article:last-child {
  border-right: 0;
}

.pd16-career-steps article > span {
  color: var(--ice);
  font: 700 8px var(--mono);
}

.pd16-career-steps article > small {
  display: block;
  margin-top: 2.1rem;
  color: #6f6a64;
  font: 700 8px var(--mono);
  letter-spacing: .06em;
}

.pd16-career-steps h3 {
  margin: .45rem 0 .65rem;
  color: var(--white);
  font: 500 1.25rem/1.08 var(--display);
}

.pd16-career-steps p {
  margin: 0;
  color: #8e8881;
  font-size: 11.5px;
  line-height: 1.55;
}

.pd16-career-steps .is-current {
  background:
    radial-gradient(circle at 100% 0, rgba(223,219,214,.08), transparent 10rem),
    rgba(223,219,214,.018);
}

.pd16-career-steps .is-current::after {
  content: "CURRENT";
  position: absolute;
  right: .8rem;
  top: .8rem;
  color: var(--gold);
  font: 700 7px var(--mono);
  letter-spacing: .1em;
}

/* Professional timeline */
.pd16-timeline-shell {
  display: grid;
  gap: clamp(1.4rem, 3vh, 2.2rem);
}

.pd16-timeline .gb-title-band {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(16rem, .62fr);
  gap: .65rem 2rem;
  align-items: end;
}

.pd16-timeline .gb-title-band .slide-index {
  grid-column: 1 / -1;
}

.pd16-timeline .gb-title-band > p:last-child {
  margin: 0;
  color: #969089;
  font-size: 13px;
  line-height: 1.6;
}

.pd16-timeline-track {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  list-style: none;
  margin: 0;
  padding: 0;
  border-block: 1px solid var(--line-dark);
}

.pd16-timeline-track li {
  position: relative;
  min-height: 11.5rem;
  padding: 1rem .75rem;
  border-right: 1px solid var(--line-dark);
}

.pd16-timeline-track li:last-child {
  border-right: 0;
}

.pd16-timeline-track li::before {
  content: "";
  position: absolute;
  left: 0;
  top: -3px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 4px rgba(196,165,116,.08);
}

.pd16-timeline-track time {
  color: var(--gold);
  font: 700 7px var(--mono);
}

.pd16-timeline-track strong {
  display: block;
  margin-top: 1rem;
  color: var(--white);
  font: 500 .95rem/1.08 var(--display);
}

.pd16-timeline-track span {
  display: block;
  margin-top: .5rem;
  color: #77716b;
  font: 600 7px/1.45 var(--mono);
}

.pd16-timeline-track .is-break {
  background: rgba(196,165,116,.025);
}

.pd16-timeline-track .is-current {
  background: rgba(223,219,214,.025);
}

.pd16-timeline-track .is-current::before {
  background: var(--ice);
}

/* Experience pages */
.pd16-exp .gb-exp-panel {
  width: min(100%, 1240px);
}

.pd16-break {
  display: grid;
  grid-template-columns: 7rem minmax(0, .9fr) minmax(0, 1.4fr);
  gap: 1rem;
  align-items: center;
  margin-top: .75rem;
  padding: .75rem 1rem;
  border: 1px solid rgba(196,165,116,.2);
  border-radius: 10px;
  background: rgba(196,165,116,.035);
}

.pd16-break > span {
  color: var(--gold);
  font: 700 8px var(--mono);
}

.pd16-break strong {
  color: var(--white);
  font: 500 1rem var(--display);
}

.pd16-break p {
  margin: 0;
  color: #817b74;
  font-size: 11px;
  line-height: 1.5;
}

/* Languages */
.pd16-langs {
  background:
    radial-gradient(circle at 75% 34%, rgba(223,219,214,.045), transparent 22rem),
    var(--black);
}

.pd16-langs .gb-langs-top {
  width: min(100%, 1240px);
  margin: 0 auto 1.4rem;
}

.pd16-langs-grid {
  width: min(100%, 1240px);
  margin: 0 auto;
  grid-template-columns: repeat(3, 1fr);
}

.pd16-langs-grid .gb-lang-card {
  min-height: 14rem;
  border-radius: 12px;
}

.pd16-lang-footer {
  width: min(100%, 1240px);
  margin: 1rem auto 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .75rem 1rem;
  border-top: 1px solid var(--line-dark);
  color: #77716b;
  font: 700 8px var(--mono);
  letter-spacing: .08em;
}

/* Action affordance across the final deck */
#sistemas .project-actions .button,
#demos .gb-demo-actions .button,
#contacto .gb-contact-actions a,
#contacto .gb-contact-actions button {
  border-radius: 999px;
}

#sistemas .project-actions .primary,
#demos .gb-demo-actions .primary {
  min-width: 9rem;
}

#sistemas .project-actions .ghost,
#demos .gb-demo-actions .ghost {
  border-color: rgba(247,243,236,.2);
}

#sistemas .project-actions .ghost:hover,
#demos .gb-demo-actions .ghost:hover {
  border-color: var(--ice);
  color: var(--ice);
}

/* Light theme stays editorial rather than becoming a dark deck with inverted text. */
[data-theme="light"] .pd16-cover,
[data-theme="light"] .pd16-operating,
[data-theme="light"] .pd16-career,
[data-theme="light"] .pd16-langs {
  background:
    radial-gradient(circle at 20% 12%, rgba(196,165,116,.10), transparent 26rem),
    var(--paper);
  color: var(--ink);
}

[data-theme="light"] .pd16-name span,
[data-theme="light"] .pd16-thesis,
[data-theme="light"] .pd16-os li strong,
[data-theme="light"] .pd16-model-flow strong,
[data-theme="light"] .pd16-career-steps h3,
[data-theme="light"] .pd16-timeline-track strong,
[data-theme="light"] .pd16-break strong {
  color: var(--ink);
}

[data-theme="light"] .pd16-os {
  background: rgba(255,255,255,.62);
  border-color: var(--line-light-2);
}

[data-theme="light"] .pd16-cover-top,
[data-theme="light"] .pd16-proof-strip,
[data-theme="light"] .pd16-proof-strip > span,
[data-theme="light"] .pd16-os > header,
[data-theme="light"] .pd16-os li,
[data-theme="light"] .pd16-model-flow,
[data-theme="light"] .pd16-model-flow li,
[data-theme="light"] .pd16-career-steps,
[data-theme="light"] .pd16-career-steps article,
[data-theme="light"] .pd16-timeline-track,
[data-theme="light"] .pd16-timeline-track li,
[data-theme="light"] .pd16-lang-footer {
  border-color: var(--line-light);
}

[data-theme="light"] .pd16-lead,
[data-theme="light"] .pd16-thesis em,
[data-theme="light"] .pd16-operating-head > p:last-child,
[data-theme="light"] .pd16-career-head > p:last-child,
[data-theme="light"] .pd16-timeline .gb-title-band > p:last-child,
[data-theme="light"] .pd16-career-steps p,
[data-theme="light"] .pd16-model-flow small,
[data-theme="light"] .pd16-timeline-track span {
  color: #6f675f;
}

@media (max-width: 1100px) {
  .pd16-cover-layout {
    grid-template-columns: minmax(0, 1fr) minmax(17rem, .68fr);
    gap: 2.5rem;
  }

  .pd16-name span { font-size: clamp(3.5rem, 7vw, 6rem); }
  .pd16-name strong { font-size: clamp(4rem, 8vw, 6.8rem); }

  .pd16-model-flow {
    grid-template-columns: repeat(4, 1fr);
  }

  .pd16-model-flow li:nth-child(4) {
    border-right: 0;
  }

  .pd16-model-flow li:nth-child(n+5) {
    border-top: 1px solid var(--line-dark);
  }

  .pd16-career-steps {
    grid-template-columns: repeat(3, 1fr);
  }

  .pd16-career-steps article:nth-child(3) {
    border-right: 0;
  }

  .pd16-career-steps article:nth-child(n+4) {
    border-top: 1px solid var(--line-dark);
  }

  .pd16-career-steps article:last-child {
    grid-column: span 2;
  }

  .pd16-timeline-track {
    grid-template-columns: repeat(4, 1fr);
  }

  .pd16-timeline-track li:nth-child(4n) {
    border-right: 0;
  }

  .pd16-timeline-track li:nth-child(n+5) {
    border-top: 1px solid var(--line-dark);
  }
}

@media (max-width: 820px) {
  .pd16-cover {
    justify-content: flex-start;
  }

  .pd16-cover-layout {
    grid-template-columns: 1fr;
    gap: 1.6rem;
  }

  .pd16-cover-top {
    display: none;
  }

  .pd16-name span {
    font-size: clamp(3.4rem, 14vw, 5.4rem);
  }

  .pd16-name strong {
    font-size: clamp(3.9rem, 16vw, 6rem);
  }

  .pd16-thesis {
    font-size: clamp(1.65rem, 6.8vw, 2.5rem);
  }

  .pd16-os {
    max-width: 36rem;
  }

  .pd16-proof-strip {
    grid-template-columns: repeat(2, 1fr);
  }

  .pd16-proof-strip > span:nth-child(2) {
    border-right: 0;
  }

  .pd16-proof-strip > span:nth-child(-n+2) {
    border-bottom: 1px solid var(--line-dark);
  }

  .pd16-operating-head,
  .pd16-career-head,
  .pd16-timeline .gb-title-band {
    grid-template-columns: 1fr;
  }

  .pd16-operating-head > p:last-child,
  .pd16-career-head > p:last-child,
  .pd16-timeline .gb-title-band > p:last-child {
    max-width: 42rem;
  }

  .pd16-model-flow {
    grid-template-columns: repeat(2, 1fr);
  }

  .pd16-model-flow li:nth-child(2n) {
    border-right: 0;
  }

  .pd16-model-flow li:nth-child(n+3) {
    border-top: 1px solid var(--line-dark);
  }

  .pd16-model-flow li:last-child {
    grid-column: 1 / -1;
  }

  .pd16-career-steps {
    grid-template-columns: 1fr 1fr;
  }

  .pd16-career-steps article:nth-child(2n) {
    border-right: 0;
  }

  .pd16-career-steps article:nth-child(n+3) {
    border-top: 1px solid var(--line-dark);
  }

  .pd16-career-steps article:last-child {
    grid-column: 1 / -1;
  }

  .pd16-timeline-track {
    grid-template-columns: repeat(2, 1fr);
  }

  .pd16-timeline-track li:nth-child(2n) {
    border-right: 0;
  }

  .pd16-timeline-track li:nth-child(n+3) {
    border-top: 1px solid var(--line-dark);
  }

  .pd16-break {
    grid-template-columns: 1fr;
    gap: .35rem;
  }

  .pd16-langs-grid {
    grid-template-columns: 1fr;
  }

  .pd16-langs-grid .gb-lang-card {
    min-height: 0;
  }
}

@media (max-width: 560px) {
  .pd16-cover-shell {
    gap: 1rem;
  }

  .pd16-name span {
    font-size: clamp(2.85rem, 15vw, 4rem);
  }

  .pd16-name strong {
    font-size: clamp(3.25rem, 17.5vw, 4.7rem);
  }

  .pd16-role {
    font-size: 8px;
  }

  .pd16-thesis {
    font-size: clamp(1.5rem, 8vw, 2rem);
  }

  .pd16-lead {
    font-size: .88rem;
    line-height: 1.55;
  }

  .pd16-cover-actions {
    display: grid;
  }

  .pd16-cover-actions .button {
    width: 100%;
  }

  .pd16-os li {
    padding: .7rem .8rem;
  }

  .pd16-model-flow {
    grid-template-columns: 1fr;
  }

  .pd16-model-flow li,
  .pd16-model-flow li:nth-child(2n) {
    min-height: auto;
    border-right: 0;
    border-top: 1px solid var(--line-dark);
  }

  .pd16-model-flow li:first-child {
    border-top: 0;
  }

  .pd16-model-flow li:last-child {
    grid-column: auto;
  }

  .pd16-model-flow strong {
    margin-top: .55rem;
  }

  .pd16-model-footer {
    display: grid;
  }

  .pd16-career-steps {
    grid-template-columns: 1fr;
  }

  .pd16-career-steps article,
  .pd16-career-steps article:nth-child(2n) {
    min-height: auto;
    border-right: 0;
    border-top: 1px solid var(--line-dark);
  }

  .pd16-career-steps article:first-child {
    border-top: 0;
  }

  .pd16-career-steps article:last-child {
    grid-column: auto;
  }

  .pd16-career-steps article > small {
    margin-top: .8rem;
  }

  .pd16-timeline-track {
    grid-template-columns: 1fr;
  }

  .pd16-timeline-track li,
  .pd16-timeline-track li:nth-child(2n) {
    min-height: auto;
    border-right: 0;
    border-top: 1px solid var(--line-dark);
  }

  .pd16-timeline-track li:first-child {
    border-top: 0;
  }

  .pd16-timeline-track strong {
    margin-top: .5rem;
  }

  .pd16-lang-footer {
    display: grid;
  }
}

@media (prefers-reduced-motion: reduce) {
  .pd16-glow,
  .pd16-cover-actions .button,
  .pd16-proof-card {
    transition: none;
  }
}
