/* =========================================================
   Página de mantenimiento — hoja de estilos
   Color primario: #043275
   ========================================================= */

/* ---------- Tokens ---------- */
:root {
  /* Marca */
  --primary:        #043275;
  --primary-dark:   #032555;
  --primary-mid:    #0a4fa8;
  --primary-soft:   #e7eef7;

  /* Acento (solo para el estado de mantenimiento) */
  --accent:         #c98a0a;
  --accent-soft:    #fdf3e0;

  /* Neutros */
  --bg:             #f3f6fa;
  --surface:        #ffffff;
  --ink:            #10203a;
  --muted:          #5b6b84;
  --line:           #e2e7f0;

  /* Sistema */
  --radius:         14px;
  --radius-sm:      10px;
  --shadow:         0 1px 2px rgba(4, 50, 117, .06),
                    0 18px 48px -18px rgba(4, 50, 117, .28);
  --font-display:   "Sora", "Segoe UI", system-ui, sans-serif;
  --font-body:      "Inter", "Segoe UI", system-ui, sans-serif;
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background-color: var(--bg);
  /* Retícula técnica muy sutil, tipo plano de arquitectura */
  background-image:
    linear-gradient(rgba(4, 50, 117, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(4, 50, 117, .035) 1px, transparent 1px);
  background-size: 44px 44px;
  -webkit-font-smoothing: antialiased;
}

h1, h2, p, dl, dd { margin: 0; }

/* ---------- Layout ---------- */
.page {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 20px;
}

.card {
  position: relative;
  width: 100%;
  max-width: 640px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.card__body { padding: 40px; }

/* ---------- Firma: banda de mantenimiento ---------- */
.card__tape {
  height: 6px;
  background-image: repeating-linear-gradient(
    135deg,
    var(--primary) 0 12px,
    var(--primary-mid) 12px 24px
  );
  background-size: 34px 34px;
  animation: tape-scroll 2.4s linear infinite;
}

@keyframes tape-scroll {
  to { background-position: 34px 0; }
}

/* ---------- Marca ---------- */
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 32px;
}

.brand__mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: var(--primary);
  color: #fff;
}

.brand__mark svg { width: 20px; height: 20px; }

.brand__name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: -.01em;
  color: var(--primary);
}

/* ---------- Estado ---------- */
.status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px 6px 10px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: #8a5e05;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.status__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 rgba(201, 138, 10, .55);
  animation: pulse 2s ease-out infinite;
}

@keyframes pulse {
  70%  { box-shadow: 0 0 0 7px rgba(201, 138, 10, 0); }
  100% { box-shadow: 0 0 0 0 rgba(201, 138, 10, 0); }
}

/* ---------- Texto ---------- */
.title {
  margin: 18px 0 14px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.6rem, 1.15rem + 2vw, 2.25rem);
  line-height: 1.18;
  letter-spacing: -.02em;
  color: var(--primary);
  text-wrap: balance;
}

.lead {
  max-width: 52ch;
  font-size: 1rem;
  line-height: 1.65;
  color: var(--muted);
}

/* ---------- Aviso de acceso ---------- */
.notice {
  margin: 30px 0;
  padding: 20px 22px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--primary);
  border-radius: var(--radius-sm);
  background: var(--primary-soft);
}

.notice__title {
  margin-bottom: 6px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  color: var(--primary-dark);
}

.notice__text {
  font-size: .94rem;
  line-height: 1.6;
  color: #3d5474;
}

/* ---------- Acciones ---------- */
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn {
  flex: 1 1 auto;
  min-width: 190px;
  padding: 14px 22px;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: .95rem;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  transition: background-color .18s ease, color .18s ease,
              border-color .18s ease, transform .18s ease;
}

.btn--primary {
  background: var(--primary);
  color: #fff;
  border: 1px solid var(--primary);
}

.btn--primary:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  transform: translateY(-1px);
}

.btn--ghost {
  background: transparent;
  color: var(--primary);
  border: 1px solid var(--line);
}

.btn--ghost:hover {
  border-color: var(--primary);
  background: var(--primary-soft);
}

.btn:focus-visible {
  outline: 3px solid rgba(4, 50, 117, .35);
  outline-offset: 2px;
}

/* ---------- Pie ---------- */
.foot {
  margin-top: 34px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.foot__grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 48px;
}

.foot__item dt {
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted);
}

.foot__item dd {
  margin-top: 3px;
  font-size: .92rem;
  font-weight: 500;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

/* ---------- Responsive ---------- */
@media (max-width: 560px) {
  .page { padding: 16px; }

  .card__body { padding: 28px 22px; }

  .brand { margin-bottom: 24px; }

  .notice { margin: 24px 0; padding: 18px; }

  .actions { flex-direction: column; }

  .btn { min-width: 0; width: 100%; }

  .foot__grid { gap: 16px; flex-direction: column; }
}

/* ---------- Accesibilidad: movimiento reducido ---------- */
@media (prefers-reduced-motion: reduce) {
  .card__tape,
  .status__dot {
    animation: none;
  }

  .btn { transition: none; }
  .btn--primary:hover { transform: none; }
}
