/* =========================================================
   Andrés Muñiz — estilos
   Índice: 1 Base · 2 Tipografía · 3 Botones · 4 Header · 5 Intro
   6 Portada · 7 Reel · 8 Sobre mí · 9 Listas de proyectos
   10 Tarjetas · 11 Habilidades · 12 Ecosistema · 13 Foto · 14 Blog
   15 Contacto · 16 Proyecto individual · 17 Candado · 18 Contenido
   19 Pie · 20 Lightbox · 21 Animaciones · 22 Responsive
   ========================================================= */

/* 1 · BASE ------------------------------------------------ */
:root {
  --bg: #EEEAE0;
  --ink: #151515;
  --accent: #FF4D2E;
  --accent-ink: #151515;
  --sage: #C9CBB4;
  --dark: #121212;
  --paper-2: color-mix(in srgb, var(--bg) 70%, #fff);
  --line: color-mix(in srgb, var(--ink) 16%, transparent);
  --muted: color-mix(in srgb, var(--ink) 58%, transparent);
  --f-display: 'helvetica-neue-lt-pro-cond', 'Archivo Narrow', 'Arial Narrow', sans-serif;
  --f-serif: 'benton-modern-display', 'Newsreader', 'Times New Roman', serif;
  --f-serif-cn: 'benton-modern-display-conden', 'Newsreader', 'Times New Roman', serif;
  --f-sans: 'helvetica-neue-lt-pro', 'Inter', 'Helvetica Neue', Helvetica, system-ui, sans-serif;
  --f-mono: 'JetBrains Mono', ui-monospace, Menlo, monospace;
  --pad: clamp(18px, 4vw, 56px);
  --radius: 22px;
  --ease: cubic-bezier(.2, .7, .1, 1);
  --ease-io: cubic-bezier(.7, 0, .2, 1);
  --p-bg: var(--accent);
  --p-fg: var(--accent-ink);
  --p-ac: var(--accent-ink);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: clip; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 17px/1.55 var(--f-sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  overflow-x: clip;
}
img, video, iframe { max-width: 100%; display: block; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
::selection { background: var(--accent); color: var(--accent-ink); }
[hidden] { display: none !important; }

.am-wrap { width: 100%; max-width: 1440px; margin: 0 auto; padding: 0 var(--pad); }
.am-wrap--narrow { max-width: 860px; }
.am-center { text-align: center; margin-top: 48px; }
.am-muted { color: var(--muted); }
.am-mono { font-family: var(--f-mono); font-size: .76rem; letter-spacing: .04em; text-transform: uppercase; }
.am-label { font-family: var(--f-mono); font-size: .74rem; letter-spacing: .08em; text-transform: uppercase; margin: 0 0 14px; opacity: .75; }
.am-label a:hover { text-decoration: underline; }
.am-kicker { font-family: var(--f-serif); font-size: clamp(1.2rem, 2vw, 1.6rem); margin: 0 0 18px; line-height: 1.15; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }
.screen-reader-text:focus { clip: auto; width: auto; height: auto; z-index: 9999; background: var(--ink); color: var(--bg); padding: 10px 16px; top: 10px; left: 10px; border-radius: 99px; }
.am-empty { font-family: var(--f-serif); font-size: 1.6rem; padding: 60px 0; opacity: .7; }

/* 2 · TIPOGRAFÍA ------------------------------------------ */
.am-display {
  font-family: var(--f-serif);
  font-weight: 400;
  font-size: clamp(2.6rem, 6.4vw, 6rem);
  line-height: .98;
  letter-spacing: -.015em;
  margin: 0 0 24px;
}
.am-display em, .am-hero__title em, .am-project__logline em, .am-card__text em { font-style: italic; color: var(--accent); }
.am-display--xl { font-size: clamp(3rem, 9vw, 9.5rem); }
.am-display--l { font-size: clamp(2.4rem, 6vw, 5.4rem); }
.am-display sup { font-size: .9rem; vertical-align: top; margin-left: 10px; position: relative; top: .8em; }
.am-block-title { font-family: var(--f-mono); font-size: .78rem; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; margin: 0 0 24px; padding-bottom: 14px; border-bottom: 1px solid currentColor; opacity: .85; }

/* 3 · BOTONES Y PÍLDORAS ---------------------------------- */
.am-btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 13px 22px; border-radius: 999px; border: 1px solid transparent;
  background: var(--ink); color: var(--bg);
  font: 500 .95rem/1 var(--f-sans);
  transition: transform .35s var(--ease), background .3s, color .3s;
  will-change: transform;
}
.am-btn:hover { transform: translateY(-2px) rotate(-1.5deg); background: var(--accent); color: var(--accent-ink); }
.am-btn--ghost { background: transparent; color: inherit; border-color: currentColor; }
.am-btn--big { padding: 18px 30px; font-size: 1.05rem; }
.am-btn__play { font-size: .7rem; }
.am-btn--project { background: var(--p-fg); color: var(--p-bg); }
.am-btn--project:hover { background: var(--p-ac); color: var(--p-bg); }
.am-btn--soon { background: transparent; border: 1px dashed currentColor; color: inherit; opacity: .6; cursor: default; }
.am-btn--soon:hover { transform: none; background: transparent; color: inherit; }
.am-pill { display: inline-block; padding: 8px 18px; border: 1px solid currentColor; border-radius: 999px; font-family: var(--f-serif); font-size: 1.25rem; transition: background .3s, color .3s; }
a.am-pill:hover { background: var(--ink); color: var(--bg); }
.am-chip {
  display: inline-flex; align-items: center; padding: 8px 16px; border-radius: 999px;
  border: 1px solid var(--line); background: transparent; font-size: .9rem; transition: all .25s;
}
.am-chip:hover { border-color: var(--ink); }
.am-chip.is-active, .am-chip input:checked + span { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.am-badge { display: inline-block; vertical-align: middle; font: 500 .7rem/1 var(--f-mono); text-transform: uppercase; letter-spacing: .06em; padding: 7px 10px; border-radius: 99px; border: 1px solid currentColor; margin-left: 14px; }
.am-rec { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: #ff2a2a; animation: am-blink 1.2s steps(2) infinite; vertical-align: middle; }
.am-dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: #3ccf6e; box-shadow: 0 0 0 4px color-mix(in srgb, #3ccf6e 25%, transparent); margin-right: 6px; }
@keyframes am-blink { 50% { opacity: 0; } }

/* 4 · HEADER ---------------------------------------------- */
.am-header {
  position: fixed; inset: 14px var(--pad) auto; z-index: 100;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  pointer-events: none;
  transition: transform .5s var(--ease);
}
.am-header > * { pointer-events: auto; }
.am-header.is-hidden { transform: translateY(-140%); }
.am-glass {
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  backdrop-filter: blur(14px) saturate(1.2);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
}
.am-header__brand { display: flex; align-items: center; gap: 12px; padding: 5px 18px 5px 5px; min-width: 0; }
.am-logo__mark { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--ink); color: var(--bg); font: 700 1rem/1 var(--f-display); letter-spacing: .02em; }
.am-logo__img { width: 38px; height: 38px; object-fit: contain; border-radius: 50%; }
.am-roles { font-size: .9rem; white-space: nowrap; display: inline-block; transition: opacity .35s, transform .35s var(--ease); }
.am-roles.is-out { opacity: 0; transform: translateY(-8px); }
.am-nav { padding: 4px; }
.am-nav__list { list-style: none; margin: 0; padding: 0; display: flex; }
.am-nav__list li + li { border-left: 1px solid var(--line); }
.am-nav__list a { display: block; padding: 10px 18px; font-size: .92rem; border-radius: 999px; transition: background .25s; }
.am-nav__list a:hover, .am-nav__list .current-menu-item > a, .am-nav__list a.is-current { background: color-mix(in srgb, var(--ink) 8%, transparent); }
.am-header__cta { background: var(--accent); color: var(--accent-ink); }
.am-header__cta:hover { background: var(--ink); color: var(--bg); }
.am-burger { display: none; width: 50px; height: 50px; padding: 0; position: relative; }
.am-burger span:not(.screen-reader-text) { position: absolute; left: 15px; right: 15px; height: 1.5px; background: currentColor; transition: transform .35s var(--ease); }
.am-burger span:nth-child(1) { top: 21px; } .am-burger span:nth-child(2) { top: 28px; }
.am-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(3.5px) rotate(45deg); }
.am-burger[aria-expanded="true"] span:nth-child(2) { transform: translateY(-3.5px) rotate(-45deg); }
.am-menu {
  position: fixed; inset: 0; z-index: 90; background: var(--accent); color: var(--accent-ink);
  display: flex; flex-direction: column; justify-content: center; gap: 30px; padding: 100px var(--pad) 40px;
}
.am-menu .am-nav__list { flex-direction: column; }
.am-menu .am-nav__list li + li { border: 0; }
.am-menu .am-nav__list a { font: 700 clamp(2.6rem, 12vw, 4.4rem)/1 var(--f-display); text-transform: uppercase; padding: 6px 0; }
.am-menu .am-btn { align-self: flex-start; }

/* 5 · INTRO (pintura que se borra) ------------------------ */
.am-intro { position: fixed; inset: 0; z-index: 1001; color: var(--intro-ink); background: var(--intro); cursor: pointer; }
.am-intro__inner { position: absolute; inset: 0; display: grid; place-items: center; }

/* Pintura (brochazo) de intro y cambio de página */
.am-paint { position: fixed; inset: 0; z-index: 1000; pointer-events: none; display: none; color: var(--paint, var(--accent)); }
.paint-in .am-paint { display: block; pointer-events: auto; }
.am-paint svg { width: 100%; height: 100%; overflow: visible; display: block; }
.am-paint path { fill: none; stroke: currentColor; stroke-width: 32%; stroke-linecap: round; stroke-linejoin: round; }
.am-squiggle { position: absolute; left: 12%; right: 12%; bottom: 3px; height: 9px; width: 76%; pointer-events: none; overflow: visible; }
.am-squiggle path { fill: none; stroke: var(--accent); stroke-width: 2.4; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.am-nav__list a { position: relative; }
.am-intro__name { font: 700 clamp(3.4rem, 15vw, 15rem)/.86 var(--f-display); text-transform: uppercase; text-align: center; letter-spacing: -.01em; }
.am-intro__word { display: inline-block; clip-path: inset(0 0 100% 0); transform: translateY(40%); animation: am-word 1s var(--ease) forwards; animation-delay: calc(.15s + var(--w) * .14s); }
.am-intro__tc { position: absolute; top: 28px; left: 50%; transform: translateX(-50%); font: 500 .8rem var(--f-mono); letter-spacing: .1em; }
.am-intro__corners i, .am-reel__corners i, .am-card__corners i, .am-frame__corners i { position: absolute; width: 26px; height: 26px; border: 0 solid currentColor; }
.am-intro__corners i:nth-child(1), .am-reel__corners i:nth-child(1), .am-card__corners i:nth-child(1), .am-frame__corners i:nth-child(1) { top: 22px; left: 22px; border-top-width: 1.5px; border-left-width: 1.5px; }
.am-intro__corners i:nth-child(2), .am-reel__corners i:nth-child(2), .am-card__corners i:nth-child(2), .am-frame__corners i:nth-child(2) { top: 22px; right: 22px; border-top-width: 1.5px; border-right-width: 1.5px; }
.am-intro__corners i:nth-child(3), .am-reel__corners i:nth-child(3), .am-card__corners i:nth-child(3), .am-frame__corners i:nth-child(3) { bottom: 22px; left: 22px; border-bottom-width: 1.5px; border-left-width: 1.5px; }
.am-intro__corners i:nth-child(4), .am-reel__corners i:nth-child(4), .am-card__corners i:nth-child(4), .am-frame__corners i:nth-child(4) { bottom: 22px; right: 22px; border-bottom-width: 1.5px; border-right-width: 1.5px; }
.intro-skip .am-intro, .am-intro.is-done { display: none; }
.paint-in body { overflow: hidden; }
.has-intro:not(.intro-done) { overflow: hidden; }
.intro-skip .has-intro { overflow: auto; }
@keyframes am-word { to { clip-path: inset(0 0 -10% 0); transform: none; } }

/* 6 · PORTADA --------------------------------------------- */
.am-hero { position: relative; min-height: 100svh; display: flex; flex-direction: column; justify-content: center; padding: 130px 0 40px; overflow: hidden; }
.am-hero__inner { position: relative; z-index: 2; }
.am-hero__kicker { max-width: 22ch; }
.am-hero__title { font: 700 clamp(3.6rem, 12.5vw, 13.5rem)/.86 var(--f-display); text-transform: uppercase; letter-spacing: -.01em; margin: 0 0 40px; }
.am-hero__title em { font-family: var(--f-serif); text-transform: none; font-size: 1.12em; letter-spacing: -.02em; line-height: .7; }
.am-line { display: block; overflow: hidden; padding-bottom: .04em; }
.am-line > span { display: inline-block; transform: translateY(105%); transition: transform 1.1s var(--ease); transition-delay: calc(var(--i, 0) * .09s + .1s); }
.is-ready .am-line > span { transform: none; }
.am-hero__foot { display: flex; justify-content: space-between; align-items: flex-end; gap: 30px; flex-wrap: wrap; }
.am-hero__text { max-width: 44ch; font-size: 1.1rem; margin: 0; }
.am-hero__actions { display: flex; gap: 10px; flex-wrap: wrap; }
.am-orbit { position: absolute; right: 5vw; top: 18vh; width: clamp(130px, 15vw, 210px); z-index: 1; animation: am-spin 22s linear infinite; }
.am-orbit text { font: 500 11.5px var(--f-mono); letter-spacing: 2.4px; fill: var(--ink); }
.am-orbit::after { content: ''; }
@keyframes am-spin { to { transform: rotate(360deg); } }
.am-clients { position: relative; z-index: 2; margin: 70px var(--pad) 0; padding-top: 18px; border-top: 1px solid var(--line); display: flex; gap: 24px; align-items: baseline; flex-wrap: wrap; }
.am-clients .am-label { margin: 0; }
.am-clients ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 36px; }
.am-clients li { font: italic 400 clamp(1.15rem, 1.8vw, 1.6rem)/1.2 var(--f-serif); }

/* 7 · DEMO REEL ------------------------------------------- */
.am-reel { position: relative; height: 100svh; min-height: 520px; background: var(--dark); color: #F4F1EA; overflow: hidden; cursor: none; }
.am-reel__media, .am-reel__bg, .am-reel__shade { position: absolute; inset: 0; width: 100%; height: 100%; }
.am-reel__bg { object-fit: cover; transform: scale(1.08); transition: transform 1.6s var(--ease); }
.am-reel.is-visible .am-reel__bg { transform: scale(1); }
.am-reel__shade { background: radial-gradient(ellipse at center, transparent 30%, rgba(0,0,0,.55)), linear-gradient(to top, rgba(0,0,0,.45), transparent 40%); }
.am-reel__ui { position: absolute; inset: 0; padding: 90px var(--pad) 40px; display: flex; flex-direction: column; justify-content: space-between; }
.am-reel__top { display: flex; justify-content: space-between; }
.am-reel__title { font: 700 clamp(4rem, 17vw, 17rem)/.82 var(--f-display); text-transform: uppercase; margin: 0; color: transparent; -webkit-text-stroke: 1.5px #F4F1EA; mix-blend-mode: difference; }
.am-reel__play {
  position: absolute; left: 0; top: 0; width: 132px; height: 132px; margin: -66px 0 0 -66px; border-radius: 50%;
  background: var(--accent); color: var(--accent-ink); border: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; text-align: center;
  left: var(--x, 50%); top: var(--y, 50%); transition: left .2s var(--ease), top .2s var(--ease), scale .3s var(--ease);
  z-index: 3; cursor: none;
}
.am-reel__play span { font-size: 1.2rem; line-height: 1; }
.am-reel__play em { font: italic 400 1.05rem/1 var(--f-serif); }
.am-reel__play:hover { scale: 1.08; }
.am-reel__hint { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); background: #fff; color: #151515; padding: 16px 22px; border-radius: 14px; max-width: 420px; text-align: center; cursor: auto; }
.am-reel__hint a { text-decoration: underline; }
.am-reel__corners { position: absolute; inset: 0; pointer-events: none; color: rgba(255,255,255,.7); }
.am-reel-modal { position: fixed; inset: 0; z-index: 500; background: rgba(8,8,8,.96); display: grid; place-items: center; padding: 4vw; }
.am-reel-modal__frame { width: min(1400px, 100%); aspect-ratio: 16/9; }
.am-reel-modal__frame video, .am-reel-modal__frame iframe { width: 100%; height: 100%; border: 0; background: #000; }
.am-reel-modal__close, .am-lightbox__close { position: absolute; top: 20px; right: 20px; width: 50px; height: 50px; border-radius: 50%; border: 1px solid rgba(255,255,255,.4); background: transparent; color: #fff; font-size: 1.1rem; }

/* 8 · SOBRE MÍ -------------------------------------------- */
.am-about { padding: clamp(90px, 14vw, 180px) 0; position: relative; }
.am-about__grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px 6vw; align-items: start; }
.am-about__head .am-pill { margin-bottom: 40px; }
.am-about__text { font-size: 1.12rem; max-width: 52ch; padding-top: 14px; }
.am-about__text p { margin: 0 0 1.1em; }
.am-years { display: flex; align-items: baseline; gap: 14px; }
.am-years strong { font: 700 clamp(5rem, 11vw, 9rem)/.8 var(--f-display); color: var(--accent); }
.am-years span { font-family: var(--f-serif); font-size: 1.5rem; font-style: italic; }
.am-about__photos { grid-column: 1 / -1; position: relative; display: flex; justify-content: center; gap: 4vw; margin-top: 30px; }
.am-polaroid { margin: 0; background: #fff; padding: 12px 12px 46px; box-shadow: 0 30px 60px -20px rgba(0,0,0,.25); width: min(360px, 42vw); }
.am-polaroid img { aspect-ratio: 4/5; object-fit: cover; width: 100%; }
.am-polaroid--a { transform: rotate(-5deg); }
.am-polaroid--b { transform: rotate(4deg) translateY(50px); }

.am-band { background: var(--accent); color: var(--accent-ink); overflow: hidden; padding: 18px 0; transform: rotate(-1.5deg); margin: 0 -2vw; }
.am-marquee { overflow: hidden; }
.am-marquee__track { display: flex; width: max-content; animation: am-marquee 32s linear infinite; }
.am-marquee__track span { font: 700 clamp(2rem, 4.5vw, 4rem)/1 var(--f-display); text-transform: uppercase; padding-right: 30px; white-space: nowrap; }
.am-marquee__track i { font-style: normal; font-family: var(--f-serif); padding: 0 20px; }
@keyframes am-marquee { to { transform: translateX(-50%); } }

/* 9 · LISTAS DE PROYECTOS (estilo índice) ----------------- */
.am-work { padding: clamp(90px, 12vw, 160px) 0; position: relative; transition: background .6s var(--ease), color .6s var(--ease); }
.am-work.is-hovering { background: var(--hover-bg); color: var(--hover-fg); }
.am-work.is-hovering .am-btn--ghost, .am-work.is-hovering .am-display em { color: var(--hover-fg); }
.am-section-head { margin-bottom: 50px; }
.am-section-head--split { display: flex; justify-content: space-between; align-items: flex-end; gap: 30px; flex-wrap: wrap; }
.am-section-head__text { max-width: 36ch; font-size: 1.1rem; margin: 0 0 30px; }
.am-rows { list-style: none; margin: 0; padding: 0; border-top: 1px solid currentColor; }
.am-row { border-bottom: 1px solid color-mix(in srgb, currentColor 30%, transparent); transition: opacity .4s; }
.am-work.is-hovering .am-row:not(.is-active) { opacity: .28; }
.am-row__link { display: grid; grid-template-columns: 60px 1fr minmax(0, .55fr) 90px; align-items: center; gap: 20px; padding: 22px 0; }
.am-row__num { opacity: .6; }
.am-row__title { font: 400 clamp(2rem, 4.6vw, 4.4rem)/1 var(--f-serif); letter-spacing: -.015em; transition: transform .5s var(--ease), font-style .2s; }
.am-row.is-active .am-row__title { transform: translateX(14px); font-style: italic; }
.am-row__meta { font-size: .92rem; opacity: .8; }
.am-row__year { text-align: right; opacity: .7; }
.am-row .am-badge { font-style: normal; }
.am-hover-preview { position: fixed; left: 0; top: 0; z-index: 40; width: clamp(220px, 24vw, 360px); aspect-ratio: 4/5; pointer-events: none; opacity: 0; scale: .7; rotate: -6deg; transition: opacity .3s, scale .45s var(--ease), rotate .45s var(--ease); border-radius: 6px; overflow: hidden; box-shadow: 0 30px 70px -20px rgba(0,0,0,.45); }
.am-hover-preview.is-on { opacity: 1; scale: 1; rotate: 3deg; }
.am-hover-preview img { width: 100%; height: 100%; object-fit: cover; }

.am-page-head { padding: 160px 0 40px; }
.am-page-head__text { max-width: 50ch; font-size: 1.15rem; }
.am-filters { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 30px; }
.am-filters__sep { width: 1px; height: 26px; background: var(--line); margin: 0 6px; }
.am-filters__view { margin-left: auto; display: flex; gap: 6px; }
.am-work--archive { padding-top: 20px; }
.am-row.is-filtered, .am-cards__cell.is-filtered { display: none; }

/* 10 · TARJETAS (póster) ---------------------------------- */
.am-own { padding: clamp(90px, 12vw, 160px) 0; background: var(--sage); }
.am-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 40px 28px; }
.am-cards__cell { display: contents; }
.am-card__link { display: block; }
.am-card__media { position: relative; aspect-ratio: 4/5; background: var(--p-bg); color: var(--p-fg); border-radius: 4px; overflow: hidden; }
.am-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.am-card:hover .am-card__media img { transform: scale(1.06); }
.am-card__placeholder { position: absolute; inset: 0; display: grid; place-items: center; font: 700 10rem/1 var(--f-display); opacity: .9; }
.am-card__corners { position: absolute; inset: 0; color: var(--p-fg); opacity: 0; transition: opacity .4s; }
.am-card:hover .am-card__corners { opacity: .9; }
.am-card__corners i { width: 20px; height: 20px; }
.am-card.is-locked .am-card__media img { filter: blur(14px) saturate(.8); transform: scale(1.15); }
.am-card__lock { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; font: italic 400 2.2rem/1 var(--f-serif); color: var(--p-fg); background: color-mix(in srgb, var(--p-bg) 45%, transparent); }
.am-card__lock span { font-style: normal; font-size: 1.6rem; }
.am-card__body { padding-top: 16px; }
.am-card__meta { margin: 0 0 6px; opacity: .7; }
.am-card__title { font: 400 clamp(1.8rem, 2.6vw, 2.5rem)/1 var(--f-serif); margin: 0 0 8px; }
.am-card__text { margin: 0; opacity: .85; }

/* 11 · HABILIDADES (figuras con física) ------------------- */
.am-skills { background: var(--dark); color: #F4F1EA; position: relative; }
.am-skills__head { position: absolute; top: 30px; left: 0; right: 0; z-index: 2; display: flex; justify-content: space-between; pointer-events: none; }
.am-skills__stage { position: relative; height: max(620px, 92svh); overflow: hidden; user-select: none; touch-action: pan-y; }
.am-skills__canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.am-skills__button {
  position: absolute; left: 50%; top: 46%; transform: translate(-50%, -50%); z-index: 3;
  width: clamp(150px, 16vw, 200px); aspect-ratio: 1; border-radius: 50%; border: 0;
  background: #F4F1EA; color: #151515; font: 500 1.05rem/1.25 var(--f-sans); padding: 20px;
  transition: transform .3s var(--ease), background .3s;
}
.am-skills__button:hover { transform: translate(-50%, -50%) scale(1.06); }
.am-skills__button:active { transform: translate(-50%, -50%) scale(.94); }
.am-skills__reset { position: absolute; right: var(--pad); bottom: 24px; z-index: 3; background: transparent; border: 1px solid rgba(255,255,255,.35); border-radius: 99px; padding: 10px 16px; color: #F4F1EA; }

/* 12 · ECOSISTEMA ----------------------------------------- */
.am-eco { padding: clamp(90px, 12vw, 160px) 0; }
.am-eco__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 24px; }
.am-eco__card {
  display: flex; flex-direction: column; gap: 14px; min-height: 380px; padding: 28px; border-radius: var(--radius);
  background: var(--p-bg); color: var(--p-fg); transform: rotate(var(--r, 0deg));
  transition: transform .6s var(--ease), box-shadow .6s var(--ease);
}
.am-eco__card:hover { transform: rotate(0) translateY(-10px); box-shadow: 0 40px 60px -30px rgba(0,0,0,.4); }
.am-eco__logo img { max-height: 64px; width: auto; }
.am-eco__name { font: 700 clamp(2.2rem, 3.4vw, 3.4rem)/.9 var(--f-display); text-transform: uppercase; margin-top: auto; overflow-wrap: anywhere; }
.am-eco__text { font-family: var(--f-serif); font-size: 1.3rem; line-height: 1.2; }
.am-eco__url { padding-top: 14px; border-top: 1px solid currentColor; }

/* 13 · FOTOGRAFÍA ----------------------------------------- */
.am-photo { padding: clamp(90px, 12vw, 160px) 0; }
.am-photo__strip { scroll-padding-inline: var(--pad); display: flex; gap: 20px; overflow-x: auto; padding: 0 var(--pad) 20px; scroll-snap-type: x mandatory; scrollbar-width: thin; cursor: grab; }
.am-photo__strip.is-dragging { cursor: grabbing; scroll-snap-type: none; }
.am-photo__item { flex: 0 0 clamp(240px, 26vw, 380px); scroll-snap-align: start; position: relative; }
.am-photo__item img, .am-photo-grid__item img { width: 100%; aspect-ratio: 4/5; object-fit: cover; border-radius: 4px; pointer-events: none; }
.am-photo__cap { display: flex; justify-content: space-between; gap: 12px; padding-top: 10px; align-items: baseline; }
.am-photo__cap strong { font: 400 1.4rem var(--f-serif); }
.am-photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 40px 24px; padding-bottom: 100px; }

/* 14 · BLOG ----------------------------------------------- */
.am-blog-home { padding: clamp(90px, 12vw, 160px) 0; border-top: 1px solid var(--line); }
.am-posts { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 50px 28px; padding-bottom: 60px; }
.am-post__media { overflow: hidden; border-radius: 4px; margin-bottom: 16px; }
.am-post__media img { aspect-ratio: 3/2; object-fit: cover; width: 100%; transition: transform 1s var(--ease); }
.am-post:hover .am-post__media img { transform: scale(1.05); }
.am-post__date { margin: 0 0 8px; opacity: .65; }
.am-post__title { font: 400 2rem/1.02 var(--f-serif); margin: 0 0 10px; }
.am-post__excerpt { margin: 0 0 12px; opacity: .8; }
.am-post__more { font-family: var(--f-mono); font-size: .76rem; text-transform: uppercase; letter-spacing: .06em; border-bottom: 1px solid currentColor; }
.am-pagination .nav-links { display: flex; gap: 10px; justify-content: center; padding-bottom: 80px; }
.am-pagination .page-numbers { padding: 8px 14px; border: 1px solid var(--line); border-radius: 99px; }
.am-pagination .current { background: var(--ink); color: var(--bg); }

/* 15 · CONTACTO ------------------------------------------- */
.am-contact { padding: clamp(90px, 12vw, 160px) 0; background: var(--ink); color: var(--bg); }
.am-contact .am-display em { color: var(--accent); }
.am-contact__grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 60px 6vw; align-items: start; }
.am-contact__text { font-size: 1.15rem; max-width: 40ch; }
.am-contact__mail { display: inline-block; font: italic 400 clamp(1.6rem, 3vw, 2.6rem)/1.1 var(--f-serif); border-bottom: 1px solid currentColor; margin: 10px 0 30px; word-break: break-all; }
.am-contact__mail:hover { color: var(--accent); }
.am-contact__social { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.am-contact .am-pill:hover { background: var(--bg); color: var(--ink); }
.am-form { display: grid; gap: 20px; }
.am-form label > span, .am-form legend { display: block; font-family: var(--f-mono); font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 8px; opacity: .75; }
.am-form input[type=text], .am-form input[type=email], .am-form textarea {
  width: 100%; background: transparent; border: 0; border-bottom: 1px solid color-mix(in srgb, currentColor 40%, transparent);
  color: inherit; font: 400 1.3rem/1.3 var(--f-serif); padding: 8px 0 12px; outline: none; border-radius: 0; transition: border-color .3s;
}
.am-form input:focus, .am-form textarea:focus { border-color: var(--accent); }
.am-form textarea { resize: vertical; min-height: 120px; }
.am-form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.am-form__topics { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.am-form__topics .am-chip { padding: 0; border: 0; }
.am-form__topics .am-chip input { position: absolute; opacity: 0; }
.am-form__topics .am-chip span { display: inline-block; padding: 9px 16px; border-radius: 99px; border: 1px solid color-mix(in srgb, currentColor 35%, transparent); cursor: pointer; transition: all .25s; font-size: .9rem; margin: 0; font-family: var(--f-sans); text-transform: none; letter-spacing: 0; opacity: 1; }
.am-form__topics .am-chip input:checked + span { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.am-form__topics .am-chip input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.am-form .am-btn { justify-self: start; background: var(--accent); color: var(--accent-ink); }
.am-form .am-btn:hover { background: var(--bg); color: var(--ink); }
.am-form__hp { position: absolute; left: -9999px; }
.am-form__notice { padding: 14px 18px; border-radius: 12px; margin: 0; }
.am-form__notice.is-ok { background: #3ccf6e; color: #0b2a15; }
.am-form__notice.is-error { background: #ffd2c8; color: #5a1505; }

/* 16 · PROYECTO INDIVIDUAL -------------------------------- */
.has-project-color { background: var(--bg); }
.am-project { background: var(--p-bg); color: var(--p-fg); padding-bottom: 100px; }
.am-project a:not(.am-btn) { text-decoration-thickness: 1px; }
.am-project__hero { padding: 150px 0 60px; }
.am-project__crumbs { display: block; }
.am-project__crumbs a:hover { text-decoration: underline; }
.am-project__count { float: right; }
.am-project__title { font: 700 clamp(3.4rem, 13vw, 14rem)/.86 var(--f-display); text-transform: uppercase; margin: 20px 0 30px; letter-spacing: -.01em; word-break: break-word; }
.am-project__logline { font: 400 clamp(1.6rem, 3.4vw, 3rem)/1.08 var(--f-serif); max-width: 26ch; margin: 0 0 50px; }
.am-project__logline em { color: var(--p-ac); }
.am-project__facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 20px; margin: 0; border-top: 1px solid currentColor; padding-top: 18px; }
.am-project__facts dt { opacity: .7; margin-bottom: 6px; }
.am-project__facts dd { margin: 0; font-size: 1.1rem; }
.am-project__media { margin-bottom: 70px; }
.am-frame { position: relative; color: var(--p-fg); }
.am-frame > img { width: 100%; border-radius: 4px; }
.am-frame__corners { position: absolute; inset: -14px; pointer-events: none; opacity: .8; }
.am-frame__corners i { width: 22px; height: 22px; }
.am-frame__corners i:nth-child(n) { top: auto; left: auto; right: auto; bottom: auto; }
.am-frame__corners i:nth-child(1) { top: 0; left: 0; } .am-frame__corners i:nth-child(2) { top: 0; right: 0; }
.am-frame__corners i:nth-child(3) { bottom: 0; left: 0; } .am-frame__corners i:nth-child(4) { bottom: 0; right: 0; }
.am-project__block { margin-top: 90px; }
.am-video { position: relative; aspect-ratio: 16/9; background: #000; border-radius: 4px; overflow: hidden; }
.am-video iframe, .am-video video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.am-video.is-vertical { aspect-ratio: 9/16; max-width: 420px; margin: 0 auto; }
.am-video--oembed { aspect-ratio: auto; background: transparent; }
.am-video--oembed iframe, .am-video--oembed blockquote { position: static; }
.am-videos { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 420px), 1fr)); gap: 28px; align-items: start; }
.am-videos__item { margin: 0; }
.am-videos__item figcaption { margin-top: 10px; }
.am-links { display: flex; flex-wrap: wrap; gap: 12px; }
.am-fest { list-style: none; margin: 0; padding: 0; }
.am-fest li { display: grid; grid-template-columns: 40px 1fr auto 30px; gap: 16px; align-items: baseline; padding: 18px 0; border-bottom: 1px solid color-mix(in srgb, currentColor 30%, transparent); }
.am-fest strong { font: 400 1.8rem/1.1 var(--f-serif); }
.am-fest__laurel { font-size: 1.4rem; }
.am-credits { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 24px 30px; margin: 0; }
.am-credits dt { opacity: .7; margin-bottom: 4px; }
.am-credits dd { margin: 0; font: 400 1.5rem/1.15 var(--f-serif); }
.am-next { display: block; background: var(--p-bg); color: var(--p-fg); padding: 80px 0 90px; border-top: 1px solid rgba(0,0,0,.08); overflow: hidden; }
.am-next .am-wrap, .am-next .am-label { display: block; }
.am-next__title { display: block; font: 700 clamp(3rem, 10vw, 10rem)/.88 var(--f-display); text-transform: uppercase; transition: transform .7s var(--ease); }
.am-next:hover .am-next .am-wrap, .am-next .am-label { display: block; }
.am-next__title { transform: translateX(3vw); }

/* 17 · CANDADO / PRÓXIMAMENTE ----------------------------- */
.am-lock { position: relative; overflow: hidden; padding: 80px 0 60px; min-height: 50vh; display: flex; align-items: center; }
.am-lock__bg { position: absolute; inset: -40px; background-size: cover; background-position: center; filter: blur(30px) saturate(.9); opacity: .55; }
.am-lock__inner { position: relative; z-index: 1; max-width: 680px; }
.am-lock__icon { font-size: 2.2rem; margin-bottom: 14px; }
.am-lock__text { font: 400 clamp(1.6rem, 3vw, 2.4rem)/1.1 var(--f-serif); margin: 0 0 40px; }
.am-lock__form label { display: block; font-family: var(--f-mono); font-size: .74rem; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 12px; }
.am-lock__row { display: flex; gap: 10px; flex-wrap: wrap; }
.am-lock__row input { flex: 1 1 240px; background: color-mix(in srgb, var(--p-fg) 8%, transparent); border: 1px solid currentColor; color: inherit; border-radius: 99px; padding: 14px 22px; font: 1.05rem var(--f-sans); outline: none; }
.am-lock__row .am-btn { background: var(--p-fg); color: var(--p-bg); }
.am-lock__error { margin-top: 14px; font-weight: 500; }
.am-lock__help { margin-top: 40px; opacity: .75; }
.am-lock__help a { text-decoration: underline; }

/* 18 · CONTENIDO (editor de bloques) ---------------------- */
.am-content { width: 100%; max-width: 1440px; margin: 0 auto; padding: 0 var(--pad); }
.am-content > * { max-width: 760px; margin-left: auto; margin-right: auto; }
.am-content > .alignwide { max-width: 1200px; }
.am-content > .alignfull { max-width: none; margin-left: calc(-1 * var(--pad)); margin-right: calc(-1 * var(--pad)); }
.am-content p, .am-content li { font-size: 1.15rem; line-height: 1.65; }
.am-content h2 { font: 400 clamp(2.2rem, 4vw, 3.4rem)/1 var(--f-serif); margin: 2em auto .5em; }
.am-content h3 { font: 400 clamp(1.6rem, 2.6vw, 2.2rem)/1.05 var(--f-serif); margin: 1.8em auto .4em; }
.am-content h4 { font: 500 .8rem var(--f-mono); text-transform: uppercase; letter-spacing: .1em; margin: 2em auto .6em; }
.am-content a { text-decoration: underline; text-underline-offset: 3px; }
.am-content .is-lead, .am-content .has-large-font-size { font-family: var(--f-serif); font-size: clamp(1.5rem, 2.6vw, 2.1rem); line-height: 1.15; }
.am-content blockquote, .am-content .wp-block-quote { border-left: 2px solid currentColor; padding-left: 24px; font: italic 400 clamp(1.5rem, 2.6vw, 2.2rem)/1.2 var(--f-serif); margin: 2em auto; }
.am-content blockquote p { font-size: inherit; line-height: inherit; }
.am-content cite { display: block; font: normal .76rem var(--f-mono); text-transform: uppercase; margin-top: 12px; opacity: .7; }
.am-content figure { margin-top: 2em; margin-bottom: 2em; }
.am-content figcaption { font: .76rem var(--f-mono); opacity: .7; text-transform: uppercase; margin-top: 10px; }
.am-content img { border-radius: 4px; }
.am-content hr, .am-content .wp-block-separator { border: 0; border-top: 1px solid currentColor; opacity: .3; margin: 3em auto; }
.am-content .wp-block-columns { max-width: 1200px; gap: 40px; }
.am-content .wp-block-button__link { border-radius: 99px; background: currentColor; padding: 14px 24px; text-decoration: none; }
.am-content .wp-block-button__link { background: var(--p-fg, var(--ink)); color: var(--p-bg, var(--bg)); }
.am-content .wp-block-embed iframe { width: 100%; }
.am-content .wp-block-embed.is-type-video .wp-block-embed__wrapper { position: relative; aspect-ratio: 16/9; }
.am-content .wp-block-embed.is-type-video iframe { position: absolute; inset: 0; height: 100%; }
.am-update { border-top: 1px solid currentColor; padding-top: 18px; margin-top: 3em; }
.am-update__date { font: .8rem var(--f-mono) !important; text-transform: uppercase; letter-spacing: .08em; opacity: .75; }
.am-article { padding: 150px 0 100px; }
.am-article__lead { font: 400 clamp(1.4rem, 2.4vw, 2rem)/1.2 var(--f-serif); }
.am-article__cover { margin: 40px auto 60px; max-width: 1200px; }
.am-article__cover img { width: 100%; border-radius: 4px; }
.am-article__nav { display: flex; justify-content: space-between; gap: 20px; margin-top: 60px; padding-top: 20px; border-top: 1px solid var(--line); font-family: var(--f-serif); font-size: 1.3rem; }
.am-tags a { display: inline-block; padding: 6px 14px; border: 1px solid var(--line); border-radius: 99px; font-size: .85rem; margin: 0 4px 4px 0; }

.am-gallery { columns: 3 280px; column-gap: 20px; }
.am-gallery__item { break-inside: avoid; margin: 0 0 20px; }
.am-gallery__item img { width: 100%; border-radius: 4px; cursor: zoom-in; transition: opacity .3s; }
.am-gallery__item img:hover { opacity: .88; }
.am-gallery__item figcaption { font: .74rem var(--f-mono); text-transform: uppercase; opacity: .7; margin-top: 8px; }

.am-404 { min-height: 80vh; display: flex; align-items: center; padding-top: 120px; }

/* 19 · PIE ------------------------------------------------ */
.am-cta-band { padding: 100px 0; border-top: 1px solid var(--line); }
.am-cta-band__link { display: block; font: 400 clamp(2.6rem, 8vw, 8rem)/.95 var(--f-serif); transition: color .3s; }
.am-cta-band__link em { color: var(--accent); }
.am-cta-band__link:hover { color: var(--accent); }
.am-footer { background: var(--dark); color: #F4F1EA; padding: 0 0 30px; }
.am-footer .am-marquee { border-bottom: 1px solid rgba(255,255,255,.15); padding: 26px 0; }
.am-footer .am-marquee__track span { color: transparent; -webkit-text-stroke: 1px #F4F1EA; }
.am-footer__grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 40px; padding-top: 60px; padding-bottom: 60px; }
.am-footer__grid p { margin: 0 0 8px; }
.am-footer__name { font: 700 2.4rem/1 var(--f-display); text-transform: uppercase; }
.am-footer__mail { font: italic 400 1.4rem var(--f-serif); border-bottom: 1px solid currentColor; word-break: break-all; }
.am-footer__social { list-style: none; margin: 0; padding: 0; }
.am-footer__social a:hover, .am-footer__mail:hover { color: var(--accent); }
.am-footer__bottom { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.15); opacity: .8; }
.am-footer__menu { list-style: none; display: flex; gap: 20px; margin: 0; padding: 0; font-size: .85rem; }

/* 20 · LIGHTBOX ------------------------------------------- */
.am-lightbox { position: fixed; inset: 0; z-index: 600; background: rgba(10,10,10,.95); display: flex; align-items: center; justify-content: center; padding: 60px 80px; color: #fff; }
.am-lightbox figure { margin: 0; max-width: 100%; max-height: 100%; text-align: center; }
.am-lightbox img { max-height: 82vh; width: auto; margin: 0 auto; border-radius: 3px; }
.am-lightbox figcaption { font: .76rem var(--f-mono); text-transform: uppercase; margin-top: 14px; opacity: .8; }
.am-lightbox__prev, .am-lightbox__next { position: absolute; top: 50%; transform: translateY(-50%); width: 54px; height: 54px; border-radius: 50%; border: 1px solid rgba(255,255,255,.4); background: transparent; color: #fff; font-size: 1.2rem; }
.am-lightbox__prev { left: 16px; } .am-lightbox__next { right: 16px; }

/* 21 · ANIMACIONES AL HACER SCROLL ------------------------ */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity 1s var(--ease), transform 1.1s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
.am-polaroid--a.reveal.is-in { transform: rotate(-5deg); }
.am-polaroid--b.reveal.is-in { transform: rotate(4deg) translateY(50px); }
.am-eco__card.reveal.is-in { transform: rotate(var(--r, 0deg)); }
.am-eco__card.reveal.is-in:hover { transform: rotate(0) translateY(-10px); }
.no-js .reveal { opacity: 1; transform: none; }
.no-js .am-line > span { transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}

/* 22 · RESPONSIVE ----------------------------------------- */
@media (max-width: 1080px) {
  .am-nav, .am-header__cta { display: none; }
  .am-burger { display: block; }
  .am-footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  body { font-size: 16px; }
  .am-about__grid, .am-contact__grid { grid-template-columns: 1fr; }
  .am-row__link { grid-template-columns: 34px 1fr; gap: 6px 14px; padding: 18px 0; }
  .am-row__meta { grid-column: 2; }
  .am-row__year { display: none; }
  .am-hover-preview { display: none; }
  .am-orbit { top: 84px; right: 4vw; width: 92px; opacity: .85; }
  .am-hero__kicker { max-width: 16ch; }
  .am-reel { cursor: auto; height: 78svh; }
  .am-reel__play { left: 50% !important; top: 50% !important; width: 110px; height: 110px; margin: -55px 0 0 -55px; cursor: pointer; }
  .am-form__row { grid-template-columns: 1fr; }
  .am-filters__view { margin-left: 0; }
  .am-fest li { grid-template-columns: 26px 1fr; }
  .am-fest li .am-mono { grid-column: 2; }
  .am-polaroid { width: 46vw; }
  .am-lightbox { padding: 60px 10px; }
}
@media (max-width: 560px) {
  .am-roles, .am-skills__hint { display: none; }
  .am-header__brand { padding-right: 5px; }
  .am-footer__grid { grid-template-columns: 1fr; }
  .am-hero__actions .am-btn { flex: 1 1 auto; justify-content: center; }
}


/* =========================================================
   23 · VERSIÓN 2 — Proyecto en pantalla dividida, formatos, figuras
   ========================================================= */
.am-shape { display: block; }
.am-autocover { position: absolute; inset: 0; background: var(--p-bg); color: var(--p-fg); display: grid; place-items: center; overflow: hidden; }
.am-autocover .am-shape { width: 62%; height: auto; animation: am-spin 40s linear infinite; }
.am-autocover__t { position: absolute; left: 18px; right: 18px; bottom: 16px; font: 700 clamp(1.6rem, 3vw, 2.6rem)/.9 var(--f-display); text-transform: uppercase; }

/* Pantalla dividida */
.am-pj { background: var(--bg); color: var(--ink); }
.am-pj__split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; }
.am-pj__text { padding: 130px clamp(20px, 4vw, 70px) 30vh; }
.am-pj__step { min-height: 70vh; display: flex; flex-direction: column; justify-content: center; opacity: .18; transition: opacity .6s var(--ease); }
.am-pj__step.is-active { opacity: 1; }
.am-pj__hero { min-height: calc(100svh - 130px); justify-content: flex-start; }
.am-pj__crumbs { display: flex; justify-content: space-between; }
.am-pj__crumbs a:hover { text-decoration: underline; }
.am-pj__kicker { margin: 30px 0 10px; text-align: center; }
.am-pj__title { font: 700 clamp(3.4rem, 8.6vw, 10rem)/.86 var(--f-display); text-transform: uppercase; text-align: center; margin: 0 0 18px; letter-spacing: -.01em; }
.am-line--w { display: inline-block; vertical-align: top; }
.am-pj__logline { font: italic 400 clamp(1.4rem, 2.4vw, 2.2rem)/1.1 var(--f-serif); text-align: center; margin: 0 auto 40px; max-width: 24ch; }
.am-pj__logline em { color: color-mix(in srgb, var(--p-bg) 70%, var(--ink)); font-style: italic; }
.am-pj__intro { font-size: 1.05rem; max-width: 46ch; margin: 0 auto 36px; text-align: center; }
.am-pj__facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 16px 20px; margin: 0; padding-top: 16px; border-top: 1px solid currentColor; }
.am-pj__facts dt { opacity: .6; margin-bottom: 4px; }
.am-pj__facts dd { margin: 0; }
.am-pj__scroll { text-align: center; margin-top: 40px; opacity: .6; animation: am-bob 2s ease-in-out infinite; }
@keyframes am-bob { 50% { transform: translateY(6px); } }
.am-pj__stepnum { opacity: .55; margin-bottom: 14px; }
.am-pj__h { font: 700 clamp(2.4rem, 4.6vw, 4.6rem)/.92 var(--f-display); text-transform: uppercase; margin: 0 0 22px; }
.am-pj__h em { font-family: var(--f-serif); font-style: normal; text-transform: none; color: color-mix(in srgb, var(--p-bg) 70%, var(--ink)); letter-spacing: -.01em; }
.am-pj__p { font-family: var(--f-serif); font-size: clamp(1.25rem, 1.8vw, 1.6rem); line-height: 1.25; max-width: 32ch; }
.am-pj__p p { margin: 0 0 .8em; }

.am-pj__panel { position: sticky; top: 0; height: 100svh; background: var(--p-bg); color: var(--p-fg); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.am-pj__shape { position: absolute; width: 78%; max-width: 760px; right: -16%; bottom: -18%; opacity: .9; animation: am-spin 60s linear infinite; }
.am-pj__back { position: absolute; top: 86px; right: 22px; z-index: 3; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: var(--p-fg); color: var(--p-bg); font-size: 1.2rem; transition: transform .4s var(--ease); }
.am-pj__back:hover { transform: rotate(-12deg) scale(1.08); }
.am-pj__frame { position: relative; z-index: 2; width: min(64%, 520px); aspect-ratio: 4/5; color: var(--p-fg); }
.am-pj__media { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity .45s, visibility .45s; }
.am-pj__media.is-active { opacity: 1; visibility: visible; }
.am-pj__media img { width: 100%; height: 100%; object-fit: cover; border-radius: 3px; box-shadow: 0 40px 80px -30px rgba(0,0,0,.4); }
.am-pj__media.is-blur img { filter: blur(18px) saturate(.8); transform: scale(1.1); }
.am-pj__media--embed { display: flex; align-items: center; }
.am-pj__media--embed .am-video { width: 100%; }
.am-pj__frame:has(.am-pj__media--embed.is-active:not(.is-vertical)) { aspect-ratio: 16/9; width: min(84%, 760px); }
.am-pj__media--embed.is-vertical .am-video { aspect-ratio: 9/16; height: 100%; width: auto; margin: 0 auto; max-width: none; }
.am-pj__media--cover .am-autocover { border-radius: 3px; }
.am-pj__pix { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 2; pointer-events: none; opacity: 0; }
.am-pj__frame .am-frame__corners { inset: -16px; z-index: 3; }
.am-pj__caption { position: absolute; left: 22px; bottom: 18px; z-index: 3; }
.am-pj.is-locked .am-pj__hero .am-lock { padding: 0; min-height: 0; display: block; text-align: center; }
.am-pj.is-locked .am-lock__row input { background: color-mix(in srgb, var(--ink) 6%, transparent); }
.am-pj.is-locked .am-lock__row .am-btn { background: var(--p-bg); color: var(--p-fg); }
.am-pj__rest { background: var(--p-bg); color: var(--p-fg); padding: 20px 0 110px; }
.am-pj__rest .am-content { padding-top: 60px; }

/* Más proyectos */
.am-more { padding: clamp(80px, 10vw, 140px) 0; }

/* Formatos */
.am-bigtext { font: 400 clamp(1.5rem, 2.6vw, 2.3rem)/1.18 var(--f-serif); max-width: 34ch; margin: 0; }
.am-twocol { display: grid; grid-template-columns: 1fr 1fr; gap: 50px 6vw; }
.am-fragment { margin: 0; font: italic 400 clamp(1.6rem, 3vw, 2.8rem)/1.2 var(--f-serif); max-width: 32ch; border-left: 2px solid currentColor; padding-left: 28px; }
.am-fragment p { margin: 0 0 14px; }
.am-features { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: 0 30px; }
.am-features li { display: flex; gap: 18px; align-items: baseline; padding: 18px 0; border-top: 1px solid color-mix(in srgb, currentColor 35%, transparent); font: 400 1.5rem/1.15 var(--f-serif); }
.am-features__n { font: 700 2.4rem/1 var(--f-display); opacity: .8; }
.am-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 30px; }
.am-stats__item strong { display: block; font: 700 clamp(3.4rem, 7vw, 6.4rem)/.9 var(--f-display); }
.am-stats__item span { font-family: var(--f-serif); font-size: 1.3rem; }
.am-eps { list-style: none; margin: 0; padding: 0; }
.am-eps li { display: flex; gap: 22px; align-items: baseline; padding: 16px 0; border-bottom: 1px solid color-mix(in srgb, currentColor 30%, transparent); font: 400 clamp(1.3rem, 2vw, 1.8rem)/1.15 var(--f-serif); }
.am-eps a:hover { font-style: italic; }
.am-game { position: relative; aspect-ratio: 16/9; background: #000; border-radius: 6px; overflow: hidden; }
.am-game iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.am-game__full { position: absolute; right: 12px; bottom: 12px; background: var(--p-fg); color: var(--p-bg); border: 0; border-radius: 99px; padding: 8px 14px; }
.am-spotify iframe { width: 100%; height: 352px; border: 0; border-radius: 12px; }
.am-ig { aspect-ratio: 4/5.4; } .am-ig iframe { width: 100%; height: 100%; border: 0; border-radius: 6px; background: #fff; }

/* Pódcast */
.am-pod { display: grid; gap: 18px; }
.am-pod__video .am-video { max-width: 1000px; }
.am-pod__bar { display: flex; align-items: center; gap: 18px; }
.am-pod__play { flex: 0 0 auto; width: 70px; height: 70px; border-radius: 50%; border: 0; background: var(--p-fg); color: var(--p-bg); font-size: 1.1rem; transition: transform .3s var(--ease); }
.am-pod__play:hover { transform: scale(1.08); }
.am-pod__wave { flex: 1; height: 90px; min-width: 0; }
.am-pod__time { flex: 0 0 auto; }
.am-pod__seek { width: 100%; accent-color: var(--p-fg); }

/* Tarjetas de enlace con vista previa */
.am-linkcards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 20px; }
.am-linkcard { display: flex; flex-direction: column; background: color-mix(in srgb, var(--p-fg, var(--ink)) 7%, transparent); border: 1px solid color-mix(in srgb, currentColor 22%, transparent); border-radius: 14px; overflow: hidden; transition: transform .4s var(--ease); }
.am-linkcard:hover { transform: translateY(-4px) rotate(-.6deg); }
.am-linkcard__img img { width: 100%; aspect-ratio: 1.91/1; object-fit: cover; }
.am-linkcard__body { display: grid; gap: 6px; padding: 14px 16px 18px; }
.am-linkcard__title { font: 400 1.4rem/1.1 var(--f-serif); }
.am-linkcard__desc { font-size: .9rem; opacity: .75; }
.am-gallery__item--card, .am-gallery__item--embed, .am-gallery__item--video { break-inside: avoid; }

/* Ecosistema y siguiente con figura */
.am-eco__card { position: relative; overflow: hidden; }
.am-eco__shape { position: absolute; width: 58%; right: -14%; top: -12%; opacity: .25; transition: transform 1s var(--ease); }
.am-eco__card:hover .am-eco__shape { transform: rotate(40deg) scale(1.1); }
.am-eco__card > *:not(.am-eco__shape) { position: relative; }
.am-next { position: relative; }
.am-next__shape { position: absolute; right: -4vw; top: 50%; width: clamp(160px, 22vw, 340px); translate: 0 -50%; opacity: .22; transition: transform 1s var(--ease); }
.am-next:hover .am-next__shape { transform: rotate(60deg); }

@media (max-width: 900px) {
  .am-pj__split { grid-template-columns: 1fr; }
  .am-pj__panel { order: -1; position: sticky; top: 0; height: 46svh; z-index: 5; }
  .am-pj__frame { width: auto; height: 78%; }
  .am-pj__frame:has(.am-pj__media--embed.is-active:not(.is-vertical)) { width: 92%; height: auto; }
  .am-pj__text { padding: 30px 20px 40vh; }
  .am-pj__hero { min-height: 0; padding-bottom: 40px; }
  .am-pj__step { min-height: 46vh; }
  .am-pj__back { top: 76px; }
  .am-twocol { grid-template-columns: 1fr; }
  .am-pod__wave { height: 64px; }
  .am-pod__play { width: 56px; height: 56px; }
}

/* Tarjeta de habilidad (clic en una figura) */
.am-skillcard { position: absolute; inset: 0; z-index: 6; display: grid; place-items: center; padding: 80px var(--pad) 30px; background: rgba(10,10,10,.55); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); opacity: 0; transition: opacity .3s; }
.am-skillcard.is-open { opacity: 1; }
.am-skillcard__box { position: relative; width: min(640px, 100%); max-height: 100%; overflow: auto; background: var(--sk-bg, #F4F1EA); color: var(--sk-fg, #151515); border-radius: 26px; padding: 34px 34px 30px; transform: translateY(30px) rotate(-2deg) scale(.96); transition: transform .5s var(--ease); box-shadow: 0 40px 80px -30px rgba(0,0,0,.6); }
.am-skillcard.is-open .am-skillcard__box { transform: none; }
.am-skillcard__close { position: absolute; top: 16px; right: 16px; width: 42px; height: 42px; border-radius: 50%; border: 1px solid currentColor; background: transparent; color: inherit; }
.am-skillcard__kicker { opacity: .7; margin: 0 0 8px; }
.am-skillcard__title { font: 700 clamp(2.4rem, 5vw, 3.8rem)/.9 var(--f-display); text-transform: uppercase; margin: 0 50px 12px 0; }
.am-skillcard__exp { margin: 0 0 16px; padding: 6px 12px; border: 1px solid currentColor; border-radius: 99px; display: inline-block; }
.am-skillcard__desc { font: 400 1.3rem/1.3 var(--f-serif); }
.am-skillcard__desc p { margin: 0 0 .7em; }
.am-skillcard__label { margin: 22px 0 10px; padding-top: 14px; border-top: 1px solid currentColor; opacity: .8; }
.am-skillcard__projects { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
.am-skillcard__p { display: grid; gap: 4px; background: var(--p-bg); color: var(--p-fg); border-radius: 14px; padding: 8px 8px 12px; transition: transform .35s var(--ease); }
.am-skillcard__p:hover { transform: translateY(-3px) rotate(-1deg); }
.am-skillcard__thumb { aspect-ratio: 16/10; border-radius: 8px; overflow: hidden; background: color-mix(in srgb, var(--p-fg) 15%, transparent); }
.am-skillcard__thumb img { width: 100%; height: 100%; object-fit: cover; }
.am-skillcard__pt { font: 400 1.15rem/1.1 var(--f-serif); padding: 4px 4px 0; }
.am-skillcard__pr { padding: 0 4px; opacity: .75; font-size: .66rem; }

.am-star { display: inline-block; width: .62em; height: .62em; vertical-align: .08em; }

/* 24 · ESTILO REFERENCIAS (v2.6) — Olha + Extrafazant ------------- */
/* Títulos: palabra gruesa condensada + palabra delgada con patitas */
.am-display { font-family: var(--f-display); font-weight: 700; text-transform: uppercase; font-size: clamp(2.8rem, 7.4vw, 7rem); line-height: .86; letter-spacing: -.01em; }
.am-display em, .am-hero__title em { font-family: var(--f-serif-cn); font-weight: 300; font-style: normal; text-transform: uppercase; color: inherit; letter-spacing: -.02em; font-size: 1em; line-height: inherit; }
.am-display--xl { font-size: clamp(3.2rem, 10vw, 10rem); }
.am-display--l { font-size: clamp(2.6rem, 7vw, 6.4rem); }
.am-kicker { font-family: var(--f-serif); font-weight: 300; font-size: clamp(1.25rem, 1.9vw, 1.6rem); line-height: 1.08; letter-spacing: -.01em; }
.am-kicker em, .am-pill { font-style: italic; }
.am-section-head--center { text-align: center; }
.am-section-head--center .am-kicker { max-width: 26ch; margin-inline: auto; }
.am-hero__text, .am-section-head__text, .am-contact__text { font: 500 clamp(1rem, 1.2vw, 1.12rem)/1.4 var(--f-sans); max-width: 36ch; letter-spacing: -.01em; }
.am-about__text { font: 500 clamp(1.05rem, 1.3vw, 1.2rem)/1.42 var(--f-sans); max-width: 40ch; }
.am-about__text p:first-child { font: 300 clamp(1.5rem, 2.4vw, 2.1rem)/1.12 var(--f-serif); letter-spacing: -.015em; }

/* Palabras que suben al aparecer (como Olha) */
.am-split.reveal, .am-split.reveal.is-in { opacity: 1; transform: none; }
.am-w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .1em; margin-bottom: -.1em; }
.am-w > span { display: inline-block; transform: translateY(112%) rotate(8deg); transform-origin: 0 100%; transition: transform 1.05s var(--ease); transition-delay: calc(var(--wi, 0) * 70ms); }
.am-split.is-in .am-w > span { transform: none; }

/* Botones con caja de flecha (como Extrafazant) */
.am-btn { border-radius: 2px; height: 44px; padding: 0 18px; gap: 0; background: var(--accent); color: var(--accent-ink); font: 700 .92rem/1 var(--f-display); text-transform: uppercase; letter-spacing: .01em; overflow: hidden; }
.am-btn[data-icon] { padding-left: 0; justify-content: flex-start; }
.am-btn[data-icon]::before { content: attr(data-icon); display: grid; place-items: center; align-self: stretch; width: 44px; margin-right: 14px; border-right: 1px solid color-mix(in srgb, currentColor 30%, transparent); font: 500 1rem/1 var(--f-sans); transition: transform .4s var(--ease); }
.am-btn:hover { transform: none; background: var(--ink); color: var(--bg); }
.am-btn[data-icon]:hover::before { transform: translateX(3px); }
.am-btn--ghost { background: transparent; color: inherit; border: 1px solid currentColor; }
.am-btn--ghost:hover { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.am-btn--big { height: 54px; font-size: 1.02rem; }
.am-btn--big[data-icon]::before { width: 54px; }
.am-btn--project { background: var(--p-fg); color: var(--p-bg); }
.am-btn--project:hover { background: var(--p-ac); color: var(--p-bg); }
.am-btn--soon { background: transparent; border: 1px dashed currentColor; color: inherit; }

/* Calcomanía sobre la foto */
.am-polaroid { position: relative; }
.am-sticker { position: absolute; top: -28px; left: -34px; z-index: 2; padding: 12px 16px 10px; background: var(--accent); color: var(--accent-ink); font: 700 clamp(1.1rem, 1.8vw, 1.6rem)/.86 var(--f-display); text-transform: uppercase; text-align: center; border: 3px solid #fff; border-radius: 18px; transform: rotate(-12deg); box-shadow: 0 10px 24px -8px rgba(0,0,0,.35); }

/* Mazo de proyectos que cambia al bajar (como Extrafazant) */
.am-deck { position: relative; height: calc(var(--n, 4) * 62vh + 100vh); }
.am-deck__sticky { position: sticky; top: 0; height: 100vh; height: 100svh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 34px; overflow: hidden; padding-top: 40px; }
.am-deck__stack { position: relative; width: min(600px, 86vw); aspect-ratio: 16 / 10.4; }
.am-deck__card { position: absolute; inset: 0; display: block; padding: 12px; background: var(--p-bg, var(--accent)); transform-origin: 50% 100%; will-change: transform, opacity; box-shadow: 0 30px 60px -30px rgba(0,0,0,.55); }
.am-deck__card img { width: 100%; height: 100%; object-fit: cover; display: block; }
.am-deck__title { position: absolute; left: 12px; right: 12px; bottom: 26px; padding: 0 12px; text-align: center; font: 700 clamp(2rem, 5.4vw, 3.8rem)/.88 var(--f-display); text-transform: uppercase; color: #fff; text-shadow: 0 2px 34px rgba(0,0,0,.5); }

/* Sello giratorio en la esquina */
.am-badge { position: fixed; right: 20px; bottom: 20px; z-index: 60; width: 112px; height: 112px; border-radius: 50%; display: grid; place-items: center; background: var(--sage); color: var(--ink); box-shadow: 0 14px 30px -12px rgba(0,0,0,.35); transition: transform .4s var(--ease), opacity .4s; }
.am-badge:hover { transform: scale(1.07); }
.am-badge svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.am-badge text { font: 700 11px var(--f-display); letter-spacing: 1px; fill: currentColor; text-transform: uppercase; }
.am-badge__icon { font-size: 1.15rem; transform: translateX(2px); }
.menu-open .am-badge { opacity: 0; pointer-events: none; }

/* Pelota que rueda por la página (como Olha) */
.am-ball { --bs: clamp(64px, 9vw, 140px); position: absolute; top: 0; left: 0; z-index: 3; width: var(--bs); height: var(--bs); margin: calc(var(--bs) / -2) 0 0 calc(var(--bs) / -2); pointer-events: none; will-change: transform; mix-blend-mode: multiply; opacity: 0; transition: opacity .8s; }
.am-ball.is-on { opacity: 1; }
.am-ball i { position: relative; display: block; width: 100%; height: 100%; border-radius: 50%; overflow: hidden; background: radial-gradient(circle at 34% 30%, color-mix(in srgb, var(--sage) 50%, #fff) 0, var(--sage) 48%, color-mix(in srgb, var(--sage) 72%, #000) 100%); box-shadow: inset -10px -12px 26px rgba(0,0,0,.16); }
.am-ball i::after { content: ''; position: absolute; inset: -10%; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); opacity: .7; mix-blend-mode: multiply; }
.am-ball i::before { content: ''; position: absolute; left: 18%; top: 22%; width: 34%; height: 22%; border-radius: 50%; background: color-mix(in srgb, var(--sage) 60%, #000); opacity: .18; filter: blur(4px); }

@media (max-width: 760px) {
  .am-badge { width: 84px; height: 84px; right: 14px; bottom: 14px; }
  .am-badge text { font-size: 10px; }
  .am-sticker { left: -12px; top: -22px; }
  .am-ball { --bs: 54px; }
  .am-deck { height: calc(var(--n, 4) * 52vh + 100vh); }
}
@media (prefers-reduced-motion: reduce) {
  .am-w > span { transform: none !important; transition: none; }
  .am-deck { height: auto; }
  .am-deck__sticky { position: static; height: auto; padding: 40px 0; }
  .am-deck__stack { aspect-ratio: auto; display: grid; gap: 22px; }
  .am-deck__card { position: relative; inset: auto; aspect-ratio: 16 / 10.4; transform: none !important; opacity: 1 !important; }
  .am-ball { display: none; }
}

/* 25 · v2.7 — accesibilidad y formulario ---------------------------- */
.am-skills__list { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; margin: 0; padding: 0; list-style: none; }
.am-skills__list:focus-within { position: absolute; left: 50%; bottom: 24px; transform: translateX(-50%); width: min(920px, 92vw); height: auto; clip: auto; white-space: normal; z-index: 6; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; padding: 14px; background: color-mix(in srgb, var(--bg) 92%, transparent); border-radius: 14px; }
.am-skills__list button { cursor: pointer; }
.am-skills__list button:focus-visible, .am-btn:focus-visible, a:focus-visible, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.am-form__hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.am-form__consent { display: flex !important; gap: 10px; align-items: flex-start; font: 400 .92rem/1.4 var(--f-sans); margin: 4px 0 18px; }
.am-form__consent input { margin-top: 3px; width: 18px; height: 18px; accent-color: var(--accent); flex: none; }
.am-form__consent a { text-decoration: underline; text-underline-offset: 3px; }
@media (prefers-reduced-motion: reduce) {
  .am-skills__list { position: static; width: auto; height: auto; clip: auto; white-space: normal; display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; padding: 0 5vw 30px; }
  .am-skills__stage { height: auto; min-height: 0; }
  .am-skills__canvas, .am-skills__button, .am-skills__hint { display: none; }
  .am-skillcard { position: fixed; }
}
