:root {
  --background: #f4f3ef;
  --foreground: #101010;
  --muted: #666;
  --card: #fff;
  --accent: #2f6bff;
  --radius-lg: 32px;
  --radius-md: 20px;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.14);

  /* Escala tipográfica principal: consistente en toda la página. */
  --title-hero: clamp(3rem, 3.45vw, 3.95rem);      /* 48–63 px */
  --title-section: clamp(2.7rem, 3.5vw, 3.9rem);   /* 43–62 px */
  --title-line-height: 0.96;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--background);
  color: var(--foreground);
  font-family: "Inter", sans-serif;
}

img {
  display: block;
  width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

.navbar {
  position: fixed;
  z-index: 100;
  top: 22px;
  left: 50%;
  width: min(94%, 1400px);
  min-height: 74px;
  padding: 10px 14px 10px 18px;
  display: grid;
  grid-template-columns: 170px 1fr auto;
  align-items: center;
  gap: 24px;
  background: rgba(12, 12, 12, 0.93);
  color: white;
  border-radius: 999px;
  transform: translateX(-50%);
  backdrop-filter: blur(16px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.16);
}

.brand {
  width: 82px;
  height: 50px;
  display: grid;
  place-items: center;
  overflow: visible;
}

.brand img {
  width: auto;
  height: 44px;
  object-fit: contain;
  filter: invert(1);
}

.nav-links {
  display: flex;
  justify-content: center;
  gap: 34px;
  font-size: 0.86rem;
}

.nav-links a {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  opacity: 0.72;
  transform: translateY(0);
  transition:
    opacity 180ms ease,
    color 180ms ease,
    transform 220ms cubic-bezier(0.22, 1, 0.36, 1);
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 1px;
  width: 22px;
  height: 2px;
  background: var(--accent);
  border-radius: 999px;
  opacity: 0;
  transform: translateX(-50%) scaleX(0);
  transform-origin: center;
  transition:
    opacity 180ms ease,
    transform 240ms cubic-bezier(0.22, 1, 0.36, 1);
}

.nav-links a:hover,
.nav-links a:focus-visible {
  opacity: 1;
  color: #fff;
  transform: translateY(-2px);
}

.nav-links a:hover::after,
.nav-links a:focus-visible::after {
  opacity: 1;
  transform: translateX(-50%) scaleX(1);
}

.nav-links a:focus-visible {
  outline: none;
}

.nav-cta {
  position: relative;
  overflow: hidden;
  padding: 17px 24px;
  background: var(--accent);
  color: #ffffff;
  border-radius: 999px;
  font-size: 0.84rem;
  font-weight: 700;
  transform: translateY(0) scale(1);
  transition:
    transform 240ms cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 240ms ease;
}

.nav-cta::before {
  content: "";
  position: absolute;
  top: -60%;
  left: -50%;
  width: 38%;
  height: 220%;
  background: rgba(255, 255, 255, 0.22);
  transform: rotate(20deg) translateX(-220%);
  transition: transform 520ms cubic-bezier(0.22, 1, 0.36, 1);
}

.nav-cta:hover,
.nav-cta:focus-visible {
  transform: translateY(-3px) scale(1.025);
  box-shadow: 0 14px 30px rgba(47, 107, 255, 0.28);
}

.nav-cta:hover::before,
.nav-cta:focus-visible::before {
  transform: rotate(20deg) translateX(620%);
}

.nav-cta:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

.menu-button {
  display: none;
}

.hero {
  width: min(92%, 1400px);
  min-height: 100vh;
  margin: 0 auto;
  padding: 150px 0 80px;
  display: grid;
  grid-template-columns: 0.86fr 1.14fr;
  align-items: center;
  gap: clamp(42px, 5vw, 82px);
}

.eyebrow {
  margin: 0 0 22px;
  font-family: "League Spartan", sans-serif;
  font-size: 0.84rem;
  font-weight: 600;
  letter-spacing: 0.18em;
}

.hero h1,
.projects-preview h2,
.placeholder-section h2 {
  font-family: "League Spartan", sans-serif;
  letter-spacing: -0.045em;
  line-height: var(--title-line-height);
}

.hero h1 {
  max-width: 720px;
  margin: 0;
  font-size: var(--title-hero);
}


.hero h1 span {
  display: block;
}

.hero-title-second-line {
  white-space: nowrap;
}


.hero-text {
  max-width: 570px;
  margin: 30px 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.2vw, 1.16rem);
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 0 25px;
  border-radius: 999px;
  font-weight: 700;
  transition: transform 180ms ease;
}

.button:hover {
  transform: translateY(-3px);
}

.button-dark {
  background: #111;
  color: white;
}

.button-light {
  border: 1px solid rgba(0, 0, 0, 0.18);
  background: rgba(255, 255, 255, 0.48);
}

.visual-composition {
  position: relative;
  min-height: 690px;
  perspective: 1200px;
}

.visual-card {
  position: absolute;
  overflow: hidden;
  background: var(--card);
  border: 8px solid rgba(255, 255, 255, 0.82);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow);
  transition:
    rotate 260ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 260ms cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 220ms ease;
  will-change: transform, translate, opacity;
}

.visual-card img {
  height: 100%;
  object-fit: cover;
}

.visual-card span {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 10px;
  display: block;
  padding: 9px 7px;
  background: rgba(12, 12, 12, 0.86);
  color: white;
  border-radius: 999px;
  font-size: clamp(0.43rem, 0.47vw, 0.54rem);
  font-weight: 600;
  letter-spacing: 0.025em;
  line-height: 1;
  text-align: center;
  white-space: nowrap;
  backdrop-filter: blur(12px);
}

/* El logo usa el PNG transparente y no se trata como tarjeta de proyecto. */
.visual-card-logo {
  --end-r: 0deg;
  z-index: 2;
  top: 25%;
  left: 28%;
  width: 44%;
  aspect-ratio: 1;
  overflow: visible;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  opacity: 1;
  cursor: pointer;
  rotate: 0deg;
  transform: scale(1);
  transition:
    transform 320ms cubic-bezier(0.22, 1, 0.36, 1),
    filter 260ms ease,
    box-shadow 260ms ease;
}

.visual-card-logo img {
  object-fit: contain;
  background: transparent;
  filter: drop-shadow(0 18px 28px rgba(0, 0, 0, 0.12));
}

/* Dos tarjetas por lado, alineadas con márgenes equivalentes. */
.visual-card-micoope {
  --start-x: 205%;
  --start-y: 92%;
  --start-r: 24deg;
  --end-r: -6deg;
  --delay: 1.34s;
  z-index: 4;
  top: 1%;
  left: 0;
  width: 31%;
  aspect-ratio: 0.82;
  rotate: -6deg;
}

.visual-card-vape {
  --start-x: 205%;
  --start-y: -88%;
  --start-r: -22deg;
  --end-r: -6deg;
  --delay: 1.58s;
  z-index: 5;
  bottom: 1%;
  left: 0;
  width: 31%;
  aspect-ratio: 0.82;
  rotate: -6deg;
}

.visual-card-click {
  --start-x: -205%;
  --start-y: 92%;
  --start-r: -24deg;
  --end-r: 6deg;
  --delay: 1.22s;
  z-index: 4;
  top: 1%;
  right: 0;
  width: 31%;
  aspect-ratio: 0.82;
  rotate: 6deg;
}

.visual-card-deportito {
  --start-x: -205%;
  --start-y: -88%;
  --start-r: 22deg;
  --end-r: 6deg;
  --delay: 1.46s;
  z-index: 5;
  right: 0;
  bottom: 1%;
  width: 31%;
  aspect-ratio: 0.82;
  rotate: 6deg;
}

.orbit {
  position: absolute;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 50%;
  animation: rotate 18s linear infinite;
}

.orbit-one {
  inset: 13% 7% 11% 11%;
}

.orbit-two {
  inset: 23% 17% 19% 21%;
  animation-direction: reverse;
  animation-duration: 12s;
}

.projects-preview,
.placeholder-section {
  width: min(92%, 1400px);
  margin: 0 auto;
  padding: 130px 0;
  border-top: 1px solid rgba(0, 0, 0, 0.12);
}

.projects-preview h2,
.placeholder-section h2 {
  max-width: 900px;
  margin: 0 0 25px;
  font-size: var(--title-section);
}

.projects-preview p,
.placeholder-section p {
  max-width: 700px;
  color: var(--muted);
  line-height: 1.7;
}


/* Estados finales del Hero. La entrada se ejecuta con Web Animations
   desde script.js para que sea visible y repetible de forma fiable. */

.hero-copy {
  opacity: 1;
  transform: translateY(0);
}

.visual-card-logo {
  opacity: 1;
  rotate: 0deg;
  transform: scale(1);
}

.visual-card:not(.visual-card-logo) {
  opacity: 1;
}


.visual-card-logo::after {
  content: "";
  position: absolute;
  inset: 12%;
  z-index: -1;
  border: 1px solid rgba(47, 107, 255, 0.22);
  border-radius: 50%;
  opacity: 0;
  transform: scale(0.82);
  transition:
    opacity 260ms ease,
    transform 380ms cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
}

.visual-card-logo:hover::after,
.visual-card-logo:focus-visible::after {
  opacity: 1;
  transform: scale(1.16);
}

.visual-card-logo:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 12px;
  border-radius: 18px;
}

@media (hover: hover) and (pointer: fine){
  .visual-card:not(.visual-card-logo):hover {
    z-index: 20;
    rotate: 0deg;
    transform: translateY(-10px) scale(1.035);
    box-shadow: 0 34px 85px rgba(0, 0, 0, 0.22);
  }

  .visual-card-logo:hover {
    transform: scale(1.07);
    filter:
      blur(0)
      drop-shadow(0 28px 38px rgba(0, 0, 0, 0.18))
      drop-shadow(0 0 22px rgba(47, 107, 255, 0.16));
  }

  .visual-card span {
    transition: background-color 180ms ease, transform 180ms ease;
  }

  .visual-card:not(.visual-card-logo):hover span {
    background: rgba(47, 107, 255, 0.94);
    transform: translateY(-2px);
  }
}

@keyframes rotate{
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 1020px){
  .navbar {
    grid-template-columns: 1fr auto;
  }

  .nav-links,
.nav-cta {
    display: none;
  }

  .menu-button {
    display: grid;
    width: 46px;
    height: 46px;
    place-content: center;
    gap: 7px;
    border: 0;
    background: var(--accent);
    border-radius: 50%;
  }

  .menu-button span {
    display: block;
    width: 19px;
    height: 2px;
    background: #fff;
  }

  .nav-links.is-open {
    position: absolute;
    top: 84px;
    left: 0;
    width: 100%;
    padding: 28px;
    display: grid;
    gap: 22px;
    background: #111;
    border-radius: 28px;
  }

  .hero {
    grid-template-columns: 1fr;
    padding-top: 145px;
  }

  .visual-composition {
    min-height: 650px;
  }
}

@media (max-width: 640px){
  :root {
    --title-hero: clamp(2.05rem, 9.5vw, 2.55rem);
    --title-section: clamp(2.45rem, 10vw, 3.45rem);
  }

  .navbar {
    top: 12px;
    width: 94%;
  }

  .hero {
    width: 90%;
    padding-bottom: 45px;
  }

  .hero h1 span,
.hero-title-second-line {
    white-space: nowrap;
  }

  .visual-composition {
    min-height: 540px;
  }

  .visual-card-logo {
    top: 31%;
    left: 27%;
    width: 46%;
  }

  .visual-card-micoope,
.visual-card-click,
.visual-card-deportito,
.visual-card-vape {
    width: 37%;
  }

  .visual-card span {
    left: 7px;
    right: 7px;
    bottom: 7px;
    padding: 7px 6px;
    font-size: 0.36rem;
    letter-spacing: 0.01em;
  }

  .projects-preview,
.placeholder-section {
    width: 90%;
    padding: 90px 0;
  }
}

/* =========================================================
   PORTAFOLIO V13 — MOSAICO CURVO + PRESENTACIÓN DE PROYECTOS
   ========================================================= */

.projects-experience {
  position: relative;
  min-height: 1080px;
  padding: 150px 0 120px;
  overflow: hidden;
  isolation: isolate;
  background: #08090b;
  color: #fff;
}

.projects-experience::before,
.projects-experience::after {
  content: "";
  position: absolute;
  left: 0;
  z-index: 4;
  width: 100%;
  height: 170px;
  pointer-events: none;
}

.projects-experience::before {
  top: 0;
  background: linear-gradient(to bottom, var(--background) 0%, rgba(244, 243, 239, 0) 100%);
}

.projects-experience::after {
  bottom: 0;
  background: linear-gradient(to top, #08090b 0%, rgba(8, 9, 11, 0) 100%);
}

.mosaic-background {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 50%, rgba(47, 107, 255, 0.08), transparent 52%),
    #08090b;
}

.mosaic-cylinder {
  position: absolute;
  top: 46%;
  left: 50%;
  width: min(1760px, 138vw);
  height: 760px;
  display: grid;
  align-content: center;
  gap: 17px;
  transform: translate(-50%, -50%) perspective(1300px) rotateX(8deg) scale(1.08);
  transform-style: preserve-3d;
  filter: saturate(0.94) contrast(1.04);
  -webkit-mask-image:
    linear-gradient(to right, transparent 0%, #000 9%, #000 91%, transparent 100%),
    linear-gradient(to bottom, transparent 0%, #000 12%, #000 88%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image:
    linear-gradient(to right, transparent 0%, #000 9%, #000 91%, transparent 100%),
    linear-gradient(to bottom, transparent 0%, #000 12%, #000 88%, transparent 100%);
  mask-composite: intersect;
}

.mosaic-cylinder::before,
.mosaic-cylinder::after {
  content: "";
  position: absolute;
  top: -9%;
  bottom: -9%;
  z-index: 5;
  width: 18%;
  pointer-events: none;
  filter: blur(8px);
}

.mosaic-cylinder::before {
  left: -4%;
  background: linear-gradient(to right, #08090b 15%, rgba(8, 9, 11, 0));
  transform: perspective(700px) rotateY(-31deg);
  transform-origin: left center;
}

.mosaic-cylinder::after {
  right: -4%;
  background: linear-gradient(to left, #08090b 15%, rgba(8, 9, 11, 0));
  transform: perspective(700px) rotateY(31deg);
  transform-origin: right center;
}

.mosaic-row {
  position: relative;
  width: 100%;
  height: 158px;
  overflow: hidden;
  border-radius: 48% / 16%;
  transform-style: preserve-3d;
}

.mosaic-row:nth-child(2),
.mosaic-row:nth-child(4) {
  transform: translateX(-3%) scaleX(1.05);
}

.mosaic-track {
  position: absolute;
  inset: 0 auto 0 0;
  display: flex;
  align-items: center;
  gap: 16px;
  width: max-content;
  will-change: transform;
  animation: mosaic-drift-left var(--mosaic-speed, 58s) linear infinite;
}

.mosaic-row:nth-child(even) .mosaic-track {
  animation-name: mosaic-drift-right;
}

.mosaic-row:nth-child(2) .mosaic-track {
  --mosaic-speed: 66s;
}

.mosaic-row:nth-child(3) .mosaic-track {
  --mosaic-speed: 53s;
}

.mosaic-row:nth-child(4) .mosaic-track {
  --mosaic-speed: 72s;
}

.mosaic-tile {
  position: relative;
  flex: 0 0 auto;
  width: 218px;
  height: 144px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 22px;
  background: #17191f;
  box-shadow: 0 17px 38px rgba(0, 0, 0, 0.35);
  transform: translateZ(0);
}

.mosaic-tile:nth-child(3n + 1) {
  width: 168px;
}

.mosaic-tile:nth-child(4n + 2) {
  width: 252px;
}

.mosaic-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.83;
  filter: brightness(0.74) saturate(0.86);
  transform: scale(1.02);
}

.mosaic-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(47, 107, 255, 0.08), rgba(0, 0, 0, 0.18));
}

.mosaic-glow {
  position: absolute;
  z-index: 1;
  width: 42vw;
  aspect-ratio: 1;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.18;
  pointer-events: none;
}

.mosaic-glow-one {
  top: 8%;
  right: -10%;
  background: #2f6bff;
}

.mosaic-glow-two {
  bottom: -18%;
  left: -11%;
  background: #8d2fff;
}

.mosaic-shade {
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    radial-gradient(circle at 67% 57%, rgba(4, 5, 8, 0.06) 0%, rgba(4, 5, 8, 0.42) 48%, rgba(4, 5, 8, 0.82) 100%),
    linear-gradient(to bottom, rgba(5, 6, 8, 0.48), rgba(5, 6, 8, 0.1) 36%, rgba(5, 6, 8, 0.62));
  pointer-events: none;
}

.projects-experience-inner {
  position: relative;
  z-index: 6;
  width: min(92%, 1400px);
  min-height: 810px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.projects-experience-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.55fr);
  align-items: end;
  gap: 60px;
}

.projects-experience-heading .eyebrow {
  margin-bottom: 16px;
  color: #7ea2ff;
}

.projects-experience-heading h2 {
  max-width: 780px;
  margin: 0;
  font-family: "League Spartan", sans-serif;
  font-size: clamp(3rem, 5vw, 5.4rem);
  line-height: 0.93;
  letter-spacing: -0.055em;
}

.projects-experience-heading > p {
  max-width: 470px;
  margin: 0 0 8px auto;
  color: rgba(255, 255, 255, 0.66);
  font-size: 1rem;
  line-height: 1.7;
}

.project-showcase {
  min-height: 535px;
  display: grid;
  grid-template-columns: minmax(320px, 0.82fr) minmax(590px, 1.18fr);
  align-items: center;
  gap: clamp(45px, 6vw, 96px);
}

.project-active-copy {
  position: relative;
  max-width: 560px;
  padding: 38px 40px 40px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 32px;
  background: linear-gradient(145deg, rgba(10, 11, 15, 0.76), rgba(10, 11, 15, 0.42));
  box-shadow: 0 34px 90px rgba(0, 0, 0, 0.34);
  backdrop-filter: blur(22px);
}

.project-active-copy::after {
  content: "";
  position: absolute;
  top: -75px;
  right: -58px;
  width: 190px;
  height: 190px;
  border: 1px solid rgba(126, 162, 255, 0.22);
  border-radius: 50%;
}

.project-active-index {
  margin: 0 0 48px;
  display: flex;
  gap: 8px;
  align-items: baseline;
  color: rgba(255, 255, 255, 0.42);
  font-family: "League Spartan", sans-serif;
  font-weight: 600;
  letter-spacing: 0.1em;
}

.project-active-index span:first-child {
  color: #fff;
  font-size: 1.6rem;
  letter-spacing: -0.02em;
}

.project-active-category {
  margin: 0 0 12px;
  color: #8aabff;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.project-active-copy h3 {
  margin: 0;
  font-family: "League Spartan", sans-serif;
  font-size: clamp(3.2rem, 5.3vw, 5.7rem);
  line-height: 0.87;
  letter-spacing: -0.055em;
  text-transform: uppercase;
}

.project-active-description {
  max-width: 490px;
  min-height: 78px;
  margin: 25px 0 32px;
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.98rem;
  line-height: 1.65;
}

.project-active-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 18px;
  min-height: 54px;
  padding: 0 23px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.95);
  color: #0d0e11;
  font-size: 0.86rem;
  font-weight: 800;
  transition:
    transform 220ms cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 220ms ease,
    background-color 220ms ease;
}

.project-active-link:hover,
.project-active-link:focus-visible {
  transform: translateY(-3px);
  background: #fff;
  box-shadow: 0 16px 30px rgba(0, 0, 0, 0.24);
}

.project-active-link:focus-visible {
  outline: 2px solid #7ea2ff;
  outline-offset: 4px;
}

.project-deck {
  position: relative;
  min-height: 520px;
  perspective: 1200px;
  transform-style: preserve-3d;
}

.project-cover-card {
  --deck-x: 0px;
  --deck-y: 0px;
  --deck-scale: 1;
  --deck-rotate: 0deg;
  position: absolute;
  top: 50%;
  left: 48%;
  width: clamp(235px, 19vw, 315px);
  aspect-ratio: 0.72;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 30px;
  background: #111318;
  color: #fff;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.42);
  cursor: pointer;
  opacity: var(--deck-opacity, 0);
  transform:
    translate(-50%, -50%)
    translate3d(var(--deck-x), var(--deck-y), var(--deck-z, 0px))
    rotate(var(--deck-rotate))
    rotateY(var(--deck-rotate-y, 0deg))
    scale(var(--deck-scale));
  transition:
    opacity 560ms ease,
    transform 760ms cubic-bezier(0.16, 1, 0.3, 1),
    filter 560ms ease;
  transform-style: preserve-3d;
  filter: brightness(var(--deck-brightness, 0.56)) saturate(var(--deck-saturation, 0.72));
  pointer-events: var(--deck-pointer, none);
}

.project-cover-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 700ms cubic-bezier(0.22, 1, 0.36, 1);
}

.project-cover-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(to top, rgba(3, 4, 6, 0.94) 0%, rgba(3, 4, 6, 0.04) 54%, rgba(3, 4, 6, 0.08) 100%);
}

.project-cover-card > span {
  position: absolute;
  right: 22px;
  bottom: 21px;
  left: 22px;
  z-index: 2;
  display: grid;
  gap: 5px;
  text-align: left;
}

.project-cover-card small {
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
}

.project-cover-card strong {
  font-family: "League Spartan", sans-serif;
  font-size: 1.12rem;
  line-height: 1;
  letter-spacing: -0.025em;
  text-transform: uppercase;
}

.project-cover-card.is-active {
  box-shadow: 0 42px 105px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(126, 162, 255, 0.2);
}

.project-cover-card.is-active img {
  transform: scale(1.04);
}

.project-cover-card:hover img,
.project-cover-card:focus-visible img {
  transform: scale(1.075);
}

.project-cover-card:focus-visible {
  outline: 3px solid #7ea2ff;
  outline-offset: 5px;
}

.project-showcase-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 30px;
}

.project-progress {
  display: flex;
  align-items: center;
  gap: 8px;
}

.project-progress button {
  width: 28px;
  height: 3px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.2);
  cursor: pointer;
  transition:
    width 320ms ease,
    background-color 320ms ease;
}

.project-progress button.is-active {
  width: 62px;
  background: #7ea2ff;
}

.project-progress button:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 5px;
}

.project-arrows {
  display: flex;
  gap: 10px;
}

.project-arrows button {
  width: 52px;
  height: 52px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  background: rgba(13, 14, 18, 0.54);
  color: #fff;
  font-size: 1.15rem;
  cursor: pointer;
  backdrop-filter: blur(15px);
  transition:
    transform 220ms cubic-bezier(0.22, 1, 0.36, 1),
    background-color 220ms ease;
}

.project-arrows button:hover,
.project-arrows button:focus-visible {
  transform: translateY(-3px);
  background: #2f6bff;
}

.project-arrows button:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 4px;
}

.project-stage-reveal {
  opacity: 0;
  transform: translateY(38px) scale(0.985);
  transition:
    opacity 900ms ease,
    transform 900ms cubic-bezier(0.16, 1, 0.3, 1),
    filter 720ms ease;
}

.projects-experience.is-visible .project-stage-reveal {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.projects-experience.is-visible .project-showcase {
  transition-delay: 120ms;
}

.projects-experience.is-visible .project-showcase-controls {
  transition-delay: 240ms;
}

@keyframes mosaic-drift-left{
  from { transform: translateX(0); }
  to { transform: translateX(calc(-50% - 8px)); }
}

@keyframes mosaic-drift-right{
  from { transform: translateX(calc(-50% - 8px)); }
  to { transform: translateX(0); }
}

@media (max-width: 1120px){
  .projects-experience {
    min-height: 1160px;
  }

  .projects-experience-heading {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .projects-experience-heading > p {
    margin-left: 0;
  }

  .project-showcase {
    grid-template-columns: minmax(300px, 0.88fr) minmax(460px, 1.12fr);
    gap: 34px;
  }

  .project-active-copy {
    padding: 32px;
  }

  .project-deck {
    min-height: 490px;
  }
}

@media (max-width: 860px){
  .projects-experience {
    min-height: 1410px;
    padding-top: 130px;
  }

  .mosaic-cylinder {
    top: 48%;
    width: 190vw;
    opacity: 0.78;
  }

  .projects-experience-inner {
    width: 90%;
    min-height: 1160px;
  }

  .project-showcase {
    margin-top: 55px;
    grid-template-columns: 1fr;
    gap: 35px;
  }

  .project-active-copy {
    max-width: none;
  }

  .project-deck {
    min-height: 500px;
  }
}

@media (max-width: 640px){
  .projects-experience {
    min-height: 1340px;
    padding: 115px 0 90px;
  }

  .projects-experience::before {
    height: 110px;
  }

  .mosaic-cylinder {
    top: 47%;
    width: 250vw;
    height: 680px;
    gap: 12px;
    transform: translate(-50%, -50%) perspective(900px) rotateX(7deg) scale(1.02);
  }

  .mosaic-row {
    height: 132px;
  }

  .mosaic-tile {
    width: 174px;
    height: 120px;
    border-radius: 18px;
  }

  .mosaic-tile:nth-child(3n + 1) {
    width: 138px;
  }

  .mosaic-tile:nth-child(4n + 2) {
    width: 202px;
  }

  .projects-experience-heading h2 {
    font-size: clamp(2.7rem, 12vw, 4rem);
  }

  .projects-experience-heading > p {
    font-size: 0.92rem;
  }

  .projects-experience-inner {
    min-height: 1140px;
  }

  .project-showcase {
    margin-top: 46px;
  }

  .project-active-copy {
    padding: 28px 24px 30px;
    border-radius: 26px;
  }

  .project-active-index {
    margin-bottom: 34px;
  }

  .project-active-copy h3 {
    font-size: clamp(3rem, 16vw, 4.6rem);
  }

  .project-active-description {
    min-height: 0;
    font-size: 0.91rem;
  }

  .project-deck {
    min-height: 430px;
  }

  .project-cover-card {
    left: 50%;
    width: min(64vw, 250px);
    border-radius: 25px;
  }

  .project-showcase-controls {
    align-items: flex-end;
  }

  .project-progress {
    max-width: 200px;
    flex-wrap: wrap;
  }

  .project-progress button {
    width: 20px;
  }

  .project-progress button.is-active {
    width: 43px;
  }

  .project-arrows button {
    width: 46px;
    height: 46px;
  }
}

@media (prefers-reduced-motion: reduce){
  .mosaic-track {
    animation-play-state: paused;
  }

  .project-stage-reveal,
.project-cover-card {
    transition-duration: 1ms;
  }
}

/* =========================================================
   PORTAFOLIO V14 — AJUSTE DE REFERENCIA
   Mosaico cilíndrico en movimiento + carrusel limpio
   ========================================================= */

.projects-experience {
  min-height: 1010px;
  padding: 138px 0 112px;
}

.projects-experience-inner {
  min-height: 760px;
}

/* El fondo se comporta como una pantalla cóncava: el centro queda
   más cerca y los laterales retroceden. La curvatura fina de cada
   pieza se calcula en script.js mientras las filas se desplazan. */
.mosaic-cylinder {
  top: 51%;
  width: min(1880px, 146vw);
  height: 650px;
  grid-template-rows: repeat(3, 1fr);
  gap: 14px;
  perspective: 980px;
  transform: translate(-50%, -50%) rotateX(1.5deg) scale(1.08);
  filter: saturate(0.9) contrast(1.08);
  -webkit-mask-image:
    radial-gradient(ellipse 62% 92% at 50% 50%, #000 43%, rgba(0, 0, 0, 0.97) 66%, transparent 100%),
    linear-gradient(to bottom, transparent 0%, #000 12%, #000 88%, transparent 100%);
  mask-image:
    radial-gradient(ellipse 62% 92% at 50% 50%, #000 43%, rgba(0, 0, 0, 0.97) 66%, transparent 100%),
    linear-gradient(to bottom, transparent 0%, #000 12%, #000 88%, transparent 100%);
}

.mosaic-cylinder::before,
.mosaic-cylinder::after {
  top: -15%;
  bottom: -15%;
  width: 24%;
  z-index: 8;
  filter: blur(18px);
}

.mosaic-cylinder::before {
  left: -7%;
  background: linear-gradient(to right, #08090b 12%, rgba(8, 9, 11, 0.74) 42%, transparent 100%);
  transform: none;
}

.mosaic-cylinder::after {
  right: -7%;
  background: linear-gradient(to left, #08090b 12%, rgba(8, 9, 11, 0.74) 42%, transparent 100%);
  transform: none;
}

.mosaic-row {
  height: 192px;
  overflow: hidden;
  border-radius: 0;
  perspective: 980px;
  transform-style: preserve-3d;
}

.mosaic-row:nth-child(1) {
  transform: translateX(-2.5%) scaleX(1.035);
}

.mosaic-row:nth-child(2) {
  transform: translateX(1.8%) scaleX(1.055);
}

.mosaic-row:nth-child(3) {
  transform: translateX(-1.2%) scaleX(1.025);
}

.mosaic-track {
  gap: 14px;
  height: 100%;
  animation-duration: var(--mosaic-speed, 31s);
  animation-timing-function: linear;
  animation-iteration-count: infinite;
  transform-style: preserve-3d;
}

.mosaic-row:nth-child(1) .mosaic-track {
  --mosaic-speed: 29s;
}

.mosaic-row:nth-child(2) .mosaic-track {
  --mosaic-speed: 35s;
}

.mosaic-row:nth-child(3) .mosaic-track {
  --mosaic-speed: 32s;
}

.mosaic-tile {
  --mosaic-z: 0px;
  --mosaic-ry: 0deg;
  --mosaic-scale: 1;
  --mosaic-opacity: 0.9;
  width: 248px;
  height: 176px;
  border-radius: 22px;
  opacity: var(--mosaic-opacity);
  transform:
    translateZ(var(--mosaic-z))
    rotateY(var(--mosaic-ry))
    scale(var(--mosaic-scale));
  transform-origin: center center;
  transform-style: preserve-3d;
  backface-visibility: hidden;
  will-change: transform, opacity;
  transition: opacity 120ms linear;
}

.mosaic-tile:nth-child(3n + 1),
.mosaic-tile:nth-child(4n + 2) {
  width: 248px;
}

.mosaic-tile img {
  opacity: 0.9;
  filter: brightness(0.78) saturate(0.88);
}

.mosaic-shade {
  background:
    radial-gradient(ellipse 58% 68% at 58% 55%, rgba(4, 5, 8, 0.08) 0%, rgba(4, 5, 8, 0.3) 52%, rgba(4, 5, 8, 0.84) 100%),
    linear-gradient(to bottom, rgba(5, 6, 8, 0.55), rgba(5, 6, 8, 0.1) 35%, rgba(5, 6, 8, 0.72));
}

/* Presentación de proyectos: portada activa grande y portadas siguientes
   rectas, limpias y alineadas, como en la referencia enviada. */
.project-showcase {
  min-height: 500px;
  grid-template-columns: minmax(320px, 0.8fr) minmax(610px, 1.2fr);
  gap: clamp(44px, 5vw, 84px);
}

.project-deck {
  min-height: 455px;
  overflow: visible;
  perspective: none;
  transform-style: flat;
}

.project-cover-card {
  --deck-w: 176px;
  --deck-h: 274px;
  top: 50%;
  left: 0;
  width: var(--deck-w);
  height: var(--deck-h);
  aspect-ratio: auto;
  border-radius: 24px;
  transform:
    translateY(-50%)
    translate3d(var(--deck-x), var(--deck-y), 0)
    scale(var(--deck-scale));
  transform-origin: center bottom;
  transition:
    opacity 520ms ease,
    transform 720ms cubic-bezier(0.16, 1, 0.3, 1),
    width 720ms cubic-bezier(0.16, 1, 0.3, 1),
    height 720ms cubic-bezier(0.16, 1, 0.3, 1),
    filter 520ms ease;
}

.project-cover-card > span {
  right: 16px;
  bottom: 16px;
  left: 16px;
  gap: 3px;
}

.project-cover-card small {
  font-size: 0.61rem;
}

.project-cover-card strong {
  font-size: 0.94rem;
}

.project-cover-card.is-active {
  border-color: rgba(126, 162, 255, 0.46);
  box-shadow: 0 38px 96px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(126, 162, 255, 0.18);
}

.project-cover-card.is-active > span {
  right: 22px;
  bottom: 21px;
  left: 22px;
}

.project-cover-card.is-active small {
  font-size: 0.68rem;
}

.project-cover-card.is-active strong {
  font-size: 1.12rem;
}

/* Los controles inferiores se eliminan en V14. La navegación se hace
   seleccionando las portadas, arrastrando o usando el teclado. */
.project-showcase-controls,
.project-progress,
.project-arrows {
  display: none !important;
}

@media (max-width: 1120px){
  .project-showcase {
    grid-template-columns: minmax(300px, 0.86fr) minmax(480px, 1.14fr);
  }

  .project-cover-card {
    --deck-w: 154px;
    --deck-h: 242px;
  }
}

@media (max-width: 860px){
  .projects-experience {
    min-height: 1320px;
  }

  .projects-experience-inner {
    min-height: 1080px;
  }

  .mosaic-cylinder {
    width: 220vw;
    height: 610px;
  }

  .project-showcase {
    grid-template-columns: 1fr;
    min-height: 790px;
  }

  .project-deck {
    min-height: 410px;
  }
}

@media (max-width: 640px){
  .projects-experience {
    min-height: 1260px;
  }

  .mosaic-cylinder {
    width: 330vw;
    height: 560px;
    gap: 10px;
  }

  .mosaic-row {
    height: 164px;
  }

  .mosaic-tile,
.mosaic-tile:nth-child(3n + 1),
.mosaic-tile:nth-child(4n + 2) {
    width: 214px;
    height: 150px;
    border-radius: 18px;
  }

  .project-deck {
    min-height: 390px;
    overflow: hidden;
    margin-right: -5vw;
  }

  .project-cover-card {
    --deck-w: 138px;
    --deck-h: 218px;
    border-radius: 20px;
  }
}

@media (prefers-reduced-motion: reduce){
  /* Mantiene un desplazamiento lento para conservar la intención visual
     del apartado sin usar una transición rápida. */
  .mosaic-track {
    animation-play-state: running;
    animation-duration: 100s !important;
  }
}

@keyframes mosaic-drift-left{
  from { transform: translateX(0); }
  to { transform: translateX(calc(-50% - 7px)); }
}

@keyframes mosaic-drift-right{
  from { transform: translateX(calc(-50% - 7px)); }
  to { transform: translateX(0); }
}

/* =========================================================
   V15 — SERVICIOS, PROCESO, ESTUDIO, CONTACTO Y FOOTER
   ========================================================= */

.section-shell {
  width: min(92%, 1400px);
  margin: 0 auto;
}

.section-heading h2,
.process-heading h2,
.contact-heading h2 {
  margin: 0;
  font-family: "League Spartan", sans-serif;
  font-size: var(--title-section);
  line-height: 0.98;
  letter-spacing: -0.05em;
}

.section-heading-split {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(290px, 0.6fr);
  align-items: end;
  gap: clamp(48px, 7vw, 100px);
}

.section-heading-split > p {
  max-width: 500px;
  margin: 0 0 5px;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.75;
}

.services-section {
  padding: 150px 0 135px;
  background: var(--background);
}

.services-grid {
  margin-top: 74px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.service-card {
  min-height: 380px;
  padding: 34px;
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 18px 55px rgba(16, 16, 16, 0.05);
  transition:
    transform 320ms cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 320ms ease,
    border-color 320ms ease,
    background-color 320ms ease;
}

.service-card:hover {
  transform: translateY(-8px);
  border-color: rgba(47, 107, 255, 0.3);
  background: #fff;
  box-shadow: 0 30px 75px rgba(16, 16, 16, 0.1);
}

.service-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--accent);
  font-family: "League Spartan", sans-serif;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.service-card-top span:last-child {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 50%;
  color: var(--foreground);
  transition: transform 280ms ease, background-color 280ms ease, color 280ms ease;
}

.service-card:hover .service-card-top span:last-child {
  transform: rotate(45deg);
  background: var(--accent);
  color: #fff;
}

.service-card h3 {
  max-width: 460px;
  margin: auto 0 18px;
  font-family: "League Spartan", sans-serif;
  font-size: clamp(2rem, 2.8vw, 3.2rem);
  line-height: 0.98;
  letter-spacing: -0.045em;
}

.service-card p {
  max-width: 570px;
  margin: 0 0 26px;
  color: var(--muted);
  line-height: 1.7;
}

.service-card ul {
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
}

.service-card li {
  padding: 9px 13px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 999px;
  color: #3f3f3f;
  font-size: 0.78rem;
  font-weight: 600;
}

.services-note {
  margin-top: 18px;
  padding: 25px 28px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 30px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 24px;
  background: #111;
  color: #fff;
}

.services-note > span {
  color: #83a6ff;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.13em;
}

.services-note p {
  margin: 0;
  color: rgba(255, 255, 255, 0.68);
  line-height: 1.6;
}

.services-note a {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 0.86rem;
  font-weight: 700;
}

.services-note a span {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--accent);
}

.process-section {
  padding: 135px 0 150px;
  background: #0c0d10;
  color: #fff;
}

.process-heading {
  max-width: 850px;
}

.process-heading .eyebrow {
  color: #83a6ff;
}

.process-grid {
  margin-top: 75px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.1);
}

.process-step {
  min-height: 340px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  background: #0c0d10;
  transition: background-color 280ms ease;
}

.process-step:hover {
  background: #15171d;
}

.process-step > span {
  color: #83a6ff;
  font-family: "League Spartan", sans-serif;
  font-weight: 700;
  letter-spacing: 0.1em;
}

.process-step h3 {
  margin: auto 0 16px;
  font-family: "League Spartan", sans-serif;
  font-size: clamp(1.9rem, 2.4vw, 2.8rem);
  letter-spacing: -0.04em;
}

.process-step p {
  margin: 0;
  color: rgba(255, 255, 255, 0.62);
  line-height: 1.65;
}


.text-link {
  padding: 15px 10px;
  font-size: 0.86rem;
  font-weight: 700;
  color: #353535;
}

.contact-section {
  position: relative;
  padding: 145px 0 70px;
  overflow: hidden;
  background: #111217;
  color: #fff;
}

.contact-section::before {
  content: "";
  position: absolute;
  top: -240px;
  right: -160px;
  width: 600px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: rgba(47, 107, 255, 0.38);
  filter: blur(130px);
}

.contact-shell {
  position: relative;
  z-index: 2;
}

.contact-heading {
  max-width: 980px;
}

.contact-heading .eyebrow {
  color: #83a6ff;
}

.contact-heading h2 {
  max-width: 920px;
  font-size: clamp(3.1rem, 5.5vw, 6.2rem);
}

.contact-heading > p:last-child {
  max-width: 700px;
  margin: 26px 0 0;
  color: rgba(255, 255, 255, 0.65);
  font-size: 1.02rem;
  line-height: 1.7;
}

.contact-options {
  margin-top: 70px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.contact-card {
  min-height: 390px;
  padding: 38px;
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.055);
  backdrop-filter: blur(18px);
}

.contact-card-primary {
  background: var(--accent);
  border-color: rgba(255, 255, 255, 0.18);
}

.contact-card > span {
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.14em;
}

.contact-card h3 {
  max-width: 620px;
  margin: auto 0 18px;
  font-family: "League Spartan", sans-serif;
  font-size: clamp(2.3rem, 3.6vw, 4.2rem);
  line-height: 0.98;
  letter-spacing: -0.045em;
}

.contact-card p {
  max-width: 590px;
  margin: 0 0 28px;
  color: rgba(255, 255, 255, 0.67);
  line-height: 1.65;
}

.contact-card-primary p {
  color: rgba(255, 255, 255, 0.82);
}

.contact-card > div {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.contact-button {
  min-height: 52px;
  padding: 0 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-size: 0.84rem;
  font-weight: 750;
  transition: transform 220ms ease, background-color 220ms ease;
}

.contact-button:hover {
  transform: translateY(-3px);
}

.contact-button-light {
  background: #fff;
  color: #111;
}

.contact-button-outline {
  border: 1px solid rgba(255, 255, 255, 0.6);
}

.contact-button-dark {
  background: #fff;
  color: #111;
}

.contact-button-outline-dark {
  border: 1px solid rgba(255, 255, 255, 0.28);
}

.contact-details {
  margin-top: 26px;
  padding: 24px 4px 0;
  display: flex;
  flex-wrap: wrap;
  gap: 20px 38px;
  border-top: 1px solid rgba(255, 255, 255, 0.13);
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.86rem;
}

.contact-details a {
  color: #fff;
  font-weight: 650;
}

.site-footer {
  padding: 30px 0 42px;
  background: #111217;
  color: #fff;
}

.footer-inner {
  width: min(92%, 1400px);
  margin: 0 auto;
  padding-top: 28px;
  display: grid;
  grid-template-columns: 180px 1fr auto;
  align-items: center;
  gap: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.13);
}

.footer-brand {
  width: 76px;
}

.footer-brand img {
  filter: invert(1);
}

.footer-inner nav {
  display: flex;
  justify-content: center;
  gap: 28px;
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.82rem;
}

.footer-inner nav a:hover,
.footer-meta a:hover {
  color: #fff;
}

.footer-meta {
  display: flex;
  gap: 22px;
  color: rgba(255, 255, 255, 0.52);
  font-size: 0.76rem;
}

.nav-links a.is-current {
  opacity: 1;
  color: #fff;
}

.nav-links a.is-current::after {
  opacity: 1;
  transform: translateX(-50%) scaleX(1);
}

/* =========================================================
   V16 — ESCALA EDITORIAL, AIRE Y ACABADO PREMIUM
   Ajuste solicitado: cada apartado se percibe completo en una
   pantalla de escritorio, con jerarquía consistente y sombras finas.
   ========================================================= */

:root {
  --title-section: clamp(2.85rem, 3.55vw, 3.75rem);
  --premium-shadow-soft:
    0 1px 2px rgba(15, 23, 42, 0.04),
    0 12px 34px rgba(15, 23, 42, 0.07);
  --premium-shadow-medium:
    0 2px 5px rgba(15, 23, 42, 0.05),
    0 22px 58px rgba(15, 23, 42, 0.11);
}

.navbar {
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow:
    0 2px 4px rgba(0, 0, 0, 0.08),
    0 18px 52px rgba(0, 0, 0, 0.16);
}

/* El ajuste por proximidad conserva el desplazamiento natural, pero
   ayuda a que cada apartado termine alineado y limpio en escritorio. */
@media (min-width: 1101px){
  html {
    scroll-snap-type: y proximity;
  }

  .hero,
.projects-experience,
.services-section,
.process-section,
.contact-section {
    scroll-snap-align: start;
    scroll-snap-stop: normal;
  }
}

/* ---------- Proyectos ---------- */
.projects-experience {
  min-height: 100svh;
  padding: 106px 0 70px;
  display: flex;
  align-items: center;
}

.projects-experience::before {
  height: 105px;
}

.projects-experience::after {
  height: 105px;
}

.projects-experience-inner {
  min-height: 0;
  display: grid;
  gap: 28px;
}

.projects-experience-heading {
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.58fr);
  align-items: end;
  gap: clamp(42px, 6vw, 84px);
}

.projects-experience-heading .eyebrow {
  margin-bottom: 10px;
}

.projects-experience-heading h2 {
  max-width: 700px;
  font-size: clamp(3rem, 3.9vw, 4.05rem);
  line-height: 0.95;
  letter-spacing: -0.052em;
}

.projects-experience-heading > p {
  max-width: 430px;
  margin-bottom: 3px;
  font-size: 0.94rem;
  line-height: 1.6;
}

.project-showcase {
  min-height: 414px;
  grid-template-columns: minmax(330px, 0.78fr) minmax(600px, 1.22fr);
  gap: clamp(38px, 5vw, 74px);
}

.project-active-copy {
  max-width: 500px;
  padding: 29px 31px 31px;
  border-radius: 28px;
  background:
    linear-gradient(145deg, rgba(19, 21, 27, 0.82), rgba(8, 9, 12, 0.58));
  border-color: rgba(255, 255, 255, 0.14);
  box-shadow:
    0 2px 5px rgba(0, 0, 0, 0.22),
    0 28px 70px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(28px) saturate(1.08);
}

.project-active-copy::after {
  top: -96px;
  right: -80px;
}

.project-active-index {
  margin-bottom: 28px;
}

.project-active-index span:first-child {
  font-size: 1.36rem;
}

.project-active-category {
  margin-bottom: 9px;
  font-size: 0.68rem;
}

.project-active-copy h3 {
  font-size: clamp(2.8rem, 3.55vw, 3.85rem);
  line-height: 0.9;
}

.project-active-description {
  min-height: 0;
  margin: 18px 0 24px;
  font-size: 0.91rem;
  line-height: 1.58;
}

.project-active-link {
  min-height: 48px;
  padding-inline: 21px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.18);
}

.project-deck {
  min-height: 390px;
}

.project-cover-card {
  border-radius: 25px;
  box-shadow:
    0 2px 4px rgba(0, 0, 0, 0.18),
    0 24px 64px rgba(0, 0, 0, 0.42);
}

.project-cover-card.is-active {
  box-shadow:
    0 2px 5px rgba(0, 0, 0, 0.22),
    0 32px 84px rgba(0, 0, 0, 0.52),
    0 0 0 1px rgba(126, 162, 255, 0.2);
}

/* ---------- Sistema general de apartados ---------- */
.section-shell {
  width: min(90%, 1340px);
}

.section-heading h2,
.process-heading h2,
.contact-heading h2 {
  font-size: var(--title-section);
  line-height: 0.97;
  letter-spacing: -0.047em;
}

/* ---------- Servicios ---------- */
.services-section {
  min-height: 100svh;
  padding: 112px 0 64px;
  display: flex;
  align-items: center;
  background:
    radial-gradient(circle at 82% 7%, rgba(47, 107, 255, 0.055), transparent 28%),
    #f5f5f7;
}

.section-heading-split {
  grid-template-columns: minmax(0, 1.22fr) minmax(330px, 0.62fr);
  gap: clamp(44px, 6vw, 84px);
}

.section-heading-split > p {
  max-width: 470px;
  font-size: 0.93rem;
  line-height: 1.62;
}

.services-grid {
  margin-top: 30px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.service-card {
  min-height: 0;
  height: 216px;
  padding: 23px 25px;
  border-color: rgba(20, 20, 22, 0.075);
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--premium-shadow-soft);
  backdrop-filter: blur(18px) saturate(1.08);
}

.service-card:hover {
  transform: translateY(-5px);
  border-color: rgba(47, 107, 255, 0.22);
  box-shadow: var(--premium-shadow-medium);
}

.service-card-top {
  font-size: 0.77rem;
}

.service-card-top span:last-child {
  width: 34px;
  height: 34px;
  font-size: 0.84rem;
}

.service-card h3 {
  max-width: none;
  margin: 20px 0 8px;
  font-size: clamp(1.48rem, 1.72vw, 1.82rem);
  line-height: 1;
  white-space: nowrap;
}

.service-card p {
  margin: 0 0 13px;
  font-size: 0.86rem;
  line-height: 1.48;
}

.service-card ul {
  margin-top: auto;
  gap: 6px;
}

.service-card li {
  padding: 7px 10px;
  font-size: 0.69rem;
  background: rgba(248, 248, 250, 0.9);
}

.services-note {
  margin-top: 14px;
  padding: 16px 20px;
  gap: 24px;
  border-radius: 21px;
  border-color: rgba(255, 255, 255, 0.08);
  background:
    linear-gradient(115deg, rgba(22, 23, 27, 0.98), rgba(8, 9, 12, 0.98));
  box-shadow: 0 18px 46px rgba(17, 17, 20, 0.14);
}

.services-note p {
  font-size: 0.84rem;
  line-height: 1.48;
}

.services-note a span {
  width: 32px;
  height: 32px;
}

/* ---------- Proceso ---------- */
.process-section {
  min-height: 100svh;
  padding: 112px 0 68px;
  display: flex;
  align-items: center;
  background:
    radial-gradient(circle at 82% 10%, rgba(47, 107, 255, 0.13), transparent 26%),
    #0b0c0f;
}

.process-heading {
  max-width: 980px;
}

.process-heading h2 {
  max-width: 900px;
}

.process-grid {
  margin-top: 34px;
  border-radius: 27px;
  box-shadow:
    0 2px 4px rgba(0, 0, 0, 0.22),
    0 30px 78px rgba(0, 0, 0, 0.3);
}

.process-step {
  min-height: 268px;
  padding: 25px 26px;
  background: rgba(12, 13, 16, 0.93);
}

.process-step:hover {
  background: #161820;
}

.process-step h3 {
  margin: auto 0 10px;
  font-size: clamp(1.52rem, 1.82vw, 1.95rem);
}

.process-step p {
  font-size: 0.86rem;
  line-height: 1.52;
}

/* ---------- Estudio ---------- */


/* ---------- Contacto ---------- */
.contact-section {
  min-height: 100svh;
  padding: 112px 0 54px;
  display: flex;
  align-items: center;
  background:
    radial-gradient(circle at 92% 3%, rgba(47, 107, 255, 0.32), transparent 30%),
    linear-gradient(145deg, #111217, #0b0c10 68%);
}

.contact-heading {
  max-width: 1100px;
}

.contact-heading h2 {
  max-width: 900px;
  font-size: clamp(3rem, 3.75vw, 4rem);
  line-height: 0.96;
}

.contact-heading > p:last-child {
  margin-top: 17px;
  font-size: 0.92rem;
  line-height: 1.55;
}

.contact-options {
  margin-top: 32px;
  gap: 14px;
}

.contact-card {
  min-height: 265px;
  padding: 27px 29px;
  border-radius: 27px;
  background: rgba(255, 255, 255, 0.065);
  box-shadow:
    0 2px 5px rgba(0, 0, 0, 0.18),
    0 24px 64px rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(24px) saturate(1.08);
}

.contact-card-primary {
  background:
    linear-gradient(145deg, #3d73ff, #2f6bff 58%, #265ee8);
  box-shadow:
    0 2px 5px rgba(30, 82, 210, 0.18),
    0 28px 70px rgba(47, 107, 255, 0.28);
}

.contact-card h3 {
  margin: 24px 0 10px;
  font-size: clamp(2rem, 2.55vw, 2.7rem);
  line-height: 0.98;
}

.contact-card p {
  margin-bottom: 18px;
  font-size: 0.86rem;
  line-height: 1.52;
}

.contact-card > div {
  margin-top: auto;
}

.contact-button {
  min-height: 46px;
  padding-inline: 18px;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.12);
}

.contact-details {
  margin-top: 18px;
  padding-top: 17px;
}

.site-footer {
  padding-top: 20px;
  padding-bottom: 28px;
}

.footer-inner {
  padding-top: 22px;
}

/* Escala de escritorio compacta: la composición completa cabe en
   una pantalla estándar sin sacrificar legibilidad ni espacio negativo. */
@media (min-width: 1200px) and (min-height: 760px){
  .projects-experience,
.services-section,
.process-section,
.contact-section {
    min-height: 100svh;
  }
}

@media (max-width: 1199px){
  .service-card h3 {
    white-space: normal;
  }
}

@media (max-width: 1100px){
  html {
    scroll-snap-type: none;
  }

  .projects-experience,
.services-section,
.process-section,
.contact-section {
    min-height: auto;
    display: block;
  }

  .projects-experience {
    padding-top: 125px;
  }

  
}

@media (max-width: 760px){
  .projects-experience-heading h2,
.section-heading h2,
.process-heading h2,
.contact-heading h2 {
    font-size: clamp(2.55rem, 11vw, 3.65rem);
  }

  .service-card {
    height: auto;
    min-height: 300px;
  }

  .service-card h3 {
    font-size: 2rem;
  }

  

  .contact-card {
    min-height: 330px;
  }
}

/* ==================================================
   STUDIO · clean consolidated component
   ================================================== */
.studio-section {
  min-height: 100svh;
  display: grid;
  align-items: center;
  padding: clamp(112px, 13vh, 138px) 0 clamp(62px, 8vh, 86px);
  background: linear-gradient(180deg, #f7f7f5 0%, #f1f0ed 100%);
}

.studio-card {
  position: relative;
  width: min(100%, 1180px);
  min-height: 500px;
  margin: 0 auto;
  padding: 34px;
  overflow: visible;
  border: 1px solid rgba(20, 24, 32, 0.07);
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow:
    0 28px 78px rgba(17, 21, 30, 0.09),
    0 6px 18px rgba(17, 21, 30, 0.05),
    inset 0 1px 0 rgba(255, 255, 255, 0.92);
}

.studio-person {
  position: absolute;
  z-index: 2;
  top: -80px;
  left: 46px;
  width: 205px;
  height: auto;
  pointer-events: none;
  filter: drop-shadow(0 20px 24px rgba(10, 13, 20, 0.14));
}

.studio-card-header {
  position: relative;
  z-index: 1;
  min-height: 176px;
  padding-left: 228px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 26px;
}

.studio-title-group .eyebrow {
  margin: 0 0 12px;
}

.studio-title-group h2 {
  max-width: 18ch;
  margin: 0;
  color: #111318;
  font-family: "League Spartan", sans-serif;
  font-size: clamp(2.25rem, 3vw, 2.85rem);
  font-weight: 700;
  line-height: 0.96;
  letter-spacing: -0.055em;
}

.studio-role {
  margin: 0 8px 8px 0;
  color: #111318;
  font-family: "League Spartan", sans-serif;
  font-size: clamp(1.5rem, 1.9vw, 1.85rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.035em;
  white-space: nowrap;
}

.studio-dark-panel {
  position: relative;
  z-index: 3;
  min-height: 236px;
  margin-top: 18px;
  padding: 24px 26px;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(430px, 0.95fr);
  gap: 28px;
  align-items: center;
  overflow: hidden;
  border-radius: 24px;
  background: linear-gradient(180deg, #11141b 0%, #090b10 100%);
  box-shadow:
    0 22px 44px rgba(9, 11, 17, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.studio-panel-copy {
  min-width: 0;
}

.studio-panel-copy > p {
  max-width: 59ch;
  margin: 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: 0.96rem;
  line-height: 1.67;
}

.studio-actions {
  margin-top: 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.studio-actions .button {
  min-height: 46px;
  padding-inline: 20px;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.13);
}

.studio-actions .button-dark {
  border-color: rgba(255, 255, 255, 0.08);
  background: #050608;
  color: #ffffff;
}

.studio-actions .button-light {
  border-color: rgba(255, 255, 255, 0.14);
  background: #f5f5f3;
  color: #14161c;
}

.studio-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.studio-fact {
  position: relative;
  min-height: 108px;
  padding: 17px 16px 16px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-start;
  overflow: hidden;
  border-radius: 20px;
  text-align: left;
  isolation: isolate;
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.studio-fact::before {
  content: attr(data-index);
  position: absolute;
  z-index: 2;
  top: 12px;
  right: 14px;
  font-family: "League Spartan", sans-serif;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  opacity: 0.7;
}

.studio-fact::after {
  content: "";
  position: absolute;
  z-index: -1;
  width: 92px;
  aspect-ratio: 1;
  right: -28px;
  bottom: -42px;
  border-radius: 50%;
  filter: blur(2px);
  opacity: 0.8;
}

.studio-fact:hover {
  transform: translateY(-4px);
}

.studio-fact-label {
  position: absolute;
  z-index: 2;
  top: 46px;
  left: 16px;
  margin: 0;
  font-size: 0.54rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  opacity: 0.72;
}

.studio-fact strong {
  position: absolute;
  z-index: 2;
  left: 16px;
  bottom: 16px;
  max-width: 11ch;
  font-size: 0.94rem;
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: -0.025em;
}

.studio-fact-experience {
  border: 1px solid rgba(119, 163, 255, 0.30);
  background:
    linear-gradient(145deg, rgba(255,255,255,0.16), transparent 38%),
    linear-gradient(160deg, #4381ff 0%, #2866ef 54%, #1c50ce 100%);
  color: #ffffff;
  box-shadow:
    0 17px 34px rgba(36, 94, 221, 0.26),
    inset 0 1px 0 rgba(255,255,255,0.22);
}

.studio-fact-experience::after {
  background: rgba(143, 185, 255, 0.30);
}

.studio-fact-focus {
  border: 1px solid rgba(255,255,255,0.72);
  background:
    radial-gradient(circle at 86% 14%, rgba(47,107,255,0.13), transparent 28%),
    linear-gradient(145deg, #ffffff 0%, #f0f2f7 100%);
  color: #17191f;
  box-shadow:
    0 17px 34px rgba(0, 0, 0, 0.11),
    inset 0 1px 0 rgba(255,255,255,0.95);
}

.studio-fact-focus::after {
  background: rgba(47, 107, 255, 0.11);
}

.studio-fact-focus .studio-fact-label {
  color: #2f6bff;
  opacity: 0.82;
}

.studio-fact-location {
  border: 1px solid rgba(104, 151, 255, 0.24);
  background:
    radial-gradient(circle at 15% 20%, rgba(114,160,255,0.34), transparent 33%),
    linear-gradient(155deg, #2e6fff 0%, #2459d9 58%, #183a94 100%);
  color: #ffffff;
  box-shadow:
    0 17px 34px rgba(26, 72, 177, 0.24),
    inset 0 1px 0 rgba(255,255,255,0.18);
}

.studio-fact-location::after {
  right: -18px;
  bottom: -48px;
  border: 1px solid rgba(255,255,255,0.22);
  background: transparent;
  box-shadow: 0 0 0 14px rgba(255,255,255,0.045), 0 0 0 28px rgba(255,255,255,0.025);
}


@media (max-width: 1120px) {
  .studio-card {
    padding: 30px;
  }

  .studio-person {
    left: 32px;
    width: 195px;
  }

  .studio-card-header {
    padding-left: 210px;
  }

  .studio-dark-panel {
    grid-template-columns: 1fr;
  }

  .studio-facts {
    max-width: 620px;
  }
}

@media (max-width: 820px) {
  .studio-section {
    padding-top: 120px;
  }

  .studio-card {
    padding: 26px;
  }

  .studio-person {
    top: -76px;
    left: 50%;
    width: 190px;
    transform: translateX(-50%);
  }

  .studio-card-header {
    min-height: 260px;
    padding: 150px 0 0;
    grid-template-columns: 1fr;
    align-items: end;
    gap: 12px;
    text-align: center;
  }

  .studio-title-group h2 {
    max-width: 17ch;
    margin-inline: auto;
  }

  .studio-role {
    margin: 0;
    text-align: center;
    white-space: normal;
  }

  .studio-dark-panel {
    margin-top: 24px;
  }

  .studio-panel-copy > p {
    margin-inline: auto;
    text-align: center;
  }

  .studio-actions {
    justify-content: center;
  }

  .studio-facts {
    max-width: none;
  }
}

@media (max-width: 620px) {
  .studio-section {
    min-height: auto;
    padding: 112px 0 74px;
  }

  .studio-card {
    padding: 20px;
    border-radius: 26px;
  }

  .studio-title-group h2 {
    font-size: 2.25rem;
  }

  .studio-role {
    font-size: 1.55rem;
  }

  .studio-dark-panel {
    padding: 20px;
    border-radius: 21px;
  }

  .studio-facts {
    grid-template-columns: 1fr;
  }

  .studio-actions {
    flex-direction: column;
  }

  .studio-actions .button {
    width: 100%;
  }
}


/* =========================================================
   V26 — ENTRADAS AL HACER SCROLL
   Sistema independiente y reversible. Conserva las animaciones
   internas de cada sección y evita depender de is-visible.
   ========================================================= */
.scroll-ready .scroll-reveal {
  --scroll-x: 0px;
  --scroll-y: 42px;
  --scroll-scale: 0.985;
  --scroll-delay: 0ms;
  opacity: 0;
  visibility: hidden;
  transform: translate3d(var(--scroll-x), var(--scroll-y), 0) scale(var(--scroll-scale));
  transition:
    opacity 900ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 1050ms cubic-bezier(0.22, 1, 0.36, 1),
    visibility 0s linear 1050ms;
  transition-delay: 0ms;
  will-change: opacity, transform;
  backface-visibility: hidden;
  transform-style: preserve-3d;
}

.scroll-ready .scroll-reveal[data-reveal="fade"] {
  --scroll-y: 0px;
  --scroll-scale: 1.025;
}

.scroll-ready .scroll-reveal[data-reveal="left"] {
  --scroll-x: -58px;
  --scroll-y: 8px;
  --scroll-scale: 0.99;
}

.scroll-ready .scroll-reveal[data-reveal="right"] {
  --scroll-x: 58px;
  --scroll-y: 8px;
  --scroll-scale: 0.99;
}

.scroll-ready .scroll-reveal[data-reveal="card"] {
  --scroll-y: 54px;
  --scroll-scale: 0.955;
}

.scroll-ready .scroll-reveal[data-reveal="step"] {
  --scroll-y: 46px;
  --scroll-scale: 0.975;
}

.scroll-ready .scroll-reveal[data-reveal="studio"] {
  --scroll-y: 36px;
  --scroll-scale: 0.985;
}

.scroll-ready .scroll-reveal[data-reveal="navbar"] {
  --scroll-y: -24px;
  --scroll-scale: 0.99;
}

.scroll-ready .scroll-reveal.scroll-in {
  opacity: 1;
  visibility: visible;
  transform: translate3d(0, 0, 0) scale(1);
  transition-delay: var(--scroll-delay), var(--scroll-delay), 0s;
}

/* Ritmo interno de títulos, tarjetas y bloques de información. */
.scroll-ready .scroll-reveal:is(
  .section-heading,
  .projects-experience-heading,
  .service-card,
  .process-step,
  .project-active-copy,
  .contact-card,
  .contact-heading,
  .footer-inner
) > * {
  opacity: 0;
  transform: translate3d(0, 18px, 0);
  transition:
    opacity 700ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 860ms cubic-bezier(0.22, 1, 0.36, 1);
}

.scroll-ready .scroll-reveal.scroll-in:is(
  .section-heading,
  .projects-experience-heading,
  .service-card,
  .process-step,
  .project-active-copy,
  .contact-card,
  .contact-heading,
  .footer-inner
) > * {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

.scroll-ready .scroll-reveal.scroll-in:is(
  .section-heading,
  .projects-experience-heading,
  .service-card,
  .process-step,
  .project-active-copy,
  .contact-card,
  .contact-heading,
  .footer-inner
) > *:nth-child(1) { transition-delay: 90ms; }

.scroll-ready .scroll-reveal.scroll-in:is(
  .section-heading,
  .projects-experience-heading,
  .service-card,
  .process-step,
  .project-active-copy,
  .contact-card,
  .contact-heading,
  .footer-inner
) > *:nth-child(2) { transition-delay: 190ms; }

.scroll-ready .scroll-reveal.scroll-in:is(
  .section-heading,
  .projects-experience-heading,
  .service-card,
  .process-step,
  .project-active-copy,
  .contact-card,
  .contact-heading,
  .footer-inner
) > *:nth-child(3) { transition-delay: 300ms; }

.scroll-ready .scroll-reveal.scroll-in:is(
  .service-card,
  .project-active-copy,
  .contact-card,
  .footer-inner
) > *:nth-child(4) { transition-delay: 410ms; }

.scroll-ready .scroll-reveal.scroll-in.project-active-copy > *:nth-child(5) {
  transition-delay: 520ms;
}

/* Secuencia propia del apartado Estudio; no cambia su diseño. */
.scroll-ready .studio-card.scroll-reveal .studio-person,
.scroll-ready .studio-card.scroll-reveal .studio-card-header,
.scroll-ready .studio-card.scroll-reveal .studio-dark-panel,
.scroll-ready .studio-card.scroll-reveal .studio-panel-copy,
.scroll-ready .studio-card.scroll-reveal .studio-fact {
  opacity: 0;
  transition:
    opacity 780ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 980ms cubic-bezier(0.22, 1, 0.36, 1);
}

.scroll-ready .studio-card.scroll-reveal .studio-person {
  transform: translate3d(-38px, 20px, 0) scale(.965);
}

.scroll-ready .studio-card.scroll-reveal .studio-card-header {
  transform: translate3d(0, 24px, 0);
}

.scroll-ready .studio-card.scroll-reveal .studio-dark-panel {
  transform: translate3d(0, 34px, 0) scale(.982);
}

.scroll-ready .studio-card.scroll-reveal .studio-panel-copy,
.scroll-ready .studio-card.scroll-reveal .studio-fact {
  transform: translate3d(0, 20px, 0) scale(.972);
}

.scroll-ready .studio-card.scroll-reveal.scroll-in .studio-person,
.scroll-ready .studio-card.scroll-reveal.scroll-in .studio-card-header,
.scroll-ready .studio-card.scroll-reveal.scroll-in .studio-dark-panel,
.scroll-ready .studio-card.scroll-reveal.scroll-in .studio-panel-copy,
.scroll-ready .studio-card.scroll-reveal.scroll-in .studio-fact {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
}

.scroll-ready .studio-card.scroll-reveal.scroll-in .studio-person { transition-delay: 100ms; }
.scroll-ready .studio-card.scroll-reveal.scroll-in .studio-card-header { transition-delay: 220ms; }
.scroll-ready .studio-card.scroll-reveal.scroll-in .studio-dark-panel { transition-delay: 350ms; }
.scroll-ready .studio-card.scroll-reveal.scroll-in .studio-panel-copy { transition-delay: 490ms; }
.scroll-ready .studio-card.scroll-reveal.scroll-in .studio-fact:nth-child(1) { transition-delay: 620ms; }
.scroll-ready .studio-card.scroll-reveal.scroll-in .studio-fact:nth-child(2) { transition-delay: 740ms; }
.scroll-ready .studio-card.scroll-reveal.scroll-in .studio-fact:nth-child(3) { transition-delay: 860ms; }

/* Aun con "reducir movimiento" activo se conserva una entrada suave,
   porque el usuario solicitó explícitamente animaciones visibles. */
@media (prefers-reduced-motion: reduce) {
  .scroll-ready .scroll-reveal {
    --scroll-x: 0px;
    --scroll-y: 16px;
    --scroll-scale: 0.995;
    transition-duration: 520ms, 620ms, 0s;
  }

  .scroll-ready .scroll-reveal:is(
    .section-heading,
    .projects-experience-heading,
    .service-card,
    .process-step,
    .project-active-copy,
    .contact-card,
    .contact-heading,
    .footer-inner
  ) > *,
  .scroll-ready .studio-card.scroll-reveal .studio-person,
  .scroll-ready .studio-card.scroll-reveal .studio-card-header,
  .scroll-ready .studio-card.scroll-reveal .studio-dark-panel,
  .scroll-ready .studio-card.scroll-reveal .studio-panel-copy,
  .scroll-ready .studio-card.scroll-reveal .studio-fact {
    transition-duration: 480ms, 560ms;
  }
}


/* V28 — estabilidad del footer y animaciones más fluidas */
.scroll-ready .footer-inner.scroll-reveal[data-reveal-once].scroll-in {
  opacity: 1;
  visibility: visible;
  transform: translate3d(0, 0, 0) scale(1);
}

.scroll-ready .scroll-reveal,
.scroll-ready .scroll-reveal > *,
.scroll-ready .studio-card.scroll-reveal .studio-person,
.scroll-ready .studio-card.scroll-reveal .studio-card-header,
.scroll-ready .studio-card.scroll-reveal .studio-dark-panel,
.scroll-ready .studio-card.scroll-reveal .studio-panel-copy,
.scroll-ready .studio-card.scroll-reveal .studio-fact {
  backface-visibility: hidden;
  -webkit-font-smoothing: antialiased;
}
