@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/inter-latin-wght-normal.woff2") format("woff2");
}

:root {
  --bg: #ffffff;
  --bg-alt: #f5f5f7;
  --text: #1d1d1f;
  --text-2: #6e6e73;
  --text-3: #86868b;
  --line: #d2d2d7;
  --blue: #0071e3;
  --blue-hover: #0077ed;
  --ease: cubic-bezier(0.28, 0.11, 0.32, 1);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { -webkit-text-size-adjust: 100%; }

body {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.47;
  letter-spacing: -0.022em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Idioma: sin JS se muestra español */
[data-l="en"] { display: none; }
html[data-lang="en"] [data-l="es"] { display: none; }
html[data-lang="en"] [data-l="en"] { display: inline; }

/* Barra superior */
.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  height: 44px;
  background: rgba(255, 255, 255, 0.8);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.nav-inner {
  max-width: 1024px;
  height: 100%;
  margin: 0 auto;
  padding: 0 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text);
}

.nav-brand img { width: 22px; height: 22px; }

.lang {
  display: flex;
  align-items: center;
  font-size: 12px;
  letter-spacing: 0;
}

.lang button {
  padding: 6px 8px;
  border: 0;
  background: none;
  font: inherit;
  color: var(--text-3);
  cursor: pointer;
  transition: color 0.2s;
}

.lang button:hover { color: var(--text); }
.lang button[aria-pressed="true"] { color: var(--text); font-weight: 600; }

.lang-sep {
  width: 1px;
  height: 12px;
  background: var(--line);
}

/* Portada */
.hero {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: clamp(40px, 9vh, 72px) 22px clamp(48px, 11vh, 88px);
}

.hero-icon {
  width: 104px;
  height: 104px;
  margin-bottom: 28px;
  filter: drop-shadow(0 14px 28px rgba(40, 70, 160, 0.22));
}

.hero-title {
  font-size: clamp(34px, 6.4vw, 64px);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.015em;
  color: var(--text);
  text-wrap: balance;
}

.hero-status {
  margin-top: 6px;
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 200;
  line-height: 1.1;
  letter-spacing: -0.035em;
  color: var(--text);
}

.hero-sub {
  max-width: 640px;
  margin-top: 18px;
  font-size: clamp(19px, 2.4vw, 28px);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: 0.004em;
  color: var(--text-2);
}

.hero-cta {
  margin-top: 40px;
  display: inline-block;
  padding: 12px 24px;
  border-radius: 980px;
  background: var(--blue);
  color: #fff;
  font-size: 17px;
  font-weight: 400;
  line-height: 1.18;
  text-decoration: none;
  transition: background-color 0.2s;
}

.hero-cta:hover { background: var(--blue-hover); }

.hero-cta:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
}

.hero-mail {
  margin-top: 16px;
  font-size: 14px;
  letter-spacing: -0.01em;
  color: var(--text-3);
}

/* Aparición */
.hero > * {
  opacity: 0;
  transform: translateY(14px);
  animation: rise 0.9s var(--ease) forwards;
}

.hero > :nth-child(2) { animation-delay: 0.08s; }
.hero > :nth-child(3) { animation-delay: 0.16s; }
.hero > :nth-child(4) { animation-delay: 0.24s; }
.hero > :nth-child(5) { animation-delay: 0.36s; }
.hero > :nth-child(6) { animation-delay: 0.42s; }

@keyframes rise {
  to { opacity: 1; transform: none; }
}

/* Pie */
.footer {
  background: var(--bg-alt);
  font-size: 12px;
  line-height: 1.33;
  letter-spacing: -0.01em;
  color: var(--text-2);
}

.footer-inner {
  max-width: 1024px;
  margin: 0 auto;
  padding: 18px 22px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 6px 24px;
}

/* Móvil */
@media (max-width: 734px) {
  .nav-inner, .footer-inner { padding-left: 16px; padding-right: 16px; }
  .hero { padding: 56px 16px 64px; }
  .hero-icon { width: 84px; height: 84px; margin-bottom: 22px; }
  .hero-cta { margin-top: 32px; }
  .footer-inner { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  .hero > * { opacity: 1; transform: none; animation: none; }
  .lang button, .hero-cta { transition: none; }
}
