:root {
  --ng-bg: #fbfaf6;
  --ng-text: #1f2937;
  --ng-muted: #4b5563;
  --ng-soft: #6b7280;
  --ng-green: #72e3b3;
  --ng-green-dark: #2f7d62;
  --ng-danger: #9f2f2f;
  --ng-card: rgba(255, 255, 255, 0.78);
  --ng-border: rgba(31, 41, 55, 0.12);
}

* { box-sizing: border-box; }
html, body { min-height: 100%; }
body {
  margin: 0;
  font-family: Georgia, 'Times New Roman', serif;
  background: var(--ng-bg);
  color: var(--ng-text);
}

.page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px 18px;
}

.card {
  width: min(560px, 100%);
  text-align: center;
  padding: 18px 10px 24px;
}

.hero-title {
  margin: 0 0 18px;
  font-size: clamp(42px, 10vw, 68px);
  font-weight: 400;
  letter-spacing: 0.01em;
  color: var(--ng-text);
}

.lottie-box {
  width: min(460px, 92vw);
  height: min(460px, 92vw);
  margin: 0 auto;
}

.subtitle {
  margin: 18px auto 0;
  max-width: 520px;
  font-size: clamp(24px, 6vw, 38px);
  line-height: 1.18;
  font-weight: 500;
  color: var(--ng-text);
}

.small-note {
  margin: 18px auto 0;
  max-width: 520px;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 15px;
  line-height: 1.5;
  color: var(--ng-soft);
}

.panel {
  width: min(540px, 100%);
  margin: 0 auto;
  padding: 28px 22px;
  border: 1px solid var(--ng-border);
  border-radius: 22px;
  background: var(--ng-card);
  box-shadow: 0 18px 48px rgba(31, 41, 55, 0.08);
}

.panel .lottie-box {
  width: min(280px, 78vw);
  height: min(280px, 78vw);
}

.status-title {
  margin: 10px 0 10px;
  font-size: clamp(30px, 8vw, 44px);
  font-weight: 400;
}

.status-text {
  margin: 0 auto 18px;
  max-width: 420px;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.5;
  color: var(--ng-muted);
}

.form {
  margin-top: 18px;
  display: grid;
  gap: 12px;
}

label {
  display: block;
  text-align: left;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 14px;
  color: var(--ng-muted);
}

input {
  width: 100%;
  margin-top: 6px;
  padding: 13px 14px;
  border: 1px solid var(--ng-border);
  border-radius: 14px;
  background: #fff;
  color: var(--ng-text);
  font-size: 16px;
}

button {
  width: 100%;
  border: 0;
  border-radius: 16px;
  padding: 14px 18px;
  background: var(--ng-green-dark);
  color: white;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
}

button:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.message {
  min-height: 24px;
  margin-top: 12px;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 15px;
  line-height: 1.45;
  color: var(--ng-muted);
}

.message.ok { color: var(--ng-green-dark); }
.message.error { color: var(--ng-danger); }

.hidden { display: none; }

/* Portada v2: la animación ya contiene el título, logo, eslogan y engranajes. */
.landing-page {
  padding: 0;
  background: var(--ng-bg);
}

.landing-card {
  width: min(720px, 100vw);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.landing-lottie {
  width: min(560px, 96vw);
  height: min(560px, 96vw);
}

@media (max-width: 480px) {
  .landing-lottie {
    width: 100vw;
    height: 100vw;
  }
}
