/* =========================================================
   SAFIRA — Landing de safira.life
   Mismas tipografías, colores y fondo que la portada de web.safira.life
   ========================================================= */

@font-face { font-family: 'Safira Display'; font-weight: 800; font-style: normal; font-display: swap; src: url('../fonts/display-800.woff2') format('woff2'); }
@font-face { font-family: 'Safira Text';    font-weight: 500; font-style: normal; font-display: swap; src: url('../fonts/text-500.woff2') format('woff2'); }
@font-face { font-family: 'Safira Text';    font-weight: 600; font-style: normal; font-display: swap; src: url('../fonts/text-600.woff2') format('woff2'); }
@font-face { font-family: 'Safira Mono';    font-weight: 500; font-style: normal; font-display: swap; src: url('../fonts/mono-500.woff2') format('woff2'); }

:root {
  --display: 'Safira Display', 'Helvetica Neue', Arial, sans-serif;
  --body:    'Safira Text', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --mono:    'Safira Mono', ui-monospace, Menlo, Consolas, monospace;
  --ink-strong: #0B3F94;
  --muted: rgba(255, 255, 255, .72);
  --line:  rgba(255, 255, 255, .28);
  --r-md: 10px;
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; height: 100%; }
body {
  min-height: 100%;
  min-height: 100dvh;
  display: flex; flex-direction: column;
  font-family: var(--body); font-size: 16px; line-height: 1.5; color: #fff;
  background:
    radial-gradient(90% 70% at 85% 5%, rgba(120, 180, 255, .30), transparent 60%),
    radial-gradient(70% 60% at 10% 100%, rgba(20, 151, 184, .22), transparent 60%),
    linear-gradient(140deg, #0B265B 0%, #1052B8 62%, #2675D4 100%);
  background-color: #0B265B;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  position: relative;
}
/* Retícula de la portada */
body::before {
  content: ''; position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 72px 72px;
  background-position: center center;
  -webkit-mask-image: radial-gradient(ellipse at center, #000 20%, transparent 75%);
  mask-image: radial-gradient(ellipse at center, #000 20%, transparent 75%);
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
img, svg { display: block; max-width: 100%; }

:where(a, button):focus-visible {
  outline: 2px solid #fff;
  outline-offset: 4px;
  border-radius: 8px;
}

/* Idioma */
.lang {
  position: absolute; z-index: 2;
  top: max(16px, env(safe-area-inset-top)); right: max(16px, env(safe-area-inset-right));
  display: inline-flex; padding: 3px;
  border: 1px solid var(--line); border-radius: 999px;
  background: rgba(255, 255, 255, .08);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.lang__btn {
  border: 0; background: transparent; cursor: pointer;
  min-width: 44px; padding: 8px 12px; border-radius: 999px;
  font-family: var(--mono); font-size: 12px; font-weight: 500; letter-spacing: .1em;
  color: var(--muted); transition: background .18s, color .18s;
}
.lang__btn[aria-pressed="true"] { background: #fff; color: var(--ink-strong); }
.lang__btn:hover:not([aria-pressed="true"]) { color: #fff; }

/* Escenario central */
.stage {
  position: relative; z-index: 1;
  flex: 1;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 48px;
  padding: 96px 16px 40px;
  text-align: center;
}

.lockup { display: flex; flex-direction: column; align-items: center; font-weight: inherit; }
.lockup__mark {
  width: 96px; height: 96px; border-radius: 23px;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, .18),
    0 24px 60px -18px rgba(3, 14, 40, .75),
    0 0 80px -10px rgba(140, 190, 255, .55);
  margin-bottom: 28px;
  animation: rise .7s cubic-bezier(.2, .7, .2, 1) both;
}
.lockup__name {
  font-family: var(--display); font-weight: 800;
  font-size: clamp(2.6rem, 9vw, 4.4rem);
  letter-spacing: .12em; line-height: 1;
  margin-right: -.12em; /* compensa el tracking para centrar ópticamente */
  color: #fff;
  animation: rise .7s .08s cubic-bezier(.2, .7, .2, 1) both;
}
.lockup__sub {
  margin-top: 16px;
  font-family: var(--mono); font-size: 12px; font-weight: 500;
  letter-spacing: .24em; text-transform: uppercase;
  color: var(--muted);
  margin-right: -.24em;
  animation: rise .7s .16s cubic-bezier(.2, .7, .2, 1) both;
}

/* Opciones */
.choices {
  display: flex; flex-direction: column; align-items: center; gap: 20px;
  width: 100%; max-width: 340px;
  animation: rise .7s .26s cubic-bezier(.2, .7, .2, 1) both;
}
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%; min-height: 54px; padding: 14px 26px;
  border: 1px solid transparent; border-radius: var(--r-md);
  font-family: var(--body); font-size: 16px; font-weight: 600; line-height: 1.2;
  transition: transform .18s, box-shadow .18s, background .18s;
}
.btn svg { width: 16px; height: 16px; flex: none; transition: transform .18s; }
.btn--light {
  background: #fff; color: var(--ink-strong);
  box-shadow: 0 16px 36px -16px rgba(3, 14, 40, .8);
}
.btn--light:hover { background: #EAF2FF; transform: translateY(-1px); }
.btn--light:hover svg { transform: translateX(3px); }

.applink {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 44px; padding: 10px 14px;
  font-size: 14px; font-weight: 500;
  color: var(--muted);
  transition: color .18s;
}
.applink svg { width: 15px; height: 15px; flex: none; }
.applink span { border-bottom: 1px solid rgba(255, 255, 255, .3); padding-bottom: 1px; transition: border-color .18s; }
.applink:hover { color: #fff; }
.applink:hover span { border-color: #fff; }

/* Pie */
.foot {
  position: relative; z-index: 1;
  padding: 20px 16px max(22px, env(safe-area-inset-bottom));
  text-align: center;
  font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase;
  color: rgba(255, 255, 255, .55);
}

@keyframes rise {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: none; }
}

@media (prefers-color-scheme: dark) {
  body {
    background:
      radial-gradient(90% 70% at 85% 5%, rgba(90, 140, 255, .22), transparent 60%),
      radial-gradient(70% 60% at 10% 100%, rgba(70, 211, 240, .12), transparent 60%),
      linear-gradient(140deg, #060F22 0%, #0B2B66 62%, #1450A8 100%);
    background-color: #060F22;
  }
}

@media (max-height: 560px) {
  .stage { gap: 28px; padding-top: 72px; }
  .lockup__mark { width: 72px; height: 72px; border-radius: 17px; margin-bottom: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
