/* ==========================================================================
   Artisan Media & IT — Página "en construcción"
   Mismo sistema visual que el sitio nuevo:
   · 5 colores de acento, uno por línea de negocio (tokens abajo)
   · Bases: grafito #2f2d2c y beige #e9dec3
   · Tipografías: Jaapokki (Urbanist como respaldo) + Helvetica / Inter
   ========================================================================== */
:root {
  --blue: #0c87f2;
  --green: #26a646;
  --yellow: #f2b90f;
  --pink: #f2a9a2;
  --red: #f22929;
  --graphite: #2f2d2c;
  --graphite-2: #3b3937;
  --beige: #e9dec3;
  --beige-2: #f3ecda;
  --beige-3: #dccfae;
  --ink: var(--graphite);
  --ink-soft: #5b5650;
  --line: rgba(47, 45, 44, .12);

  /* Líneas de negocio (mismos tokens que el sitio principal) */
  --media: var(--yellow);  --media-on: var(--graphite);
  --web: var(--blue);      --web-on: var(--beige);
  --redes: var(--pink);    --redes-on: var(--graphite);
  --it: var(--red);        --it-on: var(--beige);
  --diseno: var(--green);  --diseno-on: var(--beige);

  --display: "Jaapokki", "Urbanist", ui-sans-serif, system-ui, sans-serif;
  --body: "Helvetica Neue", "Inter", Helvetica, Arial, sans-serif;
  --gutter: clamp(1rem, 4vw, 3rem);
  --ease: cubic-bezier(.22, 1, .36, 1);
  --shadow: 0 30px 60px -28px rgba(47, 45, 44, .45);
  --brush: linear-gradient(90deg, #eaa2d1, #f5ac89 30%, #feb72d 55%, #40a939 80%, #009a70);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { overflow-x: clip; }
body {
  margin: 0; font-family: var(--body); font-weight: 300; font-size: 1.0625rem; line-height: 1.6;
  color: var(--ink); background: var(--beige); overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
h1 { margin: 0; font-family: var(--display); }
p, ul, ol, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }
a { color: inherit; }
::selection { background: var(--graphite); color: var(--beige); }
:focus-visible { outline: 3px solid var(--web); outline-offset: 3px; border-radius: 6px; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
svg use { fill: currentColor; }
.star { width: 1em; height: 1em; fill: currentColor; flex: none; }

/* ---------- Botones ---------- */
.btn {
  --bg: var(--graphite); --fg: var(--beige);
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  padding: .8rem 1.3rem; border-radius: 999px; border: 1.5px solid var(--bg);
  background: var(--bg); color: var(--fg); text-decoration: none; white-space: nowrap;
  font-family: var(--display); font-weight: 700; font-size: .98rem;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), color .35s, border-color .35s;
}
.btn::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--brush); transform: translateX(-101%); transition: transform .5s var(--ease); }
.btn:hover { transform: translateY(-2px); box-shadow: 0 14px 30px -12px rgba(47, 45, 44, .55); }
.btn-dark:hover { color: var(--graphite); border-color: transparent; }
.btn-dark:hover::before { transform: none; }
.btn-ghost { --bg: transparent; --fg: var(--graphite); border-color: var(--graphite); }
.btn-ghost::before { background: var(--graphite); }
.btn-ghost:hover { color: var(--beige); }
.btn-ghost:hover::before { transform: none; }
.btn-lg { padding: 1rem 1.6rem; font-size: 1.02rem; }

/* ---------- Estructura de una sola pantalla ---------- */
.page {
  min-height: 100svh; display: grid; grid-template-rows: auto 1fr auto auto;
  max-width: 1360px; margin-inline: auto; padding-inline: var(--gutter);
  padding-top: env(safe-area-inset-top, 0px);
}

.top { display: flex; align-items: center; gap: 1.5rem; padding-block: 1.1rem .4rem; }
.logo { width: 138px; height: auto; color: var(--graphite); flex: none; }
.status {
  display: inline-flex; align-items: center; gap: .6rem; margin-left: auto;
  padding: .5rem 1rem; border-radius: 999px; border: 1.5px solid var(--line); background: rgba(243, 236, 218, .7);
  font-family: var(--display); font-weight: 700; font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; white-space: nowrap;
}
.pulse { position: relative; width: .6rem; height: .6rem; border-radius: 50%; background: var(--diseno); flex: none; }
.pulse::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: inherit; animation: ping 1.8s ease-out infinite; }
@keyframes ping { to { transform: scale(2.8); opacity: 0; } }

/* ---------- Hero ---------- */
.hero {
  display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr);
  gap: clamp(2rem, 5vw, 5rem); align-items: center; padding-block: clamp(1rem, 3vh, 2.5rem);
}
.eyebrow {
  display: inline-flex; align-items: center; gap: .55rem;
  font-family: var(--display); font-weight: 700; font-size: .8rem; letter-spacing: .16em; text-transform: uppercase;
  opacity: 0; animation: fadeUp .8s .1s var(--ease) forwards;
}
.eyebrow .star { color: var(--redes); }
.title {
  margin: .8rem 0 1rem;
  font-size: clamp(2.4rem, min(5vw, 8svh), 5.2rem); font-weight: 800; line-height: .94; letter-spacing: -.045em;
}
.title .biz { display: block; overflow: hidden; padding-bottom: .08em; margin-bottom: -.08em; }
.title .biz > span { display: inline-block; transform: translateY(105%); animation: rise 1s var(--ease) forwards; }
.title .biz:nth-child(2) > span { animation-delay: .1s; }
@keyframes rise { to { transform: none; } }
.brushed { position: relative; isolation: isolate; display: inline-block; }
.brush {
  position: absolute; z-index: -1; left: -6%; width: 114%; top: 52%; height: .3em; transform: translateY(-38%);
  clip-path: inset(0 100% 0 0); animation: paint 1.2s .9s var(--ease) forwards;
}
@keyframes paint { to { clip-path: inset(0); } }

.lead { max-width: 34rem; color: var(--ink-soft); font-size: clamp(1.05rem, 1.35vw, 1.22rem); }
.rotator-line { margin-top: .6rem; font-family: var(--display); font-weight: 800; font-size: clamp(1.3rem, 2.2vw, 1.9rem); letter-spacing: -.025em; }
.rotator { display: inline-block; color: var(--pink); transition: color .4s; }
.rotator-word { display: inline-block; }
.rotator-word.out { animation: wordOut .4s var(--ease) forwards; }
.rotator-word.in { animation: wordIn .55s var(--ease) forwards; }
@keyframes wordOut { to { opacity: 0; transform: translateY(-.35em); filter: blur(4px); } }
@keyframes wordIn { from { opacity: 0; transform: translateY(.45em); filter: blur(4px); } }

/* Barra de avance */
.progress { max-width: 34rem; margin-top: 1.2rem; padding: .85rem 1.2rem .8rem; border-radius: 22px; background: var(--beige-2); border: 1px solid var(--line); }
.progress-head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; font-family: var(--display); font-weight: 700; font-size: .92rem; }
.progress-head b { font-size: 1.5rem; font-weight: 800; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.progress-track { position: relative; height: 12px; margin: .4rem 0 .7rem; border-radius: 999px; background: rgba(47, 45, 44, .1); overflow: hidden; }
.progress-fill {
  position: absolute; inset: 0 auto 0 0; width: 0; border-radius: inherit; background: var(--brush);
  transition: width 2s var(--ease); overflow: hidden;
}
.progress-fill::after {
  content: ""; position: absolute; inset: 0; translate: -100% 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .55), transparent);
  animation: shimmer 2.4s 2.2s ease-in-out infinite;
}
@keyframes shimmer { to { translate: 100% 0; } }
.progress-steps { display: flex; flex-wrap: wrap; gap: .4rem 1.1rem; font-size: .86rem; color: var(--ink-soft); }
.progress-steps li { display: inline-flex; align-items: center; gap: .4rem; }
.progress-steps .done { color: var(--ink); }
.progress-steps .done i { color: var(--diseno); }
.progress-steps .current { color: var(--ink); font-weight: 500; }

.actions { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1.2rem; }

/* Entradas */
.js .reveal { opacity: 0; animation: fadeUp .9s var(--d, 0s) var(--ease) forwards; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }

/* ---------- Collage ---------- */
.art { position: relative; justify-self: center; width: min(100%, 430px, 52svh); aspect-ratio: 5 / 6; }
.art > * { will-change: transform; }
.art-star { position: absolute; inset: -12%; width: 124%; height: 124%; color: var(--graphite); opacity: .05; animation: spin 70s linear infinite; }
.photo {
  position: absolute; border-radius: 22px; overflow: hidden; box-shadow: var(--shadow); background: var(--beige-3);
  aspect-ratio: 3 / 4; opacity: 0; animation: pop 1.1s var(--ease) forwards;
}
.photo img { width: 100%; height: 100%; object-fit: cover; }
.p1 { left: 2%; top: 14%; width: 56%; rotate: -5deg; animation-delay: .35s; z-index: 2; }
.p2 { right: 0; top: 0; width: 46%; rotate: 6deg; animation-delay: .5s; z-index: 1; }
.p3 { right: 6%; bottom: 0; width: 48%; rotate: -2deg; animation-delay: .65s; z-index: 3; }
@keyframes pop { from { opacity: 0; transform: translateY(40px) scale(.94); } to { opacity: 1; transform: none; } }
.cintillo { position: absolute; right: 0; bottom: 12%; padding: .45rem .7rem .4rem .8rem; background: var(--media); color: var(--beige); line-height: 0; }
.cintillo svg { width: 70px; height: auto; }

.sticker {
  position: absolute; z-index: 4; display: grid; place-items: center;
  width: 68px; height: 68px; border-radius: 20px; background: var(--beige-2);
  box-shadow: 0 18px 30px -16px rgba(47, 45, 44, .5);
  opacity: 0; animation: pop .9s var(--ease) forwards, float 6s ease-in-out infinite;
  transition: scale .4s var(--ease), box-shadow .4s;
}
.sticker svg { width: 36px; height: 31px; }
.sticker.is-lit { scale: 1.18; box-shadow: 0 0 0 3px currentColor, 0 18px 30px -12px rgba(47, 45, 44, .5); }
.s1 { left: -5%; top: 4%; animation-delay: .9s, 1.8s; }
.s2 { right: -5%; top: 44%; animation-delay: 1s, 2.4s; }
.s3 { left: -7%; top: 54%; animation-delay: 1.1s, 2.1s; }
.s4 { left: 12%; bottom: 4%; animation-delay: 1.15s, 3s; }
.s5 { right: 40%; bottom: -4%; animation-delay: 1.2s, 2.7s; }
@keyframes float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -10px; } }

.badge {
  position: absolute; z-index: 5; left: 38%; top: -4%; width: 118px; height: 118px; border-radius: 50%;
  background: var(--graphite); color: var(--beige); display: grid; place-items: center;
  opacity: 0; animation: pop .9s 1.25s var(--ease) forwards;
}
.badge-text { position: absolute; inset: 0; width: 100%; height: 100%; animation: spin 18s linear infinite; }
.badge-text text { fill: currentColor; font-family: var(--display); font-weight: 800; font-size: 15.5px; letter-spacing: .05em; }
.badge-star { width: 32px; height: 32px; color: var(--pink); }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Pistas: 5 líneas de negocio ---------- */
.lines { padding-block: .5rem 1rem; opacity: 0; animation: fadeUp .9s 1s var(--ease) forwards; }
.lines-title { margin-bottom: .7rem; font-family: var(--display); font-weight: 700; font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-soft); }
.lines-list { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: .7rem; }
.biz {
  position: relative; isolation: isolate; overflow: hidden; cursor: default;
  display: flex; align-items: center; gap: .8rem; padding: .75rem 1rem; border-radius: 18px;
  background: var(--beige-2); border: 1px solid var(--line);
  transition: color .45s var(--ease), transform .45s var(--ease), border-color .45s;
}
.biz::before {
  content: ""; position: absolute; inset: 0; z-index: -1; background: var(--c);
  clip-path: circle(0% at 1.9rem 50%); transition: clip-path .6s var(--ease);
}
.biz svg { width: 34px; height: 30px; flex: none; color: var(--c); transition: color .45s, transform .6s var(--ease); }
.biz b { display: block; font-family: var(--display); font-weight: 800; font-size: 1.02rem; line-height: 1.15; }
.biz small { display: block; font-size: .8rem; opacity: .75; line-height: 1.3; }
.biz:hover, .biz.is-lit { color: var(--on-c); transform: translateY(-4px); border-color: transparent; }
.biz:hover::before, .biz.is-lit::before { clip-path: circle(150% at 1.9rem 50%); }
.biz:hover svg, .biz.is-lit svg { color: var(--on-c); transform: rotate(-8deg) scale(1.08); }

/* ---------- Pie ---------- */
.foot {
  display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap;
  padding-block: .9rem calc(1rem + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--line);
  font-size: .85rem; color: var(--ink-soft);
}
.palette { display: flex; gap: .35rem; }
.palette i { width: 12px; height: 12px; border-radius: 50%; background: var(--c); }

/* WhatsApp flotante */
.wa-float {
  position: fixed; z-index: 40; right: 1.25rem; bottom: calc(1.25rem + env(safe-area-inset-bottom, 0px));
  width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center;
  background: #25a644; color: #fff; font-size: 1.7rem; text-decoration: none;
  box-shadow: 0 14px 30px -10px rgba(38, 166, 70, .7); transition: transform .4s var(--ease);
}
.wa-float::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid #25a644; animation: ring 2.4s ease-out infinite; }
.wa-float:hover { transform: scale(1.08) rotate(-8deg); }
@keyframes ring { from { opacity: .8; transform: scale(1); } to { opacity: 0; transform: scale(1.6); } }

/* ---------- Responsive ---------- */
@media (min-width: 901px) and (max-height: 760px) {
  .lead { font-size: 1rem; }
  .progress-steps { display: none; }
  .btn-lg { padding: .8rem 1.3rem; }
}
@media (max-width: 1080px) {
  .lines-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; }
  .art { width: min(100%, 420px); margin-top: 1rem; }
  .top-cta span { display: none; }
}
@media (max-width: 600px) {
  body { font-size: 1rem; }
  .top { gap: .7rem; padding-block: 1rem; }
  .logo { width: 112px; }
  .status { font-size: .7rem; padding: .45rem .8rem; letter-spacing: .1em; }
  .status-long { display: none; }
  .top-cta { padding: .7rem .85rem; }
  .title { font-size: clamp(2.3rem, 11vw, 3.2rem); }
  .actions .btn { flex: 1 1 100%; }
  .actions .btn-ghost { font-size: .92rem; }
  .sticker { width: 54px; height: 54px; border-radius: 16px; }
  .sticker svg { width: 28px; height: 24px; }
  .badge { width: 92px; height: 92px; }
  .badge-star { width: 24px; height: 24px; }
  .cintillo svg { width: 54px; }
  .lines-list { grid-template-columns: 1fr 1fr; }
  .biz:last-child { grid-column: 1 / -1; }
  .foot { justify-content: center; text-align: center; padding-bottom: calc(5.5rem + env(safe-area-inset-bottom, 0px)); }
}

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