/* ============================================
   AUREVIA — Página en construcción
   Paleta: negro #000000, blanco #FFFFFF,
   azul acero #4C5A6F, verde olivo #959581
   Tipografía: Montserrat (sustituto web de
   Circular Std / Louis George Cafe Light)
   ============================================ */

:root {
  --black: #000000;
  --bg-deep: #08090b;
  --bg-mid: #0d1014;
  --white: #ffffff;
  --off-white: #f2f1ec;
  --steel-blue: #4c5a6f;
  --olive: #959581;
  --text-dim: rgba(242, 241, 236, 0.55);
  --text-dimmer: rgba(242, 241, 236, 0.32);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  height: 100%;
}

body {
  font-family: 'Montserrat', 'Helvetica Neue', Arial, sans-serif;
  background: var(--black);
  color: var(--off-white);
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
}

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

.bg-base {
  position: fixed;
  inset: 0;
  background:
    radial-gradient(120% 90% at 50% 100%, #10151b 0%, var(--bg-mid) 45%, var(--bg-deep) 100%);
  z-index: 0;
}

.bg-glow {
  position: fixed;
  top: 50%;
  left: 50%;
  width: 70vmax;
  height: 70vmax;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(76, 90, 111, 0.28) 0%, rgba(76, 90, 111, 0.08) 35%, transparent 65%);
  filter: blur(10px);
  z-index: 1;
  animation: breathe 8s ease-in-out infinite;
  will-change: transform, opacity;
  transition: transform 1.2s ease-out;
}

@keyframes breathe {
  0%, 100% { opacity: 0.65; transform: translate(-50%, -50%) scale(1); }
  50%      { opacity: 1;    transform: translate(-50%, -50%) scale(1.12); }
}

.bg-grain {
  position: fixed;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  opacity: 0.035;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='120' height='120'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

/* ---------- Contenedor ---------- */

.container {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 32px;
  animation: fadeIn 1.4s ease-out both;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ---------- Logo ---------- */

.logo-wrap {
  width: clamp(120px, 18vw, 190px);
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 28px;
  position: relative;
}

.logo {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 0 22px rgba(76, 90, 111, 0.25));
}

/* Se muestra automaticamente vía JS si assets/logo.png no existe todavía */
.logo-placeholder {
  display: none;
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(242, 241, 236, 0.18);
  border-radius: 2px;
}

.logo-placeholder span {
  font-weight: 300;
  font-size: clamp(13px, 1.6vw, 18px);
  letter-spacing: 0.28em;
  color: var(--text-dim);
}

/* ---------- Tagline ---------- */

.tagline {
  font-weight: 300;
  font-size: clamp(11px, 1.1vw, 13px);
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--olive);
  margin-bottom: 30px;
}

.divider {
  width: 40px;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--steel-blue), transparent);
  margin-bottom: 30px;
  opacity: 0.7;
}

/* ---------- Estado ---------- */

.status {
  font-weight: 200;
  font-size: clamp(13px, 1.4vw, 16px);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 34px;
  display: flex;
  align-items: baseline;
  gap: 2px;
}

.dots span {
  animation: dotPulse 1.6s ease-in-out infinite;
  opacity: 0.2;
}

.dots span:nth-child(1) { animation-delay: 0s; }
.dots span:nth-child(2) { animation-delay: 0.2s; }
.dots span:nth-child(3) { animation-delay: 0.4s; }

@keyframes dotPulse {
  0%, 60%, 100% { opacity: 0.2; }
  30%           { opacity: 1; }
}

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

.progress-track {
  width: clamp(220px, 26vw, 320px);
  height: 2px;
  background: rgba(242, 241, 236, 0.1);
  border-radius: 2px;
  overflow: hidden;
  position: relative;
}

.progress-bar {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 0%;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--steel-blue), var(--olive));
  box-shadow: 0 0 12px rgba(149, 149, 129, 0.5);
  /* El ancho y la opacidad ahora los controla script.js,
     sincronizados con el número de porcentaje */
}

.percent {
  margin-top: 14px;
  font-weight: 200;
  font-size: clamp(11px, 1.1vw, 13px);
  letter-spacing: 0.18em;
  color: var(--text-dimmer);
  font-variant-numeric: tabular-nums;
  min-width: 3ch;
}

/* ---------- Responsive ---------- */

@media (max-width: 480px) {
  .tagline { letter-spacing: 0.3em; }
  .status  { letter-spacing: 0.1em; }
}

/* Respeta preferencia de reducción de movimiento */
@media (prefers-reduced-motion: reduce) {
  .bg-glow, .dots span, .container {
    animation: none !important;
  }
  .progress-bar { width: 20%; opacity: 0.9; transition: none; }
}
