/* Página «En construcción» de chelobus.com.do. Sin fuentes ni recursos externos: todo sale del mismo origen
   (la política de seguridad de nginx solo permite 'self'), y no hay estilos en línea en el HTML. */

:root {
  color-scheme: dark;
  --bg: #070a17;
  --ink: #eef1ff;
  --muted: #9aa3c7;
  --amber: #fbbf24;
  --cyan: #22d3ee;
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { background: var(--bg); }

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  overflow-x: hidden;
  background: radial-gradient(120% 90% at 50% 0%, #121842 0%, var(--bg) 58%);
  color: var(--ink);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection { background: rgba(129, 140, 248, .45); color: #fff; }

/* ---------- Fondo ---------- */

.aurora {
  position: fixed;
  inset: -12%;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  will-change: transform;
}
.aurora i {
  position: absolute;
  display: block;
  width: 62vmax;
  height: 62vmax;
  border-radius: 50%;
  will-change: transform;
}
.aurora i:nth-child(1) {
  left: -8vmax; top: -18vmax;
  background: radial-gradient(closest-side, rgba(99, 102, 241, .55), rgba(99, 102, 241, 0));
  animation: drift-a 24s ease-in-out infinite alternate;
}
.aurora i:nth-child(2) {
  right: -14vmax; top: 10vmax;
  background: radial-gradient(closest-side, rgba(168, 85, 247, .42), rgba(168, 85, 247, 0));
  animation: drift-b 30s ease-in-out infinite alternate;
}
.aurora i:nth-child(3) {
  left: 14vmax; bottom: -26vmax;
  background: radial-gradient(closest-side, rgba(34, 211, 238, .26), rgba(34, 211, 238, 0));
  animation: drift-c 27s ease-in-out infinite alternate;
}

#field {
  position: fixed;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.vignette {
  position: fixed;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: radial-gradient(120% 90% at 50% 45%, rgba(3, 5, 14, 0) 52%, rgba(3, 5, 14, .78) 100%);
}

.grain {
  position: fixed;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  opacity: .05;
  background-image: url("noise.svg");
  background-size: 200px 200px;
}

/* ---------- Contenido ---------- */

.stage {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100svh;
  padding: clamp(20px, 5vw, 48px) 16px 20px;
}

.center {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 46rem;
  margin: auto;
  padding: 1rem 0;
  text-align: center;
}

.reveal {
  animation: reveal 1s cubic-bezier(.2, .7, .2, 1) backwards;
  animation-delay: var(--d, 0s);
}
.d1 { --d: .10s; }
.d2 { --d: .25s; }
.d4 { --d: 1.25s; }
.d5 { --d: 1.45s; }
.d6 { --d: 1.65s; }
.d7 { --d: 2.00s; }

.badge {
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  margin: 0 0 clamp(.6rem, 2.4svh, 1.6rem);
  padding: .45rem 1.05rem .45rem .85rem;
  border: 1px solid rgba(251, 191, 36, .28);
  border-radius: 99px;
  background: rgba(251, 191, 36, .08);
  color: #fde68a;
  font-size: .76rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.pulse {
  position: relative;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--amber);
}
.pulse::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--amber);
  animation: ripple 2s ease-out infinite;
}

/* ---------- Bloques isométricos que se arman ---------- */

.scene {
  display: flex;
  justify-content: center;
  will-change: transform;
}
.blocks {
  display: block;
  width: clamp(104px, 21svh, 196px);
  height: auto;
  overflow: visible;
  animation: float 7s ease-in-out infinite;
}
.floor {
  transform-box: fill-box;
  transform-origin: center;
  animation: breathe 7s ease-in-out infinite;
}

#cube polygon { stroke: rgba(255, 255, 255, .22); stroke-width: 1; stroke-linejoin: round; }
.face-top { fill: var(--top); }
.face-left { fill: var(--left); }
.face-right { fill: var(--right); }
.tone-indigo { --top: #818cf8; --left: #4f46e5; --right: #3730a3; }
.tone-violet { --top: #c4a1ff; --left: #9333ea; --right: #6b21a8; }
.tone-amber { --top: #fde68a; --left: #f59e0b; --right: #b45309; }

/* Cada nivel cae un poco después del anterior; el ciclo completo dura 10 s y se repite. */
.drop {
  animation-duration: 10s;
  animation-iteration-count: infinite;
  animation-fill-mode: both;
}
.level-0 { animation-name: drop-0; }
.level-1 { animation-name: drop-1; }
.level-2 { animation-name: drop-2; }
.slot-1 { animation-delay: .08s; }
.slot-2 { animation-delay: .16s; }
.slot-3 { animation-delay: .24s; }

.spark {
  fill: #fff;
  opacity: 0;
  animation: spark 2.6s ease-in-out 3.4s infinite;
}

/* ---------- Marca y texto ---------- */

.wordmark {
  display: flex;
  justify-content: center;
  margin: clamp(.2rem, 1.2svh, .8rem) 0 0;
  font-size: clamp(3.1rem, 15.5vw, 9.5rem);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -.045em;
  perspective: 800px;
}
.wordmark span {
  display: inline-block;
  background: linear-gradient(180deg, #fff 12%, #a5b4fc 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  animation: rise 1.1s cubic-bezier(.2, .8, .2, 1) backwards, glint 6s ease-in-out infinite;
  animation-delay: calc(.55s + var(--i) * .07s), calc(2.4s + var(--i) * .14s);
}
.wordmark span:nth-child(1) { --i: 0; }
.wordmark span:nth-child(2) { --i: 1; }
.wordmark span:nth-child(3) { --i: 2; }
.wordmark span:nth-child(4) { --i: 3; }
.wordmark span:nth-child(5) { --i: 4; }
.wordmark span:nth-child(6) { --i: 5; }
.wordmark span:nth-child(7) { --i: 6; }
.wordmark span:nth-child(8) { --i: 7; }

.lead {
  margin: clamp(.8rem, 2.2svh, 1.3rem) 0 0;
  font-size: clamp(1.15rem, 3.4vw, 1.75rem);
  font-weight: 600;
  letter-spacing: -.01em;
}
.lead em {
  font-style: normal;
  background: linear-gradient(90deg, var(--amber), #f472b6, var(--cyan), var(--amber));
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  animation: flow 6s linear infinite;
}

.sub {
  max-width: 32rem;
  margin: .7rem 0 0;
  color: var(--muted);
  font-size: clamp(.95rem, 2.4vw, 1.08rem);
  line-height: 1.6;
}

/* ---------- Barra de progreso ---------- */

.progress {
  width: min(26rem, 82vw);
  margin-top: clamp(1.2rem, 3.4svh, 2rem);
}
.track {
  height: 10px;
  overflow: hidden;
  border-radius: 99px;
  background: rgba(255, 255, 255, .07);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08);
}
.fill {
  width: 72%;
  height: 100%;
  border-radius: inherit;
  background-color: var(--amber);
  background-image: linear-gradient(135deg, var(--amber) 25%, #1b1f3a 25%, #1b1f3a 50%, var(--amber) 50%, var(--amber) 75%, #1b1f3a 75%);
  background-size: 28px 28px;
  box-shadow: 0 0 18px rgba(251, 191, 36, .45);
  animation: grow 2.6s cubic-bezier(.2, .8, .2, 1) 1.8s backwards, stripes 1s linear infinite;
}
.status {
  margin: .9rem 0 0;
  color: var(--muted);
  font-size: .78rem;
  letter-spacing: .22em;
  text-transform: uppercase;
}
.dots i {
  font-style: normal;
  animation: blink 1.4s ease-in-out infinite;
}
.dots i:nth-child(2) { animation-delay: .2s; }
.dots i:nth-child(3) { animation-delay: .4s; }

.foot {
  display: flex;
  justify-content: center;
  gap: .6rem;
  padding-top: 1.2rem;
  color: rgba(154, 163, 199, .75);
  font-size: .8rem;
}

/* ---------- Animaciones ---------- */

@keyframes reveal { from { opacity: 0; transform: translateY(18px); } }
@keyframes rise {
  from { opacity: 0; transform: translateY(46%) rotateX(-55deg); filter: blur(14px); }
}
@keyframes glint {
  0%, 22%, 100% { filter: brightness(1); }
  10% { filter: brightness(1.9) saturate(1.25); }
}
@keyframes flow { to { background-position: 200% 0; } }
@keyframes ripple { from { transform: scale(1); opacity: .7; } to { transform: scale(3.2); opacity: 0; } }
@keyframes float { 0%, 100% { transform: translateY(-5px); } 50% { transform: translateY(6px); } }
@keyframes breathe { 0%, 100% { transform: scale(1.04); opacity: .9; } 50% { transform: scale(.9); opacity: .6; } }
@keyframes spark { 0%, 100% { opacity: 0; } 50% { opacity: .42; } }
@keyframes grow { from { width: 0; } }
@keyframes stripes { to { background-position: 28px 0; } }
@keyframes blink { 0%, 100% { opacity: .25; } 50% { opacity: 1; } }

@keyframes drift-a { from { transform: translate3d(0, 0, 0) scale(1); } to { transform: translate3d(14vmax, 10vmax, 0) scale(1.18); } }
@keyframes drift-b { from { transform: translate3d(0, 0, 0) scale(1.1); } to { transform: translate3d(-16vmax, 8vmax, 0) scale(.9); } }
@keyframes drift-c { from { transform: translate3d(0, 0, 0) scale(.95); } to { transform: translate3d(12vmax, -12vmax, 0) scale(1.2); } }

@keyframes drop-0 {
  0%, 3% { opacity: 0; transform: translateY(-150px); animation-timing-function: cubic-bezier(.55, 0, .9, .5); }
  11% { opacity: 1; transform: translateY(0); animation-timing-function: cubic-bezier(.2, .6, .4, 1); }
  14% { transform: translateY(-7px); animation-timing-function: cubic-bezier(.6, 0, .9, .6); }
  17%, 88% { opacity: 1; transform: translateY(0); }
  95%, 100% { opacity: 0; transform: translateY(10px); }
}
@keyframes drop-1 {
  0%, 12% { opacity: 0; transform: translateY(-150px); animation-timing-function: cubic-bezier(.55, 0, .9, .5); }
  20% { opacity: 1; transform: translateY(0); animation-timing-function: cubic-bezier(.2, .6, .4, 1); }
  23% { transform: translateY(-7px); animation-timing-function: cubic-bezier(.6, 0, .9, .6); }
  26%, 88% { opacity: 1; transform: translateY(0); }
  95%, 100% { opacity: 0; transform: translateY(10px); }
}
@keyframes drop-2 {
  0%, 21% { opacity: 0; transform: translateY(-150px); animation-timing-function: cubic-bezier(.55, 0, .9, .5); }
  29% { opacity: 1; transform: translateY(0); animation-timing-function: cubic-bezier(.2, .6, .4, 1); }
  32% { transform: translateY(-7px); animation-timing-function: cubic-bezier(.6, 0, .9, .6); }
  35%, 88% { opacity: 1; transform: translateY(0); }
  95%, 100% { opacity: 0; transform: translateY(10px); }
}

/* Quien pide menos movimiento ve la página ya armada y quieta. */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
}
