/* ==========================================================
   MORA CREATIVE ECOSYSTEM — sistema visual
   Tinta (fondo) · Papel (texto) · Mora (acento) · Ácido (señal)
   ========================================================== */
:root {
  --tinta: #120c14;
  --tinta-2: #1d1420;
  --papel: #f1ebe0;
  --papel-2: #d9d0c2;
  --gris: #8a8090;
  --mora: #7a1f52;
  /* señal de Mora: el prisma que reúne las cuatro áreas */
  --prisma: linear-gradient(110deg, #94ddff 0%, #ff91ef 50%, #fff56e 100%);
  --linea: rgba(241, 235, 224, 0.14);

  --agencia: #94ddff;
  --tienda: #ff91ef;
  --taller: #fff56e;
  --laboratorio: #c9bcff; /* tono sólido del prisma, para textos y trazos */

  /* Módula (solo en el bloque que la promociona) */
  --modula-indigo: #4f3bff;
  --modula-coral: #ff6b4a;

  --serif: "Fraunces", Georgia, serif;
  --sans: "Inter Tight", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;

  --gutter: clamp(16px, 4vw, 56px);
  --ease: cubic-bezier(.2, .7, .1, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: clip; }
body {
  margin: 0;
  background: var(--tinta);
  color: var(--papel);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
::selection { background: var(--tienda); color: var(--tinta); }
.prisma-text { background: var(--prisma); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* grano de papel litográfico */
body::after {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 90;
  opacity: .06; mix-blend-mode: overlay;
  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 baseFrequency='.9' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.mono { font-family: var(--mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }
.wrap { padding-inline: var(--gutter); }

/* ---------- cursor ---------- */
.cursor {
  position: fixed; top: 0; left: 0; z-index: 100; pointer-events: none;
  width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%;
  background: #fff; mix-blend-mode: difference;
  transition: width .35s var(--ease), height .35s var(--ease), margin .35s var(--ease);
}
.cursor.is-hover { width: 64px; height: 64px; margin: -32px 0 0 -32px; }
.cursor-label {
  position: fixed; top: 0; left: 0; z-index: 101; pointer-events: none;
  font-family: var(--mono); font-size: 10px; letter-spacing: .1em; text-transform: uppercase;
  color: var(--tinta); transform: translate(-50%, -50%); opacity: 0; transition: opacity .2s;
}
@media (hover: none) { .cursor, .cursor-label { display: none; } }

/* ---------- loader ---------- */
.loader {
  position: fixed; inset: 0; z-index: 200; background: var(--tinta);
  display: grid; place-items: center; transition: transform 1s var(--ease) .2s;
}
.loader.is-done { transform: translateY(-100%); }
.loader__word { font-family: var(--serif); font-size: clamp(48px, 10vw, 140px); font-style: italic; overflow: hidden; }
.loader__word span { display: inline-block; transform: translateY(110%); animation: up .9s var(--ease) forwards; }
.loader__count { position: absolute; bottom: var(--gutter); right: var(--gutter); }
@keyframes up { to { transform: none; } }

/* ---------- nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 20px var(--gutter); mix-blend-mode: difference;
}
.nav__logo { font-family: var(--serif); font-size: 22px; font-weight: 600; letter-spacing: -.02em; }
.nav__logo sup { font-family: var(--mono); font-size: 9px; font-weight: 400; margin-left: 4px; }
.nav__links { display: flex; gap: 28px; }
.nav__links a { position: relative; }
.nav__links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -3px; height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: right; transition: transform .4s var(--ease);
}
.nav__links a:hover::after { transform: scaleX(1); transform-origin: left; }
.nav__menu { display: none; }
@media (max-width: 820px) {
  .nav__links { display: none; }
  .nav__menu { display: block; }
  .nav.is-open { mix-blend-mode: normal; background: var(--tinta); }
  .nav.is-open .nav__links {
    display: flex; flex-direction: column; position: fixed; inset: 64px 0 auto 0;
    background: var(--tinta); padding: 24px var(--gutter) 40px; font-family: var(--serif); font-size: 32px;
  }
}

/* ---------- hero ---------- */
.hero { min-height: 100svh; display: grid; grid-template-rows: 1fr auto; padding-top: 110px; position: relative; }
.hero__title {
  font-family: var(--serif); font-weight: 300; letter-spacing: -.045em; line-height: .86;
  font-size: clamp(64px, 15vw, 248px); margin: 0; align-self: center;
}
.hero__title em { font-style: italic; background: var(--prisma); -webkit-background-clip: text; background-clip: text; color: transparent; padding-right: .06em; }
.hero__title .line { display: block; overflow: hidden; }
.hero__title .line > span { display: inline-block; transform: translateY(105%); transition: transform 1.2s var(--ease); }
.is-ready .hero__title .line > span { transform: none; }
.is-ready .hero__title .line:nth-child(2) > span { transition-delay: .08s; }
.is-ready .hero__title .line:nth-child(3) > span { transition-delay: .16s; }
.hero__foot {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px;
  border-top: 1px solid var(--linea); padding-block: 22px 28px;
}
.hero__foot p { margin: 0; color: var(--papel-2); max-width: 32ch; }
@media (max-width: 820px) { .hero__foot { grid-template-columns: 1fr 1fr; } }
.blob {
  position: absolute; z-index: -1; width: 46vw; aspect-ratio: 1; right: -8vw; top: 12vh; border-radius: 50%;
  background: conic-gradient(from 200deg, var(--agencia), var(--tienda), var(--taller), var(--agencia));
  filter: blur(90px); opacity: .32; animation: girar 24s linear infinite;
}

/* ---------- marquee ---------- */
.marquee { overflow: hidden; border-block: 1px solid var(--linea); padding-block: 18px; white-space: nowrap; }
.marquee__track { display: inline-flex; gap: 48px; animation: marquee 32s linear infinite; font-family: var(--serif); font-size: clamp(28px, 4vw, 52px); font-style: italic; }
.marquee__track span::after { content: "✳"; font-style: normal; color: var(--tienda); margin-left: 48px; font-size: .6em; vertical-align: middle; }
@keyframes girar { to { transform: rotate(1turn); } }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- secciones ---------- */
.section { padding-block: clamp(80px, 14vw, 180px); }
.section__head { display: grid; grid-template-columns: 1fr 2fr; gap: 24px; margin-bottom: clamp(40px, 7vw, 96px); }
.section__head h2 {
  font-family: var(--serif); font-weight: 300; font-size: clamp(40px, 6.4vw, 100px);
  line-height: .95; letter-spacing: -.035em; margin: 0;
}
.section__head h2 em { background: var(--prisma); -webkit-background-clip: text; background-clip: text; color: transparent; padding-right: .06em; }
@media (max-width: 820px) { .section__head { grid-template-columns: 1fr; } }

.reveal { opacity: 0; transform: translateY(40px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }

/* ---------- ecosistema interactivo ---------- */
.eco { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(24px, 5vw, 80px); align-items: center; }
@media (max-width: 900px) { .eco { grid-template-columns: 1fr; } }
.eco__map { position: relative; aspect-ratio: 1; max-width: 640px; width: 100%; }
.eco__map svg { width: 100%; height: 100%; overflow: visible; }
.eco__orbit { fill: none; stroke: var(--linea); stroke-dasharray: 2 6; }
.eco__link { stroke: var(--linea); stroke-width: 1; transition: stroke .4s, stroke-width .4s; }
.eco__link.is-on { stroke: var(--c); stroke-width: 2; }
.eco__core circle { fill: var(--papel); }
.eco__core text { fill: var(--tinta); font-family: var(--serif); font-size: 22px; font-style: italic; text-anchor: middle; }
.eco__node { cursor: pointer; }
.eco__node circle.bg { fill: var(--tinta-2); stroke: var(--c); stroke-width: 1.5; transition: r .5s var(--ease), fill .4s; }
.eco__node.is-on circle.bg { fill: var(--c); }
.eco__node text { fill: var(--papel); font-family: var(--mono); font-size: 13px; letter-spacing: .12em; text-anchor: middle; text-transform: uppercase; pointer-events: none; transition: fill .4s; }
.eco__node.is-on text { fill: var(--tinta); }
.eco__node.is-prisma circle.bg { stroke: url(#prisma); }
.eco__node.is-prisma.is-on circle.bg { fill: url(#prisma); }
.eco__link.is-prisma.is-on { stroke: url(#prisma); }
.eco__panel h3.prisma-text { padding-right: .08em; }
.eco__node .pulse { fill: none; stroke: var(--c); opacity: 0; }
.eco__node.is-on .pulse { animation: pulse 2s var(--ease) infinite; }
@keyframes pulse { from { r: 60; opacity: .7; } to { r: 110; opacity: 0; } }
.eco__panel { min-height: 420px; }
.eco__panel .num { color: var(--c, var(--papel)); }
.eco__panel h3 { font-family: var(--serif); font-weight: 300; font-size: clamp(44px, 6vw, 88px); line-height: .95; margin: 12px 0 20px; letter-spacing: -.03em; }
.eco__panel p { color: var(--papel-2); font-size: 19px; max-width: 46ch; }
.eco__panel ul { list-style: none; padding: 0; margin: 28px 0; border-top: 1px solid var(--linea); }
.eco__panel li { padding: 14px 0; border-bottom: 1px solid var(--linea); display: flex; justify-content: space-between; gap: 16px; }
.eco__panel li span:last-child { color: var(--gris); font-family: var(--mono); font-size: 12px; }
.eco__panel .swap { animation: swap .6s var(--ease); }
@keyframes swap { from { opacity: 0; transform: translateY(16px); } }

/* ---------- director creativo ---------- */
.ceo { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(24px, 6vw, 96px); align-items: end; }
@media (max-width: 900px) { .ceo { grid-template-columns: 1fr; } }
.ceo__photo { position: relative; aspect-ratio: 4/5; overflow: hidden; background: var(--tinta-2); }
.ceo__photo img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.1); transition: filter .8s, transform 1.2s var(--ease); }
.ceo__photo:hover img { filter: none; transform: scale(1.04); }
.ceo__photo .ph {
  position: absolute; inset: 0; display: grid; place-items: center; text-align: center; padding: 24px;
  background: repeating-linear-gradient(45deg, transparent 0 12px, rgba(241,235,224,.04) 12px 13px);
  color: var(--gris);
}
.ceo__name { font-family: var(--serif); font-size: clamp(56px, 9vw, 150px); font-weight: 300; line-height: .88; letter-spacing: -.045em; margin: 0 0 32px; }
.ceo__name em { background: var(--prisma); -webkit-background-clip: text; background-clip: text; color: transparent; padding-right: .06em; }
.ceo__bio { font-size: clamp(19px, 1.6vw, 24px); line-height: 1.45; max-width: 40ch; margin: 0 0 40px; }
.roles { display: flex; flex-wrap: wrap; gap: 10px; }
.roles span { border: 1px solid var(--linea); border-radius: 99px; padding: 8px 16px; font-size: 14px; transition: background .3s, color .3s; }
.roles span:hover { background: var(--papel); color: var(--tinta); }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 56px; border-top: 1px solid var(--linea); }
.stats div { padding: 20px 0; }
.stats b { display: block; font-family: var(--serif); font-weight: 300; font-size: clamp(40px, 5vw, 72px); line-height: 1; }

/* ---------- proyectos (índice con previsualización flotante) ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 32px; }
.filters button { border: 1px solid var(--linea); border-radius: 99px; padding: 8px 16px; font-size: 14px; transition: .3s; }
.filters button.is-on, .filters button:hover { background: var(--papel); color: var(--tinta); }
.index { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--linea); }
.index li { border-bottom: 1px solid var(--linea); transition: opacity .4s; }
.index li.is-hidden { display: none; }
.index a {
  display: grid; grid-template-columns: 60px 1fr auto auto; gap: 24px; align-items: baseline;
  padding: 26px 0; transition: padding .5s var(--ease), color .3s;
}
.index a:hover { padding-left: 20px; color: var(--agencia); }
.index .t { font-family: var(--serif); font-size: clamp(28px, 4vw, 60px); font-weight: 300; letter-spacing: -.02em; line-height: 1; }
.index .k { color: var(--gris); }
@media (max-width: 700px) { .index a { grid-template-columns: 40px 1fr; } .index a > :nth-child(n+3) { display: none; } }
.preview {
  position: fixed; top: 0; left: 0; z-index: 40; width: 340px; aspect-ratio: 4/3; pointer-events: none;
  overflow: hidden; opacity: 0; transform: translate(-50%, -50%) scale(.85); transition: opacity .3s, transform .5s var(--ease);
}
.preview.is-on { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.preview img, .preview .ph { width: 100%; height: 100%; object-fit: cover; }
.preview .ph { display: grid; place-items: center; font-family: var(--serif); font-size: 40px; font-style: italic; color: var(--tinta); }
@media (hover: none) { .preview { display: none; } }

/* ---------- taller / tienda ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; background: var(--linea); }
@media (max-width: 820px) { .split { grid-template-columns: 1fr; } }
.card { background: var(--tinta); padding: clamp(28px, 4vw, 56px); min-height: 520px; display: flex; flex-direction: column; justify-content: space-between; position: relative; overflow: hidden; }
.card h3 { font-family: var(--serif); font-weight: 300; font-size: clamp(48px, 6vw, 96px); margin: 0; line-height: .9; letter-spacing: -.03em; }
.card p { color: var(--papel-2); max-width: 38ch; }
.card .art { position: absolute; right: -40px; top: 40px; width: 60%; opacity: .9; transition: transform 1s var(--ease); }
.card:hover .art { transform: rotate(-6deg) scale(1.06); }
.btn {
  display: inline-flex; align-items: center; gap: 12px; padding: 16px 26px; border-radius: 99px;
  border: 1px solid var(--papel); font-weight: 500; transition: background .3s, color .3s; width: fit-content;
}
.btn:hover { background: var(--papel); color: var(--tinta); }
.btn--acid { background: var(--prisma); color: var(--tinta); border-color: transparent; }
.btn--acid:hover { background: var(--papel); border-color: var(--papel); }

/* ---------- banner Módula ---------- */
.modula-cta {
  background: var(--papel); color: var(--tinta); border-radius: 28px; margin-inline: var(--gutter);
  padding: clamp(32px, 6vw, 96px); display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; align-items: center;
  overflow: hidden; position: relative;
}
@media (max-width: 900px) { .modula-cta { grid-template-columns: 1fr; } }
.modula-cta h2 { font-family: var(--serif); font-weight: 300; font-size: clamp(48px, 7vw, 120px); line-height: .9; letter-spacing: -.04em; margin: 16px 0 24px; }
.modula-cta h2 em { color: var(--modula-indigo); }
.modula-cta .btn { border-color: var(--tinta); }
.modula-cta .btn:hover { background: var(--tinta); color: var(--papel); }
.pieces { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.pieces div {
  aspect-ratio: 1; border-radius: 16px; background: var(--tinta); color: var(--papel);
  display: grid; place-items: end start; padding: 14px; font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: .08em;
  transition: transform .6s var(--ease), background .3s;
}
.pieces div:nth-child(3n+2) { background: var(--modula-indigo); }
.pieces div:nth-child(4) { background: var(--modula-coral); }
.pieces div:hover { transform: translateY(-8px) rotate(-3deg); }

/* ---------- contacto / footer ---------- */
.contact h2 { font-family: var(--serif); font-weight: 300; font-size: clamp(56px, 12vw, 200px); letter-spacing: -.05em; line-height: .85; margin: 0 0 40px; }
.contact h2 a { font-style: italic; background: var(--prisma) 0 92% / 0 6px no-repeat; transition: background-size .6s var(--ease); }
.contact h2 a:hover { background-size: 100% 6px; }
.footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; padding-block: 28px; border-top: 1px solid var(--linea); color: var(--gris); }
.footer a:hover { color: var(--papel); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal, .hero__title .line > span { opacity: 1; transform: none; }
}
