:root {
  --blue: #0503ff;
  --ink: #353535;
  --soft: #ccc;
  --white: #fff;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: "Outfit", Arial, sans-serif;
}
button,
input {
  font: inherit;
}
a {
  color: inherit;
}
body.gcb-splash-open {
  overflow: hidden;
}
.gcb-splash {
  display: none;
  position: fixed;
  z-index: 9999;
  inset: 0;
  overflow: hidden;
  background: var(--blue);
  color: #fff;
}
.gcb-splash-pending .gcb-splash {
  display: grid;
  place-items: center;
}
.gcb-splash-welcome {
  margin: 0;
  padding: 0 24px;
  color: #fff;
  font-size: clamp(1.25rem, 2vw, 2.4rem);
  font-weight: 600;
  text-align: center;
  opacity: 0;
}
.gcb-splash.is-playing .gcb-splash-welcome {
  animation: gcb-splash-welcome 1.25s 0.2s ease-in-out forwards;
}
.gcb-splash.is-leaving {
  opacity: 0;
  transition: opacity 0.8s ease-in-out;
}
@keyframes gcb-splash-welcome {
  to {
    opacity: 1;
  }
}
.gcb-main {
  min-height: 100svh;
  padding: clamp(28px, 7.5vw, 144px) 5.65vw clamp(112px, 8vw, 154px);
  display: flex;
  flex-direction: column;
}
.gcb-name {
  display: inline-block;
  white-space: nowrap;
  color: var(--blue);
  font-size: clamp(2.35rem, 3.05vw, 3.7rem);
  font-weight: 700;
  line-height: 0.94;
  letter-spacing: -0.025em;
  text-decoration: none;
}
.gcb-page-grid {
  display: grid;
  grid-template-columns: 13.2vw minmax(0, 1fr);
  gap: 2.5vw;
  margin-top: 2.55vw;
}
.gcb-side-nav {
  position: relative;
  z-index: 100;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 7px;
  pointer-events: auto;
}
.gcb-side-nav a {
  padding: 0;
  color: var(--soft);
  font-size: clamp(0.78rem, 0.88vw, 1.05rem);
  font-weight: 400;
  line-height: 1.15;
  text-decoration: none;
  transition:
    color 0.18s,
    transform 0.18s;
}
.gcb-side-nav a:hover {
  color: var(--blue);
  transform: translateX(4px);
}
.gcb-side-nav a.active {
  color: var(--blue);
}
.gcb-content {
  min-width: 0;
}
.gcb-section {
  display: none;
  animation: gcb-in 0.42s cubic-bezier(0.22, 0.8, 0.22, 1) both;
}
.gcb-section.active {
  display: block;
}
@keyframes gcb-in {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
}
.gcb-projects {
  border-top: 1px solid var(--soft);
}
.gcb-project {
  position: relative;
  isolation: isolate;
  width: 100%;
  height: 60px;
  padding: 0 30px;
  border-bottom: 1px solid var(--soft);
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  text-decoration: none;
  overflow: visible;
}
.gcb-project-fill {
  position: absolute;
  z-index: -1;
  inset: 0;
  background: var(--blue);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.9s cubic-bezier(0.37, 0, 0.63, 1);
}
.gcb-project-title {
  color: rgb(63 63 63);
  font-size: clamp(1.05rem, 1.25vw, 1.5rem);
  font-weight: 500;
  transition: color 0.18s 0.08s;
}
.gcb-project-tags {
  font-size: clamp(0.9rem, 1vw, 1.2rem);
  font-weight: 300;
  opacity: 0;
  transform: translateX(12px);
  transition: 0.25s;
}
.gcb-project-preview {
  position: absolute;
  z-index: 3;
  width: clamp(185px, 18vw, 300px);
  aspect-ratio: 1.48;
  left: 64%;
  top: 50%;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -100%) scale(1);
  transition: opacity 0.5s ease;
  filter: drop-shadow(0 12px 18px rgb(0 0 0/0.13));
}
.gcb-project-preview img,
.gcb-placeholder {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.gcb-placeholder {
  display: grid;
  place-items: center;
  font-size: 4rem;
  font-weight: 700;
  background: #eee;
  color: var(--blue);
}
.gcb-placeholder-0 {
  background: #ff6a3d;
}
.gcb-placeholder-2 {
  background: #efefef;
}
.gcb-placeholder-3 {
  background: var(--ink);
  color: #ffdf00;
}
.gcb-placeholder-4 {
  background: #c9ff36;
  color: var(--ink);
}
.gcb-project:hover .gcb-project-fill,
.gcb-project:focus-visible .gcb-project-fill {
  transform: scaleX(1);
}
.gcb-project:hover .gcb-project-title,
.gcb-project:hover .gcb-project-tags {
  color: #fff;
}
.gcb-project:hover .gcb-project-tags {
  opacity: 1;
  transform: none;
}
.gcb-project:hover .gcb-project-preview,
.gcb-project:focus-visible .gcb-project-preview {
  opacity: 1;
  transform: translate(-50%, -100%) scale(1);
}
.gcb-about {
  max-width: 61.5vw;
  margin-top: 1.8vw;
}
.gcb-about-text p {
  margin: 0 0 2.2vw;
  font-size: clamp(1rem, 1.2vw, 1.45rem);
  font-style: normal;
  font-weight: 500;
  line-height: 1.34;
  letter-spacing: -0.012em;
}
.gcb-view-cv {
  color: var(--blue);
  text-decoration: none;
  font-size: clamp(0.8rem, 1.08vw, 1.3rem);
  font-weight: 700;
}
.gcb-view-cv:after {
  content: " →";
}
.gcb-friends {
  width: calc(100% + 15.7vw);
  margin-left: -15.7vw;
  margin-top: -3vw;
  grid-template-columns: 39vw 1fr;
  gap: 3.5vw;
  align-items: start;
  pointer-events: none;
}
.gcb-friends.active {
  display: grid;
}
.gcb-friends-copy {
  width: 39vw;
  margin: 11.7vw 0 0;
  font-size: clamp(0.85rem, 1.1vw, 1.3rem);
  line-height: 1.58;
}
.gcb-friends-copy p {
  margin: 0;
}
.gcb-logo-cloud {
  width: 41vw;
  margin-top: -2.1vw;
}
.gcb-logo-cloud img {
  display: block;
  width: 100%;
  height: auto;
}
.gcb-logo-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(28px, 4vw, 72px);
  align-items: center;
  padding: 1.5vw 0;
}
.gcb-friend-logo {
  display: grid;
  place-items: center;
  min-height: 58px;
}
.gcb-friend-logo a {
  pointer-events: auto;
}
.gcb-friend-logo img {
  width: auto;
  max-width: 100%;
  max-height: 72px;
  object-fit: contain;
  filter: grayscale(1);
  opacity: 0.72;
  transition:
    filter 0.2s,
    opacity 0.2s,
    transform 0.2s;
}
.gcb-friend-logo:hover img {
  filter: none;
  opacity: 1;
  transform: scale(1.04);
}
.gcb-cv-section.active {
  display: block;
  animation: none;
  transform: none;
}
.gcb-cv-access {
  position: fixed;
  z-index: 5;
  top: 32vh;
  left: 0;
  right: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2.2vw;
}
.gcb-cv-access form,
.gcb-request-access {
  width: clamp(280px, 23vw, 440px);
  text-align: center;
}
.gcb-cv-access p {
  margin: 0 0 0.85vw;
  white-space: nowrap;
  font-size: clamp(0.9rem, 1.05vw, 1.25rem);
}
.gcb-cv-access input,
.gcb-cv-access button,
.gcb-request-access a {
  width: 100%;
  height: 2.3vw;
  min-height: 35px;
  max-height: 43px;
}
.gcb-cv-access input {
  border: 1px solid var(--blue);
  text-align: center;
  outline: 0;
}
.gcb-cv-access button,
.gcb-request-access a {
  display: grid;
  place-items: center;
  margin-top: 0.45vw;
  border: 0;
  background: var(--blue);
  color: #fff;
  text-decoration: none;
  cursor: pointer;
  font-size: clamp(0.75rem, 0.9vw, 1.05rem);
}
.gcb-cv-error {
  display: block;
  margin-bottom: 8px;
  color: #b32d2e;
}
.gcb-cv-viewer {
  width: 86%;
  max-width: 1180px;
  margin: -4.5vw 0 0 -2.7vw;
}
.gcb-cv-title-row {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 1.4vw;
  margin-bottom: 1.7vw;
}
.gcb-cv-title-row h1 {
  margin: 0;
  color: var(--blue);
  font-size: clamp(1.15rem, 1.5vw, 1.8rem);
}
.gcb-download-cv {
  position: relative;
  z-index: 50;
  pointer-events: auto !important;
  cursor: pointer;
  border: 1px solid var(--blue);
  padding: 0.45vw 0.8vw;
  color: var(--blue);
  text-decoration: none;
  font-size: clamp(0.68rem, 0.72vw, 0.86rem);
  font-weight: 600;
}
.gcb-cv-tabs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.gcb-cv-tabs button {
  min-height: 35px;
  border: 1px solid var(--blue);
  background: var(--white);
  color: var(--blue);
  cursor: pointer;
  font-size: clamp(0.7rem, 0.78vw, 0.94rem);
}
.gcb-cv-tabs button + button {
  border-left: 0;
}
.gcb-cv-tabs button.active {
  background: var(--blue);
  color: #fff;
}
.gcb-cv-panel {
  height: clamp(320px, calc(100svh - 450px), 520px);
  padding: 1.55vw 1.35vw 0.8vw;
  border: 1px solid var(--blue);
  border-top: 0;
  overflow-y: auto;
  scrollbar-gutter: stable;
}
.gcb-cv-tab-panel {
  display: none;
}
.gcb-cv-tab-panel.active {
  display: block;
}
.gcb-cv-entry {
  padding: 0 0 1.35vw;
  margin-bottom: 1.35vw;
  border-bottom: 1px solid var(--blue);
}
.gcb-cv-entry header {
  display: flex;
  align-items: baseline;
  gap: 0.8vw;
  flex-wrap: wrap;
}
.gcb-cv-entry h2,
.gcb-cv-education h2,
.gcb-cv-additional h2 {
  margin: 0;
  color: var(--blue);
  font-size: clamp(0.9rem, 1.05vw, 1.25rem);
}
.gcb-cv-entry header p {
  margin: 0;
  color: #939393;
  font-size: clamp(0.82rem, 0.92vw, 1.08rem);
  font-weight: 600;
}
.gcb-cv-entry ul {
  margin: 0.9vw 0 0;
  padding: 0;
  list-style: none;
}
.gcb-cv-entry li {
  margin: 0.28vw 0;
  font-size: clamp(0.8rem, 0.9vw, 1.05rem);
}
.gcb-cv-entry li:before {
  content: "– ";
}
.gcb-cv-education,
.gcb-cv-additional {
  padding-bottom: 1.5vw;
  margin-bottom: 1.5vw;
  border-bottom: 1px solid var(--blue);
}
.gcb-cv-education > span {
  color: #939393;
  font-size: 0.75rem;
  text-transform: uppercase;
}
.gcb-cv-education p {
  margin: 0.4vw 0;
}
.gcb-cv-skills {
  display: flex;
  flex-wrap: wrap;
  gap: 1vw;
}
.gcb-cv-skills span {
  border: 1px solid var(--blue);
  padding: 0.8vw 1.1vw;
  color: var(--blue);
}
.gcb-contact {
  position: fixed;
  z-index: 20;
  left: 0;
  right: 0;
  bottom: 1.55vw;
  display: flex;
  justify-content: center;
  pointer-events: none;
}
.gcb-contact a {
  width: 19vw;
  min-width: 235px;
  background: var(--white);
  color: var(--blue);
  text-decoration: none;
  text-align: center;
  pointer-events: auto;
}
.gcb-contact strong {
  display: block;
  margin-bottom: 0.7vw;
  font-size: clamp(0.75rem, 0.95vw, 1.12rem);
}
.gcb-contact span {
  display: grid;
  place-items: center;
  height: 2.05vw;
  min-height: 26px;
  max-height: 39px;
  background: var(--blue);
  color: #fff;
}
.gcb-project-main {
  padding-bottom: 45px;
}
.gcb-project-back-top {
  display: inline-flex;
  align-items: center;
  gap: 0.42rem;
  margin-bottom: 18px;
  color: var(--blue);
  font-size: clamp(0.72rem, 0.76vw, 0.88rem);
  font-weight: 600;
  text-decoration: none;
}
.gcb-project-back-top span {
  display: inline-block;
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}
.gcb-project-back-top:hover span,
.gcb-project-back-top:focus-visible span {
  transform: translateX(-0.28rem);
}
.gcb-project-heading {
  margin-bottom: 46px;
}
.gcb-project-heading h1 {
  margin: 0;
  color: var(--blue);
  font-size: clamp(2.2rem, 2.85vw, 3.4rem);
  line-height: 1;
  letter-spacing: -0.045em;
}
.gcb-project-story {
  display: grid;
  grid-template-columns: minmax(250px, 315px) minmax(0, 1fr);
  gap: clamp(46px, 7vw, 108px);
  align-items: start;
}
.gcb-story-copy {
  position: sticky;
  top: 32px;
}
.gcb-project-description {
  margin-top: 0;
  font-size: 0.92rem;
  line-height: 1.45;
}
.gcb-project-description p:first-child {
  margin-top: 0;
}
.gcb-project-credits {
  margin: 0 0 30px;
  font-size: 0.82rem;
}
.gcb-project-credits > div {
  padding: 10px 0;
  border-top: 1px solid var(--soft);
}
.gcb-project-credits > div:last-child {
  border-bottom: 1px solid var(--soft);
}
.gcb-project-credits dt {
  color: var(--blue);
  font-weight: 600;
}
.gcb-project-credits dd {
  margin: 2px 0 0;
}
.gcb-collaboration {
  display: block;
}
.gcb-project-gallery {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(18px, 2.4vw, 40px);
  padding-bottom: 60px;
}
.gcb-gallery-item {
  margin: 0;
  min-width: 0;
}
/*
 * La retícula controla el ancho, nunca la forma del material.
 * Imágenes y videos conservan siempre su aspect ratio original.
 */
.gcb-gallery-item img,
.gcb-gallery-item video {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}
.gcb-gallery-item .wp-video,
.gcb-gallery-item .mejs-container {
  width: 100% !important;
  max-width: 100%;
}
.gcb-gallery-item .wp-video video,
.gcb-gallery-item .mejs-container video {
  width: 100% !important;
  height: auto !important;
}
.gcb-gallery-item iframe {
  display: block;
  width: 100%;
  max-width: 100%;
  border: 0;
}

/* Videos por URL: respetan la proporción nativa del oEmbed sin heredar alturas fijas. */
.gcb-video-url-shell {
  position: relative;
  width: 100%;
  aspect-ratio: var(--gcb-video-ratio, 16 / 9);
  overflow: hidden;
  background: #000;
}
.gcb-video-url-shell iframe,
.gcb-video-url-shell video,
.gcb-video-url-shell object,
.gcb-video-url-shell embed {
  position: absolute !important;
  inset: 0;
  display: block;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  border: 0;
}
.gcb-video-url-shell > div,
.gcb-video-url-shell > p {
  width: 100% !important;
  height: 100% !important;
  margin: 0 !important;
}

.gcb-site-embed-shell {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #fff;
}
.gcb-site-embed-shell .gcb-site-embed {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.gcb-gallery-placeholder-box {
  display: flex;
  min-height: clamp(220px, 29vw, 520px);
  width: 100%;
  padding: 24px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 8px;
  border: 1px dashed var(--blue);
  background: #f2f2f2;
  color: var(--blue);
  text-align: center;
}
.gcb-gallery-placeholder-box span {
  font-size: clamp(1rem, 1.5vw, 1.45rem);
  font-weight: 700;
}
.gcb-gallery-placeholder-box small {
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.06em;
}
.gcb-gallery-tall,
.gcb-gallery-square {
  /* Chico (square se conserva sólo por compatibilidad con datos antiguos). */
  grid-column: span 4;
}
.gcb-gallery-small {
  /* Mediano */
  grid-column: span 6;
}
.gcb-gallery-main {
  /* Grande */
  grid-column: span 8;
}
.gcb-gallery-wide {
  /* Ancho / Full */
  grid-column: 1 / -1;
}
.gcb-gallery-item figcaption {
  padding: 8px 0;
  font-size: 0.75rem;
}
.gcb-gallery-item figcaption span {
  float: right;
  color: #939393;
}
.gcb-project-nav {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 25px;
  align-items: center;
  padding-top: 30px;
  border-top: 1px solid var(--blue);
  color: var(--blue);
  font-size: 0.85rem;
  font-weight: 600;
}
.gcb-project-nav span:last-child {
  text-align: right;
}
.gcb-project-nav a {
  text-decoration: none;
}
@media (max-width: 800px) {
  .gcb-main {
    padding: 28px 20px 132px;
  }
  .gcb-name {
    font-size: clamp(2.65rem, 12.5vw, 3.85rem);
  }
  .gcb-page-grid {
    display: block;
    margin-top: 54px;
  }
  .gcb-side-nav {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 8px 18px;
    margin-bottom: 32px;
  }
  .gcb-side-nav a {
    font-size: 0.9rem;
  }
  .gcb-projects {
    margin-inline: -20px;
  }
  .gcb-project {
    height: 78px;
    padding-inline: 20px;
    grid-template-columns: 1fr;
  }
  .gcb-project-tags,
  .gcb-project-preview {
    display: none;
  }
  .gcb-about {
    max-width: none;
    margin: 0;
  }
  .gcb-about-text p {
    font-size: 1.15rem;
    line-height: 1.35;
  }
  .gcb-friends.active {
    display: block;
    width: auto;
    margin: 0;
  }
  .gcb-friends-copy {
    width: auto;
    margin: 0;
    font-size: 1.15rem;
    line-height: 1.5;
  }
  .gcb-logo-cloud {
    width: 100%;
    margin-top: 42px;
  }
  .gcb-logo-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 34px 24px;
  }
  .gcb-cv-access {
    position: static;
    gap: 42px;
  }
  .gcb-cv-access form,
  .gcb-request-access {
    width: 100%;
  }
  .gcb-cv-access p {
    white-space: normal;
  }
  .gcb-cv-access input,
  .gcb-cv-access button,
  .gcb-request-access a {
    height: 48px;
  }
  .gcb-cv-viewer {
    width: 100%;
    margin: 0;
  }
  .gcb-cv-title-row {
    align-items: flex-start;
  }
  .gcb-cv-tabs {
    grid-template-columns: repeat(2, 1fr);
  }
  .gcb-cv-tabs button:nth-child(3) {
    border-left: 1px solid var(--blue);
    border-top: 0;
  }
  .gcb-cv-tabs button:nth-child(4) {
    border-top: 0;
  }
  .gcb-cv-panel {
    height: auto;
    max-height: none;
    min-height: 0;
    padding: 28px 18px;
    overflow: visible;
  }
  .gcb-contact {
    bottom: 18px;
    padding-inline: 20px;
  }
  .gcb-contact a {
    width: min(100%, 370px);
  }
  .gcb-project-heading {
    margin-top: 52px;
  }
  .gcb-project-back-top + .gcb-project-heading {
    margin-top: 20px;
  }
  .gcb-project-story {
    display: flex;
    flex-direction: column;
    gap: 50px;
  }
  .gcb-story-copy {
    position: static;
  }
  .gcb-project-gallery {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
  }
  .gcb-gallery-item {
    width: 100%;
    aspect-ratio: auto;
  }
  .gcb-project-nav {
    grid-template-columns: 1fr 1fr;
  }
  .gcb-back {
    grid-column: 1/3;
    grid-row: 1;
    text-align: center;
  }
  .gcb-project-nav span {
    grid-row: 2;
  }
}
@media (max-width: 800px) {
  .gcb-splash-welcome {
    font-size: 1.15rem;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *:before,
  *:after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
  .gcb-splash-welcome {
    opacity: 1;
  }
}

/* GCB 1.11 — final motion + minimal video UI */
.gcb-gallery-item {
  --gcb-reveal-y: 22px;
  opacity: 0;
  transform: translate3d(0, var(--gcb-reveal-y), 0);
  transition: opacity 620ms cubic-bezier(.2,.7,.2,1), transform 720ms cubic-bezier(.2,.7,.2,1);
  transition-delay: var(--gcb-stagger, 0ms);
}
.gcb-gallery-item.is-revealed {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}
.gcb-gallery-item img {
  transition: transform 600ms cubic-bezier(.2,.7,.2,1);
  transform-origin: center center;
}
@media (hover: hover) and (pointer: fine) {
  .gcb-gallery-item:hover > img {
    transform: scale(1.012);
  }
}
.gcb-gallery-main > img,
.gcb-gallery-wide > img {
  transform: translate3d(0, var(--gcb-parallax-y, 0px), 0) scale(1.006);
}
@media (hover: hover) and (pointer: fine) {
  .gcb-gallery-main:hover > img,
  .gcb-gallery-wide:hover > img {
    transform: translate3d(0, var(--gcb-parallax-y, 0px), 0) scale(1.016);
  }
}
.gcb-video-shell {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: #000;
}
.gcb-video-shell video {
  width: 100% !important;
  height: auto !important;
  cursor: pointer;
}
.gcb-video-controls {
  position: absolute;
  right: 14px;
  bottom: 14px;
  z-index: 3;
  display: flex;
  gap: 12px;
  align-items: center;
  opacity: .72;
  transition: opacity 220ms ease;
}
.gcb-video-shell:hover .gcb-video-controls,
.gcb-video-shell:focus-within .gcb-video-controls {
  opacity: 1;
}
.gcb-video-control {
  appearance: none;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  padding: 2px;
  border: 0;
  background: transparent;
  color: #fff;
  cursor: pointer;
  filter: drop-shadow(0 1px 2px rgba(0,0,0,.48));
}
.gcb-video-control svg {
  width: 23px;
  height: 23px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.gcb-video-control:focus-visible {
  outline: 1px solid currentColor;
  outline-offset: 3px;
}
@media (max-width: 800px) {
  .gcb-video-controls {
    right: 10px;
    bottom: 10px;
    gap: 10px;
    opacity: .88;
  }
  .gcb-video-control {
    width: 30px;
    height: 30px;
  }
  .gcb-gallery-main > img,
  .gcb-gallery-wide > img,
  .gcb-gallery-main:hover > img,
  .gcb-gallery-wide:hover > img {
    transform: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  .gcb-gallery-item {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  .gcb-gallery-item img,
  .gcb-gallery-main > img,
  .gcb-gallery-wide > img {
    transform: none !important;
    transition: none !important;
  }
}

/* GCB 1.12 — language switch */
.gcb-masthead { position: relative; }
.gcb-lang-switch {
  position: absolute;
  top: 0;
  right: 0;
  z-index: 120;
  display: flex;
  align-items: center;
  gap: .38em;
  color: var(--soft);
  font-size: clamp(.72rem, .78vw, .95rem);
  line-height: 1;
}
.gcb-lang-switch a { color: inherit; text-decoration: none; transition: color .18s ease; }
.gcb-lang-switch a:hover, .gcb-lang-switch a.active { color: var(--blue); }
.gcb-lang-switch span { opacity: .7; }
.gcb-project-detail > .gcb-lang-switch { position: absolute; top: 0; right: 0; }
.gcb-project-detail { position: relative; }
@media (max-width: 800px) {
  .gcb-masthead .gcb-lang-switch { top: auto; bottom: 0; right: 0; }
  .gcb-project-detail > .gcb-lang-switch { top: 2px; right: 0; }
  .gcb-lang-switch { font-size: .78rem; }
}
.gcb-lang-switch-mobile { display: none; }
@media (max-width: 800px) {
  .gcb-masthead > .gcb-lang-switch { display: none; }

  /* Keep the language switch on the same baseline as the mobile nav.
     It yields space naturally instead of dropping to a second line. */
  .gcb-side-nav {
    flex-wrap: nowrap;
    width: 100%;
    column-gap: clamp(10px, 4.2vw, 18px);
  }
  .gcb-lang-switch-mobile {
    display: block;
    flex: 0 0 auto;
    margin-top: 0;
    margin-left: auto;
    align-self: center;
    white-space: nowrap;
  }
  .gcb-lang-switch-mobile .gcb-lang-switch {
    position: static;
    font-size: .72rem;
    white-space: nowrap;
  }
}

@media (max-width: 360px) {
  .gcb-side-nav { column-gap: 10px; }
  .gcb-side-nav a { font-size: .84rem; }
  .gcb-lang-switch-mobile .gcb-lang-switch { font-size: .68rem; }
}

/* Mini navegador para sitios web navegables dentro de los proyectos. */
.gcb-site-browser {
  position: relative;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
  border: 1px solid var(--blue);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 18px 44px rgba(5, 3, 255, 0.08);
  transform: translateZ(0);
}
.gcb-site-browser-bar {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) 72px;
  align-items: center;
  min-height: 42px;
  padding: 0 12px;
  border-bottom: 1px solid var(--blue);
  background: rgba(255, 255, 255, 0.96);
}
.gcb-site-browser-dots {
  display: flex;
  align-items: center;
  gap: 6px;
}
.gcb-site-browser-dots i {
  display: block;
  width: 8px;
  height: 8px;
  border: 1px solid var(--blue);
  border-radius: 50%;
}
.gcb-site-browser-address {
  min-width: 0;
  padding: 5px 14px 6px;
  border: 1px solid rgba(5, 3, 255, 0.28);
  border-radius: 999px;
  color: var(--blue);
  font-size: 10px;
  line-height: 1;
  letter-spacing: 0.04em;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.gcb-site-browser-viewport {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #fff;
}
.gcb-site-browser .gcb-site-embed {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  pointer-events: none;
}
.gcb-site-browser-activate {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 4px;
  width: 100%;
  border: 0;
  background: rgba(255, 255, 255, 0.01);
  color: var(--blue);
  cursor: pointer;
}
.gcb-site-browser-activate::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  width: clamp(160px, 24vw, 240px);
  height: clamp(64px, 8vw, 82px);
  transform: translate(-50%, -50%);
  border: 1px solid var(--blue);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 8px 28px rgba(5, 3, 255, 0.08);
  transition: transform 180ms ease, background 180ms ease;
}
.gcb-site-browser-activate:hover::before {
  transform: translate(-50%, -50%) scale(1.035);
  background: #fff;
}
.gcb-site-browser-activate span,
.gcb-site-browser-activate small {
  position: relative;
  z-index: 1;
}
.gcb-site-browser-activate span {
  font-size: clamp(11px, 1vw, 13px);
  font-weight: 700;
  letter-spacing: 0.04em;
}
.gcb-site-browser-activate small {
  font-size: 9px;
  font-weight: 400;
  letter-spacing: 0.02em;
  opacity: 0.65;
}
.gcb-site-browser-active-ui {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 5;
  display: flex;
  gap: 7px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-4px);
  transition: opacity 160ms ease, transform 160ms ease;
}
.gcb-site-browser-active-ui button,
.gcb-site-browser-active-ui a {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 9px;
  border: 1px solid var(--blue);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.96);
  color: var(--blue);
  font: inherit;
  font-size: 9px;
  font-weight: 650;
  letter-spacing: 0.04em;
  text-decoration: none;
  cursor: pointer;
}
.gcb-site-browser-exit span {
  margin-left: 5px;
  opacity: 0.5;
  font-size: 8px;
}
.gcb-site-browser.is-active .gcb-site-embed {
  pointer-events: auto;
}
.gcb-site-browser.is-active .gcb-site-browser-activate {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.gcb-site-browser.is-active .gcb-site-browser-active-ui {
  opacity: 1;
  pointer-events: auto;
  transform: none;
}
.gcb-site-browser:focus-within {
  box-shadow: 0 18px 44px rgba(5, 3, 255, 0.12);
}

@media (max-width: 800px) {
  .gcb-site-browser {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    border-radius: 8px;
  }
  .gcb-site-browser-viewport {
    width: 100%;
    max-width: 100%;
    /* En móvil el navegador necesita un viewport vertical más generoso.
       4/5 = alto de 1.25x el ancho, sin afectar desktop. */
    aspect-ratio: 4 / 5;
  }
  .gcb-site-browser .gcb-site-embed {
    width: 100% !important;
    max-width: 100% !important;
    height: 100% !important;
  }
  .gcb-site-browser-bar {
    grid-template-columns: 50px minmax(0, 1fr) 50px;
    min-height: 34px;
    padding: 0 8px;
  }
  .gcb-site-browser-dots { gap: 4px; }
  .gcb-site-browser-dots i { width: 6px; height: 6px; }
  .gcb-site-browser-address { font-size: 8px; padding: 4px 8px 5px; }
  .gcb-site-browser-active-ui { top: 7px; right: 7px; }
  .gcb-site-browser-active-ui button,
  .gcb-site-browser-active-ui a { min-height: 25px; padding: 0 7px; font-size: 8px; }
  .gcb-site-browser-exit span { display: none; }
}

/* 1.12.9 — Public CV + integrated contact */
.gcb-contact-trigger{width:19vw;min-width:235px;border:0;padding:0;background:var(--white);color:var(--blue);text-align:center;pointer-events:auto;font:inherit;cursor:pointer}.gcb-contact-trigger strong{display:block;margin-bottom:.7vw;font-size:clamp(.75rem,.95vw,1.12rem)}.gcb-contact-trigger span{display:grid;place-items:center;height:2.05vw;min-height:26px;max-height:39px;background:var(--blue);color:#fff}.gcb-contact-modal{position:fixed;inset:0;z-index:1000;display:grid;place-items:center;padding:24px;opacity:0;visibility:hidden;transition:opacity .2s ease,visibility .2s ease}.gcb-contact-modal.is-open{opacity:1;visibility:visible}.gcb-contact-backdrop{position:absolute;inset:0;border:0;background:rgba(0,0,0,.28);cursor:pointer}.gcb-contact-dialog{position:relative;z-index:1;width:min(560px,100%);max-height:calc(100vh - 48px);overflow:auto;background:var(--white);border:1px solid var(--blue);padding:34px;color:var(--blue)}.gcb-contact-dialog h2{margin:0 0 8px;font-size:clamp(1.6rem,2.5vw,2.8rem);font-weight:500}.gcb-contact-dialog>p{margin:0 0 24px;color:inherit}.gcb-contact-close{position:absolute;right:15px;top:10px;border:0;background:transparent;color:var(--blue);font-size:30px;line-height:1;cursor:pointer}.gcb-contact-dialog form{display:grid;gap:16px;margin-top:24px}.gcb-contact-dialog label{display:grid;gap:6px;font-size:.78rem}.gcb-contact-dialog input,.gcb-contact-dialog textarea{width:100%;box-sizing:border-box;border:1px solid var(--blue);border-radius:0;background:transparent;color:inherit;padding:11px 12px;font:inherit;resize:vertical}.gcb-contact-submit{border:0;background:var(--blue);color:#fff;padding:12px;font:inherit;cursor:pointer}.gcb-contact-email{display:inline-block;margin-top:20px;color:var(--blue);text-underline-offset:3px}.gcb-contact-status{margin:18px 0;border-top:1px solid var(--blue);border-bottom:1px solid var(--blue);padding:10px 0}.gcb-hp{position:absolute!important;left:-99999px!important}.gcb-contact-modal-open{overflow:hidden}@media(max-width:700px){.gcb-contact-trigger{width:min(100%,370px)}.gcb-contact-dialog{padding:28px 20px}.gcb-contact-modal{padding:14px}}

/* 1.12.13 — Desktop home vertical alignment tuned to approved reference */
@media (min-width: 801px) {
  .gcb-main {
    padding-top: clamp(68px, calc(7.5vw - 40px), 104px);
  }

  .gcb-project-title {
    font-size: clamp(0.98rem, 1.02vw, 1.25rem);
  }
}
