/* ==========================================================
   Ideal Control — Página de mantención
   Paleta tomada del logo:
     azul     #2F54A3
     naranja  #DF6718
   ========================================================== */

:root {
  --blue:        #2F54A3;
  --blue-dark:   #1B3468;
  --blue-deep:   #0E1D3D;
  --orange:      #DF6718;
  --orange-soft: #F08A3E;
  --white:       #FFFFFF;
  --muted:       rgba(255, 255, 255, 0.72);
  --line:        rgba(255, 255, 255, 0.16);
  --radius:      18px;
}

* { box-sizing: border-box; }

html, body { height: 100%; }

body {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 28px;
  padding: 40px 20px;
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  color: var(--white);
  background: var(--blue-deep);
  text-align: center;
  overflow-x: hidden;
}

/* ---------- Fondo: foto industrial + degradado azul ---------- */
.backdrop {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(160deg,
      rgba(14, 29, 61, 0.86) 0%,
      rgba(27, 52, 104, 0.82) 45%,
      rgba(47, 84, 163, 0.76) 100%),
    url("assets/portada.jpg") center / cover no-repeat;
}

/* Línea naranja superior, guiño al logo */
.backdrop::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 5px;
  background: linear-gradient(90deg, var(--orange), var(--orange-soft), var(--blue));
}

/* ---------- Tarjeta ---------- */
.card {
  width: 100%;
  max-width: 660px;
  padding: 44px 38px 38px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(10, 22, 46, 0.55);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
  animation: rise 0.7s ease both;
}

@keyframes rise {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: none; }
}

/* Panel blanco para mostrar el logo en sus colores originales */
.logo-wrap {
  display: inline-block;
  margin: 0 auto 26px;
  padding: 20px 28px;
  border-radius: 14px;
  background: var(--white);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.22);
}

.logo {
  display: block;
  width: 100%;
  max-width: 290px;
  height: auto;
}

/* ---------- Badge de estado ---------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 20px;
  padding: 7px 15px;
  border: 1px solid rgba(223, 103, 24, 0.5);
  border-radius: 999px;
  background: rgba(223, 103, 24, 0.14);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: #FFD3AF;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--orange);
  animation: pulse 1.6s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1;   box-shadow: 0 0 0 0 rgba(223, 103, 24, 0.6); }
  50%      { opacity: 0.6; box-shadow: 0 0 0 7px rgba(223, 103, 24, 0); }
}

/* ---------- Textos ---------- */
h1 {
  margin: 0 0 16px;
  font-size: clamp(1.7rem, 5.2vw, 2.5rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.accent { color: var(--orange-soft); }

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

/* ---------- Progreso ---------- */
.progress {
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  overflow: hidden;
}

.progress-bar {
  height: 100%;
  width: 40%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--blue), var(--orange));
  animation: sweep 2.2s ease-in-out infinite;
}

@keyframes sweep {
  0%   { transform: translateX(-100%); }
  100% { transform: translateX(250%); }
}

.progress-label {
  margin: 12px 0 30px;
  font-size: 0.85rem;
  color: var(--muted);
}

.progress-label strong {
  color: var(--white);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.04em;
}

/* ---------- Contacto ---------- */
.contact {
  padding-top: 26px;
  border-top: 1px solid var(--line);
}

.contact-title {
  margin: 0 0 16px;
  font-size: 0.92rem;
  color: var(--muted);
}

.contact-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 12px 20px;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}

.btn svg {
  width: 17px;
  height: 17px;
  fill: currentColor;
  flex: 0 0 auto;
}

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

.btn-primary:hover { background: #C95A12; }

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

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.4);
}

.btn:hover  { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn:focus-visible,
a:focus-visible {
  outline: 2px solid var(--orange-soft);
  outline-offset: 3px;
}

/* ---------- Footer ---------- */
.footer {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.5);
}

.footer p { margin: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 520px) {
  .card { padding: 32px 22px 28px; }
  .logo-wrap { padding: 16px 20px; margin-bottom: 20px; }
  .logo { max-width: 220px; }
  .contact-links { flex-direction: column; }
  .btn { justify-content: center; }
}

/* ---------- Accesibilidad: menos movimiento ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
  .progress-bar { width: 100%; }
}
