/* Copys — sitio minimalista.
   Colores tomados del slide de la App Store: degradado azul → durazno,
   texto azul marino y un acento blanco. */

:root {
  --ink: #0d3963;
  --paper: #f2f2f2;
  --line: rgba(13, 57, 99, 0.16);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text",
    "Inter", "Segoe UI", Roboto, system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; background: #96bde4; }

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  color: var(--ink);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* El degradado vive en una capa fija: cubre siempre toda la pantalla,
   también en las páginas de texto, que son largas. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(90% 55% at 100% 100%, rgba(243, 216, 199, 0.95), transparent 70%),
    linear-gradient(170deg, #56a9f7 0%, #75b3ec 30%, #96bde4 58%, #b8c7da 80%, #d9d1cf 100%);
}

a { color: inherit; }

:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 4px;
  border-radius: 6px;
}

/* ---------- Inicio: una sola pantalla, todo al centro ---------- */

.hero {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 32px 24px calc(32px + 4vh);
  text-align: center;
  animation: entrada 0.9s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.hero h1 {
  margin: 0;
  max-width: 14em;
  font-size: clamp(2.6rem, 8.4vw, 6.6rem);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.hero h1 .linea { display: inline-block; }
.hero h1 .acento { color: #fff; }

.btn {
  display: inline-block;
  margin-top: clamp(32px, 6vh, 52px);
  padding: 16px 32px;
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink);
  font-size: 1.0625rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-decoration: none;
  box-shadow: 0 8px 28px rgba(13, 57, 99, 0.18);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 12px 32px rgba(13, 57, 99, 0.24); }
.btn:active { transform: scale(0.98); }

/* Insignia oficial de Apple, tal cual la entrega Apple: sin cambiarle
   colores, sombras ni bordes. Solo se escala, y con aire alrededor. */
.app-store-badge {
  display: inline-block;
  margin-top: clamp(32px, 6vh, 52px);
  line-height: 0;
  border-radius: 12px;
}
.app-store-badge img {
  display: block;
  width: auto;
  height: clamp(56px, 5vw, 64px);
}

.links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 28px;
  margin-top: 28px;
  font-size: 0.9375rem;
  font-weight: 500;
}
.links a {
  text-decoration: none;
  opacity: 0.85;
  transition: opacity 0.2s ease;
}
.links a:hover { opacity: 1; text-decoration: underline; text-underline-offset: 4px; }

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

/* ---------- Páginas de texto: privacidad, términos, soporte ---------- */

.doc {
  max-width: 680px;
  margin: 0 auto;
  padding: 40px 24px 64px;
  font-size: 1.0625rem;
  line-height: 1.7;
}

.doc-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 56px;
}

.back-link {
  font-size: 0.9375rem;
  font-weight: 500;
  text-decoration: none;
}
.back-link:hover { text-decoration: underline; text-underline-offset: 4px; }

.lang-switch {
  display: inline-flex;
  flex-shrink: 0;
  padding: 3px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.35);
}
.lang-switch button {
  padding: 6px 14px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 0.8125rem;
  font-weight: 600;
  cursor: pointer;
}
.lang-switch button.is-active { background: var(--paper); box-shadow: 0 1px 4px rgba(13, 57, 99, 0.15); }

.doc h1 {
  margin: 0 0 8px;
  font-size: clamp(2.2rem, 6vw, 3.2rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
}
.doc h2 {
  margin: 40px 0 8px;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.015em;
}
.doc p { margin: 0 0 16px; }
.doc ul { margin: 0 0 16px; padding-left: 1.2em; }
.doc li { margin-bottom: 6px; }
.doc .updated { margin-bottom: 32px; font-size: 0.9375rem; opacity: 0.8; }
.doc .lead { font-size: 1.1875rem; }
.doc a { text-underline-offset: 3px; }

/* Preguntas frecuentes: cada una se abre al tocarla. */
.faq { margin-top: 8px; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 0;
  font-weight: 600;
  line-height: 1.4;
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  flex-shrink: 0;
  font-size: 1.375rem;
  font-weight: 400;
  line-height: 1;
  transition: transform 0.2s ease;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details > div { padding: 0 0 12px; }

.contact-mail {
  display: inline-block;
  margin: 4px 0 8px;
  font-size: clamp(1.4rem, 4.5vw, 1.75rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  text-decoration: none;
}
.contact-mail:hover { text-decoration: underline; text-underline-offset: 5px; }

.doc-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: 0.9375rem;
  font-weight: 500;
}
.doc-nav a { text-decoration: none; opacity: 0.85; }
.doc-nav a:hover { opacity: 1; text-decoration: underline; text-underline-offset: 4px; }

.doc-foot {
  margin-top: 24px;
  font-size: 0.875rem;
  opacity: 0.8;
}

@media (prefers-reduced-motion: reduce) {
  .hero { animation: none; }
  .btn, .links a, .faq summary::after { transition: none; }
}
