/* =========================================================
   Nailimer Molina W — Portfolio
   ---------------------------------------------------------
   Jerarquía:
   H1  nombre en la portada
   H2  título de cada sección (01–06) con pestaña de carpeta
   H3  título de cada proyecto (con cliente arriba)
   H4  subtítulos dentro de un proyecto
   Etiquetas informativas  -> .labels  (texto plano, no se tocan)
   Controles interactivos  -> .control (botones con borde, cambian contenido)
   ========================================================= */

:root {
  --bg: #EAE7E8;
  --paper: #FBFAF8;
  --ink: #1C1A1B;
  --ink-soft: #5A5457;
  --line: rgba(28, 26, 27, .14);

  --folder: #F5C3C4;
  --folder-back: #EBA7B3;
  --folder-paper: #F3A9A5;
  --tape: #E77BB7;
  --accent: #C2457F;
  --hot: #E0569B;

  --butter: #FAF5C2;
  --grey-chip: #DAD7D8;
  --pink-chip: #F5CEDA;
  --imsg-blue: #1A8BF8;
  --imsg-grey: #E9E9EB;

  --serif: "EB Garamond", "Garamond", Georgia, serif;
  --script: "Pinyon Script", "Snell Roundhand", cursive;

  --gutter: clamp(16px, 4vw, 48px);
  --maxw: 1240px;
  --radius: 18px;
  --sh-1: 0 1px 2px rgba(60, 30, 45, .06), 0 6px 18px rgba(60, 30, 45, .07);
  --sh-2: 0 2px 6px rgba(60, 30, 45, .08), 0 18px 44px rgba(60, 30, 45, .14);
  --ease: cubic-bezier(.2, .8, .2, 1);
  --spring: cubic-bezier(.34, 1.56, .64, 1);

  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .55 0 0 0 0 .25 0 0 0 0 .3 0 0 0 .32 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  --grid: linear-gradient(rgba(28, 26, 27, .055) 1px, transparent 1px), linear-gradient(90deg, rgba(28, 26, 27, .055) 1px, transparent 1px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 64px; }
body {
  margin: 0;
  background-color: var(--bg);
  background-image: var(--grid);
  background-size: 34px 34px;
  background-position: center top;
  background-attachment: fixed;
  color: var(--ink);
  font-family: var(--serif);
  font-size: clamp(17px, .5vw + 14px, 20px);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
[hidden] { display: none !important; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3, h4, p, figure, dl, dd { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
::selection { background: var(--tape); color: #fff; }
.script { font-family: var(--script); font-weight: 400; line-height: 1; }
.wrap { width: 100%; max-width: calc(var(--maxw) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }

/* paper grain over everything */
.grain {
  position: fixed; inset: 0; z-index: 70; pointer-events: none;
  background-image: var(--grain); opacity: .3; mix-blend-mode: multiply;
}

/* ---------------------------------------------------------
   Top bar
   --------------------------------------------------------- */
.topbar {
  position: fixed; inset: 0 0 auto 0; z-index: 60;
  display: flex; align-items: center; gap: 24px;
  height: 52px; padding: 0 var(--gutter);
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.topbar__mark { font-size: 34px; line-height: 1; color: var(--accent); text-decoration: none; padding-top: 4px; transition: transform .4s var(--spring); }
.topbar__mark:hover { transform: rotate(-4deg) scale(1.05); }
.topbar__nav { display: flex; align-items: center; gap: clamp(14px, 2vw, 30px); margin-left: auto; }
.topbar__nav a { text-decoration: none; font-size: 16px; position: relative; padding: 3px 0; }
.topbar__nav a:not(.topbar__cta)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
  background: var(--hot); transform: scaleX(0); transform-origin: left; transition: transform .4s var(--ease);
}
.topbar__nav a:hover::after, .topbar__nav a.is-active::after { transform: scaleX(1); }
.topbar__cta { padding: 4px 14px !important; border-radius: 99px; background: var(--accent); color: #fff; transition: background .3s; }
.topbar__cta:hover { background: #A8336A; }
.topbar__burger { display: none; background: none; border: 0; width: 34px; height: 34px; position: relative; }
.topbar__burger span { position: absolute; left: 8px; right: 8px; height: 2px; background: var(--ink); transition: transform .3s var(--ease); }
.topbar__burger span:first-child { top: 13px; }
.topbar__burger span:last-child { top: 20px; }
.topbar__burger[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.topbar__burger[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }
@media (max-width: 900px) {
  .topbar__burger { display: block; margin-left: auto; }
  .topbar__nav {
    position: fixed; top: 52px; left: 0; right: 0; flex-direction: column; align-items: flex-start; gap: 0;
    padding: 8px var(--gutter) 20px; background: var(--bg); border-bottom: 1px solid var(--line);
    transform: translateY(-120%); transition: transform .45s var(--ease);
  }
  .topbar__nav.is-open { transform: none; }
  .topbar__nav a { font-size: 20px; padding: 8px 0; }
  .topbar__cta { margin-top: 8px; }
}

/* ---------------------------------------------------------
   Shared atoms
   --------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; gap: .4em; padding: .55em 1.2em; border-radius: 99px;
  text-decoration: none; font-size: 18px; line-height: 1.1; border: 0; box-shadow: var(--sh-1);
  transition: transform .3s var(--spring), background .25s, color .25s, box-shadow .3s;
}
.btn:hover { transform: translateY(-2px) rotate(-1deg); box-shadow: var(--sh-2); }
.btn--ink { background: var(--accent); color: #fff; }
.btn--ink:hover { background: #A8336A; }
.btn--ghost { background: var(--butter); }
.btn--ghost:hover { background: var(--folder); }
.btn--soft { justify-self: start; background: var(--accent); color: #fff; font-size: 16px; }
.btn--soft:hover { background: #A8336A; }

.chip { display: inline-flex; align-items: center; padding: .15em .55em; border-radius: 4px; border: 0; font-size: .9em; line-height: 1.3; white-space: nowrap; }
.chip--pink { background: var(--pink-chip); }
.chip--grey { background: var(--grey-chip); }
.chip--butter { background: var(--butter); }

/* informative labels: plain text, never look clickable */
.labels { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft); }
.labels::before { content: "Áreas"; font-weight: 600; color: var(--ink); }
.labels[aria-label="Formatos"]::before { content: "Formatos"; }
.labels span::before { content: "✦"; color: var(--hot); margin-right: 8px; }

/* interactive controls: bordered pills inside a tray, with a label */
.control { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 40px; }
.control__label { width: 100%; margin-bottom: 4px; font-size: 16px; font-style: italic; color: var(--ink-soft); }
.control__btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; border-radius: 6px;
  background: var(--paper); color: var(--ink); border: 0; font-size: 17px; line-height: 1.2;
  box-shadow: var(--sh-1); transition: transform .25s var(--spring), box-shadow .25s, background .25s;
}
.control__btn i { width: 10px; height: 10px; border-radius: 50%; background: var(--brand, var(--hot)); flex: none; }
.control__btn small { font-size: .8em; opacity: .65; }
.control__btn:hover { transform: translateY(-2px) rotate(-1deg); box-shadow: var(--sh-2); background: var(--butter); }
.control__btn:active { transform: translateY(1px); }
.control__btn[aria-selected="true"], .control__btn[aria-pressed="true"] { background: var(--accent); color: #fff; }
.control__btn[aria-selected="true"] i, .control__btn[aria-pressed="true"] i { box-shadow: 0 0 0 2px #fff; }
.control__btn[aria-selected="true"] small, .control__btn[aria-pressed="true"] small { opacity: .8; }
.control__btn sup { font-size: .7em; margin-left: 2px; opacity: .85; color: inherit; }
.control--sm .control__btn { padding: 4px 14px; font-size: 16px; }

.round-btn {
  width: 46px; height: 46px; border-radius: 50%; border: 0; background: var(--paper);
  font-size: 20px; line-height: 1; box-shadow: var(--sh-1); transition: background .25s, color .25s, transform .3s var(--spring);
}
.round-btn:hover { background: var(--tape); transform: scale(1.08); }

.card { background: var(--paper); border-radius: var(--radius); box-shadow: var(--sh-1); }

.bullets { display: grid; gap: .35em; }
.bullets li { position: relative; padding-left: 1.2em; }
.bullets li::before { content: "✦"; position: absolute; left: 0; top: .2em; color: var(--hot); font-size: .75em; }
.bullets--inline { display: flex; flex-wrap: wrap; gap: 6px 22px; margin-top: 16px; }

.hint-line { font-style: italic; color: var(--ink-soft); font-size: 15px; }
.hint-line--center { text-align: center; margin-top: 18px; }

.deco { position: absolute; pointer-events: none; user-select: none; }
[data-drag] { pointer-events: auto; cursor: grab; touch-action: none; -webkit-user-drag: none; }
[data-drag].is-dragging { cursor: grabbing; z-index: 40 !important; filter: drop-shadow(0 14px 18px rgba(0,0,0,.25)); }

[data-reveal] { opacity: 0; transform: translateY(32px) rotate(var(--rot, 0deg)); transition: opacity .9s var(--ease), transform 1s var(--ease); transition-delay: var(--d, 0s); }
[data-reveal].is-in { opacity: 1; transform: translateY(0) rotate(var(--rot, 0deg)); }

/* tape, ransom letters (hero + about) */
.tape {
  position: relative; display: grid; justify-items: center; gap: .1em; padding: .55em 1.5em .65em;
  background: linear-gradient(100deg, transparent 20%, rgba(255,255,255,.22) 32%, transparent 44%, transparent 62%, rgba(255,255,255,.14) 70%, transparent 80%), var(--grain), var(--tape);
  -webkit-mask: conic-gradient(from -135deg at right, #0000, #000 1deg 89deg, #0000 90deg) right / .5em .6em repeat-y, conic-gradient(from 45deg at left, #0000, #000 1deg 89deg, #0000 90deg) left / .5em .6em repeat-y, linear-gradient(#000 0 0) center / calc(100% - 1em) 100% no-repeat;
  mask: conic-gradient(from -135deg at right, #0000, #000 1deg 89deg, #0000 90deg) right / .5em .6em repeat-y, conic-gradient(from 45deg at left, #0000, #000 1deg 89deg, #0000 90deg) left / .5em .6em repeat-y, linear-gradient(#000 0 0) center / calc(100% - 1em) 100% no-repeat;
}
.tape__script { font-family: var(--script); font-size: 1.7em; line-height: 1.05; }
.ransom { display: inline-flex; gap: 2px; align-items: center; }
.ransom .r { display: inline-grid; place-items: center; width: 1.05em; height: 1.25em; line-height: 1; box-shadow: 1px 1px 0 rgba(0,0,0,.12); }
.ransom .r1 { font-family: "Abril Fatface", serif; background: #F6D3E1; color: #C9608F; transform: rotate(-4deg); }
.ransom .r2 { font-family: "DM Serif Display", serif; background: #FDE9F0; color: #E271A7; transform: rotate(3deg) translateY(2px); }
.ransom .r3 { font-family: "Playfair Display", serif; font-style: italic; background: #8E1440; color: #F7C9DA; transform: rotate(-2deg); }
.ransom .r4 { font-family: "Abril Fatface", serif; font-style: italic; background: #fff; color: #D2457F; transform: rotate(5deg); }

/* ---------------------------------------------------------
   Folder (hero only)
   --------------------------------------------------------- */
.folder { --open: 0; position: relative; aspect-ratio: 1.32; perspective: 1600px; container-type: inline-size; }
.folder__back, .folder__front { position: absolute; background-color: var(--folder); background-image: var(--grain); }
.folder__back {
  inset: -4.5% -2.2% 3% 2.5%; background-color: var(--folder-back);
  clip-path: polygon(0 7%, 64% 7%, 66.5% 0, 95.5% 0, 97.5% 4.5%, 100% 100%, 0 100%);
  transform: rotate(.6deg);
}
.folder__papers { position: absolute; inset: -6% 6% 12% 4%; z-index: 1; }
.folder__papers::before, .folder__papers::after {
  content: ""; position: absolute; inset: 0; background: #F9E4E8 var(--grain);
  transform: rotate(-1.4deg) translateY(calc(var(--open) * -6%)); transition: transform .8s var(--ease);
}
.folder__papers::after { background-color: var(--folder-paper); inset: 3% 6% 0 12%; transform: rotate(.8deg) translateY(calc(var(--open) * -10%)); }
.folder__front {
  inset: 0; z-index: 2;
  clip-path: polygon(0 5.5%, 1.4% 0, 70% 0, 72.5% 5.5%, 100% 5.5%, 100% 100%, 0 100%);
  transform-origin: 50% 100%; transform: rotateX(calc(var(--open) * -7deg)); transition: transform .9s var(--ease);
  display: grid; place-items: center; align-content: center; padding: 9% 7% 7%; text-align: center;
}
.folder__front::after { content: ""; position: absolute; left: 0; right: 0; bottom: 6%; height: 1px; background: rgba(150, 70, 80, .18); }
.folder__tab {
  position: absolute; top: 0; z-index: 1; left: calc(8% + var(--i) * 22%); width: 20%;
  padding: .55em .4em 6em; text-align: center; text-decoration: none;
  background: #fff var(--grain); border-radius: 6px 6px 0 0; font-size: 2.1cqw; font-weight: 500;
  transform: translateY(calc(1.7em - var(--open) * (3.5em + var(--i) * .25em))) rotate(calc((var(--i) - 1.5) * 1.8deg));
  transition: transform .7s var(--spring), background-color .3s; transition-delay: calc(var(--i) * 40ms);
}
.folder__tab:nth-child(odd) { background-color: #FDF1F4; }
.folder__tab:hover, .folder__tab:focus-visible { background-color: var(--butter); }

/* ---------------------------------------------------------
   Hero
   --------------------------------------------------------- */
.stack { position: relative; }
.hero {
  position: sticky; top: 0; z-index: 0; height: 100svh; overflow: hidden;
  display: grid; justify-items: center; align-items: start; padding-top: max(150px, 19svh);
}
.folder--hero {
  --open: 0; width: min(58vw, 1100px, calc((100svh - max(150px, 19svh) - 130px) / .42)); min-width: 300px;
  filter: drop-shadow(0 24px 40px rgba(120, 50, 70, .18)) brightness(calc(1 - var(--p, 0) * .12));
  /* recedes while it gets covered */
  transform: translateY(calc(var(--p, 0) * -6svh)) scale(calc(1 - var(--p, 0) * .06));
  transform-origin: 50% 0;
  animation: folder-in 1.4s var(--ease) both;
}
.folder--hero:hover, .folder--hero:focus-within { --open: 1; }
@keyframes folder-in { from { opacity: 0; transform: translateY(80px) rotate(3deg) scale(.96); } }
.folder--hero .folder__front { font-size: 1.8cqw; align-content: start; padding-top: 13cqw; }
.hero__kicker { font-size: 1em; letter-spacing: .32em; text-transform: uppercase; margin-bottom: 1.4em; color: #6E3550; }
/* 2. same pairing as "Sobre mí": script + light serif, plum instead of black */
.hero__name { display: grid; justify-items: center; font-weight: 400; line-height: 1; }
.hero__name .split { display: block; animation: rise 1.1s var(--ease) both; }
.hero__name .script { font-size: 13cqw; color: var(--accent); line-height: .95; }
.hero__surname { margin-top: -.25em; font-size: 7.6cqw; color: #4A2235; letter-spacing: -.01em; animation-delay: .12s !important; }
.hero__surname em { font-style: normal; color: var(--accent); font-size: 1.15em; }
@keyframes rise { from { opacity: 0; transform: translateY(40%) skewY(4deg); } }
.hero__role { margin-top: 2.4cqw; font-size: 2.6cqw; font-style: italic; letter-spacing: .02em; color: #6E3550; animation: rise 1s .4s var(--ease) both; }
@keyframes tape-in { from { opacity: 0; transform: scaleX(.2) rotate(-6deg); } }
.folder--hero .ransom { position: absolute; left: 8%; top: 12cqw; font-size: 4.8cqw; }
.hero__star { position: absolute; right: 10%; top: 12cqw; width: 7.5cqw; animation: wobble 5s ease-in-out infinite; }
/* 3. clip and wax seal sit on the folder edges, not on top of the pink */
@keyframes wobble { 0%,100% { transform: rotate(-8deg); } 50% { transform: rotate(10deg) scale(1.08); } }
.hero .deco { z-index: 2; animation: float 7s ease-in-out infinite; }
.hero__hearts { right: 9%; top: 15%; width: clamp(110px, 13vw, 230px); }
.hero__gem { left: 12%; top: 62%; width: clamp(60px, 6.5vw, 120px); animation-delay: -4s !important; }
@keyframes float { 0%,100% { margin-top: 0; } 50% { margin-top: -14px; } }
@media (max-width: 700px) {
  .hero { padding: 110px 0 0; }
  .folder--hero { width: 92vw; min-width: 0; }
  .folder--hero .folder__front { font-size: 3.4cqw; padding-top: 17cqw; }
  .hero__name .script { font-size: 17cqw; }
  .hero__surname { font-size: 10cqw; }
  .hero__role { font-size: 4.4cqw; }
  .folder--hero .ransom { top: 14cqw; font-size: 6cqw; }
  .hero__star { top: 14cqw; width: 9cqw; }
      .hero__hearts { right: 2%; top: 56px; width: 70px; }
  .hero__gem { left: 4%; top: 62px; width: 42px; }
  .folder__tab { font-size: 2.6cqw; }
  .hero__kicker { display: none; }
  .folder--hero .folder__front { padding-top: 24cqw; }
}

/* the sheet that covers the folder: transparent strip on top so the paper overlaps it,
   then the page background (with the same fixed grid) hides the folder completely */
.stack .about { position: relative; z-index: 1; margin-top: -72px; padding-top: 0; }
.stack .about::before {
  content: ""; position: absolute; z-index: -1; left: 0; right: 0; top: 72px; bottom: 0; pointer-events: none;
  background-color: var(--bg); background-image: var(--grid); background-size: 34px 34px;
  background-position: center top; background-attachment: fixed;
}
.stack .about > .wrap { position: relative; }

/* services as postage stamps (asset from the old portfolio) */
.stamps { display: grid; grid-template-columns: repeat(3, minmax(0, 300px)); justify-content: center; gap: clamp(24px, 5vw, 80px); padding-block: 96px 32px; }
.stamp-card {
  position: relative; display: grid; justify-items: center; align-content: center; gap: .3em; aspect-ratio: 1;
  padding: 11% 11% 9%; text-decoration: none; text-align: center; container-type: inline-size;
  isolation: isolate;
  filter: drop-shadow(0 12px 18px rgba(80, 40, 55, .16)); rotate: var(--r, 0deg);
  transition: transform .45s var(--spring), filter .45s;
  animation: stamp-sway 6s ease-in-out infinite; animation-delay: calc(var(--i, 0) * -2s);
}
@keyframes stamp-sway { 0%, 100% { transform: translateY(0) rotate(0deg); } 50% { transform: translateY(-6px) rotate(1.5deg); } }
.stamp-card:nth-child(2) { --i: 1; } .stamp-card:nth-child(3) { --i: 2; }
.stamp-card:hover { animation-play-state: paused; transform: translateY(-10px) rotate(-2deg) scale(1.04); filter: drop-shadow(0 20px 26px rgba(80, 40, 55, .24)); }
/* paper is whitened on its own layer so the text colours stay untouched */
.stamp-card::before { content: ""; position: absolute; inset: 0; z-index: -1; background: url("../assets/img/stamp-square.webp") center / 100% 100% no-repeat; filter: grayscale(1) brightness(1.2) contrast(.9); }
.stamp-card__n { position: absolute; top: 12%; left: 14%; font-family: var(--script); font-size: 20cqw; line-height: 1; color: var(--accent); }
.stamp-card__name { margin-top: 0; font-size: 17cqw; line-height: 1; color: var(--accent); }
.stamp-card:nth-child(even) .stamp-card__name { color: #8E1440; }
.stamp-card__desc { font-size: 6.4cqw; color: #3F393C; }
@media (max-width: 800px) { .stamps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------------------------------------------------------
   Sections + section heads (H2) + projects (H3)
   --------------------------------------------------------- */
.section { position: relative; padding-block: 112px; }
.section > .project:last-child { margin-bottom: 0; }
.section--tint { --ink-soft: #3F393C; background: linear-gradient(rgba(245, 195, 196, .22), rgba(245, 195, 196, .22)); box-shadow: inset 0 1px 0 var(--line), inset 0 -1px 0 var(--line); padding-bottom: 96px; }

.shead { position: relative; display: grid; gap: 24px; margin-bottom: 80px; padding-top: 0; }
.shead__tab {
  justify-self: start; display: inline-flex; gap: 10px; align-items: baseline;
  padding: 6px 22px 7px 16px; font-size: 15px; letter-spacing: .14em; text-transform: uppercase;
  background: var(--folder) var(--grain); border-radius: 8px; box-shadow: var(--sh-1);
}
.shead__tab b { font-weight: 700; color: var(--accent); }
.shead__title { font-size: clamp(44px, 6vw, 88px); font-weight: 500; line-height: 1.02; letter-spacing: -.01em; }
.shead__title em { font-family: var(--script); font-style: normal; font-weight: 400; color: var(--accent); font-size: 1.12em; line-height: .8; padding-right: .08em; }
.shead__lead { max-width: 58ch; font-size: clamp(19px, 1.5vw, 23px); color: var(--ink-soft); }

.project { margin-bottom: 112px; }
.project__head { display: grid; gap: 12px; margin-bottom: 40px; max-width: 760px; }
.project__head--split { max-width: none; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 24px 64px; align-items: center; }
.project__head--split > div:first-child { display: grid; gap: 12px; }
.project__client { font-size: 14px; letter-spacing: .16em; text-transform: uppercase; font-weight: 600; color: var(--accent); }
.project__client span { color: var(--ink-soft); font-weight: 500; }
.project__title { font-size: clamp(28px, 3vw, 42px); font-weight: 600; line-height: 1.12; }
.project__desc { color: var(--ink-soft); max-width: 62ch; }
.project--narrow { max-width: calc(940px + var(--gutter) * 2); }
.inline-key { display: inline-block; width: 1.1em; vertical-align: -.15em; filter: drop-shadow(0 3px 4px rgba(0,0,0,.15)); }
@media (max-width: 860px) { .project__head--split { grid-template-columns: 1fr; } }

.facts { display: grid; gap: 12px; }
.facts div { display: grid; grid-template-columns: 130px 1fr; gap: 12px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.facts dt { font-size: 13px; letter-spacing: .12em; text-transform: uppercase; font-weight: 600; color: var(--ink-soft); padding-top: .25em; }
.facts--stack div { grid-template-columns: 1fr; gap: 2px; }

.kpi { justify-self: end; margin-right: 24px; display: grid; gap: 2px; padding: 16px 22px; border-radius: 6px; background: var(--butter) var(--grain); box-shadow: var(--sh-1); max-width: 300px; rotate: -1.5deg; }
.kpi__n { font-size: clamp(38px, 3.6vw, 52px); line-height: .9; font-weight: 500; color: var(--accent); font-variant-numeric: tabular-nums; }
.kpi__l { font-size: 16px; line-height: 1.3; }

/* ---------------------------------------------------------
   01 One Xtudio: phone feed + notes + post viewer
   --------------------------------------------------------- */
.phone {
  position: relative; aspect-ratio: 9 / 18.5; border-radius: 42px; padding: 11px;
  background: #1d1b1c; box-shadow: var(--sh-2), inset 0 0 0 2px #3a3739;
}
.phone::before { content: ""; position: absolute; top: 19px; left: 50%; translate: -50% 0; width: 30%; height: 20px; border-radius: 99px; background: #1d1b1c; z-index: 2; }
.phone__screen { height: 100%; border-radius: 32px; overflow: hidden; background: #fff; position: relative; outline: none; }

.ox { display: grid; grid-template-columns: minmax(260px, 330px) minmax(0, 420px); justify-content: center; gap: clamp(28px, 6vw, 90px); align-items: center; margin-bottom: 56px; }
.ig { padding: 44px 12px 12px; font-family: -apple-system, "Segoe UI", Roboto, Arial, sans-serif; font-size: 11.5px; color: #111; overflow-y: auto; scrollbar-width: none; }
.ig::-webkit-scrollbar { display: none; }
.ig__top { display: flex; align-items: center; gap: 14px; font-size: 16px; margin-bottom: 12px; }
.ig__top b { font-size: 17px; }
.ig__icons { margin-left: auto; font-size: 13px; letter-spacing: 6px; }
.ig__profile { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.ig__avatar { display: block; width: 64px; height: 64px; flex: none; }
.ig__avatar svg { width: 100%; height: 100%; display: block; }
.ig__avatar--sm { width: 32px; height: 32px; }
.ig__name { font-weight: 600; font-size: 12.5px; line-height: 1.2; margin-bottom: 6px; }
.ig__counts { display: flex; justify-content: space-between; gap: 6px; }
.ig__counts p { display: grid; line-height: 1.2; font-size: 10.5px; }
.ig__counts b { font-size: 14px; }
.ig__cat { color: #737373; }
.ig__bio { line-height: 1.35; }
.ig__link { color: #4150F7; font-weight: 600; margin: 2px 0 10px; }
.ig__btns { display: grid; grid-template-columns: 1fr 1fr 34px; gap: 5px; margin-bottom: 12px; }
.ig__btns span { text-align: center; padding: 6px 2px; border-radius: 8px; background: #EFEFEF; font-weight: 600; }
.ig__highlights { display: flex; gap: 12px; margin-bottom: 10px; }
.ig__highlights span { display: grid; justify-items: center; gap: 4px; font-size: 10.5px; }
.ig__highlights i { display: grid; place-items: center; width: 50px; height: 50px; border-radius: 50%; font-style: normal; font-size: 18px; color: #fff; background: radial-gradient(circle at 40% 35%, #E2163A, #8E0A1E); box-shadow: 0 0 0 2px #fff, 0 0 0 3px #ddd; }
.ig__tabs { display: flex; margin-inline: -12px; border-top: 1px solid #e5e5e5; font-size: 16px; color: #999; }
.ig__tabs span { flex: 1; text-align: center; padding: 6px 0; }
.ig__tabs .is-on { color: #111; box-shadow: inset 0 1px 0 #111; }
.ig__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; margin-inline: -12px; }
.ig__cell { position: relative; aspect-ratio: 4 / 5; padding: 0; border: 0; background: #ddd; overflow: hidden; }
.ig__cell img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.ig__cell::after { content: "❐"; position: absolute; top: 4px; right: 6px; color: #fff; font-size: 13px; text-shadow: 0 1px 3px rgba(0,0,0,.5); }
.ig__cell:hover img { transform: scale(1.07); }

.note { position: relative; padding: 30px 26px 22px; background: var(--butter) var(--grain); box-shadow: var(--sh-2); rotate: -1.5deg; font-size: 17px; }
.note__clip { position: absolute; top: -24px; left: 50%; width: 56px; translate: -50% 0; }
.note__title { font-size: 22px; font-weight: 600; margin-bottom: 10px; }

/* carousel of Instagram post mockups */
.igposts__track { display: flex; gap: 24px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; padding: 10px 4px 26px; scrollbar-width: none; }
.igposts__track::-webkit-scrollbar { display: none; }
.igpost { flex: 0 0 min(82vw, 340px); scroll-snap-align: start; background: #fff; border-radius: 12px; box-shadow: var(--sh-2); overflow: hidden; font-family: -apple-system, "Segoe UI", Roboto, Arial, sans-serif; font-size: 13px; color: #111; }
.igpost__head { display: flex; align-items: center; gap: 8px; padding: 10px 12px; }
.igpost__head b { font-size: 13.5px; }
.igpost__head span:last-child { margin-left: auto; letter-spacing: 2px; }
.igpost__media { position: relative; }
.igpost__slides { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.igpost__slides::-webkit-scrollbar { display: none; }
.igpost__slides img { flex: 0 0 100%; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; scroll-snap-align: start; }
.igpost__count { position: absolute; top: 10px; right: 10px; padding: 2px 8px; border-radius: 99px; background: rgba(0,0,0,.6); color: #fff; font-size: 12px; }
.igpost__arrow { position: absolute; top: 50%; translate: 0 -50%; width: 28px; height: 28px; border-radius: 50%; border: 0; background: rgba(255,255,255,.85); font-size: 14px; line-height: 1; box-shadow: var(--sh-1); }
.igpost__arrow--prev { left: 8px; }
.igpost__arrow--next { right: 8px; }
.igpost__bar { display: flex; align-items: center; gap: 14px; padding: 10px 12px 4px; font-size: 18px; }
.igpost__dots { display: flex; gap: 4px; margin: 0 auto; }
.igpost__dots i { width: 6px; height: 6px; border-radius: 50%; background: #d4d4d4; }
.igpost__dots i.is-on { background: #3897F0; }
.igpost__save { margin-left: auto; }
.igpost__cap { padding: 4px 12px 0; line-height: 1.4; }
.igpost__tags { padding: 2px 12px; color: #00376B; }
.igpost__day { padding: 4px 12px 14px; color: #737373; font-size: 11px; text-transform: uppercase; letter-spacing: .04em; }
.igposts__nav { display: flex; align-items: center; justify-content: center; gap: 16px; }
@media (max-width: 860px) { .ox { grid-template-columns: 1fr; } .ox__phone { width: min(80vw, 320px); margin-inline: auto; } }

/* Facebook posts */
.fbposts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; align-items: start; }
.fbpost { background: #fff; border-radius: 14px; box-shadow: var(--sh-1); overflow: hidden; font-family: -apple-system, "Helvetica Neue", Arial, sans-serif; font-size: 14px; color: #1c1e21; transition: transform .4s var(--spring), box-shadow .4s; }
.fbpost:hover { box-shadow: var(--sh-2); }
.fbpost:nth-child(2) { margin-top: 40px; }
.fbpost__head { display: flex; gap: 10px; align-items: center; padding: 14px 14px 8px; }
.fbpost__head b { display: block; font-size: 14px; }
.fbpost__head small { color: #65676b; font-size: 12px; }
.fbpost__avatar { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: linear-gradient(135deg, var(--tape), var(--accent)); color: #fff; font-weight: 700; }
.fbpost__text { padding: 0 14px 12px; line-height: 1.4; }
.fbpost__img { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; }
.fbpost__img img { width: 100%; }
.fbpost__stats { display: flex; justify-content: space-between; gap: 10px; padding: 10px 14px; color: #65676b; font-size: 12.5px; border-top: 1px solid #e4e6eb; }
@media (max-width: 900px) { .fbposts { grid-template-columns: 1fr; max-width: 480px; margin-inline: auto; } .fbpost:nth-child(2) { margin-top: 0; } }

/* ---------------------------------------------------------
   02 Video corto
   --------------------------------------------------------- */
.ugc-stats { text-decoration: none; transition: transform .3s var(--spring); display: flex; flex-wrap: wrap; align-items: center; gap: 12px 34px; padding: 14px 26px 14px 14px; margin-bottom: 40px; border-radius: 99px; background: var(--paper); box-shadow: var(--sh-1); width: fit-content; }
.ugc-stats__avatar { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--hot); }
.ugc-stats b { font-size: 1.6em; font-weight: 600; color: var(--accent); font-variant-numeric: tabular-nums; }
.ugc-stats p:first-of-type b { font-size: 1em; color: var(--ink); }
.ugc-stats span { color: var(--ink-soft); font-style: italic; }
@media (max-width: 600px) { .ugc-stats { border-radius: 22px; } }

.reels { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: clamp(16px, 2.2vw, 30px); }
.reel { position: relative; display: grid; gap: 10px; padding: 0; border: 0; background: none; text-align: left; transition: transform .5s var(--spring); transform: rotate(var(--tilt, 0deg)); }
.reel:hover, .reel:focus-visible { transform: translateY(-8px) rotate(0deg); }
.reel.is-hidden { display: none; }
.reel__frame { position: relative; aspect-ratio: 9 / 16; border-radius: 22px; overflow: hidden; background: #ccc; margin: 7px; box-shadow: 0 0 0 7px #fff, var(--sh-2); }
.reel__frame img, .reel__frame video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.reel__frame video { opacity: 0; transition: opacity .4s; }
.reel.is-previewing video { opacity: 1; }
.reel__play { position: absolute; left: 50%; top: 50%; translate: -50% -50%; width: 60px; height: 60px; border-radius: 50%; background: rgba(255,255,255,.88); display: grid; place-items: center; box-shadow: 0 8px 20px rgba(0,0,0,.2); transition: transform .4s var(--spring), opacity .3s; }
.reel__play::after { content: ""; margin-left: 5px; border-style: solid; border-width: 11px 0 11px 18px; border-color: transparent transparent transparent var(--ink); }
.reel:hover .reel__play { transform: scale(1.15); }
.reel.is-previewing .reel__play { opacity: 0; }
.reel__cat { position: absolute; top: 12px; left: 12px; font-size: 13px; padding: 2px 8px; border-radius: 4px; background: var(--butter); }
.reel__meta { padding: 0 8px; line-height: 1.2; }
.reel__brand { font-weight: 600; font-size: 19px; }
.reel__campaign { display: block; font-style: italic; color: var(--ink-soft); font-size: 17px; }
@media (max-width: 600px) { .reels { grid-template-columns: 1fr 1fr; gap: 12px; } .reel__play { width: 46px; height: 46px; } }

/* ---------------------------------------------------------
   03 Copywriting
   --------------------------------------------------------- */
.product { display: grid; grid-template-columns: minmax(0, 1fr); max-width: 480px; margin-inline: auto; padding: 20px; border-radius: 18px; background: var(--paper); box-shadow: var(--sh-2); animation: panel-in .6s var(--ease); }
@keyframes panel-in { from { opacity: 0; transform: translateY(20px); } }
.product__main { display: grid; gap: 14px; }
.product__main img { border-radius: 14px; background: #fff; box-shadow: var(--sh-1); }
.gallery__viewport { overflow: hidden; border-radius: 14px; touch-action: pan-y; box-shadow: var(--sh-1); }
.gallery__track { display: flex; transition: transform .7s var(--ease); }
.gallery__slide { flex: 0 0 100%; }
.gallery__slide button { display: block; padding: 0; border: 0; background: none; width: 100%; cursor: zoom-in; }
.gallery__bar { display: flex; align-items: center; gap: 12px; margin-top: 14px; }
.gallery__caption { font-style: italic; flex: 1; font-size: 17px; }
.gallery__thumbs { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; margin-top: 10px; }
.gallery__caption { font-size: 15px !important; }
.gallery__thumbs button { padding: 0; border: 2px solid transparent; border-radius: 8px; overflow: hidden; background: none; opacity: .55; transition: opacity .3s, border-color .3s, transform .3s var(--spring); }
.gallery__thumbs button[aria-current="true"] { opacity: 1; border-color: var(--ink); }
.gallery__thumbs button:hover { opacity: 1; transform: translateY(-3px); }
@media (max-width: 820px) { .product { padding: 16px; } }

.store { display: grid; grid-template-columns: minmax(0, 1fr) 290px; gap: clamp(24px, 5vw, 64px); align-items: center; max-width: 920px; margin-inline: auto; padding: clamp(24px, 4vw, 48px); border-radius: 26px; }
.store__copy { display: grid; gap: 14px; justify-items: start; }
.store__copy .control { margin: 8px 0 0; }
.store__phone { width: 100%; }
@media (max-width: 720px) { .store { grid-template-columns: 1fr; } .store__phone { width: min(76vw, 290px); margin-inline: auto; } }

/* auto-scrolling long screenshots (store, One Xtudio) */
.autoscroll { overflow: hidden; }
.autoscroll img { width: 100%; animation: autoscroll var(--dur, 26s) ease-in-out infinite alternate; }
.autoscroll--slow img { --dur: 60s; }
.autoscroll:hover img, .autoscroll:focus img { animation-play-state: paused; }
@keyframes autoscroll { 0%, 5% { transform: translateY(0); } 95%, 100% { transform: translateY(calc(-100% + var(--screen-h, 600px))); } }

.sites { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px 32px; }
.site--featured { grid-column: 1 / -1; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: center; gap: 32px; }
.site--featured figcaption { padding-left: 32px; }
.site { display: grid; gap: 16px; align-content: start; }
.site figcaption { display: grid; gap: 6px; justify-items: start; }
.site figcaption p:not(.project__client) { color: var(--ink-soft); }
.site figcaption .btn { margin-top: 6px; font-size: 16px; }
.browser { border-radius: 14px; overflow: hidden; background: #fff; box-shadow: var(--sh-2); transition: transform .5s var(--spring); }
.site .browser:hover { transform: translateY(-6px) rotate(-.4deg); }
.browser__bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; background: var(--folder); font-family: -apple-system, "Helvetica Neue", Arial, sans-serif; font-size: 12px; color: #777; }
.browser__bar i { width: 10px; height: 10px; border-radius: 50%; background: #E3A0A8; }
.browser__bar i:nth-child(2) { background: #EFD58A; }
.browser__bar i:nth-child(3) { background: #A9D3A0; }
.browser__bar span { margin-left: 10px; padding: 2px 12px; border-radius: 99px; background: #fff; }
.browser__screen { aspect-ratio: 2.3; overflow: hidden; }
.browser__screen > img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.browser__screen.autoscroll > img { height: auto; object-fit: initial; }
@media (max-width: 960px) { .sites, .site--featured { grid-template-columns: 1fr; } .site--featured figcaption { padding-left: 0; } }

/* ---------------------------------------------------------
   04 SEO
   --------------------------------------------------------- */
.case { display: grid; gap: 34px; padding: clamp(18px, 3vw, 36px); border-radius: 18px; background: var(--paper); box-shadow: var(--sh-2); animation: panel-in .6s var(--ease); }
.case__facts { display: grid; }
.case__facts div { display: grid; grid-template-columns: 200px 1fr; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.case__facts dt { font-size: 13px; letter-spacing: .12em; text-transform: uppercase; font-weight: 600; color: var(--brand); padding-top: .3em; }
.case__facts dd { font-size: 18px; }
.case__facts b { font-weight: 600; font-variant-numeric: tabular-nums; }
.case__step { display: grid; gap: 14px; }
.case__h { display: flex; align-items: center; gap: 12px; font-size: 21px; font-weight: 600; }
.case__h span { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--brand); color: #fff; font-size: 17px; }
.shot { display: block; padding: 0; border: 0; background: none; cursor: zoom-in; border-radius: 20px; overflow: hidden; box-shadow: var(--sh-1); transition: transform .4s var(--spring), box-shadow .4s; }
.shot:hover { transform: translateY(-3px); box-shadow: var(--sh-2); }
.shot--article { max-width: 560px; }
.result { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.result p { display: grid; gap: 2px; padding: 18px 22px; border-radius: 6px; background: var(--butter) var(--grain); }
.result b { font-size: clamp(30px, 2.8vw, 40px); line-height: 1.05; font-weight: 600; color: var(--brand); font-variant-numeric: tabular-nums; }
.result small { font-size: 18px; color: var(--ink); }
@media (max-width: 640px) { .case__facts div { grid-template-columns: 1fr; gap: 2px; } }

.articles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; align-items: start; max-width: 900px; }
.article { overflow: hidden; transition: transform .4s var(--spring), box-shadow .4s; }
.article:hover { box-shadow: var(--sh-2); }
.article img { width: 100%; aspect-ratio: 2 / 1; object-fit: cover; }
.article__body { display: grid; gap: 6px; padding: 12px 14px 16px; font-family: -apple-system, "Segoe UI", Arial, sans-serif; color: #1F2A5C; }
.article__tags { font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: #6B7280; }
.article h4 { font-size: 16px; line-height: 1.3; }
.article__body > p:last-child:not(.article__tags) { font-size: 14px; color: #4B5563; line-height: 1.55; }
@media (max-width: 900px) { .articles { grid-template-columns: 1fr; max-width: 520px; } }

/* ---------------------------------------------------------
   01 Sobre mí — hoja de papel (inspirada en la referencia)
   --------------------------------------------------------- */
.about { padding-top: 40px; }
.aboutx {
  --deep: #7A2349;
  position: relative; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 64px) clamp(28px, 5vw, 80px);
  padding: clamp(28px, 5vw, 72px); background: #FBFAF8; box-shadow: var(--sh-2); border-radius: 4px; color: var(--deep);
}
.aboutx__tag { position: absolute; top: clamp(16px, 2.5vw, 32px); right: clamp(16px, 2.5vw, 32px); padding: 3px 16px; border-radius: 99px; background: var(--accent); color: #fff; font-size: 16px; letter-spacing: .04em; }
.aboutx__tag b { font-weight: 600; margin-right: 4px; opacity: .8; }
/* spacing follows an 8px scale: 8 · 16 · 24 · 32 · 48 · 64 */
.aboutx { row-gap: 64px; }
.aboutx__intro { display: grid; align-content: center; gap: 32px; padding-top: 8px; }
.aboutx__title { position: relative; display: grid; font-weight: 400; line-height: .9; }
.aboutx__hello { justify-self: start; margin: 0 0 16px 4px; padding: 4px 16px; border-radius: 99px; background: var(--pink-chip); color: var(--deep); font-size: 16px; line-height: 1.5; letter-spacing: .02em; }
.aboutx__script { font-size: clamp(80px, 9vw, 144px); color: var(--accent); line-height: .95; }
.aboutx__serif { justify-self: end; margin-top: -.35em; padding-right: 8px; font-size: clamp(44px, 4.8vw, 76px); color: #4A2235; letter-spacing: -.01em; }
.aboutx__serif em { font-style: normal; color: var(--accent); font-size: 1.15em; margin-left: .05em; }
.aboutx__bio { display: grid; gap: 16px; font-size: clamp(17px, 1.25vw, 19px); line-height: 1.6; max-width: 46ch; }
.aboutx__note { justify-self: start; max-width: 30ch; padding: 16px 24px; background: var(--butter) var(--grain); color: var(--ink); font-size: 18px; line-height: 1.4; box-shadow: var(--sh-1); rotate: -1.5deg; }
.aboutx__note b { color: var(--accent); font-size: 1.25em; margin-right: .2em; }
.aboutx__contact { display: grid; gap: 12px; font-size: 17px; }
.aboutx__contact li { display: flex; align-items: center; gap: 12px; }
.aboutx__contact svg { width: 22px; height: 22px; flex: none; color: var(--accent); }
.aboutx__contact a { text-decoration: none; color: var(--deep); }
.aboutx__contact a:hover { color: var(--accent); text-decoration: underline; }

/* collage: overlapping prints at different angles; tape only bites the corner */
.aboutx__photos { display: grid; gap: 0; align-content: start; margin-top: 16px; }
/* positions arranged by Nai in ?editar mode (centres, % of a 497x620 box) */
/* never taller than the screen, so photos + hint fit in one view */
.collage { position: relative; aspect-ratio: 497 / 620; width: min(100%, calc((100svh - 170px) * 497 / 620)); justify-self: center; }
.collage > *, .collage > [data-drag] { position: absolute; left: var(--x); top: var(--y); translate: calc(-50% + var(--dx, 0px)) calc(-50% + var(--dy, 0px)); }
[data-drag] { translate: var(--dx, 0px) var(--dy, 0px); }
.pic { margin: 0; padding: 10px 10px 34px; background: #fff; box-shadow: 0 2px 4px rgba(60, 30, 45, .08), 0 14px 30px rgba(60, 30, 45, .16); }
.pic > img:first-child { display: block; width: 100%; height: 100%; object-fit: cover; }
.pic--a { --x: 20%; --y: 23.4%; width: 40%; aspect-ratio: 4 / 5.2; rotate: -7deg; z-index: 1; }
.pic--a > img:first-child { object-position: center 30%; }
.pic--main { --x: 61%; --y: 39.4%; width: 62%; aspect-ratio: 4 / 5.3; rotate: 3deg; z-index: 2; }
.pic--main > img:first-child { object-position: center 25%; }
.pic--b { --x: 85%; --y: 71.6%; width: 34%; aspect-ratio: 4 / 5.4; rotate: 7deg; z-index: 4; }
.pic--b > img:first-child { object-position: center 15%; }
/* tapes and clip are independent pieces of the collage */
.pic__tape { width: 19.2%; height: auto; opacity: .92; z-index: 5; }
.pic__tape--tl { --x: 34.4%; --y: 8.2%; rotate: -35deg; }
.pic__tape--tr { --x: 102.2%; --y: 58%; rotate: 43deg; }
.aboutx__polaroid { --x: 31%; --y: 69.7%; z-index: 3; width: 62%; rotate: -5deg; filter: drop-shadow(0 12px 18px rgba(60, 30, 45, .22)); }
.aboutx__polaroid-frame { position: relative; width: 100%; }
.aboutx__polaroid-pic { position: absolute; left: 4%; top: 6.5%; width: 92%; height: 72%; object-fit: cover; object-position: center 40%; }
.aboutx__clip { --x: -0.7%; --y: 53.2%; width: 3%; rotate: -13deg; z-index: 4; }
.aboutx__badge { --x: 33.6%; --y: 46.6%; z-index: 5; padding: 4px 16px; border-radius: 6px; background: var(--accent); color: #fff; font-size: 16px; white-space: nowrap; box-shadow: var(--sh-1); rotate: -4deg; }
.aboutx__star--a { --x: 91.2%; --y: 84.6%; width: 10.5%; z-index: 5; }
.aboutx__seal { --x: 64.1%; --y: 86.8%; width: 12.9%; rotate: 12deg; z-index: 5; }
.sticker { z-index: 6; filter: drop-shadow(0 6px 8px rgba(60, 30, 45, .2)); }
.sticker--bow { --x: 90.1%; --y: 11.3%; width: 14.1%; rotate: 8deg; }
.sticker--heartclip { --x: -2.7%; --y: 4.4%; width: 10.9%; rotate: -12deg; }
.sticker--gem { --x: 6.4%; --y: 43.5%; width: 8.9%; rotate: 10deg; }
.sticker--button { --x: 57.2%; --y: 47.9%; width: 9.7%; }
.sticker--cake { --x: 15.7%; --y: 82.5%; width: 15.7%; rotate: -6deg; }
.collage [data-drag] { cursor: grab; }

/* hint + "+7 años" right under the photos */
.collage__foot { position: relative; z-index: 7; display: grid; justify-items: start; gap: 16px; margin-top: -9%; padding-left: 6%; }
.collage__hint { max-width: 52ch; text-align: left; font-style: italic; font-size: 16px; line-height: 1.45; color: var(--accent); }
.collage__foot .aboutx__note { margin: 0; justify-self: start; }

.aboutx__cols { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 48px 80px; padding-top: 48px; border-top: 1px solid rgba(122, 35, 73, .12); }
.aboutx__h { font-family: var(--script); font-weight: 400; font-size: clamp(40px, 3.4vw, 52px); color: var(--ink); line-height: 1.1; margin-bottom: 24px; }
.aboutx__tools { display: flex; flex-wrap: wrap; gap: 8px; }
.aboutx__tools li {
  display: grid; place-items: center; width: 76px; aspect-ratio: 1;
  clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
  background: radial-gradient(circle at 50% 55%, #fff 0 22%, var(--folder) 48%, var(--tape) 100%);
  transition: transform .4s var(--spring);
}
.aboutx__tools li:hover { transform: rotate(18deg) scale(1.1); }
.aboutx__tools img { width: 34%; aspect-ratio: 1; object-fit: contain; margin-top: 10%; border-radius: 4px; }

/* hard skills: one colour per family, all from the site palette */
.aboutx__skills { display: flex; flex-wrap: wrap; gap: 8px; }
.sk { padding: 4px 14px; border-radius: 6px; font-size: 16px; line-height: 1.5; }
.sk--data { background: var(--accent); color: #fff; }
.sk--ads { background: var(--folder); color: #4A2235; }
.sk--org { background: var(--butter); color: #4A3F2A; }
.sk--build { background: #fff; color: var(--accent); box-shadow: inset 0 0 0 1.5px var(--tape); }
.aboutx__legend { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-top: 24px; font-size: 14px; color: #6B5560; }
.aboutx__legend li { display: flex; align-items: center; gap: 8px; }
.aboutx__legend i { width: 12px; height: 12px; border-radius: 3px; }
.aboutx__legend i.sk--build { box-shadow: inset 0 0 0 1.5px var(--tape); }

@media (max-width: 900px) {
  .aboutx { grid-template-columns: 1fr; row-gap: 48px; }
  .aboutx__cols { grid-template-columns: 1fr; gap: 40px; }
  .aboutx__badge { font-size: 14px; }
  .pic__tape { width: 64px; }
}

/* Video corto: intro text + filters next to the TikTok card */
.video-intro { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 40px 96px; margin-bottom: 72px; }
.video-intro .project__head { margin-bottom: 32px; }
.video-intro .ttcard { margin: 0 24px 0 0; rotate: 2deg; }
.video-intro .control { margin-bottom: 0; }
@media (max-width: 860px) { .video-intro { grid-template-columns: 1fr; } .video-intro .ttcard { justify-self: start; } }

/* Contenido: H2 + TikTok card side by side */
.shead--split { grid-template-columns: minmax(0, 1fr) auto; align-items: center; padding-top: 0; column-gap: clamp(24px, 5vw, 80px); }
.shead__main { display: grid; gap: 18px; justify-items: start; }
.ttcard {
  display: grid; justify-items: center; gap: 4px; width: 300px; padding: 24px 22px 20px; text-align: center; text-decoration: none;
  background: #fff; border-radius: 18px; box-shadow: var(--sh-2); rotate: 2deg; color: #161616; margin-top: 48px;
  font-family: -apple-system, "Segoe UI", Roboto, Arial, sans-serif; transition: transform .4s var(--spring);
}
.ttcard:hover { transform: translateY(-6px) rotate(-2deg); }
.ttcard__avatar { width: 92px; height: 92px; border-radius: 50%; object-fit: cover; margin-bottom: 6px; }
.ttcard__name { font-weight: 700; font-size: 18px; }
.ttcard__user { color: #666; font-size: 14px; }
.ttcard__counts { display: grid; grid-template-columns: repeat(3, 1fr); width: 100%; margin: 12px 0 8px; }
.ttcard__counts p { display: grid; color: #777; font-size: 12.5px; line-height: 1.3; }
.ttcard__counts b { color: #161616; font-size: 18px; font-variant-numeric: tabular-nums; }
.ttcard__bio { font-size: 14px; }
.ttcard__btn { margin-top: 10px; padding: 7px 18px; border-radius: 6px; background: #FE2C55; color: #fff; font-weight: 600; font-size: 14px; }
@media (max-width: 860px) { .shead--split { grid-template-columns: 1fr; } .ttcard { justify-self: start; } }

/* ---------------------------------------------------------
   06 Contacto
   --------------------------------------------------------- */
.contact { padding-bottom: 96px; }
.contact__panel {
  display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); align-items: center; gap: clamp(24px, 5vw, 72px);
  max-width: calc(var(--maxw) + var(--gutter) * 2); padding: clamp(32px, 5vw, 72px); border-radius: 30px;
  background: var(--folder) var(--grain); box-shadow: var(--sh-2);
}
.contact__copy { display: grid; gap: 18px; justify-items: start; }
.shead__tab--light { border-radius: 6px; background: var(--butter); }
.contact .shead__lead { color: var(--ink); }
.contact .shead__title { font-size: clamp(40px, 4.6vw, 70px); }
.contact .shead__title em { white-space: nowrap; }
.contact__btns { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.letter { position: relative; aspect-ratio: 1.15; }
.letter__env { position: absolute; right: 0; top: 0; width: 78%; filter: drop-shadow(0 16px 26px rgba(80, 30, 50, .18)); }
.letter__card {
  position: absolute; left: 0; bottom: 4%; width: 78%; padding: 7% 8% 8%; display: grid; gap: .3em; justify-items: start;
  background: #F7F4EE var(--grain); box-shadow: var(--sh-2); transform: rotate(-5deg); font-size: clamp(15px, 1.3vw, 19px); transition: transform .5s var(--spring);
}
.letter__card:hover { animation-play-state: paused; }
.letter__card .script { font-size: 2.4em; }
.letter__card a { text-decoration: none; border-bottom: 1px solid transparent; transition: border-color .3s; }
.letter__card a:hover { border-color: currentColor; }
.letter__seal { position: absolute; width: 20%; right: 52%; top: 18%; rotate: -8deg; }
.letter__card { animation: card-sway 5s ease-in-out infinite; transform-origin: 50% 0; }
@keyframes card-sway { 0%, 100% { transform: rotate(-6deg); } 50% { transform: rotate(-1deg); } }
@media (max-width: 860px) { .contact__panel { grid-template-columns: 1fr; } .letter { max-width: 420px; width: 100%; margin-inline: auto; } }

.footer { border-top: 1px solid var(--line); background: var(--paper); }
.footer__inner { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 20px; padding-block: 28px; }
.footer__name { font-weight: 600; font-size: 20px; display: grid; }
.footer__name span { font-weight: 400; font-size: 15px; color: var(--ink-soft); }
.footer__nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 22px; font-size: 16px; }
.footer__nav a, .footer__small a { text-decoration: none; }
.footer__nav a:hover, .footer__small a:hover { color: var(--accent); }
.footer__small { font-size: 15px; color: var(--ink-soft); }
@media (max-width: 760px) { .footer__inner { grid-template-columns: 1fr; justify-items: start; } .footer__nav { justify-content: flex-start; } }

/* ---------------------------------------------------------
   Dialogs + toast
   --------------------------------------------------------- */
dialog { border: 0; padding: 0; background: transparent; max-width: none; max-height: none; width: 100vw; height: 100dvh; margin: 0; }
dialog::backdrop { background: rgba(28, 22, 25, .82); backdrop-filter: blur(6px); }
dialog[open] { display: grid; place-items: center; animation: dlg .35s var(--ease); }
@keyframes dlg { from { opacity: 0; transform: scale(.97); } }
.lightbox img { max-width: min(92vw, 1500px); max-height: 88dvh; border-radius: 12px; box-shadow: 0 30px 80px rgba(0,0,0,.4); }
.lightbox__close { position: fixed; top: 14px; right: 18px; width: 48px; height: 48px; border-radius: 50%; border: 0; background: #fff; font-size: 30px; line-height: 1; z-index: 2; }
.lightbox__nav { position: fixed; top: 50%; translate: 0 -50%; width: 52px; height: 52px; border-radius: 50%; border: 0; background: rgba(255,255,255,.9); font-size: 30px; line-height: 1; z-index: 2; }
.lightbox__nav--prev { left: 16px; }
.lightbox__nav--next { right: 16px; }
.player__phone { height: min(84dvh, 860px); aspect-ratio: 9 / 16; border-radius: 34px; overflow: hidden; background: #000; box-shadow: 0 0 0 9px #1d1b1c, 0 30px 80px rgba(0,0,0,.5); }
.player__phone video { width: 100%; height: 100%; object-fit: contain; background: #000; }
.player__meta { position: fixed; bottom: 18px; left: 0; right: 0; text-align: center; color: #fff; font-size: 18px; }
@media (max-width: 600px) { .player__phone { height: auto; width: 88vw; } .lightbox__nav { top: auto; bottom: 64px; translate: none; } }

.toast { position: fixed; left: 50%; bottom: 24px; translate: -50% 0; z-index: 100; padding: .55em 1.1em; border-radius: 99px; background: var(--ink); color: var(--bg); font-size: 16px; opacity: 0; transform: translateY(16px); transition: opacity .3s, transform .4s var(--spring); pointer-events: none; }
.toast.is-shown { opacity: 1; transform: none; }

:focus-visible { outline: 2px solid var(--hot); outline-offset: 3px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  [data-reveal] { opacity: 1; transform: none; }
  .autoscroll { overflow-y: auto; }
  .autoscroll img { animation: none; }
}

/* screenshot / debug mode */
.is-static { scroll-behavior: auto; }
.is-static [data-reveal] { opacity: 1; transform: rotate(var(--rot, 0deg)); transition: none; }
.is-static .bubble { opacity: 1; transform: none; }

.is-static .stack .about { margin-top: 0; }

#amazon { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 440px); column-gap: 80px; align-items: start; }
#amazon > .project__head { grid-column: 1; grid-template-columns: 1fr; gap: 24px; margin-bottom: 40px; }
#amazon .products { display: contents; }
#amazon .products > .control { grid-column: 1; margin: 0; }
#amazon .product { grid-column: 2; grid-row: 1 / span 2; margin: 0; max-width: none; }
@media (max-width: 960px) { #amazon { grid-template-columns: 1fr; } #amazon .product { grid-column: 1; grid-row: auto; margin-top: 32px; } }

#podcast .project__head { margin-bottom: 56px; }

@media (pointer: coarse) { .collage .pic, .collage .aboutx__polaroid { touch-action: pan-y; } }
@media (max-width: 600px) { .collage__foot { justify-items: start; margin-top: 16px; padding-right: 0; } .collage__hint { text-align: left; } .aboutx__badge { font-size: 13px; } }

/* One Xtudio: context + feed grid + post dialog */
.oxhead { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 40px 80px; align-items: center; margin-bottom: 56px; }
.oxhead .project__head { margin-bottom: 0; }
.oxhead .labels::before { content: "Mi rol"; }
.note--sm { padding: 28px 24px 20px; font-size: 16px; justify-self: end; }
.note--sm .note__title { font-size: 20px; margin-bottom: 8px; }
.note--sm .note__clip { width: 48px; top: -22px; }
.feed { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; max-width: 900px; margin-inline: auto; }
.feed__cell { position: relative; aspect-ratio: 4 / 5; padding: 0; border: 0; border-radius: 6px; overflow: hidden; background: #ddd; box-shadow: var(--sh-1); cursor: pointer; }
.feed__cell img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.feed__badge { position: absolute; top: 10px; right: 10px; padding: 2px 8px; border-radius: 99px; background: rgba(28, 26, 27, .55); color: #fff; font-size: 12px; font-family: -apple-system, "Segoe UI", Roboto, Arial, sans-serif; }
.feed__hover { position: absolute; inset: 0; display: grid; place-content: center; gap: 6px; padding: 16px; text-align: center; color: #fff; background: rgba(122, 35, 73, .62); opacity: 0; transition: opacity .35s; }
.feed__hover b { font-size: 22px; font-weight: 600; line-height: 1.15; }
.feed__hover small { font-size: 15px; font-style: italic; }
.feed__cell:hover img, .feed__cell:focus-visible img { transform: scale(1.05); }
.feed__cell:hover .feed__hover, .feed__cell:focus-visible .feed__hover { opacity: 1; }
.oxdlg__card { display: grid; grid-template-columns: minmax(0, 480px) minmax(0, 320px); width: min(92vw, 860px); max-height: 90dvh; border-radius: 16px; overflow: hidden; background: var(--paper); box-shadow: 0 30px 80px rgba(0,0,0,.4); }
.oxdlg__media { position: relative; background: #111; }
.oxdlg__slides { display: flex; height: 100%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; outline: none; }
.oxdlg__slides::-webkit-scrollbar { display: none; }
.oxdlg__slides img { flex: 0 0 100%; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; scroll-snap-align: start; }
.oxdlg__info { display: grid; align-content: start; gap: 12px; padding: 40px 32px; }
.oxdlg__title { font-size: 28px; font-weight: 600; line-height: 1.15; }
.oxdlg__label { margin-top: 12px; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; font-weight: 600; color: var(--accent); }
.oxdlg__goal { font-size: 18px; line-height: 1.55; color: var(--ink); }
.oxdlg__nav { display: flex; gap: 12px; margin-top: 24px; }
@media (max-width: 860px) {
  .oxhead { grid-template-columns: 1fr; } .note--sm { justify-self: start; }
  .feed { gap: 6px; }
  .feed__hover b { font-size: 16px; }
  .oxdlg__card { grid-template-columns: 1fr; overflow-y: auto; }
  .oxdlg__info { padding: 24px; }
}

/* =========================================================
   MOBILE ONLY (≤ 700px) — desktop stays untouched
   One vertical rhythm: 64px between sections and projects,
   40px under section heads, 32px inside blocks.
   ========================================================= */
@media (max-width: 700px) {
  /* hero: folder centred in the screen, decorations stay inside */
  .hero { align-items: center; padding: 52px 0 64px; }
  .hero__hearts { top: calc(50% - 200px); right: 4%; width: 64px; }
  .hero__gem { top: calc(50% + 120px); left: 6%; width: 44px; }

  /* consistent spacing between every section */
  .section { padding-block: 64px; }
  .stack .about, .stack .about.section { margin-top: -64px; }
  .project { margin-bottom: 64px; }
  .shead { margin-bottom: 40px; }
  .stamps { padding-block: 0; gap: 16px; }
  .stamp-card:last-child { grid-column: 1 / -1; justify-self: center; width: calc(50% - 8px); }

  /* video: TikTok card first, then the filters right above the videos */
  .video-intro { display: flex; flex-direction: column; gap: 32px; margin-bottom: 24px; }
  .video-intro__text { display: contents; }
  .video-intro .project__head { order: 1; margin-bottom: 0; }
  .video-intro .ttcard { order: 2; align-self: center; width: min(100%, 300px); margin: 0; rotate: 1deg; }
  .video-intro .control {
    order: 3; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; min-width: 0; width: 100vw; align-self: center;
    margin: 0; padding: 4px var(--gutter) 8px;
  }
  .video-intro .control::-webkit-scrollbar { display: none; }
  .video-intro .control__label { width: auto; flex: none; margin: 0 4px 0 0; }
  .video-intro .control__btn { flex: none; }

  /* metric note centred */
  .kpi { justify-self: center; margin-right: 0; }

  /* contact: title can wrap so nothing gets cut */
  .contact .shead__title em { white-space: normal; }
  .contact__panel { grid-template-columns: minmax(0, 1fr); padding: 40px 24px; }
}

/* =========================================================
   MOBILE round 2 (≤ 700px)
   ========================================================= */
@media (max-width: 700px) {
  /* hero sized by its content, not by the screen height:
     same distance from the menu on every phone, "Sobre mí" peeks right below */
  .hero { height: auto; min-height: 0; align-items: start; padding: calc(52px + 56px) 0 96px; }
  .hero__hearts { top: 64px; right: 5%; width: 60px; }
  .hero__gem { top: auto; bottom: 40px; left: 7%; width: 42px; }

  /* stamp cards: readable text on a phone */
  .stamps { grid-template-columns: minmax(0, min(80vw, 320px)); justify-content: center; gap: 24px; }
  .stamp-card, .stamp-card:last-child { grid-column: auto; width: auto; justify-self: stretch; padding: 10% 9% 9%; gap: .2em; }
  .stamp-card__n { top: 9%; left: 12%; font-size: 20cqw; }
  .stamp-card__name { margin-top: 10cqw; font-size: 19cqw; line-height: 1; }
  .stamp-card__desc { font-size: 8.5cqw; line-height: 1.2; color: #2E2A2C; }

  /* Amazon: product chips in one sliding row + carousel that fits in the screen */
  #amazon .products > .control {
    flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none;
    margin: 0 calc(-1 * var(--gutter)); padding: 4px var(--gutter) 8px;
  }
  #amazon .products > .control::-webkit-scrollbar { display: none; }
  #amazon .products > .control .control__label { width: auto; flex: none; margin: 0 4px 0 0; }
  #amazon .products > .control .control__btn { flex: none; }
  #amazon .product { margin-top: 16px; padding: 12px; }
  #amazon .product { width: min(100%, calc(100svh - 52px - 250px)); justify-self: center; }
  #amazon .gallery__thumbs { display: none; }
  #amazon .gallery__bar { margin-top: 8px; }
}

/* =========================================================
   Stamps on phones and small tablets (≤ 800px): one column,
   text never smaller than a readable size
   ========================================================= */
@media (max-width: 800px) {
  .stamps { grid-template-columns: minmax(0, min(80vw, 320px)); justify-content: center; gap: 24px; padding-block: 0; }
  .stamp-card, .stamp-card:last-child { grid-column: auto; width: auto; justify-self: stretch; padding: 10% 9% 9%; gap: .25em; }
  .stamp-card__n { top: 9%; left: 12%; font-size: max(40px, 20cqw); }
  .stamp-card__name { margin-top: 10cqw; font-size: max(40px, 19cqw); line-height: 1.05; }
  .stamp-card__desc { font-size: max(20px, 8.5cqw); line-height: 1.2; color: #2E2A2C; }
  /* script capitals are hard to read: "seo" in lowercase */
  .stamp-card[href="#seo"] .stamp-card__name { font-size: max(48px, 22cqw); }
}
