/* ============================================================
   Sistema de diseño — Bondar Solutions / Quetzalli IA
   Replica el estilo de la página NotFound (404)
   ============================================================ */

:root {
  /* Core */
  --color-black: #0a0a0a;
  --color-white: #fafafa;
  --color-gray-300: #b0b0b0;
  --color-gray-500: #6b6b6b;
  --color-gray-900: #1a1a1a;

  /* Brand accent — Quetzalli gold */
  --color-accent: #d6b96e;
  --color-accent-dim: #b89a52;
  --color-accent-muted: rgba(214, 185, 110, 0.15);

  /* Semantic */
  --color-surface: #ffffff;
  --color-border: #e2e2e2;
  --color-text: #0a0a0a;
  --color-text-muted: #6b6b6b;

  /* Fonts */
  --font-display: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --font-body: "Roboto", system-ui, -apple-system, Segoe UI, sans-serif;
  --font-mono: "Roboto", system-ui, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  -webkit-text-size-adjust: 100%;
  font-family: var(--font-body);
  color: var(--color-text);
}

body {
  font-family: var(--font-body);
  background-color: var(--color-surface);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ------------------------------------------------------------
   Layout principal — centrado a pantalla completa
   ------------------------------------------------------------ */
.page {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  min-height: 100dvh;
  overflow: hidden;
  padding: 1.5rem;
  text-align: center;
  background-color: var(--color-surface);
}

/* Marca decorativa gigante de fondo (equivalente al "404") */
.bg-mark {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--font-display);
  font-size: clamp(20rem, 50vw, 44rem);
  line-height: 1;
  color: var(--color-gray-900);
  opacity: 0;
  user-select: none;
  pointer-events: none;
  animation: bg-mark-in 1.2s ease-out forwards;
}

@keyframes bg-mark-in {
  from {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.8);
  }
  to {
    opacity: 0.03;
    transform: translate(-50%, -50%) scale(1);
  }
}

/* ------------------------------------------------------------
   Contenido
   ------------------------------------------------------------ */
.content {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 52rem;
}

.eyebrow {
  margin-bottom: 1rem;
  font-family: var(--font-mono);
  font-size: 1.0625rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--color-gray-500);
}

.title {
  margin-bottom: 1.25rem;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2.75rem, 5.5vw, 4.75rem);
  line-height: 1.1;
  letter-spacing: -0.015em;
  color: var(--color-gray-900);
}

.lead {
  max-width: 40rem;
  margin-bottom: 2.5rem;
  font-family: var(--font-body);
  font-weight: 300;
  font-size: clamp(1.1875rem, 2.5vw, 1.375rem);
  line-height: 1.7;
  color: var(--color-gray-500);
}

/* Dominios: antiguo → nuevo */
.domains {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  margin-bottom: 2.5rem;
}

.domain {
  font-family: var(--font-body);
  font-size: 1.1875rem;
  padding: 0.625rem 1.25rem;
  border-radius: 0.125rem;
  white-space: nowrap;
}

.domain--old {
  color: var(--color-gray-500);
  border: 1px solid var(--color-border, #e2e2e2);
  text-decoration: line-through;
  text-decoration-color: rgba(107, 107, 107, 0.5);
}

.domain--new {
  color: var(--color-gray-900);
  font-weight: 700;
  border: 1px solid var(--color-accent);
  background: var(--color-accent-muted, rgba(214, 185, 110, 0.15));
}

.domain-arrow {
  color: var(--color-accent);
  font-size: 1.625rem;
  line-height: 1;
}

/* ------------------------------------------------------------
   Botón — borde con barrido en hover (estilo NotFound)
   ------------------------------------------------------------ */
.actions {
  margin-bottom: 1.75rem;
}

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  overflow: hidden;
  padding: 1.125rem 2.5rem;
  border: 1px solid var(--color-gray-900);
  border-radius: 0.125rem;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--color-gray-900);
  text-decoration: none;
  transition: color 0.5s ease;
}

.btn__fill {
  position: absolute;
  inset: 0;
  background: var(--color-gray-900);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s ease-out;
}

.btn:hover {
  color: var(--color-white);
}

.btn:hover .btn__fill {
  transform: scaleX(1);
}

.btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px var(--color-accent);
}

.btn__icon {
  position: relative;
  z-index: 10;
  width: 1.5rem;
  height: 1.5rem;
  margin-right: 0.625rem;
}

.btn__label {
  position: relative;
  z-index: 10;
}

/* Cuenta regresiva */
.countdown {
  font-family: var(--font-body);
  font-size: 1.0625rem;
  color: var(--color-gray-500);
}

.countdown strong {
  color: var(--color-gray-900);
  font-weight: 700;
}

/* ------------------------------------------------------------
   Línea decorativa inferior dorada
   ------------------------------------------------------------ */
.accent-line {
  position: absolute;
  bottom: 4rem;
  height: 1px;
  width: 6rem;
  background: var(--color-accent);
  transform: scaleX(0);
  transform-origin: center;
  animation: line-in 1s ease-out 0.9s forwards;
}

@keyframes line-in {
  to {
    transform: scaleX(1);
  }
}

/* ------------------------------------------------------------
   Animaciones de entrada
   ------------------------------------------------------------ */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  animation: reveal-in 0.7s ease-out forwards;
  animation-delay: var(--delay, 0s);
}

@keyframes reveal-in {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* El eyebrow solo aparece (sin desplazamiento), como en NotFound */
.eyebrow.reveal {
  transform: none;
}

/* ------------------------------------------------------------
   Responsivo — ajustes finos
   ------------------------------------------------------------ */
@media (max-width: 480px) {
  .accent-line {
    bottom: 2.5rem;
  }

  .domain {
    font-size: 0.875rem;
  }
}

/* Accesibilidad: respeta usuarios que reducen movimiento */
@media (prefers-reduced-motion: reduce) {
  .bg-mark,
  .reveal,
  .accent-line {
    animation: none;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }

  .bg-mark {
    opacity: 0.03;
  }

  .accent-line {
    transform: scaleX(1);
  }

  .btn,
  .btn__fill {
    transition: none;
  }
}
