/* ============================================================
   Maxi Ríos — sitio
   Base: la página de espera. Negro, minimalismo, turquesa solo cuando hace falta.
   Texto = rótulos. La obra carga el peso.
   ============================================================ */

@font-face { font-family: 'Space Grotesk'; src: url('../assets/fonts/SpaceGrotesk-Light.ttf') format('truetype'); font-weight: 300; font-display: swap; }
@font-face { font-family: 'Space Grotesk'; src: url('../assets/fonts/SpaceGrotesk-Regular.ttf') format('truetype'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Space Grotesk'; src: url('../assets/fonts/SpaceGrotesk-Medium.ttf') format('truetype'); font-weight: 500; font-display: swap; }

:root {
  --fondo: #000;
  --panel: #0B0C0E;
  --blanco: #fff;
  --turquesa: #59B9C7;
  --texto-2: #9AA1AE;
  --texto-3: #5E6572;
  --linea: rgba(255,255,255,.12);
  --margen: clamp(20px, 4vw, 64px);
  --ease: cubic-bezier(.2,.7,.1,1);
  --ease-io: cubic-bezier(.7,0,.2,1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { background: var(--fondo); color-scheme: dark; scroll-behavior: smooth; }
body {
  background: var(--fondo); color: var(--blanco);
  font-family: 'Space Grotesk', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
:focus-visible { outline: 1px solid var(--turquesa); outline-offset: 4px; }
::selection { background: var(--turquesa); color: #000; }

.rot { /* rótulo: lo único que se lee */
  font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--texto-2);
}
.num { font-variant-numeric: tabular-nums; }

/* ── Barra ── */
.barra {
  position: fixed; inset: 0 0 auto; z-index: 50;
  display: flex; justify-content: space-between; align-items: center;
  padding: 22px var(--margen);
}
/* Degradado negro detrás del menú: contraste sobre cualquier foto y se funde con el fondo.
   La marca va en positivo (blanco + turquesa), sin inversión de color. */
.barra::before {
  content: ''; position: absolute; inset: 0 0 -56px; z-index: -1; pointer-events: none;
  background: linear-gradient(180deg, rgba(0,0,0,.82) 0%, rgba(0,0,0,.45) 55%, rgba(0,0,0,0) 100%);
}
.barra__iso img { width: 30px; height: auto; }
.barra nav { display: flex; gap: clamp(18px, 2.4vw, 36px); font-size: 14px; }
.barra nav a { position: relative; opacity: .85; transition: opacity .3s; }
.barra nav a:hover { opacity: 1; }
.barra nav a::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -4px; height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: right; transition: transform .45s var(--ease);
}
.barra nav a:hover::after { transform: scaleX(1); transform-origin: left; }

/* ── Portada (la página de espera) ── */
.portada {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: grid; grid-template-rows: 1fr auto;
  padding: calc(var(--margen) + 56px) var(--margen) var(--margen);
  overflow: hidden; isolation: isolate;
}
.iso {
  position: absolute; z-index: -1; top: 50%; right: calc(var(--margen) * -1.2);
  height: min(78vh, 62vw); width: auto; transform: translateY(-50%); overflow: visible;
}
.iso__trazo {
  fill: none; stroke: rgba(255,255,255,.22); stroke-width: 1; vector-effect: non-scaling-stroke;
  stroke-dasharray: 1; stroke-dashoffset: 1; animation: trazo 2.6s var(--ease) .3s forwards;
}
.iso__acento {
  fill: var(--turquesa); opacity: 0; transform: translate(-60px,-60px);
  animation: acento 1.1s var(--ease) 2.3s forwards;
}
@keyframes trazo  { to { stroke-dashoffset: 0; } }
@keyframes acento { to { opacity: 1; transform: none; } }
.portada__nombre { align-self: center; }
.portada__nombre h1 {
  font-weight: 300; font-size: clamp(64px, 13.5vw, 232px); line-height: .86;
  letter-spacing: -.055em; margin-left: -.06em;
}
.portada__nombre h1 span { display: block; }
.portada__nombre p { margin-top: clamp(24px, 3vw, 40px); font-size: clamp(15px, 1.25vw, 19px); color: var(--texto-2); }
.portada__nombre p i { font-style: normal; color: var(--texto-3); padding-inline: .5em; }
.portada__pie {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 20px; border-top: 1px solid var(--linea);
}
.bajar { display: inline-flex; align-items: center; gap: 12px; }
.bajar__linea { width: 1px; height: 28px; background: var(--linea); position: relative; overflow: hidden; }
.bajar__linea::after {
  content: ''; position: absolute; inset: 0; background: var(--blanco);
  transform: translateY(-100%); animation: cae 2.2s var(--ease-io) 3s infinite;
}
@keyframes cae { 60%,100% { transform: translateY(100%); } }

.sube { opacity: 0; transform: translateY(18px); animation: sube 1s var(--ease) forwards; }
.portada__nombre h1 span:nth-child(1) { animation-delay: .15s; }
.portada__nombre h1 span:nth-child(2) { animation-delay: .27s; }
.portada__nombre p { animation-delay: .5s; }
.portada__pie { animation-delay: .7s; }
@keyframes sube { to { opacity: 1; transform: none; } }

/* ── Destacados: un trabajo por pantalla, la foto manda ── */
.destacado {
  position: relative; height: 100vh; height: 100svh; min-height: 560px;
  overflow: hidden; display: block; cursor: none;
}
.destacado__lienzo {
  position: absolute; inset: 0;
  clip-path: inset(12% 6% 12% 6%);
  transition: clip-path 1.4s var(--ease-io);
}
.destacado.dentro .destacado__lienzo { clip-path: inset(0 0 0 0); }
.destacado__img {
  position: absolute; left: 0; right: 0; top: -8%; height: 116%; width: 100%;
  object-fit: cover; transform: scale(1.12);
  transition: transform 2s var(--ease);
  will-change: transform;
}
.destacado.dentro .destacado__img { transform: scale(1); }
.destacado__velo {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.35) 0%, transparent 22%, transparent 55%, rgba(0,0,0,.72) 100%);
}
.destacado__ficha {
  position: absolute; left: var(--margen); right: var(--margen); bottom: var(--margen);
  display: flex; justify-content: space-between; align-items: flex-end; gap: 24px;
}
.destacado__nombre {
  font-weight: 400; font-size: clamp(44px, 7.4vw, 128px); line-height: .9; letter-spacing: -.045em;
  overflow: hidden;
}
.destacado__nombre span { display: block; transform: translateY(105%); transition: transform 1.1s var(--ease) .35s; }
.destacado.dentro .destacado__nombre span { transform: none; }
.destacado__datos { display: flex; gap: 28px; padding-bottom: .6em; opacity: 0; transition: opacity .8s .7s; }
.destacado.dentro .destacado__datos { opacity: 1; }
.destacado__indice { position: absolute; top: calc(var(--margen) + 56px); right: var(--margen); }
.destacado__indice b { color: var(--blanco); font-weight: 400; }

/* Cursor propio: aparece solo sobre obra */
.cursor {
  position: fixed; left: 0; top: 0; z-index: 60; pointer-events: none;
  width: 104px; height: 104px; margin: -52px 0 0 -52px; border-radius: 50%;
  background: var(--turquesa); color: #000;
  display: grid; place-items: center;
  font-size: 11px; letter-spacing: .14em; text-transform: uppercase; font-weight: 500;
  transform: scale(0); transition: transform .45s var(--ease);
}
.cursor.activo { transform: scale(1); }

/* ── Encabezado de sección: rótulo + cifra ── */
.seccion { padding: clamp(96px, 14vw, 200px) var(--margen) 0; }
.enc {
  display: flex; justify-content: space-between; align-items: baseline;
  padding-bottom: 20px; border-bottom: 1px solid var(--linea); margin-bottom: clamp(24px, 3vw, 40px);
}
.enc h2 { font-weight: 300; font-size: clamp(40px, 6vw, 104px); letter-spacing: -.045em; line-height: .9; }

/* ── Archivo: índice filtrable ── */
.filtros { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: clamp(24px, 3vw, 40px); }
.filtro {
  padding: 9px 16px; border: 1px solid var(--linea); border-radius: 999px;
  font-size: 13px; color: var(--texto-2); transition: color .3s, border-color .3s, background .3s;
}
.filtro sup { font-size: 10px; margin-left: 4px; color: var(--texto-3); }
.filtro:hover { color: var(--blanco); border-color: rgba(255,255,255,.4); }
.filtro[aria-pressed="true"] { background: var(--blanco); color: #000; border-color: var(--blanco); }
.filtro[aria-pressed="true"] sup { color: #000; opacity: .5; }

.indice { list-style: none; }
.indice li { display: block; }
.fila {
  display: grid; grid-template-columns: 1fr 200px 64px; align-items: center; gap: 24px;
  padding: clamp(14px, 1.6vw, 22px) 0; border-bottom: 1px solid var(--linea);
  transition: opacity .35s, padding .45s var(--ease);
}
.fila__nombre { font-size: clamp(24px, 3.2vw, 52px); font-weight: 300; letter-spacing: -.03em; line-height: 1; transition: transform .45s var(--ease); }
.fila__disc, .fila__ano { font-size: 14px; color: var(--texto-2); }
.fila__ano { text-align: right; }
.fila__mini { display: none; }
.indice:hover .fila { opacity: .28; }
.indice .fila:hover { opacity: 1; }
.indice .fila:hover .fila__nombre { transform: translateX(14px); }
.fila[hidden] { display: none; }

.vista { /* imagen flotante que sigue al puntero */
  position: fixed; left: 0; top: 0; z-index: 40; pointer-events: none;
  width: clamp(260px, 26vw, 420px); aspect-ratio: 4/3; overflow: hidden; border-radius: 4px;
  opacity: 0; transform: scale(.86); transition: opacity .35s, transform .5s var(--ease);
}
.vista.activa { opacity: 1; transform: scale(1); }
.vista img { width: 100%; height: 100%; object-fit: cover; }

/* ── Logofolio ── */
.logos {
  display: grid; grid-template-columns: repeat(5, 1fr);
  border-top: 1px solid var(--linea); border-left: 1px solid var(--linea);
}
.logo {
  position: relative; aspect-ratio: 1/1; overflow: hidden;
  border-right: 1px solid var(--linea); border-bottom: 1px solid var(--linea);
  display: grid; place-items: center;
}
.logo { transition: background-color .6s var(--ease); }
.logo__marca {
  width: 54%; height: 38%; object-fit: contain; opacity: .7;
  transition: opacity .5s, transform .8s var(--ease), filter .5s;
}
.logo__pie {
  position: absolute; left: 20px; right: 20px; bottom: 18px;
  display: flex; justify-content: space-between; gap: 12px; color: #fff;
  opacity: 0; transform: translateY(8px); transition: opacity .4s, transform .5s var(--ease);
}
.logo:hover, .logo:focus-visible { background-color: var(--c, #1a1e26); }
.logo:hover .logo__marca, .logo:focus-visible .logo__marca { opacity: 1; transform: scale(1.06); }
.logo:hover .logo__pie, .logo:focus-visible .logo__pie { opacity: 1; transform: none; }
.logo--claro:hover .logo__marca, .logo--claro:focus-visible .logo__marca { filter: brightness(0); }
.logo--claro:hover .logo__pie, .logo--claro:focus-visible .logo__pie { color: #000; }

/* Bloques de proyecto */
/* Pares y tríos: misma altura, ancho proporcional a cada foto (--r = ancho/alto). Nunca recorta. */
.trio, .par { display: flex; align-items: flex-start; gap: clamp(8px, 1vw, 16px); }
.trio img, .par img { flex: var(--r, 1) 1 0%; min-width: 0; width: auto; height: auto; }
.bloque.telefonos {
  display: flex; justify-content: center; align-items: center; gap: clamp(24px, 6vw, 120px);
  padding-block: clamp(40px, 6vw, 96px); background: var(--panel); border-radius: 4px;
  margin-inline: var(--margen); padding-inline: 0;
}
.bloque.telefonos img { width: auto; max-height: 76vh; max-width: 40%; border-radius: 0; }
.vertical img { width: auto; max-height: 86vh; max-width: min(640px, 100%); margin-inline: auto; }

/* ── Contacto ── */
.contacto { padding: clamp(120px, 16vw, 240px) var(--margen) var(--margen); }
.mail {
  display: inline-block; position: relative; margin-top: clamp(20px, 2.5vw, 36px);
  font-size: clamp(30px, 6.4vw, 112px); font-weight: 300; letter-spacing: -.045em; line-height: 1;
  padding-bottom: .12em;
}
.mail::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--turquesa);
  transform: scaleX(0); transform-origin: right; transition: transform .6s var(--ease);
}
.mail:hover::after { transform: scaleX(1); transform-origin: left; }
.cierre {
  display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap;
  margin-top: clamp(80px, 10vw, 160px); padding-top: 20px; border-top: 1px solid var(--linea);
  font-size: 14px; color: var(--texto-2);
}
.cierre nav { display: flex; gap: clamp(20px, 2.5vw, 40px); }
.cierre nav a:hover { color: var(--blanco); }

/* ── Revelado genérico ── */
.rv { opacity: 0; transform: translateY(24px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.rv.dentro { opacity: 1; transform: none; }

/* ── Proyecto ── */
.p-hero { position: relative; height: 100vh; height: 100svh; overflow: hidden; }
.p-hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); animation: asienta 2.4s var(--ease) forwards; }
@keyframes asienta { to { transform: scale(1); } }
.p-hero .destacado__velo { background: linear-gradient(180deg, rgba(0,0,0,.4) 0%, transparent 22%, rgba(0,0,0,.15) 45%, rgba(0,0,0,.88) 100%); }
.p-hero img { object-position: 50% 30%; }
.p-hero__txt { position: absolute; left: var(--margen); right: var(--margen); bottom: var(--margen); }
.p-hero__txt h1 { font-weight: 300; font-size: clamp(64px, 15vw, 260px); letter-spacing: -.06em; line-height: .82; margin-left: -.05em; }
.p-hero--largo .p-hero__txt h1 { font-size: clamp(48px, 8.4vw, 150px); line-height: .9; letter-spacing: -.05em; }
.ficha {
  display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 24px;
  margin-top: clamp(24px, 3vw, 44px); padding-top: 18px; border-top: 1px solid rgba(255,255,255,.25);
}
.ficha dd { margin-top: 6px; font-size: clamp(14px, 1.1vw, 17px); }

.bloque { padding: clamp(8px, 1vw, 16px) var(--margen); }
.bloque--sangre { padding-inline: 0; }
.bloque img, .bloque video { width: 100%; height: auto; border-radius: 4px; }
.bloque--sangre img { border-radius: 0; }

/* Grilla editorial de proyecto: 12 columnas. Texto (4) e imagen (8) comparten fila y alternan lado.
   Las imágenes van siempre en su proporción: ni recorte ni agrandado. */
.ed {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(16px, 2vw, 32px);
  align-items: center; padding: clamp(56px, 7vw, 120px) var(--margen);
}
.ed__txt { grid-column: 1 / span 4; grid-row: 1; max-width: 46ch; }
.ed__img { grid-column: 5 / -1; grid-row: 1; }
.ed--der .ed__txt { grid-column: 9 / -1; }
.ed--der .ed__img { grid-column: 1 / span 8; }
.ed__img img, .ed__img video { display: block; width: auto; max-width: 100%; height: auto; max-height: 86vh; margin-left: auto; border-radius: 4px; }
.ed--der .ed__img img, .ed--der .ed__img video { margin-left: 0; margin-right: auto; }
.ed--cuatro .ed__img img { margin: 0 auto; }
.ed__txt .rot { color: var(--turquesa); }
.ed__txt h2 { margin: 14px 0 22px; font-weight: 300; font-size: clamp(28px, 2.8vw, 46px); line-height: 1.05; letter-spacing: -.035em; }
.ed__txt p:not(.rot) { font-size: clamp(15px, 1.1vw, 18px); line-height: 1.6; color: var(--texto-2); }
.ed__txt p:not(.rot) + p { margin-top: 1em; }
/* Texto (3) + tres piezas (3 + 3 + 3), mismo tamaño, alineadas por la base */
.ed--cuatro { align-items: end; }
.ed--cuatro .ed__txt { grid-column: 1 / span 4; align-self: center; }
.ed--cuatro .ed__img { grid-column: 5 / -1; display: grid; grid-template-columns: repeat(var(--n, 3), minmax(0, 1fr)); column-gap: inherit; gap: clamp(16px, 2vw, 32px); align-items: end; }
.ed--cuatro .ed__img img { height: min(56vh, 30vw); width: auto; max-width: 100%; justify-self: center; object-fit: contain; }

/* Texto de proyecto: rótulo + título a la izquierda, párrafo a la derecha. Corto, entre las fotos que explica. */
.texto {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(20px, 4vw, 80px);
  padding: clamp(72px, 9vw, 144px) var(--margen) clamp(32px, 4vw, 64px);
}
.texto .rot { color: var(--turquesa); }
.texto h2 { margin-top: 14px; font-weight: 300; font-size: clamp(28px, 3.2vw, 52px); line-height: 1.04; letter-spacing: -.035em; }
.texto__cuerpo { padding-top: 30px; max-width: 58ch; }
.texto__cuerpo p { font-size: clamp(16px, 1.2vw, 19px); line-height: 1.6; color: var(--texto-2); }
.texto__cuerpo p + p { margin-top: 1em; }

/* Proyecto con varias marcas (Social media): índice + rótulo por marca */
.marcas-ind { display: flex; flex-wrap: wrap; gap: 8px; padding: clamp(32px, 4vw, 56px) var(--margen) clamp(16px, 2vw, 24px); }
.marcas-ind a {
  padding: 9px 16px; border: 1px solid var(--linea); border-radius: 4px; font-size: 14px; color: var(--texto-2);
  transition: color .3s, border-color .3s;
}
.marcas-ind a:hover { color: var(--blanco); border-color: rgba(255,255,255,.4); }
.marca-enc {
  display: flex; align-items: baseline; gap: clamp(16px, 2vw, 32px);
  margin: clamp(72px, 9vw, 144px) var(--margen) clamp(16px, 2vw, 24px); padding-top: 18px;
  border-top: 1px solid var(--linea);
  font-weight: 300; font-size: clamp(32px, 4.4vw, 72px); letter-spacing: -.04em; line-height: 1;
  scroll-margin-top: 80px;
}
.marca-enc .rot { color: var(--turquesa); letter-spacing: .14em; }

.variantes { padding: clamp(80px, 10vw, 160px) var(--margen); }
.variantes__escena {
  position: relative; aspect-ratio: 16/8; border-radius: 4px; overflow: hidden;
  display: grid; place-items: center; background: #0B0C0E;
  transition: background .6s var(--ease);
}
.variantes__escena.claro { background: #F4F5F7; }
.variantes__escena img { position: absolute; width: 42%; max-height: 46%; object-fit: contain; opacity: 0; transform: translateY(12px); transition: opacity .5s, transform .7s var(--ease); }
.variantes__escena img.activa { opacity: 1; transform: none; }
.variantes__control { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 16px; }
.pestanas { display: flex; flex-wrap: wrap; gap: 8px; }

/* Fin del proyecto: regla + nombre + volver. Separa la obra de la navegación. */
.fin {
  display: flex; justify-content: space-between; align-items: baseline; gap: 24px;
  margin: clamp(96px, 12vw, 200px) var(--margen) 0; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.25);
}
.fin__nombre { font-weight: 300; font-size: clamp(22px, 2vw, 32px); letter-spacing: -.02em; }
.fin a { transition: color .3s; }
.fin a:hover { color: var(--blanco); }
/* Siguiente: tarjeta contenida (con márgenes), no una foto más a sangre */
.siguiente { position: relative; display: block; height: 62vh; overflow: hidden; margin: clamp(40px, 5vw, 80px) var(--margen) 0; border-radius: 4px; cursor: none; }
.siguiente img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: brightness(.45); transition: filter .8s, transform 1.6s var(--ease); }
.siguiente:hover img { filter: brightness(.7); transform: scale(1.04); }
.siguiente__txt { position: absolute; left: var(--margen); bottom: var(--margen); }
.siguiente__txt strong { display: block; margin-top: 12px; font-weight: 300; font-size: clamp(48px, 9vw, 160px); letter-spacing: -.05em; line-height: .9; }

/* ── Mobile ── */
@media (max-width: 760px) {
  .ed, .ed--cuatro { grid-template-columns: 1fr; row-gap: 28px; }
  .ed .ed__txt, .ed--der .ed__txt, .ed--cuatro .ed__txt { grid-column: 1; grid-row: 1; }
  .ed .ed__img, .ed--der .ed__img, .ed--cuatro .ed__img { grid-column: 1; grid-row: 2; }
  .ed--cuatro .ed__img img { height: 46vw; }
  .texto { grid-template-columns: 1fr; gap: 0; }
  .texto__cuerpo { padding-top: 20px; }
  .barra nav a.opc { display: none; }
  .barra { padding-block: 18px; }
  .mail { font-size: 6.3vw; letter-spacing: -.03em; }
  .barra nav { gap: 16px; font-size: 13px; }
  .iso { top: 12svh; right: -18vw; height: auto; width: 100vw; transform: none; }
  .iso__trazo { stroke: rgba(255,255,255,.16); }
  .portada__nombre { align-self: end; padding-bottom: 48px; }
  .portada__nombre h1 { font-size: 23vw; }
  .destacado { cursor: auto; height: 86svh; }
  .destacado__ficha { flex-direction: column; align-items: flex-start; gap: 12px; }
  .destacado__datos { padding-bottom: 0; }
  .fila { grid-template-columns: 1fr 72px; grid-template-areas: 'n m' 'd m'; gap: 6px 16px; }
  .fila__nombre { grid-area: n; }
  .fila__disc { grid-area: d; }
  .fila__ano { display: none; }
  .fila__mini { display: block; grid-area: m; width: 72px; aspect-ratio: 1; object-fit: cover; border-radius: 4px; }
  .indice:hover .fila { opacity: 1; }
  .logos { grid-template-columns: repeat(2, 1fr); }
  .logo__pie { opacity: 1; transform: none; left: 12px; right: 12px; bottom: 10px; font-size: 9px; }
  .logo__pie span:last-child { display: none; }
  .trio { flex-wrap: wrap; }
  .bloque.telefonos img { max-width: 44%; max-height: 60vh; }
  .ficha { grid-template-columns: 1fr 1fr; }
  .par { grid-template-columns: 1fr; }
  .variantes__escena { aspect-ratio: 4/3; }
  .variantes__escena img { width: 70%; }
  .siguiente { height: 52svh; cursor: auto; }
  .fin { flex-direction: column; gap: 10px; }
}
@media (hover: none) {
  .cursor, .vista { display: none; }
  .destacado, .siguiente { cursor: auto; }
  .indice .fila:hover .fila__nombre { transform: none; }
  .logo .logo__marca { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .sube, .iso__trazo, .iso__acento, .p-hero img { animation: none; opacity: 1; transform: none; stroke-dashoffset: 0; }
  .rv, .destacado__datos { opacity: 1; transform: none; transition: none; }
  .destacado__lienzo { clip-path: none; transition: none; }
  .destacado__img { transform: none; transition: none; }
  .destacado__nombre span { transform: none; transition: none; }
  .bajar__linea::after { animation: none; }
}

/* ============================================================
   SOMOS — piezas resueltas en código (nítidas en cualquier pantalla, sobre el negro del sitio)
   ============================================================ */
@font-face { font-family: 'Rubik'; src: url('../assets/fonts/rubik/Rubik-Light.ttf') format('truetype'); font-weight: 300; font-display: swap; }
@font-face { font-family: 'Rubik'; src: url('../assets/fonts/rubik/Rubik-LightItalic.ttf') format('truetype'); font-weight: 300; font-style: italic; font-display: swap; }
@font-face { font-family: 'Rubik'; src: url('../assets/fonts/rubik/Rubik-Regular.ttf') format('truetype'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Rubik'; src: url('../assets/fonts/rubik/Rubik-Medium.ttf') format('truetype'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'Rubik'; src: url('../assets/fonts/rubik/Rubik-Bold.ttf') format('truetype'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'Rubik'; src: url('../assets/fonts/rubik/Rubik-ExtraBold.ttf') format('truetype'); font-weight: 800; font-display: swap; }

.pieza { display: grid; place-items: center; aspect-ratio: 16 / 10; }

/* Logotipo: el trazo del isotipo se dibuja, se rellena, aparece el punto y se abre el nombre. Completo a los 2,2 s; ciclo de 7 s. */
.logo-anim { width: min(100%, 720px); height: auto; overflow: visible; }
.logo-anim__iso { fill: #fff; fill-opacity: 0; stroke: #fff; stroke-width: .9; stroke-dasharray: 1; stroke-dashoffset: 1; animation: la-trazo 7s var(--ease) infinite; }
.logo-anim__punto { fill: #C90513; transform: scale(0); animation: la-punto 7s cubic-bezier(.3, 1.6, .5, 1) infinite; }
.logo-anim__letras { fill: #fff; animation: la-letras 7s linear infinite; }
.logo-anim__barrido { transform-origin: 195px 0; transform: scaleX(0); animation: la-barrido 7s var(--ease-io) infinite; }
@keyframes la-trazo {
  0% { stroke-dashoffset: 1; fill-opacity: 0; stroke-opacity: 1; }
  14% { stroke-dashoffset: 0; fill-opacity: 0; }
  20% { fill-opacity: 1; stroke-opacity: 1; }
  24%, 90% { fill-opacity: 1; stroke-opacity: 0; stroke-dashoffset: 0; }
  97%, 100% { fill-opacity: 0; stroke-opacity: 0; stroke-dashoffset: 0; }
}
@keyframes la-punto { 0%, 17% { transform: scale(0); opacity: 1; } 24%, 90% { transform: scale(1); opacity: 1; } 97%, 100% { transform: scale(1); opacity: 0; } }
@keyframes la-barrido { 0%, 21% { transform: scaleX(0); } 32%, 100% { transform: scaleX(1); } }
@keyframes la-letras { 0%, 90% { opacity: 1; } 97%, 100% { opacity: 0; } }
.rv:not(.dentro) .logo-anim * { animation-play-state: paused; }

/* Construcción del símbolo */
.constr { width: 100%; height: auto; overflow: visible; }
.constr__guia { fill: none; stroke: rgba(255,255,255,.10); stroke-width: 1; vector-effect: non-scaling-stroke; }
.constr__circ { fill: none; stroke: rgba(255,255,255,.22); stroke-width: 1; stroke-dasharray: 3 5; vector-effect: non-scaling-stroke; }
.constr__trazo { fill: rgba(255,255,255,.04); stroke: #fff; stroke-width: 1.4; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 2.6s var(--ease-io) .2s; }
.dentro .constr__trazo { stroke-dashoffset: 0; }
.constr__punto { fill: #C90513; }
.constr__nodos, .constr__cotas { opacity: 0; transition: opacity 1.2s var(--ease) 2.4s; }
.dentro .constr__nodos, .dentro .constr__cotas { opacity: 1; }
.constr__man { stroke: rgba(255,255,255,.38); stroke-width: .9; }
.constr__ctrl { fill: #000; stroke: rgba(255,255,255,.7); stroke-width: .9; }
.constr__nodo { fill: #fff; }
.constr__cota { stroke: rgba(255,255,255,.35); stroke-width: 1; vector-effect: non-scaling-stroke; }
.constr__txt { fill: var(--texto-2); font: 400 15px 'Space Grotesk', sans-serif; letter-spacing: .06em; }

/* Paleta: el ancho de cada franja es su peso en el sistema */
.paleta { display: flex; width: 100%; height: clamp(240px, 30vw, 440px); border-radius: 4px; overflow: hidden; border: 1px solid rgba(255,255,255,.12); }
.paleta__c { flex: 1 1 0; min-width: 0; padding: clamp(14px, 1.4vw, 22px); display: flex; flex-direction: column; justify-content: space-between; font: 500 13px 'Space Grotesk', sans-serif; letter-spacing: .04em; transition: flex-grow 1.4s var(--ease-io) .3s; }
.dentro .paleta__c { flex-grow: var(--w); }
.paleta__c b { font-weight: 500; font-size: clamp(15px, 1.3vw, 20px); letter-spacing: -.01em; }
.paleta__c span { opacity: .7; }
.paleta__c--rojo { writing-mode: vertical-rl; transform: rotate(180deg); justify-content: flex-start; gap: 12px; }

/* Tipografía: Rubik */
.tipo { width: 100%; font-family: 'Rubik', sans-serif; color: #fff; }
.tipo__nombre { font-weight: 700; font-size: clamp(64px, 9vw, 150px); line-height: .9; letter-spacing: -.03em; }
.tipo__nombre i { font-style: normal; color: #C90513; }
.tipo__pesos { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); margin-top: clamp(24px, 3vw, 44px); border-top: 1px solid rgba(255,255,255,.14); }
.tipo__pesos div { padding-top: 14px; }
.tipo__pesos b { display: block; font-size: clamp(36px, 4vw, 64px); line-height: 1; }
.tipo__pesos span { display: block; margin-top: 10px; font: 400 12px 'Space Grotesk', sans-serif; letter-spacing: .1em; text-transform: uppercase; color: var(--texto-2); }
.tipo__firma { margin-top: clamp(28px, 3.4vw, 52px); font-size: clamp(24px, 2.6vw, 42px); line-height: 1.1; }
.tipo__firma em { font-weight: 300; font-style: italic; }
.tipo__firma strong { display: block; font-weight: 800; }
.tipo__firma i { font-style: normal; color: #C90513; }

/* Redes: posteos y perfil reales, en el lenguaje de la referencia */
.social { padding: clamp(56px, 7vw, 120px) var(--margen); font-family: 'Rubik', sans-serif; }
.social__posts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2.4vw, 40px); }
.post__cab { display: flex; align-items: center; gap: 12px; padding: 0 6px 14px; font-size: clamp(13px, 1vw, 16px); font-weight: 500; }
.post__cab .puntos { margin-left: auto; width: 4px; height: 18px; background: radial-gradient(circle, #fff 1.6px, transparent 2px) 0 0 / 4px 7px repeat-y; }
.av { flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: #0B0C0E; border: 1px solid rgba(255,255,255,.28); }
.av img { width: 64%; }
.post__img { width: 100%; height: auto; border-radius: clamp(14px, 1.6vw, 26px); }
.post__pie { display: flex; gap: 14px; padding: 14px 6px 0; }
.post__pie svg { width: 22px; height: 22px; fill: none; stroke: #fff; stroke-width: 1.6; }
.post__pie svg:last-child { margin-left: auto; }
.social__perfil { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(16px, 2.4vw, 40px); margin-top: clamp(40px, 5vw, 80px); }
.tarjeta { border: 1px solid rgba(255,255,255,.14); border-radius: clamp(20px, 2.4vw, 36px); background: #07080A; overflow: hidden; }
.historia { display: flex; flex-direction: column; justify-content: space-between; padding: clamp(22px, 2.4vw, 40px); min-height: clamp(360px, 38vw, 620px); background: radial-gradient(120% 70% at 20% 110%, rgba(201,5,19,.28), transparent 60%), #07080A; }
.historia__barras { display: flex; align-items: center; gap: 14px; }
.historia__barras i { flex: 1; height: 2px; background: rgba(255,255,255,.25); }
.historia__barras i:first-of-type { background: #fff; }
.historia p { font-size: clamp(26px, 2.8vw, 46px); line-height: 1.08; padding-left: 18px; border-left: 2px solid #C90513; }
.historia em { font-weight: 300; font-style: italic; }
.historia strong { display: block; font-weight: 800; }
.social__der { display: grid; gap: clamp(16px, 2.4vw, 40px); }
.bio { padding: clamp(20px, 2.2vw, 34px); }
.bio__cab { display: flex; align-items: center; gap: 14px; font-size: clamp(16px, 1.3vw, 22px); font-weight: 500; }
.bio__cab svg { width: 18px; height: 18px; }
.bio p { margin-top: 16px; font-size: clamp(15px, 1.2vw, 19px); line-height: 1.5; color: rgba(255,255,255,.82); }
.bio a { color: #8FB3FF; }
.stats { display: flex; align-items: center; gap: clamp(18px, 2.6vw, 44px); padding: clamp(20px, 2.2vw, 34px); }
.stats .av { width: clamp(64px, 7vw, 104px); height: clamp(64px, 7vw, 104px); }
.stats__datos { flex: 1; display: grid; grid-template-columns: repeat(3, auto); gap: 6px 18px; text-align: center; }
.stats__datos b { font-size: clamp(22px, 2.4vw, 38px); font-weight: 500; }
.stats__datos span { font-size: clamp(12px, .95vw, 15px); color: rgba(255,255,255,.75); }
.stats__btns { grid-column: 1 / -1; display: flex; gap: 10px; justify-content: center; margin-top: 12px; }
.stats__btns span { padding: 8px 22px; border-radius: 8px; font-size: 14px; font-weight: 500; color: #fff; background: rgba(255,255,255,.12); }
.stats__btns span:first-child { background: #4A5DF9; }

@media (max-width: 760px) {
  .constr__txt { display: none; }
  .pieza { aspect-ratio: 16 / 9; }
  .tipo__pesos { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 18px; }
  .social__posts { grid-template-columns: 1fr; }
  .social__perfil { grid-template-columns: 1fr; }
  .stats { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  .logo-anim * { animation: none !important; }
  .logo-anim__iso { fill-opacity: 1; stroke-opacity: 0; stroke-dashoffset: 0; }
  .logo-anim__punto { transform: scale(1); }
  .logo-anim__barrido { transform: scaleX(1); }
  .constr__trazo { stroke-dashoffset: 0; transition: none; }
  .constr__nodos, .constr__cotas { opacity: 1; transition: none; }
  .paleta__c { flex-grow: var(--w); transition: none; }
}

/* Andes: mismo sistema de piezas en código; el logo está dibujado a otra escala */
@font-face { font-family: 'Rajdhani'; src: url('../assets/fonts/andes/Rajdhani-Bold.otf') format('opentype'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'Rajdhani'; src: url('../assets/fonts/andes/Rajdhani-Medium.otf') format('opentype'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'Raleway'; src: url('../assets/fonts/andes/Raleway-Regular.ttf') format('truetype'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Raleway'; src: url('../assets/fonts/andes/Raleway-SemiBold.ttf') format('truetype'); font-weight: 600; font-display: swap; }
.logo-anim--andes .logo-anim__iso { stroke-width: .28; }
.logo-anim--andes .logo-anim__barrido { transform-origin: 84px 0; }
.constr--andes .constr__trazo { stroke-width: .28; }
.constr--andes .constr__man { stroke-width: .12; }
.constr--andes .constr__ctrl { stroke-width: .12; }
.constr__txt--chico { font-size: 2.4px; letter-spacing: .08em; }
.tipo--andes .tipo__nombre { font-family: 'Rajdhani', sans-serif; font-weight: 700; letter-spacing: -.01em; }
.tipo--andes .tipo__nombre i { color: #73ACD2; }
.tipo__par { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(16px, 2vw, 32px); margin-top: clamp(24px, 3vw, 44px); border-top: 1px solid rgba(255,255,255,.14); }
.tipo__par div { padding-top: 14px; }
.tipo__par b { display: block; font-size: clamp(40px, 4.6vw, 72px); line-height: 1; }
.tipo__par span { display: block; margin-top: 10px; font: 400 12px 'Space Grotesk', sans-serif; letter-spacing: .1em; text-transform: uppercase; color: var(--texto-2); }
.tipo__abc { margin-top: 14px; font-size: clamp(14px, 1.2vw, 18px); line-height: 1.5; color: rgba(255,255,255,.75); word-break: break-word; }

/* ── Chiko Burger: piezas de marca en código ── */
@font-face { font-family: 'Galindo'; src: url('../assets/fonts/chiko/Galindo-Regular.ttf') format('truetype'); font-weight: 400; font-display: swap; }
.logo-anim--chiko .logo-anim__iso { fill: #F9C32D; stroke: #F9C32D; stroke-width: 1.6; }
.logo-anim--chiko .logo-anim__letras { fill: #F2F2F2; }
.logo-anim--chiko .logo-anim__barrido { transform-origin: 160px 0; }
.constr--chiko .constr__trazo { stroke: #F9C32D; fill: rgba(249,195,45,.05); stroke-width: 1.6; }
.constr--chiko .constr__guia--mod { stroke: rgba(255,255,255,.05); }
.paleta__c--vert { writing-mode: vertical-rl; transform: rotate(180deg); justify-content: flex-start; gap: 12px; }
.tipo--chiko .tipo__nombre { font-family: 'Galindo', sans-serif; font-weight: 400; letter-spacing: 0; }
.tipo--chiko .tipo__nombre i { color: #F9C32D; }
.tipo__svg { display: block; fill: currentColor; height: auto; }
.tipo__svg--aa { height: clamp(40px, 4.6vw, 72px); width: auto; }
.tipo__svg--abc { width: 100%; margin-top: 14px; opacity: .75; }
/* Paleta de cinco colores: en pantallas chicas se apila y cada franja crece según su peso */
@media (max-width: 700px) {
  .paleta--cinco { flex-direction: column; height: auto; }
  .paleta--cinco .paleta__c { flex: none !important; min-height: calc(var(--w) * 5px + 52px); flex-direction: row; align-items: flex-start; }
  .paleta--cinco .paleta__c--vert { writing-mode: horizontal-tb; transform: none; justify-content: space-between; }
}

/* Las columnas de la grilla nunca se ensanchan por su contenido */
.ed__txt, .ed__img { min-width: 0; }

/* ── Ulises: piezas de marca en código ── */
@font-face { font-family: 'Raleway'; src: url('../assets/fonts/ulises/Raleway-Light.ttf') format('truetype'); font-weight: 300; font-display: swap; }
@font-face { font-family: 'Raleway'; src: url('../assets/fonts/ulises/Raleway-Medium.ttf') format('truetype'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'Raleway'; src: url('../assets/fonts/ulises/Raleway-Bold.ttf') format('truetype'); font-weight: 700; font-display: swap; }
.logo-anim--ulises { width: min(100%, 520px); }
.logo-anim--ulises .logo-anim__iso { fill: #FDF1DE; stroke: #FDF1DE; stroke-width: 1.2; }
.logo-anim--ulises .logo-anim__letras { fill: #FDF1DE; }
.logo-anim--ulises .logo-anim__barrido { transform-origin: 0 0; }
.constr--ulises { max-height: 72vh; }
.constr--ulises .constr__trazo { stroke: #FDF1DE; fill: rgba(174,81,59,.16); stroke-width: .45; }
.constr--ulises .constr__man { stroke-width: .12; }
.constr--ulises .constr__ctrl { stroke-width: .12; }
.constr__txt--ul { font-size: 4.6px; letter-spacing: .1em; }
.tipo--ulises { font-family: 'Raleway', sans-serif; }
.tipo--ulises .tipo__nombre { font-weight: 700; letter-spacing: -.01em; }
.tipo--ulises .tipo__nombre i { color: #AE513B; }
.tipo--ulises .tipo__pesos { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.tipo__logo { margin-top: clamp(28px, 3.4vw, 52px); padding-top: 14px; border-top: 1px solid rgba(255,255,255,.14); }
.tipo__logo span { display: block; margin-top: 10px; font: 400 12px 'Space Grotesk', sans-serif; letter-spacing: .1em; text-transform: uppercase; color: var(--texto-2); }
.tipo__svg--nombre { width: min(100%, 360px); }
.tipo__svg--abc-ul { width: min(100%, 420px); }

/* ── Ingenio: piezas de marca en código ── */
@font-face { font-family: 'Montserrat'; src: url('../assets/fonts/ingenio/Montserrat-Light.ttf') format('truetype'); font-weight: 300; font-display: swap; }
@font-face { font-family: 'Montserrat'; src: url('../assets/fonts/ingenio/Montserrat-Regular.ttf') format('truetype'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Montserrat'; src: url('../assets/fonts/ingenio/Montserrat-Bold.ttf') format('truetype'); font-weight: 700; font-display: swap; }
.logo-anim--ingenio .logo-anim__iso { fill: #32E0C4; stroke: #32E0C4; stroke-width: 3; }
.logo-anim--ingenio .logo-anim__letras { fill: #EEEEEE; }
.logo-anim--ingenio .logo-anim__barrido { transform-origin: 821px 0; }
.constr--ingenio { max-height: 72vh; }
.constr--ingenio .constr__trazo { stroke: #32E0C4; fill: rgba(50,224,196,.08); stroke-width: 2.4; }
.constr--ingenio .constr__guia--diag { stroke-dasharray: 6 8; }
.tipo--ingenio { font-family: 'Montserrat', sans-serif; }
.tipo--ingenio .tipo__svg--nombre { width: min(100%, 300px); color: #fff; }
.tipo--ingenio .tipo__svg--nombre + i { display: none; }

/* ── Torres Cardine: piezas de marca en código ── */
@font-face { font-family: 'Barlow'; src: url('../assets/fonts/cardine/Barlow-Light.ttf') format('truetype'); font-weight: 300; font-display: swap; }
@font-face { font-family: 'Barlow'; src: url('../assets/fonts/cardine/Barlow-Regular.ttf') format('truetype'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Barlow'; src: url('../assets/fonts/cardine/Barlow-Bold.ttf') format('truetype'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'Barlow'; src: url('../assets/fonts/cardine/Barlow-Black.ttf') format('truetype'); font-weight: 900; font-display: swap; }
.logo-anim--cardine { width: min(100%, 460px); }
.logo-anim--cardine .logo-anim__iso { fill: #FFC16D; stroke: #FFC16D; stroke-width: .8; }
.logo-anim--cardine .logo-anim__letras { fill: #FCF1D1; }
.logo-anim--cardine .logo-anim__barrido { transform-origin: -8px 0; }
.constr--cardine { max-height: 72vh; }
.constr--cardine .constr__trazo { stroke: #FFC16D; fill: rgba(255,193,109,.06); stroke-width: 1.2; }
.tipo--cardine { font-family: 'Barlow', sans-serif; }
.tipo--cardine .tipo__pesos { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.tipo__svg--jaguar { width: min(100%, 420px); color: #FFC16D; }

/* ── Raíces del Sol: piezas de marca en código ── */
.logo-anim--raices { width: min(100%, 560px); }
.logo-anim--raices .logo-anim__iso { fill: #E8DDC8; stroke: #E8DDC8; stroke-width: 4; }
.logo-anim--raices .logo-anim__letras { fill: url(#rs-oro); }
.logo-anim--raices .logo-anim__barrido { transform-origin: 373px 0; }
.constr--raices .constr__trazo { stroke: #E8DDC8; fill: rgba(232,221,200,.05); stroke-width: 3; }
.constr--raices .constr__nodo { fill: #E0C142; }
.constr__txt--rs { font-size: 40px; letter-spacing: .1em; }

/* ── Reino de Hunza: troqueles y anatomía de la etiqueta ── */
.constr--hunza { max-height: 78vh; }
.constr--hunza .troq { stroke: rgba(255,255,255,.7); stroke-width: .6; fill: var(--c); fill-opacity: 0; transition: stroke-dashoffset 2.2s var(--ease-io) .2s, fill-opacity 1.2s var(--ease) 1.8s; }
.dentro .constr--hunza .troq { fill-opacity: 1; }
.troq__tit, .troq__sub { font-size: 7px; letter-spacing: .08em; }
.troq__tit { fill: #fff; }
.anat__etq { opacity: 0; transition: opacity 1.4s var(--ease) .2s; }
.dentro .anat__etq { opacity: 1; }
.anat__pt { fill: #fff; }
.anat__txt { font-size: 11px; }
@media (prefers-reduced-motion: reduce) { .constr--hunza .troq { fill-opacity: 1; } .anat__etq { opacity: 1; } }
@media (max-width: 700px) {
  .troq__tit { display: inline; font-size: 11px; }
  .troq__sub { display: none; }
  .anat__txt { display: inline; font-size: 15px; }
}

/* Social media: perfil de Instagram simulado; la grilla de placas es la protagonista */
.ig { max-width: 1120px; margin-inline: auto; padding: clamp(24px, 3.4vw, 56px) clamp(16px, 3vw, 48px) clamp(16px, 2vw, 32px);
  border: 1px solid rgba(255,255,255,.12); border-radius: clamp(16px, 2vw, 28px); background: #000;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif; color: #F5F5F5; }
.ig__cab { display: flex; align-items: center; gap: clamp(20px, 5vw, 88px); padding-inline: clamp(0px, 4vw, 64px); }
.bloque .ig__av { flex: none; width: clamp(77px, 11vw, 150px); height: auto; aspect-ratio: 1; border-radius: 50%;
  object-fit: cover; background: #fff; outline: 1px solid rgba(255,255,255,.15); outline-offset: 3px; }
.ig__datos { min-width: 0; }
.ig__fila { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; }
.ig__cuenta { font-size: clamp(17px, 1.5vw, 20px); margin-right: 10px; }
.ig__btn { padding: 7px 16px; border-radius: 8px; background: #363636; font-size: 14px; font-weight: 600; }
.ig__btn--seguir { background: #0095F6; }
.ig__mas { display: inline-flex; gap: 3px; margin-left: 4px; }
.ig__mas i { width: 4px; height: 4px; border-radius: 50%; background: #F5F5F5; }
.ig__nombre { margin-top: 14px; font-size: 14px; font-weight: 600; }
.ig__tabs { display: flex; justify-content: center; margin-top: clamp(28px, 3.4vw, 44px); border-top: 1px solid #262626; }
.ig__tab { display: inline-flex; align-items: center; gap: 6px; margin-top: -1px; padding-top: 16px; border-top: 1px solid #F5F5F5;
  font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.ig__tab svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 2; }
.ig__grilla { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; margin-top: 16px; }
.bloque .ig__grilla img { border-radius: 2px; }
@media (max-width: 700px) {
  .ig { padding: 20px 0 0; border-radius: 12px; overflow: hidden; }
  .ig__cab { padding-inline: 16px; gap: 20px; }
  .ig__fila { gap: 8px; }
  .ig__cuenta { width: 100%; margin-right: 0; }
  .ig__btn { padding: 6px 14px; font-size: 13px; }
  .ig__mas { display: none; }
  .ig__grilla { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px; }
  .bloque .ig__grilla img { border-radius: 0; }
}

/* Portada de Social media: muro de placas reales en columnas que se desplazan */
.p-hero--muro { background: #000; }
.muro { position: absolute; inset: -18% -12%; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: clamp(10px, 1.2vw, 20px); transform: rotate(-7deg); opacity: 0; animation: muro-entra 1.6s var(--ease) .1s forwards; }
.muro__col { overflow: hidden; }
.muro__pista { display: flex; flex-direction: column; gap: clamp(10px, 1.2vw, 20px); animation: muro-sube var(--d, 80s) linear infinite; }
.muro__col:nth-child(even) .muro__pista { animation-direction: reverse; }
.p-hero .muro img { position: static; inset: auto; width: 100%; height: auto; object-fit: initial; transform: none;
  animation: none; border-radius: clamp(4px, .5vw, 8px); }
.p-hero--muro .destacado__velo { background:
  linear-gradient(180deg, rgba(0,0,0,.55) 0%, rgba(0,0,0,.1) 26%, rgba(0,0,0,.25) 50%, rgba(0,0,0,.92) 100%); }
@keyframes muro-sube { to { transform: translateY(calc(-50% - clamp(5px, .6vw, 10px))); } }
@keyframes muro-entra { to { opacity: 1; } }
@media (max-width: 700px) {
  .muro { grid-template-columns: repeat(3, minmax(0, 1fr)); inset: -14% -30%; }
  .muro__col:nth-child(n+4) { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .muro { opacity: 1; animation: none; }
  .muro__pista { animation: none; }
}

/* Sobre mí — resumen en el home */
.sobre__grilla { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(20px, 3vw, 48px);
  align-items: end; margin-top: clamp(32px, 4vw, 56px); }
.sobre__txt { grid-column: 1 / span 8; }
.sobre__txt > .rot { color: var(--turquesa); }
.sobre__tit { margin-top: 14px; font-weight: 300; font-size: clamp(48px, 6.4vw, 110px); line-height: .92; letter-spacing: -.05em; }
.sobre__txt > p:not(.rot) { margin-top: clamp(20px, 2vw, 32px); max-width: 40ch; font-size: clamp(18px, 1.5vw, 24px); line-height: 1.4; color: var(--texto-2); }
.sobre__mas { display: inline-block; margin-top: clamp(28px, 3vw, 44px); color: var(--blanco); border-bottom: 1px solid var(--turquesa); padding-bottom: 6px; }
.sobre__mas:hover { color: var(--turquesa); }

/* Sobre mí — página */
.yo__portada { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(20px, 3vw, 48px);
  align-items: end; padding: clamp(120px, 14vw, 200px) var(--margen) 0; }
.yo__intro { grid-column: 1 / span 8; }
.yo__intro .rot { color: var(--turquesa); }
.yo__intro h1 { margin: 14px 0 clamp(24px, 3vw, 40px); font-weight: 300; font-size: clamp(56px, 8vw, 140px); line-height: .9; letter-spacing: -.055em; }
.yo__intro p:not(.rot) { max-width: 54ch; font-size: clamp(15px, 1.1vw, 18px); line-height: 1.6; color: var(--texto-2); }
.yo__intro .yo__lead { font-size: clamp(20px, 1.7vw, 28px); line-height: 1.35; color: var(--blanco); letter-spacing: -.01em; }
.yo__intro p + p { margin-top: 1em; }
.yo__bloque { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(20px, 3vw, 48px);
  margin: clamp(96px, 12vw, 180px) var(--margen) 0; padding-top: 18px; border-top: 1px solid var(--linea); }
.yo__bloque > h2.rot { grid-column: 1 / span 3; color: var(--turquesa); }
.yo__bloque > ol { grid-column: 4 / -1; list-style: none; }
.yo__bloque h3 { font-weight: 400; font-size: clamp(20px, 1.7vw, 28px); letter-spacing: -.02em; line-height: 1.2; }
.yo__bloque p { color: var(--texto-2); font-size: clamp(15px, 1.05vw, 17px); line-height: 1.6; }
.yo__como { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 3vw, 48px); counter-reset: c; }
.yo__como li { counter-increment: c; }
.yo__como li::before { content: counter(c, decimal-leading-zero); display: block; margin-bottom: 18px; font-size: 12px; letter-spacing: .14em; color: var(--texto-3); }
.yo__como p { margin-top: 12px; }
.yo__tray li { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: clamp(16px, 2vw, 32px);
  padding: 22px 0; border-bottom: 1px solid var(--linea); }
.yo__tray li:first-child { padding-top: 0; }
.yo__fecha { padding-top: 6px; }
.yo__emp { margin-top: 4px; }
.yo__tray .yo__emp + p { margin-top: 10px; }
.yo__tres { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.yo__tres > div > h2.rot { color: var(--turquesa); }
.yo__lista, .yo__form { list-style: none; margin-top: 22px; }
.yo__lista li { padding: 10px 0; border-bottom: 1px solid var(--linea); font-size: clamp(15px, 1.1vw, 18px); }
.yo__form li { padding: 10px 0 14px; border-bottom: 1px solid var(--linea); }
.yo__form h3 { font-size: clamp(15px, 1.1vw, 18px); }
@media (max-width: 760px) {
  .sobre__txt { grid-column: 1 / -1; }
  .yo__intro { grid-column: 1 / -1; }
  .yo__bloque > h2.rot, .yo__bloque > ol { grid-column: 1 / -1; }
  .yo__como, .yo__tres { grid-template-columns: minmax(0, 1fr); }
  .yo__tray li { grid-template-columns: minmax(0, 1fr); gap: 6px; }
}

/* Medidas: piezas de una campaña a la misma escala (MDay). El ancho real en metros reparte el espacio. */
.medidas { --gap: clamp(12px, 1.6vw, 24px); display: flex; align-items: flex-end; gap: var(--gap); }
.medidas__it { flex: var(--w) 1 0; min-width: 0; }
.bloque .medidas__it img { border-radius: 2px; outline: 1px solid var(--linea); outline-offset: -1px; } /* el negro del arte no se pierde en el fondo */
.medidas__it figcaption { display: flex; flex-wrap: wrap; gap: 4px 12px; justify-content: space-between; margin-top: 12px; font-size: 14px; }
.medidas__it figcaption .rot { font-size: 11px; }
@media (max-width: 700px) {
  /* 15 + 6 y 11 + 10: dos filas de 21 m, la escala se mantiene */
  .medidas { flex-wrap: wrap; row-gap: 28px; }
  .medidas__it { flex: 0 0 calc((100% - var(--gap)) * var(--w) / 21); }
  .medidas__it figcaption { flex-direction: column; }
  .medidas__it figcaption .rot { letter-spacing: .08em; hyphens: auto; overflow-wrap: anywhere; } /* el de 6 m es angosto */
}
