@import url('https://fonts.googleapis.com/css2?family=Rajdhani:wght@500;600;700&family=Titillium+Web:wght@400;600;700&display=swap');

:root {
  --bg: #0a0d13;
  --panel: #12151d;
  --panel-alt: #171b25;
  --line: rgba(0, 200, 255, 0.28);
  --line-strong: rgba(0, 200, 255, 0.55);
  --blue: #1f6bff;
  --cyan: #00d4ff;
  --orange: #ff6a1a;
  --white: #ffffff;
  --gray: #8b93a1;
  --gray-dim: #5a6273;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: 'Titillium Web', Arial, sans-serif;
  background: var(--bg);
  background-image:
    radial-gradient(ellipse 900px 500px at 15% -10%, rgba(31,107,255,0.18), transparent 60%),
    radial-gradient(ellipse 700px 500px at 110% 20%, rgba(0,212,255,0.12), transparent 60%);
  color: var(--white);
  min-height: 100vh;
}

h1, h2, .step-badge, .btn {
  font-family: 'Rajdhani', 'Titillium Web', Arial, sans-serif;
}

.topbar {
  height: 3px;
  width: 100%;
  background: linear-gradient(90deg, var(--blue) 0%, var(--cyan) 50%, var(--orange) 100%);
}
.bottombar { margin-top: 48px; }

.wrap {
  max-width: 720px;
  margin: 0 auto;
  padding: 48px 20px 20px;
  position: relative;
}

/* ---- X gráfica de fondo, marca registrada de AutoXperts ---- */
.hero { text-align: center; margin-bottom: 40px; position: relative; overflow: visible; }
.hero::before, .hero::after {
  content: "";
  position: absolute;
  top: -30px;
  width: 340px;
  height: 340px;
  border-top: 1.5px solid var(--line);
  left: 50%;
  pointer-events: none;
  z-index: 0;
}
.hero::before { transform: translateX(-50%) rotate(45deg); }
.hero::after  { transform: translateX(-50%) rotate(-45deg); }

.hero-logo-main { max-height: 42px; margin-bottom: 26px; position: relative; z-index: 1; }
.hero h1 {
  font-size: 2.1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--white);
  margin: 0 0 10px;
  position: relative;
  z-index: 1;
}
.hero h1 .accent { color: var(--cyan); }
.subtitle {
  color: var(--gray);
  margin: 0 0 22px;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  position: relative;
  z-index: 1;
}
.hero-logo-ucea {
  display: block;
  max-height: 34px;
  max-width: 160px;
  width: auto;
  height: auto;
  margin: 0 auto;
  opacity: 0.85;
  background: #fff;
  padding: 8px 14px;
  border-radius: 4px;
  position: relative;
  z-index: 1;
}

/* ---- Paneles estilo HUD ---- */
.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 30px 28px 34px;
  margin-bottom: 24px;
  position: relative;
  clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 18px, 100% 100%, 18px 100%, 0 calc(100% - 18px));
}
.card::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 26px; height: 26px;
  border-top: 2px solid var(--cyan);
  border-left: 2px solid var(--cyan);
}

.step-badge {
  display: inline-block;
  background: transparent;
  color: var(--orange);
  border: 1px solid var(--orange);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 2px;
  margin-bottom: 14px;
}

.card h2 {
  margin: 0 0 12px;
  font-size: 1.5rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  color: var(--white);
}
.card p { line-height: 1.6; color: var(--gray); }

.btn {
  display: inline-block;
  text-decoration: none;
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 13px 26px;
  border-radius: 2px;
  border: none;
  cursor: pointer;
  transition: box-shadow 0.15s ease, transform 0.05s ease, background 0.15s ease;
}
.btn:active { transform: scale(0.98); }

.btn-primary {
  background: var(--blue);
  color: #fff;
  box-shadow: 0 0 0 rgba(0,212,255,0);
}
.btn-primary:hover { background: #2f78ff; box-shadow: 0 0 18px rgba(31,107,255,0.55); }

.btn-secondary {
  background: transparent;
  color: var(--cyan);
  border: 1.5px solid var(--cyan);
  margin-top: 20px;
  display: block;
  width: 100%;
}
.btn-secondary:hover:not(:disabled) { background: rgba(0,212,255,0.08); box-shadow: 0 0 14px rgba(0,212,255,0.35); }
.btn-secondary:disabled {
  border-color: var(--gray-dim);
  color: var(--gray-dim);
  cursor: not-allowed;
}

.btn-download {
  background: var(--orange);
  color: #14100c;
  white-space: nowrap;
}
.btn-download:hover { background: #ff7f38; box-shadow: 0 0 14px rgba(255,106,26,0.45); }

.lookup-form { display: flex; flex-direction: column; gap: 18px; margin-top: 18px; }
.lookup-form label {
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--gray);
}
.lookup-form input {
  font-size: 1rem;
  padding: 12px 14px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 2px;
  font-weight: normal;
  color: var(--white);
  font-family: 'Titillium Web', Arial, sans-serif;
}
.lookup-form input::placeholder { color: var(--gray-dim); }
.lookup-form input:focus {
  outline: none;
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(0,212,255,0.15);
}

.warning {
  background: rgba(255,106,26,0.08);
  color: #ffd7b8;
  border: 1px solid rgba(255,106,26,0.45);
  border-left: 3px solid var(--orange);
  padding: 12px 16px;
  border-radius: 2px;
  font-size: 0.9rem;
  line-height: 1.5;
  margin: 18px 0;
}

.hint {
  font-size: 0.8rem;
  color: var(--gray-dim);
  margin-top: 10px;
}

.error {
  background: rgba(255,106,26,0.08);
  color: #ffb082;
  border: 1px solid rgba(255,106,26,0.4);
  padding: 14px 16px;
  border-radius: 2px;
}

.cert-list { list-style: none; padding: 0; margin: 20px 0 0; display: flex; flex-direction: column; gap: 12px; }
.cert-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: var(--panel-alt);
  border: 1px solid var(--line);
  border-left: 3px solid var(--cyan);
  border-radius: 2px;
  padding: 14px 16px;
}
.cert-info { display: flex; flex-direction: column; gap: 4px; }
.cert-title { font-weight: 700; font-size: 1rem; color: var(--white); }
.cert-meta { font-size: 0.8rem; color: var(--gray); }

.footer {
  text-align: center;
  color: var(--gray-dim);
  font-size: 0.8rem;
  margin-top: 8px;
  letter-spacing: 0.02em;
}

@media (max-width: 480px) {
  .cert-item { flex-direction: column; align-items: flex-start; }
  .btn-download { width: 100%; text-align: center; }
  .hero::before, .hero::after { width: 220px; }
}
