/* Proyectos: página propia, fuera del inicio */

html.pj-root,
html.pj-root body {
  background: #f7f8f6;
  color: #1c2420;
}

body.pj-page {
  background:
    radial-gradient(ellipse 42% 28% at 82% 0%, rgba(67, 183, 73, 0.08), transparent 68%),
    #f7f8f6;
}

body.pj-page ::selection {
  background: #d7f5dc;
  color: #143224;
}

body.pj-page .site-header {
  background: rgba(255, 255, 255, 0.9);
  border-bottom-color: rgba(22, 40, 28, 0.06);
}

body.pj-page .nav-link.is-current {
  color: var(--gb-dark);
}

body.pj-page .nav-link.is-current::after {
  width: 100%;
}

body.pj-lock {
  overflow: hidden;
}

.pj-main {
  padding: 118px 0 96px;
}

.pj-wrap {
  width: min(1180px, calc(100% - 64px));
  margin: 0 auto;
}

.pj-hero {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(320px, 1.1fr);
  align-items: center;
  gap: 12px 28px;
  min-height: 460px;
}

.pj-kicker {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #7d877f;
  animation: pjRise 0.7s var(--ease-out-expo) both;
}

.pj-title {
  margin-top: 14px;
  font-family: "Source Serif 4", Georgia, "Times New Roman", serif;
  font-weight: 560;
  font-size: clamp(56px, 6.5vw, 92px);
  line-height: 0.9;
  letter-spacing: -0.035em;
  color: #173528;
  animation: pjRise 0.8s var(--ease-out-expo) 0.06s both;
}

.pj-title em {
  display: block;
  margin-top: 6px;
  font-style: italic;
  font-weight: 560;
  color: #3aaa4c;
}

.pj-stack {
  position: relative;
  height: 460px;
  animation: pjRise 0.9s var(--ease-out-expo) 0.12s both;
}

.pj-stack-tilt {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.45s var(--ease-out-expo);
}

.pj-float {
  position: absolute;
  border: 0;
  padding: 0;
  border-radius: 28px;
  cursor: pointer;
  overflow: hidden;
  box-shadow:
    0 18px 40px rgba(48, 72, 42, 0.12),
    inset 0 0 0 1px rgba(255, 255, 255, 0.28);
  transition: opacity 0.35s ease, box-shadow 0.35s ease, filter 0.35s ease;
}

.pj-float::before,
.pj-float::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.28);
  pointer-events: none;
}

.pj-float::before {
  width: 54%;
  height: 78%;
  left: 8%;
  top: 16%;
}

.pj-float::after {
  width: 36%;
  height: 52%;
  right: 8%;
  bottom: 6%;
  background: rgba(255, 255, 255, 0.18);
}

.pj-float-label {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 1;
  padding: 6px 11px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  color: #1d3a28;
  font-family: var(--font-sans);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.pj-float-brand {
  width: 58%;
  height: 54%;
  left: 0;
  top: 18%;
  z-index: 1;
  background:
    radial-gradient(circle at 72% 30%, rgba(255, 255, 255, 0.2) 0 34px, transparent 35px),
    linear-gradient(145deg, #c9e8b8 0%, #7dba6c 46%, #5aa15c 100%);
  animation: pjBobBrand 7.5s ease-in-out infinite;
}

.pj-float-content {
  width: 56%;
  height: 58%;
  right: 2%;
  top: 0;
  z-index: 2;
  background:
    radial-gradient(circle at 30% 62%, rgba(255, 255, 255, 0.28) 0 48px, transparent 49px),
    linear-gradient(155deg, #f7cbbd 0%, #f09a88 42%, #e57d78 100%);
  animation: pjBobContent 8.2s ease-in-out infinite;
}

.pj-float-experience {
  width: 44%;
  height: 40%;
  left: 27%;
  bottom: 4%;
  z-index: 3;
  background:
    radial-gradient(circle at 62% 42%, rgba(255, 255, 255, 0.34) 0 36px, transparent 37px),
    linear-gradient(150deg, #eef6b0 0%, #d4e36a 48%, #c9c85a 100%);
  animation: pjBobExperience 6.8s ease-in-out infinite;
}

.pj-float-digital {
  width: 34%;
  height: 36%;
  right: 0;
  bottom: 7%;
  z-index: 4;
  background:
    radial-gradient(circle at 38% 40%, rgba(255, 255, 255, 0.2) 0 28px, transparent 29px),
    linear-gradient(160deg, #2f8a48 0%, #145233 100%);
  animation: pjBobDigital 7.8s ease-in-out infinite;
}

.pj-float-digital .pj-float-label {
  background: rgba(255, 255, 255, 0.92);
}

.pj-float:hover,
.pj-float:focus-visible {
  box-shadow:
    0 26px 48px rgba(48, 72, 42, 0.18),
    inset 0 0 0 1px rgba(255, 255, 255, 0.4);
  z-index: 5;
}

.pj-float.is-lit {
  box-shadow:
    0 22px 44px rgba(48, 72, 42, 0.22),
    inset 0 0 0 2px rgba(255, 255, 255, 0.7);
}

.pj-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px 24px;
  margin-top: 8px;
}

.pj-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pj-pill {
  appearance: none;
  border: 1px solid #e4e7e2;
  background: #ffffff;
  color: #243028;
  border-radius: 999px;
  padding: 9px 16px;
  font-family: var(--font-sans);
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.pj-pill:hover {
  border-color: #c9d2c8;
  transform: translateY(-1px);
}

.pj-pill[aria-pressed="true"] {
  background: #1b2e24;
  border-color: #1b2e24;
  color: #ffffff;
}

.pj-count {
  flex: 0 0 auto;
  color: #8e978f;
  font-size: 13.5px;
  font-weight: 500;
}

.pj-rule {
  height: 1px;
  margin: 20px 0 0;
  border: 0;
  background: #e5e8e3;
}

.pj-stage {
  position: relative;
  margin-top: 26px;
}

.pj-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 34px 22px;
}

.pj-card {
  position: relative;
  min-width: 0;
  animation: pjRise 0.55s var(--ease-out-expo) both;
  animation-delay: calc(var(--i) * 55ms);
}

.pj-cover {
  appearance: none;
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10.6;
  padding: 0;
  border: 0;
  border-radius: 22px;
  overflow: hidden;
  cursor: pointer;
  text-align: left;
  color: #ffffff;
  box-shadow: 0 12px 28px rgba(40, 60, 40, 0.08);
  transition: transform 0.35s var(--ease-out-expo), box-shadow 0.35s ease;
}

.pj-cover:hover,
.pj-card:focus-within .pj-cover {
  transform: translateY(-4px);
  box-shadow: 0 18px 36px rgba(40, 60, 40, 0.14);
}

.pj-bubbles {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.pj-bubbles span {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.26);
}

.pj-bubbles span:nth-child(1) {
  width: 48%;
  height: 72%;
  left: 6%;
  top: 18%;
}

.pj-bubbles span:nth-child(2) {
  width: 34%;
  height: 52%;
  right: 8%;
  top: 6%;
  background: rgba(255, 255, 255, 0.16);
}

.pj-bubbles span:nth-child(3) {
  width: 26%;
  height: 40%;
  left: 40%;
  bottom: -10%;
  background: rgba(255, 255, 255, 0.14);
}

.tone-brand { background: linear-gradient(160deg, #b7ddaa 0%, #6eaf68 42%, #3f8d52 100%); }
.tone-content { background: linear-gradient(155deg, #f6cfc4 0%, #f0a592 46%, #e38b84 100%); }
.tone-marketing { background: linear-gradient(155deg, #c9ebe4 0%, #7ec3c4 48%, #4f9eae 100%); }
.tone-experience { background: linear-gradient(150deg, #eef3b4 0%, #d3e06e 50%, #c4bc58 100%); }
.tone-talent { background: linear-gradient(155deg, #f3ddb0 0%, #e3b15a 48%, #d0894a 100%); }
.tone-digital { background: linear-gradient(160deg, #5eaf6c 0%, #247643 55%, #145233 100%); }

.pj-chip {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 2;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(16, 36, 24, 0.42);
  color: #ffffff;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.pj-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(12, 32, 20, 0) 38%, rgba(12, 32, 20, 0.72) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.pj-cover-ui {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 14px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.3s ease, transform 0.3s var(--ease-out-expo);
}

.pj-card.is-featured .pj-cover::after,
.pj-card:hover .pj-cover::after,
.pj-card:focus-within .pj-cover::after {
  opacity: 1;
}

.pj-card.is-featured .pj-cover-ui,
.pj-card:hover .pj-cover-ui,
.pj-card:focus-within .pj-cover-ui {
  opacity: 1;
  transform: none;
}

.pj-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.pj-tag {
  padding: 4px 9px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.34);
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.2;
}

.pj-cover-cta,
.pj-more,
.pj-step,
.pj-hide,
.pj-dialog-cta {
  font-family: var(--font-sans);
}

.pj-cover-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: #ffffff;
  color: #173528;
  font-size: 13px;
  font-weight: 650;
  font-weight: 700;
}

.pj-cover-cta svg,
.pj-more svg,
.pj-dialog-cta svg {
  width: 14px;
  height: 14px;
}

.pj-cat {
  margin-top: 16px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #8d968e;
}

.pj-name {
  margin-top: 6px;
  font-size: clamp(22px, 2vw, 28px);
  font-weight: 650;
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: #1c2420;
}

.pj-desc {
  margin-top: 6px;
  color: #5c665f;
  font-size: 15px;
  line-height: 1.45;
}

.pj-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
  padding: 0;
  border: 0;
  background: none;
  color: #2c8d42;
  font-size: 14.5px;
  font-weight: 700;
  cursor: pointer;
}

.pj-more:hover {
  color: #1f6b32;
}

.pj-card.is-featured .pj-more {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.pj-guide {
  display: flex;
  align-items: center;
  gap: 4px;
  width: min(100%, 340px);
  margin: 0 0 18px;
}

.pj-bubble {
  position: relative;
  flex: 1;
  padding: 14px 16px 12px;
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 12px 32px rgba(30, 50, 30, 0.1);
}

.pj-bubble::after {
  content: "";
  position: absolute;
  right: -6px;
  top: 46%;
  width: 14px;
  height: 14px;
  background: #ffffff;
  transform: rotate(45deg);
}

.pj-bubble-kicker {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #2f9a45;
}

.pj-bubble-text {
  margin-top: 6px;
  color: #243028;
  font-size: 13.5px;
  line-height: 1.45;
}

.pj-hide {
  margin-top: 8px;
  padding: 0;
  border: 0;
  background: none;
  color: #5d675f;
  font-size: 13px;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.pj-hide:hover {
  color: #173528;
}

.pj-globi {
  flex: 0 0 auto;
  width: 74px;
  height: 96px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  filter: drop-shadow(0 8px 10px rgba(30, 70, 40, 0.16));
}

.pj-globi svg {
  width: 100%;
  height: 100%;
  display: block;
}

.pj-globi.is-wink .pj-eye {
  transform-box: fill-box;
  transform-origin: center;
  animation: pjWink 0.45s ease;
}

html.pj-guide-off .pj-bubble,
.pj-guide.is-hidden .pj-bubble {
  display: none;
}

html.pj-guide-off .pj-guide,
.pj-guide.is-hidden {
  position: fixed;
  top: auto;
  right: 22px;
  bottom: 22px;
  width: auto;
  margin: 0;
  z-index: 40;
}

.pj-dialog {
  width: min(880px, calc(100vw - 28px));
  max-height: calc(100vh - 28px);
  max-height: calc(100dvh - 28px);
  padding: 0;
  border: 0;
  border-radius: 28px;
  background: #f6f7f4;
  color: #1c2420;
  box-shadow: 0 30px 80px rgba(10, 30, 18, 0.28);
  overflow: hidden;
}

.pj-dialog::backdrop {
  background: rgba(16, 32, 22, 0.48);
  backdrop-filter: blur(7px);
  -webkit-backdrop-filter: blur(7px);
}

.pj-sheet {
  max-height: calc(100vh - 28px);
  max-height: calc(100dvh - 28px);
  overflow: auto;
}

.pj-dialog-cover {
  position: relative;
  height: 280px;
}

.pj-dialog-cover .pj-chip {
  top: 18px;
}

.pj-dialog-x {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: #173528;
  cursor: pointer;
}

.pj-dialog-x svg {
  width: 14px;
  height: 14px;
}

.pj-dialog-body {
  padding: 26px 32px 28px;
}

.pj-dialog-body .pj-cat {
  margin-top: 0;
}

.pj-dialog-body h2 {
  margin-top: 8px;
  font-family: "Source Serif 4", Georgia, serif;
  font-weight: 560;
  font-size: clamp(34px, 4vw, 52px);
  line-height: 0.98;
  letter-spacing: -0.03em;
  color: #173528;
}

.pj-dialog-lead {
  margin-top: 14px;
  max-width: 38em;
  font-size: 18px;
  line-height: 1.45;
  color: #243028;
}

.pj-dialog-story {
  margin-top: 10px;
  max-width: 40em;
  font-size: 15.5px;
  line-height: 1.6;
  color: #4e5851;
}

.pj-dialog-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.pj-dialog-tags li {
  padding: 6px 12px;
  border-radius: 999px;
  background: #ffffff;
  border: 1px solid #e3e7e1;
  font-size: 12.5px;
  font-weight: 650;
  font-weight: 600;
  color: #1d3326;
}

.pj-dialog-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 26px;
}

.pj-step {
  appearance: none;
  border: 1px solid #d9dfd8;
  background: #ffffff;
  color: #1d3326;
  border-radius: 999px;
  padding: 9px 14px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.pj-step:disabled {
  opacity: 0.4;
  cursor: default;
}

.pj-pos {
  color: #8b948c;
  font-size: 13px;
  font-weight: 600;
  min-width: 3.2em;
  text-align: center;
}

.pj-dialog-cta {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 999px;
  background: #1b2e24;
  color: #ffffff;
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
}

.pj-dialog-cta:hover {
  background: #2f9a45;
}

.pj-pill:focus-visible,
.pj-cover:focus-visible,
.pj-more:focus-visible,
.pj-float:focus-visible,
.pj-hide:focus-visible,
.pj-globi:focus-visible,
.pj-step:focus-visible,
.pj-dialog-x:focus-visible,
.pj-dialog-cta:focus-visible {
  outline: 2px solid #2f9a45;
  outline-offset: 3px;
}

@keyframes pjRise {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: none; }
}

@keyframes pjBobBrand {
  0%, 100% { transform: rotate(-8deg) translateY(0); }
  50% { transform: rotate(-8deg) translateY(-10px); }
}

@keyframes pjBobContent {
  0%, 100% { transform: rotate(8deg) translateY(0); }
  50% { transform: rotate(8deg) translateY(-12px); }
}

@keyframes pjBobExperience {
  0%, 100% { transform: rotate(-5deg) translateY(0); }
  50% { transform: rotate(-5deg) translateY(-8px); }
}

@keyframes pjBobDigital {
  0%, 100% { transform: rotate(7deg) translateY(0); }
  50% { transform: rotate(7deg) translateY(-9px); }
}

@keyframes pjWink {
  0%, 100% { transform: scaleY(1); }
  40% { transform: scaleY(0.1); }
}

@media (min-width: 981px) {
  html:not(.pj-guide-off) .pj-guide:not(.is-hidden) {
    position: absolute;
    top: 14px;
    right: 12px;
    width: 268px;
    margin: 0;
    z-index: 3;
    pointer-events: none;
  }

  html:not(.pj-guide-off) .pj-guide:not(.is-hidden) .pj-bubble,
  html:not(.pj-guide-off) .pj-guide:not(.is-hidden) .pj-globi {
    pointer-events: auto;
  }
}

@media (max-width: 980px) {
  .pj-stage {
    display: flex;
    flex-direction: column;
  }

  .pj-guide {
    order: -1;
  }
}

@media (max-width: 980px) {
  .pj-hero {
    grid-template-columns: 1fr;
    min-height: 0;
    gap: 8px;
  }

  .pj-stack {
    width: 100%;
    height: 390px;
    max-width: 520px;
    margin: 0 auto;
    justify-self: center;
  }

  .pj-stack-tilt {
    transform: scale(0.86);
    transform-origin: center top;
  }

  .pj-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 860px) {
  .pj-main {
    padding-top: 96px;
  }

  .pj-wrap {
    width: min(1180px, calc(100% - 32px));
  }
}

@media (max-width: 700px) {
  .pj-title {
    font-size: 52px;
  }

  .pj-bar {
    align-items: flex-start;
    flex-direction: column;
  }

  .pj-grid {
    grid-template-columns: 1fr;
  }

  .pj-stack {
    height: 340px;
  }

  .pj-dialog-body {
    padding: 22px 18px 22px;
  }

  .pj-dialog-cta {
    margin-left: 0;
    width: 100%;
    justify-content: center;
  }

  .pj-dialog-cover {
    height: 210px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .pj-kicker,
  .pj-title,
  .pj-stack,
  .pj-card,
  .pj-float,
  .pj-globi.is-wink .pj-eye {
    animation: none;
  }

  .pj-stack-tilt,
  .pj-cover,
  .pj-cover-ui,
  .pj-float {
    transition: none;
  }
}
