/* camilaizuel.com — estilos */

:root {
  --rosa: #EAAEC6;
  --rosa-claro: #FFC9E2;
  --marron: #593C38;
  --tinta: #26262C;
  --fondo: #F1EDEC;
  --header: 124px;
  --lado: clamp(16px, 8.33vw, 120px);
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--fondo);
  color: var(--tinta);
  font-family: 'Roboto', sans-serif;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img, video { display: block; max-width: 100%; }
a { color: inherit; }

.poppins { font-family: 'Poppins', sans-serif; }

/* ================= HEADER ================= */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--header);
  background: var(--fondo);
  z-index: 900;
  display: flex;
  align-items: center;
  padding: 0 66px 0 50px;
  transition: box-shadow .3s ease;
}
.header.con-sombra,
.pagina-interna .header { box-shadow: 0 4px 12px rgba(0, 0, 0, .25); }

.header__logo { width: 28.7px; height: 41px; flex: none; }
.header__logo img { width: 100%; height: 100%; }

.header__nav {
  display: flex;
  margin-left: 201px;
  gap: 0;
}
.header__nav a {
  font-size: 16px;
  color: var(--tinta);
  text-decoration: none;
  transition: color .25s ease;
}
.header__nav a + a { margin-left: 76px; }
.header__nav a:hover { color: var(--rosa); }

.btn-foto {
  margin-left: auto;
  width: 168px;
  height: 42px;
  border-radius: 21px;
  background: var(--rosa);
  color: var(--marron);
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 21px;
  letter-spacing: -0.09em;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding-right: .11em;
  transition: transform .25s ease, background-color .25s ease;
}
.btn-foto:hover { transform: translateY(-2px); background: var(--rosa-claro); }

.hamburguesa { display: none; }
.menu-movil { display: none; }

/* ================= INTRO ================= */
.intro {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: var(--fondo);
  overflow: hidden;
}
.intro__logo-capa {
  position: absolute;
  inset: 0;
  background: var(--rosa);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: capaFuera .5s ease 2.3s forwards;
}
.intro__logo {
  width: 200px;
  opacity: 0;
  transform-origin: center 60%;
  animation: logoPop .6s ease-out .4s forwards, logoExpand 1s ease-in 1.4s forwards;
}
@keyframes logoPop {
  0% { transform: scale(0); opacity: 0; }
  60% { transform: scale(1.15); opacity: 1; }
  80% { transform: scale(.95); }
  100% { transform: scale(1); opacity: 1; }
}
@keyframes logoExpand { to { transform: scale(60); } }
@keyframes capaFuera { to { opacity: 0; visibility: hidden; } }

.intro__escena {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px 16px;
}
.titulo-script {
  position: relative;
  text-align: center;
  line-height: 1;
}
.titulo-script__script {
  display: block;
  font-family: 'Ballet', cursive;
  font-weight: 400;
  font-optical-sizing: none;
  font-variation-settings: "opsz" 16;
  color: var(--rosa);
  font-size: 240px;
  line-height: 1.16;
  white-space: nowrap;
}
.titulo-script__bold {
  position: absolute;
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  letter-spacing: -0.11em;
  white-space: nowrap;
  line-height: 1;
}

.intro .titulo-script__script { font-size: clamp(90px, 15.5vw, 223px); }
.intro .titulo-script__bold {
  font-size: clamp(22px, 3.63vw, 52px);
  color: var(--tinta);
  left: 51.7%;
  top: 12%;
}
.intro .titulo-script { opacity: 0; animation: subir .9s ease-out 2.6s forwards; }

.intro__telefono {
  width: clamp(220px, 26.7vw, 384px);
  margin-top: clamp(0px, 2vh, 30px);
  scale: -1 1;
  opacity: 0;
  animation: subir .7s ease-out 3.2s forwards, latido 1s ease-in-out 3.9s infinite;
}
@keyframes latido {
  0%, 100% { transform: scale(1) rotate(0); }
  25% { transform: scale(1.04) rotate(-2deg); }
  75% { transform: scale(1.04) rotate(2deg); }
}

.intro__botones {
  display: flex;
  gap: 63px;
  margin-top: clamp(24px, 5.5vh, 50px);
  opacity: 0;
  animation: subir .8s ease-out 3.8s forwards;
}
.btn-borde {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 130px;
  height: 46px;
  padding: 0 26px;
  border: 2px solid var(--rosa);
  border-radius: 20px;
  background: var(--fondo);
  color: var(--rosa);
  font-family: 'Roboto', sans-serif;
  font-size: 20px;
  font-weight: 500;
  font-style: italic;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .3s ease, color .3s ease;
}
.btn-borde:hover { background: var(--rosa); color: var(--fondo); }
#btn-cortar { transition: transform .4s cubic-bezier(.22, .61, .36, 1), background-color .3s, color .3s; }

@keyframes subir {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.intro.saliendo { animation: capaFuera .6s ease forwards; }
body.con-intro { overflow: hidden; }

/* ================= HERO ================= */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  padding-top: var(--header);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(45deg, #EAAEC6, #F3BDD2, #F1EDEC, #F3BDD2, #E080A7);
  background-size: 800% 800%;
  animation: gradiente 8s ease-in-out infinite;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: url("../assets/img/noise.jpg") repeat;
  opacity: .08;
  mix-blend-mode: overlay;
  z-index: 1;
}
@keyframes gradiente {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.hero__textos {
  position: relative;
  z-index: 2;
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  color: var(--marron);
  font-size: 80px;
  letter-spacing: -0.09em;
  line-height: 86px;
  margin-top: -40px;
}
.hero__linea { display: block; white-space: nowrap; opacity: 0; }
.hero__linea--1 { padding-left: 2px; }
.cargado .hero__linea--1 { animation: subir 1s ease-out .3s forwards; }
.cargado .hero__linea--2 { animation: subir 1s ease-out .9s forwards; }
.hero__brillo {
  position: absolute;
  font-family: 'Poppins', sans-serif;
  font-weight: 300;
  font-size: .46em;
  letter-spacing: 0;
  margin-left: .1em;
  margin-top: .3em;
}

/* ruleta de palabras */
.ruleta {
  display: inline-block;
  height: 86px;
  overflow: hidden;
  vertical-align: top;
}
.ruleta__pista {
  display: flex;
  flex-direction: column;
  transition: transform .3s ease-in-out;
}
.ruleta__pista span { display: block; height: 86px; }
/* reserva el ancho de la palabra más larga: así el título no se corre cuando cambia la palabra */
.ruleta__pista .ruleta__ancho { height: 0 !important; overflow: hidden; visibility: hidden; }

/* cartel "scrolleá" */
.cartel {
  position: relative;
  z-index: 2;
  margin-top: 66px;
  display: inline-block;
  font-family: 'Poppins', sans-serif;
  font-weight: 500;
  font-style: italic;
  font-size: 21.6px;
  line-height: 25.6px;
  letter-spacing: -0.11em;
  color: var(--rosa-claro);
  padding: 0 9px 0 7px;
  opacity: 0;
}
.cartel::before {
  content: "";
  position: absolute;
  left: 0; right: 0;
  top: 4.7px;
  height: 18.2px;
  background: var(--marron);
  z-index: -1;
}
.cargado .cartel { animation: subir .8s ease-out 1.6s forwards, pulso 1.5s ease-in-out 2.4s infinite; }
@keyframes pulso {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.06); }
}

.flor-cursor {
  position: absolute;
  width: 120px;
  pointer-events: none;
  z-index: 3;
  transition: opacity 1s ease-out, transform 1s ease-out;
}

/* ================= SOBRE MÍ ================= */
.sobre {
  position: relative;
  padding: 108px var(--lado) 100px;
  display: flex;
  justify-content: center;
}
.sobre__contenido {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 73px;
  max-width: 893px;
}

.polaroid {
  position: relative;
  flex: none;
  width: 386px;
  padding-top: 19.6px;
  transform-origin: 50% 0;
  animation: hamaca 2.5s ease-in-out infinite;
}
@keyframes hamaca {
  0%, 100% { transform: rotate(-4deg); }
  50% { transform: rotate(4deg); }
}
.polaroid__marco {
  background: #fff;
  height: 462.2px;
  padding: 29.2px 31.4px 0;
  box-shadow: 0 6px 18px rgba(89, 60, 56, .12);
}
/* recorte igual al Figma: la foto tapa la barra de la ventana */
.polaroid__foto {
  position: relative;
  width: 323.2px;
  height: 323.2px;
  overflow: hidden;
}
.polaroid__foto img {
  position: absolute;
  left: -0.43%;
  top: -9.84%;
  width: 100.45%;
  max-width: none;
  height: 120%;
}
.polaroid__chinche {
  position: absolute;
  top: 0;
  left: 172.3px;
  width: 42px;
  height: 41.8px;
  z-index: 2;
}

.sobre__texto {
  width: 434px;
  padding-top: 70px;
  font-size: 20px;
  line-height: normal;
  color: var(--tinta);
}
.sobre__titulo {
  position: relative;
  display: inline-block;
  font-size: 24px;
  font-weight: 700;
  color: var(--marron);
  z-index: 0;
}
.sobre__titulo::before {
  content: "";
  position: absolute;
  left: -2.7px;
  top: 6.2px;
  width: 153.7px;
  height: 14.5px;
  background: var(--rosa);
  z-index: -1;
}
.sobre__sub {
  font-size: 16px;
  font-weight: 300;
  font-style: italic;
  line-height: 24px;
  margin-bottom: 23px;
}
.sobre__texto p + p { margin-top: 23px; }
.sobre__texto .sobre__sub + p { margin-top: 0; }

.flor {
  position: absolute;
  pointer-events: none;
  will-change: transform;
}
.flor--1 { width: 105px; left: -128px; top: -128px; }
.flor--2 { width: 162px; right: -130px; top: -117px; }
.flor--3 { width: 162px; left: -219px; bottom: -59px; }
.flor--4 { width: 105px; right: 50px; bottom: -78px; }

/* aparecer al scrollear */
.aparece { opacity: 0; transform: translateY(40px); transition: opacity .8s ease, transform .8s cubic-bezier(.2, .7, .2, 1); }
.aparece.visto { opacity: 1; transform: none; }

/* ================= BANDA (slider de texto) ================= */
.banda {
  height: 48px;
  background: var(--rosa);
  overflow: hidden;
  display: flex;
  align-items: center;
}
.banda__pista {
  display: flex;
  flex: none;
  animation: banda 40s linear infinite;   /* la duración la ajusta inicio.js según el ancho */
  will-change: transform;
}
.banda__pista span {
  flex: none;
  padding-right: 6px;
  white-space: pre;
  color: var(--fondo);
  font-size: 18px;
  font-weight: 700;
  font-style: italic;
  letter-spacing: -0.04em;
}
@keyframes banda {
  from { transform: translate3d(-50%, 0, 0); }
  to { transform: translate3d(0, 0, 0); }
}

/* ================= CONOCÉ MIS PROYECTOS ================= */
.bloque-proyectos {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 707px;
  background: var(--marron);
  text-decoration: none;
  overflow: hidden;
  padding: 40px 16px;
}
.bloque-proyectos .titulo-script { transition: transform .6s cubic-bezier(.2, .7, .2, 1); }
.bloque-proyectos:hover .titulo-script { transform: scale(1.04); }
.bloque-proyectos .titulo-script__bold { color: var(--fondo); }

/* botón "ver proyectos": que se note que el bloque se cliquea */
.btn-ver {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 64px;
  height: 56px;
  padding: 0 30px 0 32px;
  border-radius: 28px;
  background: var(--rosa);
  color: var(--marron);
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 26px;
  letter-spacing: -0.09em;
  transition: background-color .25s ease, transform .25s ease;
}
.btn-ver__flecha {
  display: inline-block;
  letter-spacing: 0;
  transition: transform .25s ease;
}
.bloque-proyectos:hover .btn-ver { background: var(--rosa-claro); transform: translateY(-2px); }
.bloque-proyectos:hover .btn-ver__flecha { transform: translateX(5px); }

.titulo-proyectos .titulo-script__script { font-size: 240px; }
.titulo-proyectos .titulo-script__bold {
  font-size: 56.4px;
  left: 43%;
  top: 10%;
  letter-spacing: -0.11em;
}

/* ================= CONTACTO ================= */
.contacto {
  padding: 137px var(--lado) 100px;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.postal {
  width: min(905px, 100%);
  aspect-ratio: 905 / 638;
  perspective: 1800px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.postal__carta {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform .9s cubic-bezier(.45, .05, .2, 1);
  will-change: transform;
}
.postal.girada .postal__carta { transform: rotateY(180deg); }
.postal__cara {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  box-shadow: 4px 4px 4px rgba(0, 0, 0, .25);
  transform: translateZ(0.1px);
}
.postal__cara--dorso { transform: rotateY(180deg) translateZ(0.1px); }

.contacto .btn-borde { margin-top: 35px; padding: 0 19px; white-space: nowrap; }

/* ================= REPRODUCTOR ================= */
.musica {
  position: fixed;
  top: calc(var(--header) + 24px);
  right: 2%;
  width: 110px;
  height: 110px;
  z-index: 800;
  cursor: pointer;
  border: 0;
  background: none;
}
/* en proyectos y trabajos va debajo de la banda de categorías */
.pagina-interna .musica { top: calc(var(--header) + var(--banda, 56px) + 20px); }
.musica__base { width: 100%; height: 100%; pointer-events: none; }
.musica__cd {
  position: absolute;
  top: 50%; left: 50%;
  width: 65%;
  height: 65%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}
.musica__cd.gira { animation: girar 3s linear infinite; }
@keyframes girar {
  from { transform: translate(-50%, -50%) rotate(0); }
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

/* ================= FOOTER ================= */
.footer {
  position: relative;
  height: 631px;
  background: var(--rosa);
  overflow: hidden;
  box-shadow: 0 4px 4px rgba(0, 0, 0, .25);
}
.footer__logo {
  position: absolute;
  left: -1.68%;
  top: 82px;
  width: 103.3%;
  max-width: none;
  height: auto;
  pointer-events: none;
}
.footer__links {
  position: absolute;
  left: 120px;
  top: 166px;
  display: flex;
  align-items: center;
  z-index: 1;
}
.footer__nav {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding-right: 36px;
  border-right: 1px solid var(--fondo);
}
.footer__nav a {
  color: var(--fondo);
  font-size: 16px;
  font-weight: 500;
  text-decoration: none;
  line-height: 15px;
  transition: color .25s;
}
.footer__nav a:hover { color: var(--marron); }
.footer__redes { display: flex; gap: 36px; padding-left: 36px; }
.footer__redes a { display: block; width: 25px; height: 25px; transition: transform .2s; }
.footer__redes a:hover { transform: scale(1.12); }
.footer__redes img { width: 25px; height: 25px; }

/* ================= PÁGINA PROYECTOS ================= */
.pagina-interna main { padding-top: var(--header); }

.cabecera-proyectos {
  display: flex;
  justify-content: center;
  padding: 69px 16px 70px;
  overflow: hidden;
}
.cabecera-proyectos .titulo-script__bold { color: var(--marron); }

.categorias {
  position: sticky;
  top: var(--header);
  z-index: 700;
  background: var(--marron);
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow-x: auto;
  scrollbar-width: none;
}
.categorias::-webkit-scrollbar { display: none; }
.categorias__lista {
  display: flex;
  gap: 50px;
  padding: 0 24px;
  white-space: nowrap;
}
.categorias a {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 21.6px;
  letter-spacing: -0.09em;
  line-height: 25.6px;
  color: var(--fondo);
  text-decoration: none;
  transition: color .25s;
}
.categorias a:hover { color: var(--rosa-claro); }
.categorias a.activa {
  color: var(--rosa-claro);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 2px;
}

/* menú de categorías: píldoras marrones con texto blanco, la elegida rosa con texto marrón.
   Sin fondo atrás (transparente) para que no tape el reproductor de música. */
.menu-pildoras { --banda: 76px; }
.categorias--pildoras { height: var(--banda); background: transparent; pointer-events: none; }
.categorias--pildoras a { pointer-events: auto; }
.categorias--pildoras .categorias__lista { gap: 14px; }
.categorias--pildoras a {
  background: var(--marron);
  color: #fff;
  padding: 8px 20px 9px 18px;
  border-radius: 999px;
  transition: background-color .25s, color .25s, transform .25s;
}
.categorias--pildoras a:hover { color: #fff; background: #6E4A45; transform: translateY(-2px); }
.categorias--pildoras a.activa { background: var(--rosa-claro); color: var(--marron); text-decoration: none; }

.listado {
  max-width: 1440px;
  margin: 0 auto;
  padding: 100px var(--lado) 100px;
  min-height: 60vh;
}
.listado.cambiando { opacity: 0; transform: translateY(16px); }
.listado { transition: opacity .35s ease, transform .35s ease; }

.grupo + .grupo { margin-top: 101px; }
.grupo__titulo {
  display: inline-block;
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 80px;
  letter-spacing: -0.09em;
  line-height: 1.12;
  color: var(--marron);
  text-decoration: underline;
  text-decoration-thickness: 3px;
  text-underline-offset: 6px;
  padding-left: 6px;
  margin-bottom: 72px;
}
a.grupo__titulo:hover { color: var(--rosa); }

/* filas parejas: cada pieza con su proporción (el estilo de cada una lo pone el JS) */
.filas { display: flex; flex-direction: column; gap: 20px; }
.fila { display: flex; gap: 20px; }
.fila > * { min-width: 0; }

/* mosaicos armados como los layouts de referencia de Cami */
.mosaico { display: grid; gap: 20px; }
.mosaico > [data-area] { position: relative; min-height: 0; aspect-ratio: auto; }
.mosaico > * > img, .mosaico > * > video {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.mosaico--beauty {
  grid-template-columns: repeat(3, 1fr);
  grid-template-areas: "a b c" "a b d" "e f g";
}
.mosaico--beauty > [data-area="a"], .mosaico--beauty > [data-area="b"],
.mosaico--beauty > [data-area="e"], .mosaico--beauty > [data-area="f"],
.mosaico--beauty > [data-area="g"] { aspect-ratio: 0.8; }
.mosaico--cyber {
  grid-template-columns: 665fr 665fr 440fr 585fr;
  grid-template-areas: "a b c d" "e e e d";
}
.mosaico--cyber > [data-area="a"], .mosaico--cyber > [data-area="b"] { aspect-ratio: 1; }
.mosaico--cyber > [data-area="e"] { aspect-ratio: 5.922; }
.mosaico > [data-area="a"] { grid-area: a; } .mosaico > [data-area="b"] { grid-area: b; }
.mosaico > [data-area="c"] { grid-area: c; } .mosaico > [data-area="d"] { grid-area: d; }
.mosaico > [data-area="e"] { grid-area: e; } .mosaico > [data-area="f"] { grid-area: f; }
.mosaico > [data-area="g"] { grid-area: g; }

.pieza {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  border-radius: 30px;
  overflow: hidden;
  background: var(--rosa);
  cursor: pointer;
  isolation: isolate;
}
.pieza img, .pieza video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s cubic-bezier(.2, .7, .2, 1);
}
.pieza:hover img, .pieza:hover video { transform: scale(1.04); }
.pieza__nombre {
  position: absolute;
  left: 18px;
  bottom: 16px;
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.08em;
  color: var(--marron);
  background: var(--rosa-claro);
  padding: 2px 10px 2px 8px;
  border-radius: 6px;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity .3s ease, transform .3s ease;
}
.pieza:hover .pieza__nombre { opacity: 1; transform: none; }

.vacio {
  font-size: 20px;
  font-style: italic;
  font-weight: 300;
  color: var(--marron);
}

/* ================= PÁGINA TRABAJO ================= */
.trabajo {
  max-width: 1440px;
  margin: 0 auto;
  padding: 109px var(--lado) 100px;
  display: grid;
  grid-template-columns: minmax(0, 895px) minmax(0, 285px);
  gap: 20px;
  justify-content: space-between;
  align-items: start;
  position: relative;
}
/* cruz para volver a la sección anterior: en el margen, a la izquierda de la primera pieza */
.trabajo__volver {
  position: absolute;
  top: 109px;
  left: calc(var(--lado) / 2 - 22px);
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: var(--rosa);
  color: var(--marron);
  font-size: 20px;
  line-height: 1;
  text-decoration: none;
  transition: background .2s, transform .2s;
}
.trabajo__volver:hover { background: var(--rosa-claro); transform: scale(1.06); }
.trabajo__piezas { display: flex; flex-direction: column; gap: 20px; }
.trabajo__pieza {
  border-radius: 30px;
  overflow: hidden;
  background: var(--rosa);
}
.trabajo__pieza img, .trabajo__pieza video { width: 100%; height: 100%; object-fit: cover; }
.mosaico .trabajo__pieza { border-radius: 20px; }

/* manual de marca: páginas en un recuadro que solo se scrollea */
.trabajo__manual {
  margin-top: 20px;
  aspect-ratio: 1.3;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  background: #E2DCDA;
  border-radius: 20px;
  padding: 16px;
  scrollbar-width: thin;
  scrollbar-color: var(--rosa) transparent;
}
.trabajo__manual::-webkit-scrollbar { width: 8px; }
.trabajo__manual::-webkit-scrollbar-thumb { background: var(--rosa); border-radius: 4px; }
.trabajo__manual-hojas { display: flex; flex-direction: column; gap: 14px; }
.trabajo__manual-hojas img {
  width: 100%;
  height: auto;
  border-radius: 4px;
  box-shadow: 0 2px 8px rgba(89, 60, 56, .14);
  background: #fff;
}

.trabajo__info {
  position: sticky;
  top: calc(var(--header) + 40px);
  padding-top: 38px;
}
.trabajo__titulo {
  position: relative;
  display: inline-block;
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 37px;
  line-height: 36.8px;
  letter-spacing: -0.11em;
  color: var(--marron);
  padding: 0 14px 0 9px;
  z-index: 0;
}
.trabajo__titulo::before {
  content: "";
  position: absolute;
  left: 0; right: 0;
  top: 7.7px;
  height: 20.8px;
  background: var(--rosa);
  z-index: -1;
}
.trabajo__categoria {
  font-size: 16px;
  font-style: italic;
  font-weight: 300;
  margin-bottom: 10px;
}
.trabajo__categoria a { text-decoration: none; }
.trabajo__categoria a:hover { color: var(--rosa); }
.trabajo__texto {
  margin-top: 13px;
  font-size: 20px;
  line-height: normal;
  color: var(--tinta);
}
.trabajo__siguiente {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 23px;
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 16px;
  letter-spacing: -0.1em;
  color: var(--marron);
  text-decoration: underline dotted;
  text-underline-offset: 3px;
}
.trabajo__siguiente span { text-decoration: none; display: inline-block; letter-spacing: 0; transition: transform .25s; }
.trabajo__siguiente:hover span { transform: translateX(4px); }

/* visor grande */
.lupa {
  position: fixed;
  inset: 0;
  z-index: 1500;
  background: rgba(38, 38, 44, .88);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.lupa.abierta { display: flex; }
.lupa img, .lupa video { max-width: 100%; max-height: 100%; border-radius: 12px; }
.lupa__cerrar {
  position: absolute;
  top: 18px; right: 22px;
  width: 44px; height: 44px;
  border: 0;
  border-radius: 50%;
  background: var(--rosa);
  color: var(--marron);
  font-size: 20px;
  cursor: pointer;
}

/* ================= RESPONSIVE ================= */
@media (max-width: 1240px) {
  .header__nav { margin-left: 120px; }
  .titulo-proyectos .titulo-script__script { font-size: 200px; }
  .titulo-proyectos .titulo-script__bold { font-size: 47px; }
}

@media (max-width: 1100px) {
  .sobre__contenido { gap: 48px; }
  .flor--3 { left: -120px; }
  .flor--2 { right: -60px; }
}

@media (max-width: 900px) {
  :root { --header: 76px; }
  .header { padding: 0 16px; }
  .header__logo { width: 23px; height: 33px; }
  .header__nav { display: none; }
  .btn-foto { width: auto; height: 34px; padding: 0 15px 0 16px; font-size: 16px; }
  .hamburguesa {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    margin-left: 10px;
    border: 0;
    background: none;
    cursor: pointer;
    padding: 0 9px;
  }
  .hamburguesa span { display: block; height: 2.5px; background: var(--marron); border-radius: 2px; transition: transform .3s, opacity .3s; }
  .hamburguesa[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
  .hamburguesa[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .hamburguesa[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }
  .menu-movil {
    position: fixed;
    top: var(--header);
    left: 0; right: 0;
    z-index: 899;
    background: var(--fondo);
    box-shadow: 0 10px 20px rgba(0, 0, 0, .12);
    flex-direction: column;
    padding: 10px 16px 22px;
  }
  .menu-movil.abierto { display: flex; }
  .menu-movil a {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 30px;
    letter-spacing: -0.09em;
    color: var(--marron);
    text-decoration: none;
    padding: 8px 0;
  }

  .hero__textos { font-size: 9.6vw; line-height: 1.08; margin-top: -20px; }
  .ruleta, .ruleta__pista span { height: 1.08em; }
  .cartel { font-size: 17px; margin-top: 44px; }

  .sobre { padding-top: 80px; }
  .sobre__contenido { flex-direction: column; align-items: center; gap: 30px; }
  .polaroid { width: min(386px, 82vw); }
  .polaroid__marco { height: auto; aspect-ratio: 386 / 462; padding: 7.5% 8.1% 0; }
  .polaroid__foto { width: 100%; height: auto; aspect-ratio: 1; }
  .polaroid__chinche { left: 44.6%; width: 10.9%; height: auto; }
  .sobre__texto { width: 100%; max-width: 434px; padding-top: 10px; font-size: 18px; }
  .flor--1 { width: 70px; left: -6px; top: -60px; }
  .flor--2 { width: 100px; right: -10px; top: -40px; }
  .flor--3 { width: 100px; left: -20px; bottom: auto; top: 46%; }
  .flor--4 { width: 70px; right: 0; bottom: -60px; }

  .bloque-proyectos { min-height: 440px; }
  .titulo-proyectos .titulo-script__script { font-size: 21vw; }
  .titulo-proyectos .titulo-script__bold { font-size: 4.95vw; }

  .contacto { padding-top: 80px; }
  .postal__cara { box-shadow: 2px 2px 3px rgba(0, 0, 0, .25); }

  .musica { width: 64px; height: 64px; top: calc(var(--header) + 12px); right: 12px; }
  .pagina-interna .musica { top: calc(var(--header) + var(--banda, 50px) + 12px); }

  .footer { height: auto; aspect-ratio: 390 / 420; min-height: 360px; }
  .footer__logo { top: auto; bottom: -6%; }
  .footer__links { left: 16px; top: 40px; }
  .footer__nav { padding-right: 22px; gap: 18px; }
  .footer__redes { padding-left: 22px; gap: 22px; }

  .cabecera-proyectos { padding: 40px 16px 34px; }
  .categorias { justify-content: flex-start; height: 50px; }
  .categorias__lista { gap: 28px; padding: 0 16px; }
  .categorias a { font-size: 18px; }
  /* en el celu la fila se desliza de costado: tiene que recibir el dedo */
  .categorias--pildoras { height: var(--banda); pointer-events: auto; }
  .menu-pildoras { --banda: 62px; }
  .categorias--pildoras .categorias__lista { gap: 8px; }
  .categorias--pildoras a { font-size: 17px; padding: 6px 15px 7px 13px; }
  .btn-ver { height: 44px; font-size: 20px; padding: 0 22px 0 24px; margin-top: 34px; }
  .listado { padding-top: 54px; padding-bottom: 70px; }
  .grupo + .grupo { margin-top: 64px; }
  .grupo__titulo { font-size: 48px; margin-bottom: 28px; text-decoration-thickness: 2px; }
  .pieza__nombre { opacity: 1; transform: none; font-size: 13px; left: 8px; bottom: 8px; }
  .pieza { border-radius: 18px; }
  .filas, .fila, .mosaico { gap: 10px; }
  .mosaico--beauty { grid-template-columns: 1fr 1fr; grid-template-areas: "a b" "c d" "e f" "g ."; }
  .mosaico--beauty > [data-area="c"], .mosaico--beauty > [data-area="d"] { aspect-ratio: 1.8; }
  .mosaico--cyber { grid-template-columns: 1fr 1fr; grid-template-areas: "a b" "c d" "e e"; }
  .mosaico--cyber > [data-area="c"] { aspect-ratio: 0.665; }
  .trabajo__manual { aspect-ratio: 0.95; padding: 10px; border-radius: 16px; }
  .trabajo__manual-hojas { gap: 8px; }

  .trabajo { grid-template-columns: 1fr; padding-top: 40px; gap: 28px; }
  .trabajo__info { position: static; order: -1; padding-top: 0; }
  .trabajo__volver { position: static; order: -2; justify-self: start; width: 40px; height: 40px; font-size: 18px; margin-bottom: -12px; }
  .trabajo__pieza { border-radius: 20px; }
  .trabajo__titulo { font-size: 32px; }
  .trabajo__texto { font-size: 18px; }
}

@media (max-width: 480px) {
  .intro__botones { gap: 24px; }
}

/* iPhone viejos sin aspect-ratio */
@supports not (aspect-ratio: 1) {
  .pieza { height: 0; padding-top: 53.7%; }
  .pieza img, .pieza video { position: absolute; top: 0; left: 0; }
  .postal { height: 0; padding-top: 70.5%; position: relative; }
  .postal__carta { position: absolute; top: 0; left: 0; }
}
