/* ==========================================================
   Amerispan — Página de mantenimiento
   Ajusta los colores de marca en :root
   ========================================================== */
:root {
  --brand-primary: #231f20;   /* negro del texto del logo */
  --brand-accent:  #f36f21;   /* naranja del logo */
  --brand-light:   #818285;   /* gris del logo */
  --bg:            #ffffff;
  --text:          #231f20;
  --text-muted:    #6b6c70;
  --card-bg:       rgba(255, 255, 255, 0.85);
  --card-border:   #e4eaf2;
  --radius:        20px;
}

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

html, body { height: 100%; }

body {
  font-family: "Outfit", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--text);
  background: var(--bg);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
  overflow-x: hidden;
}

/* ---------- Fondo animado ---------- */
.bg { position: fixed; inset: 0; z-index: -1; overflow: hidden; }

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.12;
  animation: float 18s ease-in-out infinite;
}
.blob--1 { width: 420px; height: 420px; background: var(--brand-accent);  top: -120px; left: -100px; }
.blob--2 { width: 360px; height: 360px; background: var(--brand-light); bottom: -140px; right: -80px; animation-delay: -6s; opacity: 0.08; }
.blob--3 { width: 280px; height: 280px; background: var(--brand-accent); opacity: 0.08; top: 40%; left: 60%; animation-delay: -12s; }

.grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(35,31,32,0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(35,31,32,0.045) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
  animation: gridMove 30s linear infinite;
}

/* ---------- Tarjeta ---------- */
.card {
  width: 100%;
  max-width: 560px;
  text-align: center;
  padding: 48px 40px 40px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 30px 60px -25px rgba(35, 31, 32, 0.18);
  animation: rise 0.9s cubic-bezier(.2,.8,.2,1) both;
}

/* ---------- Logo ---------- */
.logo-wrap {
  display: inline-flex;
  padding: 4px 8px;
  margin-bottom: 24px;
  animation: bob 4s ease-in-out infinite;
}
.logo { display: block; height: 130px; width: auto; max-width: 240px; object-fit: contain; }

/* ---------- Engranajes ---------- */
.gears {
  position: relative;
  width: 120px;
  height: 90px;
  margin: 0 auto 20px;
}
.gear { position: absolute; fill: var(--brand-accent); }
.gear-hole { fill: #ffffff; }
.gear--big   { width: 72px; height: 72px; left: 8px;  top: 8px;  animation: spin 6s linear infinite; }
.gear--small { width: 46px; height: 46px; left: 70px; top: 40px; fill: var(--brand-light); animation: spinReverse 4s linear infinite; }

/* ---------- Textos ---------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--brand-accent);
  background: rgba(243, 111, 33, 0.08);
  border: 1px solid rgba(243, 111, 33, 0.35);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 18px;
}
.dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--brand-accent);
  animation: pulse 1.6s ease-in-out infinite;
}

h1 {
  font-size: clamp(1.7rem, 4.5vw, 2.4rem);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 14px;
  background: linear-gradient(90deg, var(--brand-primary) 0%, var(--brand-accent) 50%, var(--brand-primary) 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: shine 5s linear infinite;
}

.lead {
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.6;
  max-width: 44ch;
  margin: 0 auto 28px;
}

/* ---------- Barra de progreso ---------- */
.progress {
  position: relative;
  height: 8px;
  background: #e9eef5;
  border-radius: 999px;
  overflow: hidden;
}
.progress__bar {
  position: absolute;
  top: 0; bottom: 0;
  width: 40%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--brand-accent), var(--brand-light));
  animation: loading 2.2s ease-in-out infinite;
}

.status {
  margin-top: 12px;
  font-size: 0.9rem;
  color: var(--text-muted);
}
.dots span { animation: blink 1.4s infinite both; }
.dots span:nth-child(2) { animation-delay: .2s; }
.dots span:nth-child(3) { animation-delay: .4s; }

.contact {
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid var(--card-border);
  font-size: 0.95rem;
  color: var(--text-muted);
}
.contact a {
  color: var(--brand-primary);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid var(--brand-accent);
  transition: color .2s ease, border-color .2s ease;
}
.contact a:hover,
.contact a:focus-visible { color: var(--brand-accent); outline: none; }

.footer {
  margin-top: 28px;
  font-size: 0.85rem;
  color: var(--text-muted);
  opacity: 0.8;
}

/* ---------- Animaciones ---------- */
@keyframes spin        { to { transform: rotate(360deg); } }
@keyframes spinReverse { to { transform: rotate(-360deg); } }
@keyframes bob   { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes rise  { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: none; } }
@keyframes pulse { 0%,100% { box-shadow: 0 0 0 0 rgba(243,111,33,.7); } 50% { box-shadow: 0 0 0 8px rgba(243,111,33,0); } }
@keyframes shine { to { background-position: 200% center; } }
@keyframes loading { 0% { left: -40%; } 100% { left: 100%; } }
@keyframes blink { 0%,80%,100% { opacity: 0; } 40% { opacity: 1; } }
@keyframes float {
  0%,100% { transform: translate(0, 0) scale(1); }
  33%     { transform: translate(60px, 40px) scale(1.1); }
  66%     { transform: translate(-40px, 30px) scale(0.95); }
}
@keyframes gridMove { to { background-position: 48px 48px; } }

/* ---------- Responsive ---------- */
@media (max-width: 480px) {
  .card { padding: 36px 22px 28px; }
  .logo { height: 100px; }
  .lead { font-size: 0.98rem; }
}

/* ---------- Accesibilidad: menos movimiento ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
  }
  .progress__bar { left: 0; width: 60%; }
}
