/*
 * ============================================================
 * GESTEXLINK APP — Unavailable Page Stylesheet
 * Version    : 1.0.0
 * Authors    : NexLink Hub S.L.U. (CIF: B88756994)
 * Description: Dark navy, mobile-first, pure CSS3.
 *              Matches GESTEXLINK brand palette.
 * ============================================================
 */

/* ════════════════════════════════════════════════════════════
   1. DESIGN TOKENS
═════════════════════════════════════════════════════════════ */
:root {
  --color-bg-start:      #060e1e;
  --color-bg-mid:        #0F2B5B;
  --color-bg-end:        #091D3E;

  --color-primary:       #0F2B5B;
  --color-secondary:     #1A56DB;
  --color-secondary-dark:#1340AD;
  --color-accent:        #06B6D4;
  --color-accent-dim:    rgba(6, 182, 212, 0.15);

  --color-surface:       rgba(255, 255, 255, 0.05);
  --color-surface-hover: rgba(255, 255, 255, 0.08);
  --color-border:        rgba(255, 255, 255, 0.10);
  --color-border-accent: rgba(6, 182, 212, 0.30);

  --color-text:          #f0f6ff;
  --color-text-muted:    rgba(176, 200, 235, 0.75);
  --color-url:           rgba(6, 182, 212, 0.85);

  --font-primary:  'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-display:  'Space Grotesk', 'Inter', sans-serif;

  --radius-card:   1.25rem;
  --radius-badge:  9999px;
  --radius-btn:    0.625rem;

  --shadow-card:
    0 0 0 1px rgba(255, 255, 255, 0.06),
    0 8px 32px rgba(0, 0, 0, 0.45),
    0 32px 80px rgba(0, 0, 0, 0.30);

  --transition-fast:   150ms ease;
  --transition-normal: 280ms ease;
}

/* ════════════════════════════════════════════════════════════
   2. RESET & BASE
═════════════════════════════════════════════════════════════ */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 100%;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  font-family: var(--font-primary);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--color-text);
  background-color: var(--color-bg-start);
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: var(--color-accent);
  text-decoration: none;
}

strong {
  font-weight: 600;
  color: var(--color-text);
}

/* ════════════════════════════════════════════════════════════
   3. ANIMATED BACKGROUND
═════════════════════════════════════════════════════════════ */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(ellipse 80% 80% at 10% 10%, rgba(26, 86, 219, 0.20) 0%, transparent 60%),
    radial-gradient(ellipse 60% 60% at 90% 90%, rgba(6, 182, 212, 0.15) 0%, transparent 55%),
    linear-gradient(160deg, var(--color-bg-start) 0%, var(--color-bg-mid) 50%, var(--color-bg-end) 100%);
  animation: bg-shift 12s ease-in-out infinite alternate;
}

@keyframes bg-shift {
  0%   { opacity: 1; filter: hue-rotate(0deg); }
  100% { opacity: 1; filter: hue-rotate(8deg); }
}

/* ── Decorative circles ────────────────────────────────── */
.bg-decor {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}

.bg-circle {
  position: absolute;
  border-radius: 9999px;
  opacity: 0.08;
  animation: float 20s ease-in-out infinite;
}

.bg-circle--1 {
  width: 500px;
  height: 500px;
  top: -120px;
  left: -150px;
  background: radial-gradient(circle, var(--color-secondary) 0%, transparent 70%);
  animation-delay: 0s;
}

.bg-circle--2 {
  width: 400px;
  height: 400px;
  bottom: -100px;
  right: -100px;
  background: radial-gradient(circle, var(--color-accent) 0%, transparent 70%);
  animation-delay: -7s;
  opacity: 0.07;
}

.bg-circle--3 {
  width: 300px;
  height: 300px;
  top: 50%;
  left: 60%;
  background: radial-gradient(circle, var(--color-secondary) 0%, transparent 70%);
  animation-delay: -14s;
  opacity: 0.05;
}

@keyframes float {
  0%   { transform: translate(0, 0) scale(1); }
  33%  { transform: translate(20px, -30px) scale(1.05); }
  66%  { transform: translate(-15px, 20px) scale(0.97); }
  100% { transform: translate(0, 0) scale(1); }
}

/* ════════════════════════════════════════════════════════════
   4. LAYOUT
═════════════════════════════════════════════════════════════ */
.page-wrapper {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1.25rem;
  width: 100%;
}

/* ════════════════════════════════════════════════════════════
   5. CARD
═════════════════════════════════════════════════════════════ */
.card {
  position: relative;
  width: 100%;
  max-width: 480px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  padding: 2.5rem 2rem;
  text-align: center;
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(24px) saturate(1.3);
  -webkit-backdrop-filter: blur(24px) saturate(1.3);
  animation: card-in 0.6s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius-card);
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.04) 0%,
    rgba(255, 255, 255, 0.00) 50%,
    rgba(6, 182, 212, 0.03) 100%
  );
  pointer-events: none;
}

@keyframes card-in {
  from {
    opacity: 0;
    transform: translateY(24px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* ── Logo ──────────────────────────────────────────────── */
.card__logo {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.75rem;
}

.card__logo img {
  width: 180px;
  height: auto;
  margin: 0 auto;
  filter: brightness(1.05);
}

/* ── URL label ─────────────────────────────────────────── */
.card__url {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-url);
  margin-bottom: 1.5rem;
  opacity: 0.85;
}

/* ── Icon ──────────────────────────────────────────────── */
.card__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  margin: 0 auto 1.25rem;
  border-radius: 1rem;
  background: var(--color-accent-dim);
  border: 1px solid var(--color-border-accent);
  color: var(--color-accent);
  animation: icon-pulse 3s ease-in-out infinite;
}

.card__icon svg {
  width: 30px;
  height: 30px;
}

@keyframes icon-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(6, 182, 212, 0.25); }
  50%       { box-shadow: 0 0 0 10px rgba(6, 182, 212, 0); }
}

/* ── Badge ─────────────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.85rem;
  border-radius: var(--radius-badge);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}

.badge--accent {
  background: var(--color-accent-dim);
  border: 1px solid var(--color-border-accent);
  color: var(--color-accent);
}

.badge__dot {
  width: 6px;
  height: 6px;
  border-radius: 9999px;
  background: var(--color-accent);
  animation: dot-blink 1.5s ease-in-out infinite;
  flex-shrink: 0;
}

@keyframes dot-blink {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.4; transform: scale(0.8); }
}

/* ── Title ─────────────────────────────────────────────── */
.card__title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 5vw, 1.875rem);
  font-weight: 700;
  color: var(--color-text);
  line-height: 1.2;
  margin-bottom: 1rem;
  letter-spacing: -0.01em;
}

/* ── Body text ─────────────────────────────────────────── */
.card__text {
  font-size: 0.9375rem;
  line-height: 1.65;
  color: var(--color-text-muted);
  margin-bottom: 0.75rem;
}

.card__text strong {
  color: var(--color-text);
}

.card__text--muted {
  font-size: 0.875rem;
  opacity: 0.85;
  margin-bottom: 1.5rem;
}

/* ── Progress bar ──────────────────────────────────────── */
.progress {
  width: 100%;
  height: 4px;
  background: rgba(255, 255, 255, 0.07);
  border-radius: 9999px;
  overflow: hidden;
  margin-bottom: 1.75rem;
}

.progress__bar {
  height: 100%;
  width: 65%;
  border-radius: 9999px;
  background: linear-gradient(90deg, var(--color-secondary) 0%, var(--color-accent) 100%);
  animation: progress-shine 2.5s ease-in-out infinite;
  position: relative;
}

.progress__bar::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.35) 50%, transparent 100%);
  animation: shimmer 2.5s ease-in-out infinite;
}

@keyframes shimmer {
  0%   { transform: translateX(-100%); }
  100% { transform: translateX(200%); }
}

/* ── Divider ───────────────────────────────────────────── */
.card__divider {
  height: 1px;
  background: var(--color-border);
  margin-bottom: 1.5rem;
}

/* ── CTA label ─────────────────────────────────────────── */
.card__cta-label {
  font-size: 0.8125rem;
  color: var(--color-text-muted);
  margin-bottom: 0.75rem;
  opacity: 0.8;
}

/* ════════════════════════════════════════════════════════════
   6. BUTTON
═════════════════════════════════════════════════════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius-btn);
  font-family: var(--font-primary);
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  text-decoration: none;
  transition:
    background-color var(--transition-fast),
    transform var(--transition-fast),
    box-shadow var(--transition-fast);
  min-height: 44px;
  border: none;
  white-space: nowrap;
}

.btn svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.btn--primary {
  background: linear-gradient(135deg, var(--color-secondary) 0%, #1a68f0 100%);
  color: #ffffff;
  box-shadow: 0 4px 16px rgba(26, 86, 219, 0.40);
}

.btn--primary:hover,
.btn--primary:focus-visible {
  background: linear-gradient(135deg, var(--color-secondary-dark) 0%, var(--color-secondary) 100%);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(26, 86, 219, 0.50);
  color: #ffffff;
  text-decoration: none;
}

.btn--primary:active {
  transform: translateY(0);
}

/* ════════════════════════════════════════════════════════════
   7. FOOTER
═════════════════════════════════════════════════════════════ */
.footer {
  width: 100%;
  text-align: center;
  padding: 1.25rem 1rem 1.5rem;
  font-size: 0.75rem;
  color: rgba(176, 200, 235, 0.45);
  letter-spacing: 0.02em;
}

.footer strong {
  color: rgba(176, 200, 235, 0.60);
  font-weight: 500;
}

/* ════════════════════════════════════════════════════════════
   8. LANGUAGE SWITCHER
═════════════════════════════════════════════════════════════ */
.lang-switcher {
  position: fixed;
  top: 1.25rem;
  right: 1.25rem;
  display: flex;
  gap: 0.25rem;
  z-index: 100;
}

.lang-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 0.5rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
  color: rgba(176, 200, 235, 0.70);
  font-family: var(--font-primary);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition:
    background-color var(--transition-fast),
    color var(--transition-fast),
    border-color var(--transition-fast);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.lang-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  color: var(--color-text);
  border-color: rgba(255, 255, 255, 0.20);
}

.lang-btn--active {
  background: var(--color-accent-dim);
  color: var(--color-accent);
  border-color: var(--color-border-accent);
}

/* ════════════════════════════════════════════════════════════
   9. FOCUS STYLES (Accessibility)
═════════════════════════════════════════════════════════════ */
:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ════════════════════════════════════════════════════════════
   10. RESPONSIVE
═════════════════════════════════════════════════════════════ */

/* ── Tablet & up ────────────────────────────────────────── */
@media (min-width: 640px) {
  .card {
    padding: 3rem 2.75rem;
  }

  .card__logo img {
    width: 200px;
  }
}

/* ── Reduced motion ─────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ── Dark mode note: page is already dark-first ─────────── */
