@font-face {
  font-family: 'NexaHeavy';
  src: url('assets/fonts/Nexa-Heavy.ttf') format('truetype');
  font-display: swap;
}
@font-face {
  font-family: 'JollyClub';
  src: url('assets/fonts/jolly-club.otf') format('opentype');
  font-display: swap;
}
@font-face {
  font-family: 'NexaLight';
  src: url('assets/fonts/Nexa-ExtraLight.ttf') format('truetype');
  font-display: swap;
}

:root {
  --purple: #4238ff;
  --dark: #333344;
  --pink: #f94ed0;
  --green: #83e701;
  --white: #ffffff;
  --off: #f4f3f1;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

/* MixedText: palabras con tilde/ñ en JollyClub minúscula, el resto en la fuente del titular en mayúscula */
.word--accent { font-family: 'JollyClub', cursive; text-transform: lowercase; font-weight: 400; white-space: nowrap; }
.word--plain { text-transform: uppercase; white-space: nowrap; }

html { scroll-behavior: smooth; }

body {
  font-family: 'NexaLight', Arial, sans-serif;
  font-weight: 400;
  background: var(--white);
  color: var(--dark);
  overflow-x: hidden;
  cursor: none;
}

@media (pointer: coarse) {
  body { cursor: auto; }
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

/* ---------- custom cursor ---------- */
.cursor-dot, .cursor-ring {
  position: fixed; top: 0; left: 0; pointer-events: none; z-index: 999;
  transform: translate(-50%, -50%);
  mix-blend-mode: difference;
}
.cursor-dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--white);
}
.cursor-ring {
  width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid var(--white);
  background: rgba(255,255,255,.12);
  backdrop-filter: blur(6px) saturate(180%);
  -webkit-backdrop-filter: blur(6px) saturate(180%);
  display: flex; align-items: center; justify-content: center;
  transition: width .3s ease, height .3s ease;
}
.cursor-ring__label {
  font-size: 10px; letter-spacing: .08em; color: var(--white);
  opacity: 0; transition: opacity .25s ease; font-weight: 500;
}
.cursor-ring.is-active { width: 74px; height: 74px; }
.cursor-ring.is-active .cursor-ring__label { opacity: 1; }

/* En pantallas táctiles no hay puntero al que seguir, así que el cursor se
   quedaba clavado en la esquina superior izquierda. Esta regla tiene que ir
   DESPUÉS de las de arriba: .cursor-ring declara display:flex y, a igual
   especificidad, gana la última. Puesta antes se ocultaba el punto pero no
   el círculo, que es justo lo que se veía. */
@media (hover: none), (pointer: coarse) {
  .cursor-dot, .cursor-ring { display: none !important; }
}

/* ---------- glass: reusable liquid-glass pill ---------- */
.glass-pill {
  background: rgba(28, 28, 42, 0.58);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(255,255,255,.16);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.22), 0 14px 34px rgba(10,10,20,.18);
  border-radius: 999px;
}
/* liquid-glass interior with an AI-style gradient ring as ONLY the border (never bleeds inward) */
.glass-pill--ring {
  border: 2px solid transparent; border-radius: 999px;
  background:
    linear-gradient(rgba(255,255,255,.55), rgba(255,255,255,.55)) padding-box,
    conic-gradient(from var(--ring-angle,0deg), var(--pink), var(--purple), var(--green), var(--pink)) border-box;
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  animation: ringSpin 6s linear infinite;
}
@keyframes ringSpin { to { --ring-angle: 360deg; } }
@property --ring-angle { syntax: '<angle>'; inherits: false; initial-value: 0deg; }

/* glass interior, no animated ring — for secondary CTAs */
.btn--glass {
  background: rgba(255,255,255,.14); color: var(--white); border: 1px solid rgba(255,255,255,.3);
  backdrop-filter: blur(16px) saturate(180%); -webkit-backdrop-filter: blur(16px) saturate(180%);
}

/* ---------- nav: floating dynamic-island pills ---------- */
.nav {
  position: fixed; top: clamp(14px,2vw,26px); left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 0 clamp(16px, 3vw, 40px);
}
.nav__logo-pill { display: flex; align-items: center; padding: 10px 16px; flex-shrink: 0; }
.nav__logo-pill img { height: clamp(45px, 3.5vw, 58px); width: auto; mix-blend-mode: difference; }
.nav__pill { display: flex; align-items: center; gap: clamp(16px, 3vw, 34px); padding: 12px clamp(16px,2.6vw,30px); }
.nav__links { display: flex; gap: clamp(16px, 3vw, 40px); }
.nav__links a {
  color: var(--white); font-size: 13px; letter-spacing: .04em; overflow: hidden;
  display: inline-flex; mix-blend-mode: difference; transition: color .2s ease;
}
.nav__links a:hover { color: var(--pink); mix-blend-mode: normal; }
.nav__links a span { display: inline-block; }
.nav__clock {
  color: var(--white); font-size: 11px; letter-spacing: .08em; font-variant-numeric: tabular-nums;
  mix-blend-mode: difference;
}
.nav__links a { white-space: nowrap; }

.nav__burger {
  display: none; width: 58px; height: 58px; padding: 0; margin: 0; appearance: none; -webkit-appearance: none;
  align-items: center; justify-content: center; flex-direction: column; gap: 5px; cursor: pointer; flex-shrink: 0;
}
.nav__burger span { display: block; width: 18px; height: 2px; background: var(--white); border-radius: 2px; transition: transform .25s ease, opacity .2s ease; }

@media (max-width: 700px) {
  .nav__clock { display: none; }
  .nav { justify-content: center; gap: 12px; }
  .nav__burger { display: flex; }
  .nav__pill {
    position: fixed; top: 84px; left: 50%; z-index: 99;
    width: calc(100vw - 48px); max-width: 320px;
    padding: 20px 26px; border-radius: 28px;
    opacity: 0; visibility: hidden; pointer-events: none;
    transform: translate(-50%, -10px);
    transition: opacity .25s ease, transform .25s ease, visibility .25s;
  }
  .nav.is-open .nav__pill { opacity: 1; visibility: visible; pointer-events: auto; transform: translate(-50%, 0); }
  .nav__links { flex-direction: column; align-items: center; gap: 20px; }
  .nav__links a { font-size: 16px; }
  .nav.is-open .nav__burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav.is-open .nav__burger span:nth-child(2) { opacity: 0; }
  .nav.is-open .nav__burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

/* ---------- hero ---------- */
.hero {
  position: relative; height: 100svh; min-height: 560px; overflow: hidden;
  display: flex; align-items: flex-end;
  background: var(--dark);
}
.hero__video {
  position: absolute; inset: -5%; width: 110%; height: 110%; object-fit: cover;
}
.hero__scrim {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(51,51,68,.55) 0%, rgba(51,51,68,.25) 40%, rgba(51,51,68,.85) 100%);
}
.deco-line { position: absolute; top: -10px; right: 6%; width: min(26vw, 260px); opacity: .9; z-index: 0; }
.hero__dot { position: absolute; bottom: 22%; left: 6%; width: 14px; }
.hero__corner {
  position: absolute; color: rgba(255,255,255,.45); font-size: 14px; font-family: monospace;
}
.hero__corner--tl { top: 84px; left: 20px; }
.hero__corner--tr { top: 84px; right: 20px; }
.hero__corner--bl { bottom: 60px; left: 20px; }
.hero__corner--br { bottom: 60px; right: 20px; }

.hero__content { position: relative; z-index: 2; padding: 0 clamp(20px, 4vw, 56px) 90px; color: var(--white); }
.hero__eyebrow {
  font-family: 'JollyClub', cursive; font-size: clamp(16px, 2.2vw, 24px);
  color: var(--pink); margin-bottom: 10px; overflow: hidden;
}
.hero__eyebrow .word--plain, .hero__eyebrow .word--accent { text-transform: lowercase; }
.hero__title {
  font-family: 'NexaHeavy', 'NexaLight', sans-serif; font-weight: 400;
  font-size: clamp(38px, 8vw, 108px); line-height: .95; letter-spacing: -.01em;
  max-width: 16ch; overflow: hidden;
}
.hero__eyebrow span, .hero__title span, .overlap__heading span, .section-label span, .nav__links a span, .cierre__title span {
  display: inline-block; will-change: transform;
}

.hero__meta { position: absolute; left: 20px; bottom: 24px; z-index: 2; color: rgba(255,255,255,.7); font-size: 11px; letter-spacing: .1em; font-family: monospace; transition: color .25s ease; }
/* Lleva a Maps: sin alguna señal al pasar por encima no se intuye que se puede pulsar. */
.hero__meta:hover { color: var(--white); text-decoration: underline; text-underline-offset: 4px; }
.scroll-hint {
  position: absolute; right: 20px; bottom: 24px; z-index: 2; color: rgba(255,255,255,.7);
  font-size: 11px; letter-spacing: .1em; animation: bob 1.8s ease-in-out infinite;
}
@keyframes bob { 0%,100%{transform:translateY(0)} 50%{transform:translateY(6px)} }

.btn {
  position: relative; z-index: 2;
  display: inline-flex; align-items: center; gap: 10px; margin-top: 28px;
  padding: 14px 26px; border-radius: 999px; background: var(--purple); color: var(--white);
  font-size: 14px; font-weight: 500; letter-spacing: .02em;
}
.btn--light { background: var(--white); color: var(--purple); }
.btn--ghost { background: transparent; border: 1.5px solid currentColor; }
.btn--glass, .btn.glass-pill--ring { color: var(--white); }
.btn.glass-pill--ring {
  color: var(--dark);
  background:
    linear-gradient(rgba(255,255,255,.55), rgba(255,255,255,.55)) padding-box,
    conic-gradient(from var(--ring-angle,0deg), var(--pink), var(--purple), var(--green), var(--pink)) border-box;
}

/* ---------- section label ---------- */
.section-label {
  position: relative; z-index: 2; color: var(--white); mix-blend-mode: difference;
  font-family: 'NexaHeavy', sans-serif; font-weight: 400;
  font-size: clamp(28px, 5vw, 56px); text-align: center;
  padding: clamp(60px,10vw,120px) 20px 40px; overflow: hidden;
}

/* ---------- clientes / horizontal filmstrip ---------- */
.clientes { background: var(--off); overflow: hidden; }
.clientes__viewport { height: 100vh; display: flex; flex-direction: column; justify-content: center; overflow: hidden; }
.clientes__viewport .section-label { padding-bottom: 50px; }
.clientes__track { display: flex; gap: 28px; padding: 0 6vw; width: max-content; will-change: transform; }
.client-card {
  width: min(260px, 46vw); height: min(260px, 40vh); flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: var(--white); border-radius: 28px; box-shadow: 0 24px 50px rgba(51,51,68,.14);
}
.client-card img { width: 55%; height: 55%; object-fit: contain; will-change: transform; }
.client-card--end {
  background: var(--purple); color: var(--white); text-align: center;
  font-family: 'NexaHeavy', sans-serif; font-size: clamp(18px, 2vw, 24px); line-height: 1.25; padding: 20px;
}
.h-scroll-hint { display: flex; justify-content: center; margin: 40px 0 32px; color: rgba(51,51,68,.4); }
.h-scroll-hint__track {
  position: relative; display: block; width: 64px; height: 28px;
  border: 2px solid currentColor; border-radius: 999px; opacity: .7;
}
.h-scroll-hint__dot {
  position: absolute; top: 5px; left: 5px; width: 16px; height: 16px;
  border-radius: 50%; background: currentColor;
  animation: hScrollHintSlide 1.6s ease-in-out infinite;
}
@keyframes hScrollHintSlide { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(36px); } }
.h-scroll-hint--light { color: rgba(255,255,255,.6); }
@media (prefers-reduced-motion: reduce) { .h-scroll-hint__dot { animation: none; left: 12px; } }

/* ---------- instagram filmstrip (same pin+translateX pattern) ---------- */
.insta { background: var(--dark); overflow: hidden; }
.insta__viewport { height: 100vh; display: flex; flex-direction: column; overflow: hidden; }
.insta__viewport .section-label { color: var(--white); padding: 100px 20px 30px; flex-shrink: 0; }
.insta__track { display: flex; gap: 2px; width: max-content; flex: 1; will-change: transform; }
.insta-card {
  width: min(340px, 60vw); height: 100%; flex-shrink: 0; overflow: hidden;
  position: relative; display: block;
}
.insta-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.insta-card:hover img { transform: scale(1.06); }
.insta-card--pending {
  display: flex; align-items: center; justify-content: center; text-align: center;
  background: repeating-linear-gradient(45deg, rgba(255,255,255,.06), rgba(255,255,255,.06) 10px, transparent 10px, transparent 20px), var(--dark);
  border: 1.5px dashed rgba(255,255,255,.3); color: rgba(255,255,255,.55);
  font-size: 12px; letter-spacing: .08em; font-weight: 600;
}
.insta-card--end {
  display: flex; align-items: center; justify-content: center; text-align: center; padding: 20px;
  background: var(--purple); color: var(--white);
  font-family: 'NexaHeavy', sans-serif; font-size: clamp(15px, 1.6vw, 19px); line-height: 1.3;
}

/* ---------- estudio / overlap ---------- */
.estudio { position: relative; background: var(--dark); color: var(--white); padding: 40px 20px 110px; text-align: center; }
.team-carousel {
  position: relative; z-index: 2; display: flex; justify-content: center; flex-wrap: nowrap;
  gap: clamp(10px, 2.5vw, 28px); max-width: 1200px; margin: 10px auto 0;
}
.team-photo {
  width: clamp(60px, 20vw, 220px); height: clamp(60px, 20vw, 220px);
  flex-shrink: 1; min-width: 0;
  border-radius: 22px; border: none; cursor: pointer; padding: 0;
  background-image: var(--img); background-size: cover; background-position: center top;
  opacity: .32; filter: grayscale(70%); transform: scale(.94);
  transition: opacity .35s ease, filter .35s ease, transform .35s ease, box-shadow .35s ease;
}
@media (max-width: 700px) {
  .team-carousel { flex-wrap: wrap; }
}
.team-photo:hover, .team-photo.is-active {
  opacity: 1; filter: grayscale(0%); transform: scale(1);
  box-shadow: 0 16px 34px rgba(0,0,0,.4);
}
.team-photo.is-active { outline: 2px solid var(--pink); outline-offset: 3px; }
.scramble-text {
  max-width: 640px; margin: 30px auto 18px; font-size: clamp(16px, 2.2vw, 22px);
  line-height: 1.5; font-family: monospace; color: var(--white);
}
.overlap__cite { font-size: 14px; color: rgba(255,255,255,.65); letter-spacing: .02em; }
.js-fall-word span.fall-letter { display: inline-block; color: var(--pink); font-weight: 500; }

/* ---------- floating brand doodles (siempre detrás del texto) ---------- */
.floater {
  position: absolute; z-index: 1; width: clamp(90px, 13vw, 200px); pointer-events: none;
  top: var(--floater-top, 20%); left: var(--floater-left, 8%);
  filter: drop-shadow(0 18px 30px rgba(51,51,68,.22));
}
.text-cover { transition: color .25s ease; }
.text-cover.is-covered { color: #0d0d12 !important; mix-blend-mode: normal !important; }
.trabajos .floater:nth-of-type(1) { --floater-top: 2%; --floater-left: 4%; }
.trabajos .floater:nth-of-type(2) { --floater-top: 3%; --floater-left: 82%; }
.trabajos .floater { opacity: .5; }
.mas-trabajos .floater { --floater-top: 4%; --floater-left: 66%; }
.cierre .floater { --floater-top: 12%; --floater-left: 10%; }
.estudio .floater { --floater-top: 2%; --floater-left: 62%; }

/* ---------- marquee: frase destacada cruzando ---------- */
.marquee {
  background: var(--green); color: var(--dark); overflow: hidden;
  padding: 26px 0; transform: rotate(-1.6deg) scale(1.03);
  box-shadow: 0 10px 0 rgba(0,0,0,.06);
}
.marquee__track {
  display: flex; align-items: center; gap: 28px; width: max-content;
  white-space: nowrap; animation: marquee 22s linear infinite;
  font-family: 'NexaHeavy', sans-serif; font-size: clamp(20px, 4vw, 40px);
}
.marquee__glyph { color: var(--purple); font-size: .7em; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee__track { animation: none; } }

/* ---------- trabajos (sticky index) ---------- */
.trabajos { position: relative; background: var(--white); padding-bottom: 60px; }
.trabajos__intro { position: relative; z-index: 2; max-width: 620px; margin: -20px auto 50px; padding: 0 24px; text-align: center; font-size: 15px; line-height: 1.6; color: rgba(51,51,68,.65); }
/* ---------- trabajos: acordeón por categoría ---------- */
.work { position: relative; z-index: 2; max-width: 1100px; margin: 0 auto; padding: 0 24px; }
.work-cat-group { border-bottom: 1px solid rgba(51,51,68,.14); }
.work-cat-group:first-child .work-cat-toggle { padding-top: 6px; }
.work-cat-toggle {
  width: 100%; display: flex; align-items: center; gap: 16px; justify-content: space-between;
  padding: 28px 4px; background: none; border: none; cursor: pointer; text-align: left; color: var(--dark);
}
.work-cat-toggle__label { display: flex; align-items: baseline; gap: 12px; }
.work-cat-toggle__name { font-family: 'NexaHeavy', sans-serif; font-size: clamp(20px, 3vw, 32px); }
.work-cat-toggle__count { font-family: 'NexaLight', sans-serif; font-size: 14px; color: rgba(51,51,68,.5); }
.work-cat-toggle__icon { position: relative; width: 26px; height: 26px; flex-shrink: 0; }
.work-cat-toggle__icon::before, .work-cat-toggle__icon::after {
  content: ''; position: absolute; background: var(--purple); transition: transform .3s ease, opacity .3s ease;
}
.work-cat-toggle__icon::before { top: 50%; left: 0; width: 100%; height: 2px; margin-top: -1px; }
.work-cat-toggle__icon::after { left: 50%; top: 0; height: 100%; width: 2px; margin-left: -1px; }
.work-cat-group.is-open .work-cat-toggle__icon::after { transform: rotate(90deg); opacity: 0; }
.work-cat-panel { max-height: 0; overflow: hidden; transition: max-height .45s ease; }
.work-cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px,1fr)); gap: 18px; padding: 6px 0 40px; }
.work-card { position: relative; display: block; border-radius: 18px; overflow: hidden; aspect-ratio: 4/3; background: var(--off); }
.work-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.work-card:hover img { transform: scale(1.06); }
.work-card__overlay {
  position: absolute; inset: 0; display: flex; align-items: flex-end; padding: 16px;
  background: linear-gradient(180deg, transparent 45%, rgba(20,20,28,.85) 100%);
}
.work-card__title { color: var(--white); font-family: 'NexaHeavy', sans-serif; font-size: 14px; line-height: 1.3; }
.work-card--pending { background: linear-gradient(135deg, var(--dark), #17172180); }
.work-card--pending .work-card__overlay { background: linear-gradient(180deg, rgba(20,20,28,.15) 0%, rgba(20,20,28,.9) 100%); }
.work-card__pending-tag {
  position: absolute; top: 12px; right: 12px; font-size: 9px; letter-spacing: .08em; text-transform: uppercase;
  color: rgba(255,255,255,.55); border: 1px solid rgba(255,255,255,.3); border-radius: 999px; padding: 4px 9px;
}

/* ---------- mas-trabajos / falling cards ---------- */
.mas-trabajos { position: relative; background: var(--white); padding-bottom: 120px; overflow: hidden; }
.cards-grid {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px;
  max-width: 1180px; margin: 0 auto; padding: 0 24px; perspective: 1000px;
}
.fall-card {
  border-radius: 18px; overflow: hidden; background: var(--off);
  box-shadow: 0 16px 34px rgba(51,51,68,.14); position: relative;
}
.fall-card img { aspect-ratio: 4/3; object-fit: cover; }
.fall-card span {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 12px 14px;
  font-size: 12px; font-weight: 500; color: var(--white);
  background: linear-gradient(0deg, rgba(51,51,68,.85), transparent);
}
@media (max-width: 860px) {
  .cards-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- cierre ---------- */
.cierre {
  position: relative; overflow: hidden;
  background: var(--purple); color: var(--white); text-align: center;
  padding: clamp(80px,12vw,160px) 20px; display: flex; flex-direction: column; align-items: center;
}
.cierre__title {
  position: relative; z-index: 2; color: var(--white);
  font-family: 'NexaHeavy', sans-serif; font-weight: 400;
  font-size: clamp(30px, 6vw, 74px); max-width: 16ch; line-height: 1.02; overflow: hidden;
}
.cierre__social { position: relative; z-index: 2; display: flex; gap: 24px; margin-top: 28px; font-size: 13px; letter-spacing: .04em; }
.cierre__social a { opacity: .8; }
.cierre__social a:hover { opacity: 1; }
.cierre__logo { position: relative; z-index: 2; display: inline-flex; margin-top: 56px; opacity: .9; transition: opacity .2s ease; }
.cierre__logo img { height: clamp(60px, 9vw, 120px); width: auto; }
.cierre__logo:hover { opacity: 1; }

/* ---------- brand divider: logo mark between sections ---------- */
.brand-divider { display: flex; align-items: center; justify-content: center; padding: clamp(36px,6vw,64px) 20px; }
.brand-divider img { height: clamp(32px, 4.5vw, 50px); width: auto; opacity: .7; }
.brand-divider--dark { background: var(--dark); }
.brand-divider--light { background: var(--off); }

/* ---------- sub-pages (estudio / servicios / contacto) ---------- */
.subpage-hero {
  padding: clamp(140px,20vw,220px) 20px 60px; text-align: center; background: var(--white);
}
.subpage-hero__title {
  font-family: 'NexaHeavy', sans-serif; font-weight: 400; overflow: hidden;
  font-size: clamp(40px, 9vw, 110px); color: var(--dark);
}
.subpage-hero__intro { max-width: 620px; margin: 24px auto 0; font-size: clamp(15px,1.6vw,18px); line-height: 1.6; color: rgba(51,51,68,.75); }
.stats-row { display: flex; justify-content: center; gap: clamp(30px,6vw,80px); margin-top: 50px; flex-wrap: wrap; }
.stat { display: flex; flex-direction: column; align-items: center; }
.stat__num { font-family: 'NexaHeavy', sans-serif; font-size: clamp(36px,5vw,56px); color: var(--purple); overflow: hidden; display: inline-block; }
.stat__label { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: rgba(51,51,68,.6); margin-top: 6px; }

.subpage-section { padding: clamp(60px,8vw,110px) 20px; background: var(--white); }
.subpage-section--dark { background: var(--dark); color: var(--white); }
.subpage-section--dark .value-card p { color: rgba(255,255,255,.7); }

/* ---------- real-content article body (proyecto-* / blog-post-* pages) ---------- */
.article-body { max-width: 720px; margin: 0 auto; }
.article-body p { font-size: 15px; line-height: 1.75; color: rgba(51,51,68,.8); margin-bottom: 16px; }
.article-body p:last-child { margin-bottom: 0; }
.article-body strong { color: var(--dark); }
.article-body h3 { font-family: 'NexaHeavy', sans-serif; font-weight: 400; font-size: clamp(20px,2.6vw,28px); color: var(--dark); margin: 38px 0 14px; }
.article-body ul { margin: 0 0 16px; padding-left: 20px; }
.article-body li { font-size: 15px; line-height: 1.7; color: rgba(51,51,68,.8); margin-bottom: 6px; }
.subpage-section--dark .article-body p, .subpage-section--dark .article-body li { color: rgba(255,255,255,.75); }
.subpage-section--dark .article-body strong { color: var(--white); }

.article-meta { text-align: center; font-size: 13px; letter-spacing: .04em; color: rgba(51,51,68,.55); margin-bottom: 40px; }

.article-gallery {
  display: flex; width: 100vw; position: relative; left: 50%; margin-left: -50vw;
  height: clamp(280px, 56vh, 620px); gap: 3px; margin-top: 10px; margin-bottom: 50px;
  overflow: hidden; background: var(--dark);
}
.pending-banner {
  width: 100vw; position: relative; left: 50%; margin-left: -50vw;
  height: clamp(220px, 40vh, 420px); margin: 10px 0 50px;
  background: linear-gradient(135deg, var(--dark), #1a1a26);
  display: flex; align-items: center; justify-content: center;
}
.pending-banner span {
  color: rgba(255,255,255,.4); font-size: 11px; letter-spacing: .1em; text-transform: uppercase;
  border: 1px solid rgba(255,255,255,.25); border-radius: 999px; padding: 10px 22px;
}
.article-gallery img {
  flex: 1 1 0%; min-width: 0; height: 100%; width: 100%;
  object-fit: cover; object-position: center; cursor: pointer;
  transition: flex-grow .7s cubic-bezier(.19,1,.22,1);
}
.article-gallery img:hover { flex-grow: 6; }
@media (max-width: 720px) {
  .article-gallery { flex-direction: column; height: auto; gap: 2px; }
  .article-gallery img { flex: none; height: auto; aspect-ratio: 4/3; }
  .article-gallery img:hover { flex-grow: 0; }
}

.yt-embed { position: relative; width: 100%; max-width: 820px; aspect-ratio: 16/9; margin: 0 auto 40px; border-radius: 18px; overflow: hidden; box-shadow: 0 24px 50px rgba(51,51,68,.16); }
.yt-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.pull-quote { max-width: 680px; margin: 40px auto; padding: 30px 34px; border-left: 4px solid var(--purple); background: rgba(66,56,255,.05); border-radius: 4px 18px 18px 4px; }
.pull-quote p { font-family: 'NexaHeavy', sans-serif; font-weight: 400; font-size: clamp(17px,2vw,21px); color: var(--dark); line-height: 1.5; margin: 0 0 10px; }
.pull-quote cite { font-style: normal; font-size: 13px; color: rgba(51,51,68,.6); }
.subpage-section--dark .pull-quote { background: rgba(255,255,255,.06); }
.subpage-section--dark .pull-quote p { color: var(--white); }
.subpage-section--dark .pull-quote cite { color: rgba(255,255,255,.55); }

.project-links { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 10px; }

.values-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px,1fr)); gap: 30px;
  max-width: 1100px; margin: 40px auto 0;
}
.value-card h3 { font-size: 19px; margin-bottom: 10px; }
.value-card p { font-size: 14px; line-height: 1.6; color: rgba(51,51,68,.7); }

.team-grid {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 26px;
  max-width: 1500px; margin: 40px auto 0;
}
.team-grid--sm { grid-template-columns: repeat(auto-fit, minmax(200px,1fr)); }
.team-grid--md { grid-template-columns: repeat(auto-fit, minmax(220px,1fr)); }
.team-grid--lg { grid-template-columns: repeat(auto-fit, minmax(240px,1fr)); }
.team-grid--xl { grid-template-columns: repeat(auto-fit, minmax(260px,1fr)); }
@media (max-width: 480px) {
  .team-grid, .team-grid--sm, .team-grid--md, .team-grid--lg, .team-grid--xl { grid-template-columns: repeat(2, 1fr); gap: 16px; }
}
.team-card { display: block; color: inherit; text-align: center; }
.team-card img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 22px; margin-bottom: 14px; filter: grayscale(40%); transition: filter .3s ease, transform .3s ease; }
.team-card:hover img { filter: grayscale(0%); transform: scale(1.03); }
.team-card h3 { font-size: 16px; }
.team-card p { font-size: 12px; opacity: .65; margin-top: 3px; }

.post-card { display: block; color: inherit; }
.post-card img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 18px; margin-bottom: 14px; transition: transform .3s ease; }
.post-card:hover img { transform: scale(1.02); }
.post-card h3 { font-size: 16px; line-height: 1.35; }
.post-card p { font-size: 12px; opacity: .6; margin-top: 5px; }

.studio-gallery { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; max-width: 1100px; margin: 40px auto 0; }
.studio-gallery img { width: 100%; height: clamp(180px,26vw,320px); object-fit: cover; border-radius: 20px; }

.bento { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; max-width: 1100px; margin: 0 auto; }
.service-block {
  position: relative; grid-column: span 1; padding: clamp(28px,4vw,44px);
  border-radius: 28px; background: var(--off); border: 1px solid rgba(51,51,68,.08);
  overflow: hidden;
}
.service-block--wide { grid-column: 1 / -1; }
.service-block__num {
  position: absolute; top: 18px; right: 26px; font-family: 'NexaHeavy', sans-serif;
  font-size: clamp(50px,7vw,90px); color: rgba(66,56,255,.1); line-height: 1; user-select: none;
}
.service-block h2 { position: relative; font-family: 'NexaHeavy', sans-serif; font-weight: 400; font-size: clamp(22px,3vw,32px); color: var(--purple); margin-bottom: 16px; max-width: 80%; }
.service-block p { position: relative; font-size: 15px; line-height: 1.7; color: rgba(51,51,68,.8); margin-bottom: 14px; }
.service-block__tags { position: relative; display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; }
.service-block__tags span { font-size: 11px; letter-spacing: .06em; text-transform: uppercase; padding: 6px 14px; border-radius: 999px; background: var(--white); color: var(--dark); }
@media (max-width: 760px) { .bento { grid-template-columns: 1fr; } .service-block { grid-column: 1 / -1; } }

@media (max-width: 640px) {
  .studio-gallery { grid-template-columns: 1fr; }
}

/* ---------- contact form ---------- */
.contact-form { display: flex; flex-direction: column; gap: 22px; background: var(--white); padding: clamp(24px,4vw,44px); border-radius: 28px; box-shadow: 0 30px 70px rgba(51,51,68,.1); }
.contact-form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.contact-form label { display: flex; flex-direction: column; gap: 8px; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: rgba(51,51,68,.55); font-weight: 600; }
.contact-form input, .contact-form textarea {
  font-family: 'NexaLight', sans-serif; font-size: 16px; padding: 15px 18px; border-radius: 14px;
  border: 1.5px solid rgba(51,51,68,.14); background: var(--off); color: var(--dark); resize: vertical;
  transition: border-color .2s ease, background .2s ease;
}
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-color: var(--purple); background: var(--white); }
.contact-form button { align-self: flex-start; border: none; cursor: pointer; margin-top: 6px; }
@media (max-width: 560px) { .contact-form__row { grid-template-columns: 1fr; } }

/* ---------- home: blog teaser grid ---------- */
.blog { position: relative; overflow: hidden; background: var(--off); padding-bottom: clamp(70px,9vw,120px); }
.blog__intro { text-align: center; max-width: 460px; margin: -20px auto 40px; color: rgba(51,51,68,.65); font-size: 15px; }
.blog__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px,1fr)); gap: 22px; max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.blog-tile {
  display: block; padding: 30px; border-radius: 26px; min-height: 220px; color: var(--white);
  position: relative; overflow: hidden; box-shadow: 0 24px 50px rgba(51,51,68,.14);
}
.blog-tile__tag { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; opacity: .75; }

/* ---------- higuera feature (revista, portada + texto) ---------- */
.higuera-feature { display: grid; grid-template-columns: minmax(180px,260px) 1fr; gap: clamp(24px,4vw,50px); align-items: start; }
.higuera-feature__cover { width: 100%; border-radius: 18px; box-shadow: 0 24px 50px rgba(51,51,68,.15); }
.higuera-feature__num { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; opacity: .75; color: var(--purple); }
.higuera-feature__title { font-family: 'NexaHeavy', sans-serif; font-weight: 400; font-size: clamp(26px,3.6vw,40px); color: var(--dark); margin: 6px 0 18px; }
.higuera-feature__body { font-size: 15px; line-height: 1.7; color: rgba(51,51,68,.8); margin-bottom: 14px; }
@media (max-width: 640px) {
  .higuera-feature { grid-template-columns: 1fr; gap: 26px; text-align: center; }
  .higuera-feature__cover { max-width: 240px; margin: 0 auto; display: block; }
  .higuera-feature__body { text-align: left; }
}
.blog-tile h3 { font-family: 'NexaHeavy', sans-serif; font-weight: 400; font-size: clamp(24px,2.6vw,32px); margin: 50px 0 10px; }
.blog-tile p { font-size: 13px; line-height: 1.5; opacity: .85; max-width: 30ch; }
.blog-tile--purple { background: var(--purple); }
.blog-tile--dark { background: var(--dark); }
.blog-tile--pink { background: var(--pink); color: var(--dark); }
.blog-tile--green { background: var(--green); color: var(--dark); }
.blog-tile--photo { background-image: linear-gradient(180deg, rgba(20,20,30,.1), rgba(20,20,30,.75)), var(--photo); background-size: cover; background-position: center; color: var(--white); }

/* ---------- línea legal, al final de todas las páginas ---------- */
.pie-legal {
  background: var(--dark); color: rgba(255,255,255,.45);
  text-align: center; padding: 22px 24px; margin: 0;
  font-size: 11px; letter-spacing: .06em;
}
.pie-legal a { color: rgba(255,255,255,.7); transition: color .2s ease; }
.pie-legal a:hover { color: var(--white); text-decoration: underline; text-underline-offset: 3px; }
