@font-face { font-family: 'Kolton Monica'; src: url('../fonts/KoltonMonica.otf') format('opentype'); font-display: swap; }
@font-face { font-family: 'Atkinson Hyperlegible'; src: url('../fonts/AtkinsonHyperlegible-Regular.ttf') format('truetype'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Atkinson Hyperlegible'; src: url('../fonts/AtkinsonHyperlegible-Bold.ttf') format('truetype'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'Atkinson Hyperlegible'; src: url('../fonts/AtkinsonHyperlegible-Italic.ttf') format('truetype'); font-weight: 400; font-style: italic; font-display: swap; }

:root {
  --bg: #f3f3f2;
  --ink: #3a3b39;
  --muted: #6b6c69;
  --dot: #9a9a97;
  --blue: #2d4ea6;
  --blue-hover: #213c84;
  --blue-active: #18306c;
  --pending-bg: #e4e8f5;
  --display: 'Kolton Monica', 'Atkinson Hyperlegible', sans-serif;
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: 'Atkinson Hyperlegible', sans-serif; text-wrap: pretty; -webkit-font-smoothing: antialiased; }
a { color: var(--blue); text-underline-offset: 4px; }
a:hover { color: var(--blue-hover); }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
img { max-width: 100%; }
[hidden] { display: none !important; }

.wrap { max-width: 1200px; margin: 0 auto; padding-inline: 24px; }
.display { font-family: var(--display); font-weight: 400; margin: 0; }
.title-xl { font-size: clamp(54px, 10.5vw, 147px); line-height: 0.95; }
.title-lg { font-size: clamp(32px, 3.8vw, 48px); line-height: 1.05; }
.lede { font-size: clamp(24px, 3vw, 36px); line-height: 1.25; margin: clamp(16px, 2vw, 28px) 0 8px; }
.body-lg { font-size: clamp(17px, 1.6vw, 21px); line-height: 1.5; margin: 0; max-width: 62ch; }
.art { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; mix-blend-mode: multiply; }

.btn { display: flex; align-items: center; background: var(--blue); color: #fff; text-decoration: none; font-weight: 700; font-size: 19px; line-height: 24px; padding: 18px 26px; }
.btn:hover { background: var(--blue-hover); color: #fff; }
.btn:active { background: var(--blue-active); }
.btn:focus-visible { outline-color: #fff; }

/* ---------- Home ---------- */
.hero { position: relative; background: var(--bg); }
.hero img { display: block; width: 100%; height: clamp(360px, 62vw, 920px); object-fit: cover; object-position: center bottom; }
.hero nav { z-index: 2; position: absolute; top: clamp(16px, 2.5vw, 32px); right: clamp(16px, 3vw, 40px); }
.hero nav a { display: flex; background: var(--bg); color: var(--ink); text-decoration: none; font-weight: 700; font-size: 16px; line-height: 22px; padding: 10px 16px; }
.hero nav a:hover { background: var(--blue); color: #fff; }

.intro { max-width: 960px; margin: 0 auto; padding: clamp(32px, 5vw, 64px) 24px clamp(64px, 9vw, 120px); display: flex; flex-direction: column; align-items: center; text-align: center; }
.spec { margin: 12px 0 0; font-size: clamp(17px, 1.6vw, 20px); line-height: 1.5; }
.spec i { font-style: normal; color: var(--dot); }
.cta { display: flex; flex-direction: column; align-items: center; gap: 14px; margin-top: clamp(32px, 4vw, 48px); }
.cta small { font-size: 16px; line-height: 22px; }

.samples { padding-bottom: clamp(24px, 3vw, 40px); }
.samples h2 { text-align: center; margin-bottom: clamp(32px, 4vw, 56px); }
.samples .grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: clamp(20px, 3vw, 40px); }
.samples figure { margin: 0; }

.about { max-width: 760px; margin: 0 auto; padding: clamp(40px, 5vw, 64px) 24px clamp(32px, 4vw, 48px); display: flex; flex-direction: column; align-items: center; text-align: center; gap: 24px; }
.about img { width: clamp(260px, 36vw, 420px); height: auto; mix-blend-mode: multiply; }
.about p { margin: 0; max-width: 640px; font-size: clamp(17px, 1.6vw, 21px); line-height: 1.5; }

/* ---------- Dark footer block ---------- */
.dark { background: var(--bg) url('../assets/textura-negra.webp') center top / cover no-repeat; color: #fff; }
.dark-inner { max-width: 760px; margin: 0 auto; padding: clamp(150px, 16vw, 230px) 24px clamp(40px, 5vw, 64px); display: flex; flex-direction: column; align-items: center; text-align: center; gap: 16px; }
.dark p { margin: 0; font-size: clamp(17px, 1.6vw, 20px); line-height: 1.5; max-width: 720px; }
.nw { white-space: nowrap; }
.afda img { display: block; height: clamp(48px, 5.5vw, 64px); width: auto; margin-top: 8px; }
.afda:hover { opacity: 0.8; }
.dark .btn { margin-top: clamp(16px, 2vw, 24px); }
.foot { display: flex; flex-direction: column; align-items: center; gap: 8px; margin-top: clamp(40px, 5vw, 64px); }
.foot.compact { margin-top: 0; }
.foot a.ig { color: #fff; font-size: 17px; line-height: 24px; text-decoration-thickness: 1px; }
.foot a.ig:hover { color: #d6d6d3; }
.foot p { font-size: 15px; line-height: 22px; }
.legal-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 18px; margin-top: 12px; }
.legal-nav a { color: #d6d6d3; font-size: 14px; line-height: 20px; }
.legal-nav a:hover { color: #fff; }

/* ---------- Láminas ---------- */
.topbar { max-width: 1200px; margin: 0 auto; padding: clamp(24px, 3vw, 40px) 24px 0; display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; font-size: 16px; line-height: 22px; }
.gallery { padding-top: clamp(32px, 5vw, 64px); padding-bottom: clamp(72px, 10vw, 120px); }
.gallery-head { display: flex; flex-direction: column; align-items: center; text-align: center; margin-bottom: clamp(40px, 6vw, 80px); }
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: clamp(32px, 4vw, 56px) clamp(20px, 3vw, 40px); }
.card { display: flex; flex-direction: column; gap: 14px; color: var(--ink); text-decoration: none; }
.card:hover { color: var(--blue); }
.card span { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.card b { font-size: 19px; line-height: 24px; }
.card em { font-style: normal; font-size: 15px; line-height: 22px; color: var(--muted); }

.detail { padding-top: clamp(32px, 5vw, 64px); padding-bottom: clamp(56px, 8vw, 96px); display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: clamp(32px, 5vw, 72px); align-items: center; }
.detail-info { display: flex; flex-direction: column; align-items: flex-start; gap: 20px; max-width: 480px; }
.detail-info .count { font-size: 15px; line-height: 22px; color: var(--muted); }
.detail-info h1 { font-size: clamp(40px, 5vw, 64px); line-height: 1.02; }
.detail-info > p { font-size: clamp(17px, 1.6vw, 21px); line-height: 1.5; margin: 0; }
.fineart { display: flex; flex-direction: column; gap: 10px; padding-top: 20px; border-top: 2px solid var(--ink); width: 100%; }
.fineart p { font-size: 16px; line-height: 1.55; margin: 0; }
.fineart p.lead { font-size: clamp(17px, 1.6vw, 20px); font-weight: 700; }
.fineart i { font-style: normal; color: var(--dot); }
.buy { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; margin-top: 12px; }
.buy small { font-size: 16px; line-height: 22px; }
.pager { max-width: 1200px; margin: 0 auto; padding: 0 24px clamp(72px, 10vw, 120px); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 17px; line-height: 24px; }

/* ---------- Legal ---------- */
.legal-head { max-width: 680px; margin: 0 auto; padding: clamp(28px, 4vw, 48px) 24px 0; display: flex; flex-direction: column; align-items: center; gap: 20px; text-align: center; }
.legal-head .back { align-self: flex-start; font-size: 16px; line-height: 22px; }
.legal-head .brand { font-family: var(--display); font-size: clamp(44px, 6vw, 64px); line-height: 1; color: var(--ink); text-decoration: none; margin-top: 8px; }
.legal-tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 20px; font-size: 15px; line-height: 22px; }
.legal-tabs a { color: var(--ink); }
.legal-tabs a:hover { color: var(--blue); }
.legal-tabs a[aria-current] { font-weight: 700; text-decoration: none; }
.legal-main { max-width: 680px; margin: 0 auto; padding: clamp(40px, 6vw, 72px) 24px clamp(72px, 10vw, 120px); font-size: 17px; line-height: 1.6; }
.legal-main article { display: flex; flex-direction: column; gap: 16px; }
.legal-main h1 { text-align: center; margin-bottom: 8px; }
.legal-main h2 { font-size: 20px; line-height: 1.3; font-weight: 700; margin: 24px 0 0; }
.legal-main p { margin: 0; }
.legal-main ul { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 4px; }
.pending { background: var(--pending-bg); color: var(--blue-hover); padding: 0 4px; }
.updated { margin: 56px 0 0; font-size: 15px; line-height: 22px; text-align: center; }

@media (prefers-reduced-motion: no-preference) {
  .btn, .card, .hero nav a { transition: background-color 150ms ease-out, color 150ms ease-out; }
}

/* ---------- Motion ---------- */
.progress { position: fixed; inset: 0 0 auto 0; height: 3px; background: var(--blue); transform: scaleX(0); transform-origin: left; z-index: 10; pointer-events: none; }
.hero { overflow: hidden; }
.thumb { overflow: hidden; }

@media (prefers-reduced-motion: no-preference) {
  /* Hero: slow settle-in zoom, parallax on scroll, nav drops in */
  .hero img { --py: 0px; transform: translate3d(0, var(--py), 0) scale(1); animation: hero-in 2200ms cubic-bezier(.16, 1, .3, 1) both; will-change: transform; }
  .hero nav { animation: drop-in 700ms 900ms cubic-bezier(.16, 1, .3, 1) both; }
  @keyframes hero-in { from { transform: translate3d(0, var(--py), 0) scale(1.14); opacity: 0; filter: blur(8px); } to { transform: translate3d(0, var(--py), 0) scale(1); opacity: 1; filter: blur(0); } }
  @keyframes drop-in { from { opacity: 0; transform: translateY(-14px); } to { opacity: 1; transform: none; } }

  /* Title letters rise one after another */
  .js [data-split] .ch { display: inline-block; opacity: 0; transform: translateY(0.45em) rotate(4deg); filter: blur(6px); transition: opacity 700ms ease-out, transform 900ms cubic-bezier(.16, 1, .3, 1), filter 700ms ease-out; transition-delay: calc(500ms + var(--i) * 55ms); }
  .js [data-split].is-in .ch { opacity: 1; transform: none; filter: blur(0); }

  /* Scroll reveals */
  .js [data-reveal], .js .card { opacity: 0; transform: translateY(28px); transition: opacity 800ms ease-out, transform 900ms cubic-bezier(.16, 1, .3, 1); transition-delay: var(--d, 0ms); }
  .js [data-reveal].is-in, .js .card.is-in { opacity: 1; transform: none; }
  .js .samples figure[data-reveal] { transform: translateY(40px) scale(.96); }
  .js .samples figure[data-reveal].is-in { transform: none; }
  .js .about img[data-reveal] { transform: scale(.92) rotate(-2deg); }
  .js .about img[data-reveal].is-in { transform: none; }

  /* Illustrations: pointer tilt + soft idle float */
  .samples figure, .about img { --rx: 0deg; --ry: 0deg; perspective: 800px; }
  .samples figure .art { transition: transform 400ms cubic-bezier(.16, 1, .3, 1); transform: rotateX(var(--rx)) rotateY(var(--ry)); }
  .samples figure:hover .art { transform: rotateX(var(--rx)) rotateY(var(--ry)) scale(1.04); }
  .js .samples figure.is-in { animation: float 7s ease-in-out 1.2s infinite; }
  .samples figure:nth-child(2).is-in { animation-delay: 2.4s; animation-duration: 8s; }
  .samples figure:nth-child(3).is-in { animation-delay: 3.6s; animation-duration: 9s; }
  @keyframes float { 50% { translate: 0 -8px; } }

  /* Buttons: light sweep + press */
  .btn { position: relative; overflow: hidden; isolation: isolate; transition: background-color 150ms ease-out, color 150ms ease-out, transform 200ms cubic-bezier(.16, 1, .3, 1), box-shadow 300ms ease-out; }
  .btn::after { content: ''; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 30%, rgba(255,255,255,.28) 50%, transparent 70%); transform: translateX(-120%); z-index: -1; }
  .btn:hover { transform: translateY(-2px); box-shadow: 0 10px 24px -10px rgba(45, 78, 166, .6); }
  .btn:hover::after { transform: translateX(120%); transition: transform 700ms ease-out; }
  .btn:active { transform: translateY(0) scale(.98); }
  .cta .btn { animation: pulse 3.2s ease-in-out 2.5s infinite; }
  @keyframes pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(45, 78, 166, 0); } 50% { box-shadow: 0 0 0 10px rgba(45, 78, 166, .14); } }

  /* Nav + links */
  .hero nav a { transition: background-color 150ms ease-out, color 150ms ease-out, transform 200ms ease-out; }
  .hero nav a:hover { transform: translateY(-2px); }
  .afda img { transition: transform 300ms cubic-bezier(.16, 1, .3, 1); }
  .afda:hover img { transform: scale(1.06); }
  .legal-nav a, .foot a.ig { transition: color 150ms ease-out; }

  /* Gallery cards */
  .card .art { transition: transform 700ms cubic-bezier(.16, 1, .3, 1); }
  .card:hover .art { transform: scale(1.07) rotate(.8deg); }
  .card b { background: linear-gradient(currentColor, currentColor) 0 100% / 0 2px no-repeat; transition: background-size 350ms cubic-bezier(.16, 1, .3, 1); }
  .card:hover b { background-size: 100% 2px; }

  /* Lámina detail entrance (replayed on every switch) */
  .detail.swap #d-img { animation: art-in 900ms cubic-bezier(.16, 1, .3, 1) both; }
  .detail.swap .detail-info > * { animation: rise 800ms cubic-bezier(.16, 1, .3, 1) both; }
  .detail.swap .detail-info > *:nth-child(2) { animation-delay: 80ms; }
  .detail.swap .detail-info > *:nth-child(3) { animation-delay: 160ms; }
  .detail.swap .detail-info > *:nth-child(4) { animation-delay: 240ms; }
  .detail.swap .detail-info > *:nth-child(5) { animation-delay: 320ms; }
  .pager a { transition: transform 250ms cubic-bezier(.16, 1, .3, 1); }
  #p-prev:hover { transform: translateX(-5px); }
  #p-next:hover { transform: translateX(5px); }
  @keyframes art-in { from { opacity: 0; transform: scale(.94) rotate(-1.5deg); clip-path: inset(8% round 4px); } to { opacity: 1; transform: none; clip-path: inset(0); } }
  @keyframes rise { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
}

/* Cookie banner */
.cookie-banner { position: fixed; z-index: 100; left: 16px; right: 16px; bottom: 16px; max-width: 460px; background: #fff; color: var(--ink); border: 1px solid var(--dot); box-shadow: 0 12px 40px -12px rgba(0, 0, 0, .35); padding: 20px; display: flex; flex-direction: column; gap: 10px; font-size: 15px; line-height: 22px; }
.cookie-banner p { margin: 0; }
.cookie-actions { display: flex; gap: 12px; margin-top: 6px; }
.cookie-btn { flex: 1; font: inherit; font-weight: 700; font-size: 16px; line-height: 22px; padding: 12px 18px; cursor: pointer; background: var(--blue); color: #fff; border: 2px solid var(--blue); }
.cookie-btn:hover { background: var(--blue-hover); border-color: var(--blue-hover); }
.cookie-banner .cookie-actions .cookie-btn { min-width: 0; }
.legal-main p > .cookie-btn { flex: none; }
.cookie-link { font: inherit; font-size: 14px; line-height: 20px; color: #d6d6d3; background: none; border: 0; padding: 0; cursor: pointer; text-decoration: underline; text-underline-offset: 4px; }
.cookie-link:hover { color: #fff; }
.cookie-link:focus-visible { outline-color: #fff; }
@media (min-width: 640px) { .cookie-banner { left: auto; right: 24px; bottom: 24px; } }
