@font-face {
  font-family: Satoshi;
  src: url("assets/fonts/Satoshi-Variable.woff2") format("woff2");
  font-weight: 300 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: Satoshi;
  src: url("assets/fonts/Satoshi-VariableItalic.woff2") format("woff2");
  font-weight: 300 900;
  font-style: italic;
  font-display: swap;
}
:root {
  color-scheme: dark;
  --coal: #18191a;
  --ink: #e6e6e3;
  --muted: #b3b4b3;
  --line: #464749;
  --subtle: #303133;
  --accent: #ff7924;
  --accent-gradient: linear-gradient(110deg,#ff7924 0%,#ff4824 45%,#ff1327 100%);
  --pad: clamp(1.25rem, 4.55vw, 5rem);
  --ease: cubic-bezier(.2,.74,.15,1);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 5.5rem; }
body { margin: 0; background: var(--coal); color: var(--ink); font: 475 1rem/1.5 Satoshi, sans-serif; -webkit-font-smoothing: antialiased; }
body:has(dialog[open]) { overflow: hidden; }
button, a { color: inherit; font-family: inherit; }
a { text-decoration: none; }
button { font-size: inherit; cursor: pointer; }
button[hidden], [hidden] { display: none !important; }
a:focus-visible, button:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; }
img { display: block; max-width: 100%; }
h1, h2, h3, p, figure { margin: 0; }
main:focus { outline: none; }
::selection { background: #e5e5e3; color: #151516; }
.shell { width: min(100%, 104rem); margin-inline: auto; padding-inline: var(--pad); }
.sr-only, .skip:not(:focus) { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.skip:focus { position: fixed; z-index: 40; top: .75rem; left: var(--pad); padding: .6rem 1rem; background: var(--ink); color: var(--coal); }
.site-header { position: sticky; z-index: 10; top: 0; background: rgb(24 25 26 / 96%); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: clamp(4rem, 5.3vw, 5.3rem); position: relative; }
.header-inner::after { content: ""; position: absolute; bottom: 0; inset-inline: var(--pad); height: 1px; background: var(--line); }
.brand { display: inline-flex; align-items: center; min-width: 2.8rem; min-height: 2.8rem; }
.portfolio-mark { width: 3.55rem; height: 1.51rem; transition: transform .35s var(--ease); }
.brand:hover .portfolio-mark { transform: skewX(-6deg); }
.navigation { display: flex; align-items: center; gap: clamp(1.2rem, 3.2vw, 3.6rem); font-size: .95rem; font-weight: 610; }
.nav-link { padding-block: .65rem; }
.nav-link, .site-footer a { background: linear-gradient(currentColor,currentColor) left bottom .48rem / 0 1px no-repeat; transition: background-size .25s; }
.nav-link:hover, .site-footer a:hover { background-size: 100% 1px; }
.contact-link, .button { display: inline-flex; align-items: center; justify-content: center; border-radius: 999px; font-weight: 610; transition: color .2s, background .2s, border-color .2s; }
.contact-link { min-height: 2.75rem; padding-inline: 1.05rem; border: 1px solid #737578; }
.contact-link:hover { background: var(--ink); color: var(--coal); border-color: var(--ink); }
.hero { display: grid; grid-template-columns: minmax(0,1.08fr) minmax(0,1fr); gap: clamp(1rem,2.3vw,2.9rem); align-items: center; padding-block: clamp(1.75rem,3.1vw,3.6rem) clamp(1.5rem,2.6vw,3rem); }
.hero-copy { min-width: 0; container-type: inline-size; align-self: stretch; display: flex; flex-direction: column; justify-content: center; }
.eyebrow { font-size: .79rem; text-transform: uppercase; letter-spacing: .12em; font-weight: 675; color: var(--muted); line-height: 1.5; }
.hero-kicker { color: var(--muted); font-size: clamp(.96rem,1.14vw,1.12rem); line-height: 1.4; font-weight: 560; }
.hero-kicker span { white-space: nowrap; }
.hero-kicker strong { color: var(--ink); font-weight: 700; }
.hero h1 { margin: clamp(1.25rem,2.1vw,2.1rem) 0 clamp(1.35rem,2.1vw,2.4rem) -.063em; font-size: clamp(2.3rem,15.2cqi,7.45rem); line-height: .92; letter-spacing: -.069em; font-weight: 705; }
.title-line { display: block; overflow: clip; padding: .055em .11em .14em .02em; margin: -.055em -.11em -.12em -.02em; }
.title-line > span { display: block; white-space: nowrap; transform-origin: left bottom; }
.fields { display: flex; align-items: baseline; flex-wrap: wrap; column-gap: clamp(.38rem,.68vw,.7rem); color: var(--ink); font-size: clamp(1rem,1.35vw,1.25rem); font-weight: 550; line-height: 1.4; letter-spacing: -.015em; }
.fields i { color: #898b8c; font-style: normal; font-weight: 450; }
.hero-statement {
  width: fit-content;
  max-width: 100%;
  margin-top: clamp(1.5rem,2.5vw,2.4rem);
  padding-block: .08em;
  font-size: clamp(1.65rem,6.8cqi,2.8rem);
  font-weight: 620;
  line-height: 1.18;
  letter-spacing: -.04em;
  color: var(--accent);
}
.hero-statement span { display: block; }
@supports (background-clip: text) or (-webkit-background-clip: text) {
  .hero-statement {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
  }
}
@media (forced-colors: active) {
  .hero-statement { background: none; color: CanvasText; }
}

/* La perspectiva da profundidad y la contrarrotación mantiene legibles las piezas. */
.showcase { position: relative; min-width: 0; width: min(100%,43rem); justify-self: center; container-type: inline-size; }
.motion-stage { position: relative; aspect-ratio: 1.34; perspective: clamp(640px,78vw,1250px); pointer-events: none; }
.orbit-space, .orbit-arm, .orbit-radius, .orbit-facing { transform-style: preserve-3d; }
.orbit-space { position: absolute; inset: 0; transform: rotateZ(-10deg) rotateX(-23deg); }
.orbit-arm { position: absolute; left: 50%; top: 49%; width: 0; height: 0; transform: rotateY(var(--phase)); }
.orbit-radius { transform: translate3d(0,var(--lift),var(--radius)); }
.orbit-facing { transform: rotateY(calc(0deg - var(--phase))); }
.orbit-object { position: absolute; width: var(--width); transform: translate(-50%,-50%) rotateX(18deg) rotateZ(var(--roll)); }
.orbit-object img { display: block; width: 100%; height: auto; }
.orbit-object span { display: block; text-align: center; margin-top: .45em; color: #d6d9d6; font-size: clamp(.73rem,2.45cqi,1rem); font-weight: 620; line-height: 1.15; letter-spacing: -.025em; white-space: nowrap; }
.orbit-arm.piece-seon { --phase: -22deg; --radius: 24cqi; --lift: -1cqi; --width: 45cqi; --roll: 7deg; }
.orbit-arm.piece-seguros { --phase: 75deg; --radius: 33cqi; --lift: 1cqi; --width: 16.5cqi; --roll: 17deg; }
.orbit-arm.piece-premio-circular { --phase: 163deg; --radius: 28cqi; --lift: -10cqi; --width: 16.7cqi; --roll: 5deg; }
.orbit-arm.piece-club-bakery { --phase: 252deg; --radius: 33cqi; --lift: 4cqi; --width: 20cqi; --roll: -2deg; }
.orbit-arm.piece-club-bakery .object-image { aspect-ratio: .77; overflow: hidden; background: #fbf7f4; clip-path: polygon(0 0,100% 0,100% 97%,90% 100%,80% 97%,70% 100%,60% 97%,50% 100%,40% 97%,30% 100%,20% 97%,10% 100%,0 97%); }
.orbit-arm.piece-seon span { margin-top: -.1em; }

.motion-toggle { position: absolute; right: 0; bottom: 0; display: grid; place-items: center; width: 2.75rem; height: 2.75rem; padding: 0; border: 0; background: transparent; color: #b6b9b8; border-radius: .5rem; }
.motion-toggle span { width: .6rem; height: .62rem; border-inline: 2px solid currentColor; }
.motion-toggle.is-paused span { width: .58rem; height: .68rem; border: 0; background: currentColor; clip-path: polygon(10% 0,100% 50%,10% 100%); }
.motion-toggle:hover { color: white; background: #282b2d; }
.close-button, .copy-button { border: 0; background: transparent; padding: 0; }

.cross { width: .72rem; height: .72rem; position: relative; display: inline-block; }
.cross::before, .cross::after { content: ""; position: absolute; top: calc(50% - .65px); left: 0; height: 1.3px; width: 100%; background: currentColor; }
.cross::after { transform: rotate(90deg); }
.cross { transform: rotate(45deg); }
.lock { display: inline-block; position: relative; border: 1.5px solid currentColor; border-radius: .09rem; width: .79rem; height: .63rem; margin-top: .28rem; flex: none; }
.lock::before { content: ""; position: absolute; width: .5rem; height: .48rem; border: 1.5px solid currentColor; border-bottom: 0; border-radius: .5rem .5rem 0 0; left: 50%; transform: translateX(-50%); bottom: calc(100% + .5px); }
.site-footer { display: flex; align-items: center; justify-content: space-between; position: relative; gap: 1rem; min-height: 5rem; color: var(--muted); font-size: .9rem; }
.site-footer::before { content: ""; position: absolute; top: 0; inset-inline: var(--pad); height: 1px; background: var(--line); }
.site-footer div { display: flex; gap: 1.7rem; }
.site-footer a { padding-block: .7rem; }

.text-link { text-decoration: underline; text-decoration-color: #858688; text-underline-offset: .26em; text-decoration-thickness: 1px; }
.text-link:hover { text-decoration-color: currentColor; }
.actions { display: flex; align-items: center; flex-wrap: wrap; gap: 1.05rem 1.35rem; margin-top: 1.65rem; font-size: .95rem; }
.button { min-height: 2.75rem; padding: .68rem 1.3rem; font-size: .95rem; }
.button.primary { background: var(--ink); color: #191a1c; }
.button.primary:hover { background: white; }
/* Paneles de lectura y de contacto. */
dialog { color: var(--ink); }
.info-dialog { padding: 0; background: #242527; border: 1px solid #555659; width: min(35rem,calc(100% - 2rem)); max-width: none; max-height: calc(100dvh - 2rem); }
dialog::backdrop { background: rgb(7 8 10 / 78%); }
.dialog-content { position: relative; padding: 4.2rem clamp(1.5rem,4vw,3.15rem) 2.9rem; }
.close-button { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 2.65rem; padding: .5rem; color: var(--ink); font-size: .9rem; font-weight: 570; }
.dialog-content > .close-button { position: absolute; right: 1rem; top: .55rem; }
.dialog-content h2, .standalone h1 { font-size: clamp(2.8rem,5.25vw,4.25rem); letter-spacing: -.065em; font-weight: 660; line-height: .98; margin: .5rem 0 1.1rem; }
.dialog-content > p:not(.eyebrow), .standalone section > p:not(.eyebrow) { margin-top: .8rem; max-width: 42ch; line-height: 1.45; font-size: 1.12rem; color: #cdcecc; }
.contact-options { display: grid; gap: 1.35rem; justify-items: start; margin-top: 1.8rem; }
.contact-options > div { display: flex; align-items: baseline; flex-wrap: wrap; gap: .4rem 1rem; }
.contact-mail { font-size: clamp(1.04rem,2vw,1.35rem); letter-spacing: -.02em; text-decoration: underline; text-underline-offset: .2em; overflow-wrap: anywhere; }
.copy-button { color: var(--muted); padding-block: .5rem; font-size: .85rem; text-decoration: underline; text-underline-offset: .2em; }
.standalone { padding-block: 2.2rem 5rem; min-height: 70svh; }
.standalone section { max-width: 40rem; margin: 3rem auto; }
.image-dialog { width: min(78rem,calc(100% - 2rem)); max-width: none; padding: 0; border: 1px solid var(--line); background: #202122; max-height: calc(100dvh - 2rem); }
.viewer-bar { display: flex; justify-content: space-between; align-items: center; gap: .8rem; min-height: 3rem; padding: .15rem .75rem .15rem 1rem; font-size: .9rem; }
.viewer-scroll { overflow: auto; max-height: calc(100dvh - 6rem); padding-bottom: .5rem; }
.viewer-scroll img { width: auto; height: auto; max-width: 100%; max-height: calc(100dvh - 6.5rem); margin-inline: auto; }

@media (min-width: 100rem) { .hero { gap: 2rem; } }
@media (max-width: 65rem) {
  .fields { font-size: 1rem; }
}
@media (max-width: 49rem) {
  :root { --pad: clamp(1.25rem,5vw,2rem); }
  .portfolio-mark { width: 2.9rem; height: 1.3rem; }
  .navigation { gap: 1.3rem; font-size: .9rem; }
  .hero { grid-template-columns: minmax(0,1fr); padding-block: 2.4rem 1.55rem; gap: .65rem; }
  .hero h1 { font-size: clamp(2.3rem,15.2cqi,5.7rem); margin-block: .95rem 1.1rem; }
  .hero-copy { display: block; }
  .fields { gap: .42rem; }
  .showcase { width: min(100%,29rem); margin: .35rem auto 0; }
}
@media (max-width: 34rem) {
  .contact-link { padding-inline: .85rem; }
  .site-footer { min-height: 4.6rem; font-size: .83rem; }
  .site-footer div { gap: 1.05rem; }
  .image-dialog { width: calc(100% - .75rem); }
  .viewer-scroll img { max-height: calc(100dvh - 7rem); }

}
@media (max-width: 28rem) {
  .fields { justify-content: space-between; }
  .fields i { display: none; }
}
@media (max-width: 23rem) {
  :root { --pad: 1rem; }
  .navigation { gap: .95rem; font-size: .86rem; }
  .fields { font-size: .92rem; gap: .16rem; }
}

/* Las transformaciones continuas conservan su fase al salir del área visible. */
@media (prefers-reduced-motion: no-preference) {
  .title-line > span { animation: type-in .83s var(--ease) both; }
  .title-line:nth-child(2) > span { animation-delay: .09s; }
  .hero-kicker, .fields, .hero-statement { animation: lift-in .82s var(--ease) both; }
  .fields { animation-delay: .16s; }
  .hero-statement { animation-delay: .23s; }
  .orbit-arm { animation: orbit-turn 26s linear infinite paused; }
  .orbit-facing { animation: orbit-face 26s linear infinite paused; }
  .showcase[data-running="true"] :is(.orbit-arm,.orbit-facing) { animation-play-state: running; }
  .standalone section { animation: lift-in .8s var(--ease) both; }
  dialog[open] { animation: dialog-in .32s var(--ease); }
  dialog[open]::backdrop { animation: fade-in .25s; }
  @keyframes type-in { from { transform: translateY(106%) rotate(2deg); } to { transform: none; } }
  @keyframes lift-in { from { opacity: .01; transform: translateY(15px); } to { opacity: 1; transform: none; } }
  @keyframes fade-in { from { opacity: 0; } }
  @keyframes orbit-turn { from { transform: rotateY(var(--phase)); } to { transform: rotateY(calc(var(--phase) + 360deg)); } }
  @keyframes orbit-face { from { transform: rotateY(calc(0deg - var(--phase))); } to { transform: rotateY(calc(-360deg - var(--phase))); } }
  @keyframes dialog-in { from { opacity: 0; transform: translateY(13px); } to { opacity: 1; transform: none; } }
}
@view-transition { navigation: auto; }
@media (prefers-reduced-motion: no-preference) {
  ::view-transition-old(root) { animation: page-out .22s ease-in both; }
  ::view-transition-new(root) { animation: page-in .38s var(--ease) both; }
  @keyframes page-out { to { opacity: 0; transform: translateY(-5px); } }
  @keyframes page-in { from { opacity: 0; transform: translateY(7px); } }
}
@media (prefers-reduced-motion: reduce) {
  ::view-transition-old(root), ::view-transition-new(root) { animation: none; }
  *, *::before, *::after { scroll-behavior: auto !important; animation: none !important; transition: none !important; }
}
