@font-face {
  font-family: Bricolage;
  src: url("/assets/fonts/bricolage.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
}
@font-face {
  font-family: Cormorant;
  src: url("/assets/fonts/cormorant.woff2") format("woff2");
  font-weight: 300 700;
  font-display: swap;
}
@font-face {
  font-family: Jost;
  src: url("/assets/fonts/jost.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
:root {
  --ink: #292337;
  --paper: #f7f6fb;
  --accent: #4938cf;
  --line: #c7c3d0;
  --font: Jost, "Segoe UI", sans-serif;
  --display: Bricolage, "Segoe UI", sans-serif;
  --ease: cubic-bezier(0.22, 0.7, 0.25, 1);
  --pad: clamp(1.25rem, 5vw, 5rem);
  --section: clamp(4rem, 9vw, 9rem);
}
*,
:before,
:after {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 6rem;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 1.05rem/1.55 var(--font);
  -webkit-font-smoothing: antialiased;
}
body.menu-open {
  overflow: hidden;
}
h1,
h2,
h3,
p,
figure {
  margin: 0;
}
h1,
h2,
h3 {
  font-family: var(--display);
  font-weight: 500;
  line-height: 1.03;
}
h2 {
  font-size: clamp(2.5rem, 5vw, 5.2rem);
  letter-spacing: -0.045em;
}
h3 {
  font-size: 1.6rem;
}
p {
  max-width: 65ch;
}
a {
  color: inherit;
  text-underline-offset: 0.25em;
}
button,
input,
select {
  font: inherit;
}
button {
  cursor: pointer;
  color: inherit;
}
button,
a,
input,
select {
  touch-action: manipulation;
}
button {
  border: 0;
}
img {
  display: block;
  max-width: 100%;
  height: auto;
}
svg {
  display: block;
  width: 1.5rem;
  height: 1.5rem;
}
a,
button {
  -webkit-tap-highlight-color: transparent;
}
:focus-visible {
  outline: 3px solid currentColor;
  outline-offset: 5px;
}
button:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}
::selection {
  background: var(--ink);
  color: var(--paper);
}
[hidden] {
  display: none !important;
}
.wrap {
  width: min(1440px, calc(100% - var(--pad) * 2));
  margin-inline: auto;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.skip {
  position: fixed;
  top: -6rem;
  left: 1rem;
  z-index: 100;
  background: var(--ink);
  color: var(--paper);
  padding: 1rem;
}
.skip:focus {
  top: 1rem;
}
.eyeline {
  font-size: 0.9rem;
  margin-bottom: 1.4rem;
}
.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  min-height: 3.3rem;
  border-radius: 100px;
  padding: 0.8rem 1.5rem;
  background: var(--ink);
  color: var(--paper);
  font-weight: 500;
  text-decoration: none;
  transition:
    transform 0.3s var(--ease),
    box-shadow 0.3s;
}
.pill:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 0 -3px color-mix(in srgb, var(--ink) 20%, transparent);
}
.pill svg {
  width: 1.35rem;
}
.pill-small {
  min-height: 2.8rem;
  padding: 0.5rem 1.1rem;
  font-size: 0.9rem;
}
.line-link {
  display: inline-flex;
  gap: 2rem;
  align-items: center;
  min-height: 3rem;
  padding-block: 0.8rem;
  border-bottom: 1px solid currentColor;
  text-decoration: none;
}
.line-link svg {
  transition: transform 0.3s;
}
.line-link:hover svg {
  transform: translateX(5px);
}
.text-button {
  background: none;
  padding: 0.5rem 0;
  text-decoration: underline;
  text-underline-offset: 0.3em;
  min-height: 2.75rem;
}
.demo-note {
  font-size: 0.85rem;
  line-height: 1.6;
  opacity: 0.8;
  margin-top: 1.3rem;
}
.reading-progress {
  position: fixed;
  left: 0;
  top: 0;
  height: 3px;
  width: 100%;
  background: var(--accent);
  transform: scaleX(var(--reading, 0));
  transform-origin: left;
  z-index: 60;
  pointer-events: none;
}
.show-header,
.world-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 1.5rem var(--pad);
  position: relative;
  z-index: 20;
}
.show-header {
  border-bottom: 1px solid var(--line);
}
.studio-logo {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  text-decoration: none;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.1rem;
  line-height: 0.95;
  position: relative;
}
.logo-glyph {
  font-size: 3.3rem;
  line-height: 0.8;
  letter-spacing: -0.15em;
  padding-right: 0.5rem;
}
.logo-glyph span {
  color: var(--accent);
}
.logo-dot {
  position: absolute;
  font-size: 0.65rem;
  right: -0.7rem;
  top: 0;
}
.show-header nav,
.world-header nav {
  display: flex;
  align-items: center;
  gap: 2.3rem;
}
.show-header nav > a:not(.pill),
.world-header nav > a {
  font-size: 0.93rem;
  text-decoration: none;
  min-height: 2.75rem;
  display: flex;
  align-items: center;
}
.show-header nav > a:hover,
.world-header nav > a:hover {
  text-decoration: underline;
}
.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid currentColor;
  border-radius: 40px;
  padding: 0.5rem 1rem;
  min-height: 2.75rem;
}
.collection-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.55rem var(--pad);
  font-size: 0.75rem;
  background: var(--ink);
  color: var(--paper);
}
.collection-bar > a {
  display: flex;
  gap: 0.7rem;
  align-items: center;
  text-decoration: none;
  min-height: 2rem;
}
.collection-bar > a svg {
  width: 1rem;
  transform: rotate(180deg);
}
.motion-toggle {
  background: none;
  color: inherit;
  font-size: 0.75rem;
  text-decoration: underline;
  text-underline-offset: 0.25em;
  min-height: 2rem;
  padding: 0.25rem;
}
.world-brand {
  font: 500 2.5rem/0.9 var(--display);
  letter-spacing: -0.05em;
  text-decoration: none;
}
.world-brand > span {
  display: block;
  font: 400 0.62rem/1.5 var(--font);
  letter-spacing: 0.04em;
  margin-top: 0.3rem;
}
.show-footer {
  padding: 4rem 0 2rem;
  background: var(--ink);
  color: var(--paper);
}
.footer-next {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 3rem;
  padding-bottom: 4rem;
}
.footer-next > p {
  font-size: 1rem;
  max-width: 22ch;
}
.footer-next > a {
  font: 500 clamp(2rem, 4vw, 4rem)/1.1 var(--display);
  max-width: 16ch;
  letter-spacing: -0.04em;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
.footer-next > a svg {
  width: 3rem;
  height: 3rem;
  flex-shrink: 0;
}
.footer-meta {
  border-top: 1px solid currentColor;
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.8rem;
}
.footer-meta > p {
  flex-basis: 100%;
  opacity: 0.75;
}
.footer-meta nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem;
}
.footer-meta a {
  min-height: 2rem;
  display: inline-flex;
  align-items: center;
}
.show-dialog {
  background: var(--paper);
  color: var(--ink);
  border: 0;
  width: min(550px, calc(100% - 2rem));
  max-height: 90dvh;
  overflow: auto;
  padding: 3rem;
  border-radius: 1rem;
  box-shadow: 0 25px 100px #0005;
}
.show-dialog::backdrop {
  background: #171526aa;
  backdrop-filter: blur(7px);
}
.dialog-close {
  position: absolute;
  right: 0.8rem;
  top: 0.8rem;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  background: var(--ink);
  color: var(--paper);
  font-size: 1.7rem;
  line-height: 1;
}
.show-dialog h2 {
  font-size: 3rem;
  margin-bottom: 1.5rem;
}
.show-dialog form {
  display: grid;
  gap: 0.7rem;
}
.show-dialog input,
.show-dialog select {
  width: 100%;
  padding: 0.8rem;
  border: 1px solid var(--line);
  border-radius: 0.25rem;
  background: var(--paper);
  color: var(--ink);
  min-height: 3rem;
}
.show-dialog .pill {
  margin-top: 1rem;
}
.show-dialog [role="status"] {
  font-size: 1rem;
  margin-top: 1rem;
}
[data-tilt] {
  transform: perspective(1000px) rotateX(var(--rx, 0deg))
    rotateY(var(--ry, 0deg));
  transition: transform 0.5s var(--ease);
}
[data-reveal].is-entering {
  animation: reveal-piece 0.8s var(--ease) both;
}
@keyframes reveal-piece {
  from {
    transform: translateY(35px) rotate(1deg);
  }
  to {
    transform: none;
  }
}
.story-word {
  color: color-mix(in srgb, var(--ink) 65%, var(--paper));
  transition: color 0.4s;
}
.story-word.is-lit {
  color: var(--ink);
}
@view-transition {
  navigation: auto;
}
::view-transition-old(root) {
  animation: leave-view 0.24s both;
}
::view-transition-new(root) {
  animation: enter-view 0.4s var(--ease) both;
}
@keyframes leave-view {
  to {
    opacity: 0;
    transform: translateY(-12px);
  }
}
@keyframes enter-view {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
}
@media (max-width: 760px) {
  .show-header,
  .world-header {
    padding: 1.1rem var(--pad);
    gap: 1rem;
    flex-wrap: wrap;
  }
  .show-header nav,
  .world-header nav {
    width: 100%;
    flex-wrap: wrap;
    gap: 1rem;
  }
  .enhanced .nav-toggle {
    display: flex;
    gap: 0.8rem;
    align-items: center;
  }
  .enhanced #show-nav {
    display: none;
  }
  .enhanced #show-nav.is-open {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    padding: 1rem 0;
    max-height: 65dvh;
    overflow: auto;
  }
  .enhanced #show-nav.is-open a {
    padding: 0.6rem 0;
  }
  .collection-bar {
    flex-wrap: wrap;
    gap: 0.3rem 1rem;
  }
  .collection-bar > span {
    font-size: 0.68rem;
  }
  .collection-bar .motion-toggle {
    display: none;
  }
  .footer-next {
    display: block;
  }
  .footer-next > a {
    margin-top: 2rem;
  }
  .show-dialog {
    padding: 3rem 1.5rem 1.5rem;
  }
  .world-brand {
    font-size: 2.1rem;
  }
  .demo-label {
    white-space: nowrap;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *:before,
  *:after {
    animation: none !important;
    transition: none !important;
    view-transition-name: none !important;
  }
  [data-tilt] {
    transform: none !important;
  }
  ::view-transition-group(*) {
    animation: none !important;
  }
}
html[data-motion="false"] {
  scroll-behavior: auto;
}
html[data-motion="false"] *,
html[data-motion="false"] *:before,
html[data-motion="false"] *:after {
  animation: none !important;
  transition: none !important;
}
html[data-motion="false"] [data-tilt] {
  transform: none !important;
}

@media (max-width: 760px) {
  .collection-bar .motion-toggle {
    display: inline-flex;
  }
  .collection-bar > span {
    flex: 1;
    text-align: right;
  }
  .collection-bar .motion-toggle {
    margin-left: auto;
  }
}
@media (prefers-reduced-motion: no-preference) {
  html[data-motion="true"] .calma-cover {
    animation: calma-arrive 1.4s var(--ease) both;
  }
  html[data-motion="true"] .forma-cover {
    animation: editorial-arrive 1.2s var(--ease) both;
  }
  html[data-motion="true"] .bruma-hero .car-stage {
    animation: car-arrive 1s var(--ease) both;
  }
  html[data-motion="true"] .cake-plate {
    animation: cake-arrive 1.2s var(--ease) both;
  }
}
@keyframes calma-arrive {
  from {
    transform: scale(1.06);
  }
  to {
    transform: scale(1);
  }
}
@keyframes editorial-arrive {
  from {
    clip-path: inset(6% 0 0 0);
  }
  to {
    clip-path: inset(0);
  }
}
@keyframes car-arrive {
  from {
    translate: 4% 15px;
  }
  to {
    translate: 0 0;
  }
}
@keyframes cake-arrive {
  from {
    scale: 0.92;
    rotate: -8deg;
  }
  to {
    scale: 1;
    rotate: 0deg;
  }
}

.no-script-note {
  margin: 0;
  padding: 1rem var(--pad);
  background: var(--ink);
  color: var(--paper);
  max-width: none;
  font-size: 0.85rem;
}

/* Marca Cuéllar Design en el marco común de la colección */
.brand-logo {
  display: block;
  width: 8rem;
  aspect-ratio: 891 / 433;
  -webkit-mask: url("/assets/brand/cuellar-logo.svg") center / contain no-repeat;
  mask: url("/assets/brand/cuellar-logo.svg") center / contain no-repeat;
  background: linear-gradient(105deg, #b08a4a 0%, #d9b77e 30%, #fff1cc 46%, #d9b77e 60%, #b08a4a 100%) 0 0 / 260% 100%;
  animation: logo-sheen 7s linear infinite;
}
@keyframes logo-sheen {
  from { background-position: 100% 0; }
  to { background-position: -160% 0; }
}
html .collection-bar.collection-bar,
html .world-impacto .collection-bar {
  background: #0b0f3a;
  color: #e8e6f3;
}
.collection-bar > a {
  color: #e6c992;
}
.collection-bar > a:hover span {
  text-decoration: underline;
}
.show-footer {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: radial-gradient(70% 90% at 90% 0%, #1b2478, transparent 60%), #0b0f3a;
  color: #f6f3ec;
}
.footer-next > a {
  font-family: Cormorant, Georgia, serif;
  font-weight: 500;
  font-size: clamp(2.4rem, 5vw, 5rem);
  color: #e6c992;
  background: linear-gradient(#d9b77e, #d9b77e) 0 100% / 0 2px no-repeat;
  transition: background-size 0.5s var(--ease), color 0.3s;
}
.footer-next > a:hover {
  background-size: 100% 2px;
  color: #fff1cc;
}
.footer-next > a svg {
  transition: transform 0.4s var(--ease);
}
.footer-next > a:hover svg {
  transform: translateX(10px);
}
.footer-meta {
  border-top-color: rgb(217 183 126 / 35%);
  align-items: center;
}
.footer-logo {
  min-height: 2.75rem;
}
.footer-logo .brand-logo {
  width: 7rem;
}
.reading-progress {
  height: 2px;
  background: linear-gradient(90deg, #9a7433, #d9b77e, #fff1cc);
  box-shadow: 0 0 12px rgb(217 183 126 / 70%);
}

/* Luces y movimiento compartidos (fx.js) */
.fx-spotlight {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: radial-gradient(var(--spot-size, 560px) circle at var(--mx, 50%) var(--my, 50%), var(--spot, rgb(217 183 126 / 18%)), transparent 65%);
  opacity: 0;
  transition: opacity 0.6s;
}
.fx-lit > .fx-spotlight {
  opacity: 1;
}
.brief-form .fx-spotlight {
  --spot: rgb(217 183 126 / 16%);
  --spot-size: 380px;
  z-index: -1;
}
.show-footer .fx-spotlight {
  z-index: -1;
}
.fx-ambient {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 5;
}
.miga-hero,
.forma-hero {
  position: relative;
}
.fx-burst {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 80;
}
[data-magnetic] {
  translate: var(--tx, 0) var(--ty, 0);
  transition: translate 0.35s var(--ease);
}
.pill {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.pill::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(110deg, transparent 30%, rgb(255 255 255 / 35%) 50%, transparent 70%);
  transform: translateX(-120%);
  transition: transform 0.7s var(--ease);
}
.pill:hover::after {
  transform: translateX(120%);
}
html[data-motion="false"] [data-magnetic] {
  translate: none;
}
html[data-motion="false"] .fx-ambient,
html[data-motion="false"] .fx-burst {
  display: none;
}
@media (prefers-reduced-motion: reduce) {
  .fx-ambient,
  .fx-burst {
    display: none;
  }
  [data-magnetic] {
    translate: none;
  }
}
