:root {
  --naranja: #FF9900;
  --negro: #000000;
  --blanco: #FFFFFF;
  --gris: #D9D9D9;
  --gris-oscuro: #1a1a1a;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html, body { height: 100%; }

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--blanco);
  background: radial-gradient(circle at 50% 32%, #1c1c1c 0%, #050505 68%);
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem 1.25rem;
  position: relative;
  overflow-x: hidden;
}

/* Líneas diagonales sutiles (estilo de marca) */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: repeating-linear-gradient(135deg,
    rgba(255, 153, 0, 0.045) 0 2px,
    transparent 2px 42px);
  pointer-events: none;
  z-index: 0;
}

main {
  position: relative;
  z-index: 1;
  max-width: 720px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  animation: rise 0.7s ease-out both;
}

.logo-wrap { position: relative; display: inline-flex; }
.logo-wrap::after {
  content: "";
  position: absolute;
  inset: -18% -8%;
  background: radial-gradient(circle, rgba(255, 153, 0, 0.22) 0%, transparent 68%);
  z-index: -1;
  filter: blur(6px);
}
.logo {
  width: min(360px, 78vw);
  height: auto;
  filter: drop-shadow(0 10px 28px rgba(0, 0, 0, 0.6));
}
.logo--sm { width: min(220px, 56vw); }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 1rem;
  border: 1px solid rgba(255, 153, 0, 0.55);
  border-radius: 999px;
  background: rgba(255, 153, 0, 0.08);
  color: var(--naranja);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.badge .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--naranja);
  box-shadow: 0 0 0 0 rgba(255, 153, 0, 0.7);
  animation: pulse 1.8s ease-out infinite;
}

h1 {
  font-family: 'Bebas Neue', 'Inter', sans-serif;
  font-weight: 400;
  font-size: clamp(2.6rem, 9vw, 5.5rem);
  line-height: 0.95;
  letter-spacing: 0.01em;
}
h1 .acento { color: var(--naranja); }

.sub {
  color: var(--gris);
  font-size: clamp(1rem, 2.4vw, 1.18rem);
  line-height: 1.6;
  max-width: 540px;
}

/* Línea de "ruta" en movimiento */
.road {
  width: min(420px, 80vw);
  height: 4px;
  border-radius: 4px;
  background: repeating-linear-gradient(90deg,
    var(--naranja) 0 28px,
    rgba(255, 153, 0, 0.18) 28px 56px);
  background-size: 56px 100%;
  animation: drive 0.9s linear infinite;
}

.tagline {
  font-family: 'Bebas Neue', 'Inter', sans-serif;
  font-size: clamp(1.2rem, 3.5vw, 1.7rem);
  letter-spacing: 0.06em;
  color: var(--blanco);
}

.contact {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  justify-content: center;
  margin-top: 0.25rem;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 1.6rem;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn-primario {
  background: var(--naranja);
  color: var(--negro);
  box-shadow: 0 8px 22px rgba(255, 153, 0, 0.28);
}
.btn-primario:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(255, 153, 0, 0.38); }
.btn-secundario {
  background: var(--gris-oscuro);
  color: var(--blanco);
  border: 1px solid rgba(217, 217, 217, 0.18);
}
.btn-secundario:hover { transform: translateY(-2px); border-color: rgba(217, 217, 217, 0.4); }
.btn:focus-visible { outline: 2px solid var(--naranja); outline-offset: 3px; }

/* Páginas de error */
.error-code {
  font-family: 'Bebas Neue', 'Inter', sans-serif;
  font-weight: 400;
  font-size: clamp(5.5rem, 24vw, 13rem);
  line-height: 0.85;
  color: var(--naranja);
  letter-spacing: 0.02em;
  text-shadow: 0 10px 50px rgba(255, 153, 0, 0.25);
}

footer {
  position: relative;
  z-index: 1;
  margin-top: 3rem;
  color: rgba(217, 217, 217, 0.55);
  font-size: 0.82rem;
}

@keyframes rise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes drive {
  from { background-position: 0 0; }
  to { background-position: 56px 0; }
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(255, 153, 0, 0.6); }
  70% { box-shadow: 0 0 0 9px rgba(255, 153, 0, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 153, 0, 0); }
}

@media (prefers-reduced-motion: reduce) {
  main { animation: none; }
  .road { animation: none; }
  .badge .dot { animation: none; }
  .btn { transition: none; }
}
