/*
 * Las páginas de aterrizaje (src/site/build.ts): CSS estático, sin JavaScript,
 * para teléfono primero. Los colores son los de la app (naranja y piedra de
 * Tailwind); el build lo publica como /assets/site-<hash>.css.
 */
:root {
  --orange-50: #fff7ed;
  --orange-100: #ffedd5;
  --orange-200: #fed7aa;
  --orange-700: #c2410c;
  --orange-800: #9a3412;
  --stone-50: #fafaf9;
  --stone-200: #e7e5e4;
  --stone-600: #57534e;
  --stone-700: #44403c;
  --stone-900: #1c1917;
  --emerald-50: #ecfdf5;
  --emerald-800: #065f46;
  --radius: 1rem;
  color-scheme: light;
}

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

html {
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
}

body {
  margin: 0;
  background: var(--stone-50);
  color: var(--stone-900);
  font:
    1rem/1.6 'Inter',
    ui-sans-serif,
    system-ui,
    -apple-system,
    'Segoe UI',
    Roboto,
    sans-serif;
}

a {
  color: var(--orange-800);
}

a:focus-visible,
.btn:focus-visible {
  outline: 3px solid var(--orange-700);
  outline-offset: 2px;
}

.wrap {
  max-width: 48rem;
  margin: 0 auto;
  padding: 0 1rem;
}

.skip {
  position: absolute;
  left: -9999px;
}

.skip:focus {
  left: 1rem;
  top: 1rem;
  z-index: 10;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  background: #fff;
}

/* Cabecera */
.top {
  border-bottom: 1px solid var(--stone-200);
  background: #fff;
}

.top .wrap {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 3.5rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-right: auto;
  color: var(--stone-900);
  font-weight: 600;
  font-size: 1.125rem;
  text-decoration: none;
}

.brand b {
  color: var(--orange-700);
  font-weight: 600;
}

.top nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.875rem;
}

.top nav a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  padding: 0 0.625rem;
  border-radius: 999px;
  color: var(--stone-700);
  font-weight: 500;
  text-decoration: none;
}

.top nav a:hover {
  background: var(--stone-200);
}

.top nav .hide-sm {
  display: none;
}

/* Contenido */
main {
  padding: 1.25rem 0 3rem;
}

.crumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  margin: 0 0 1rem;
  padding: 0;
  list-style: none;
  color: var(--stone-600);
  font-size: 0.875rem;
}

.crumbs li + li::before {
  content: '›';
  margin-right: 0.25rem;
}

.crumbs a {
  color: var(--stone-600);
}

h1 {
  margin: 0 0 0.75rem;
  font-size: 1.875rem;
  line-height: 1.2;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

h2 {
  margin: 0 0 0.5rem;
  font-size: 1.25rem;
  line-height: 1.3;
}

h3 {
  margin: 1rem 0 0.25rem;
  font-size: 1rem;
}

p {
  margin: 0 0 0.75rem;
}

.lead {
  color: var(--stone-700);
  font-size: 1.0625rem;
}

section {
  margin-top: 2rem;
}

.hero {
  margin: 0 -1rem;
  padding: 1.5rem 1rem;
  background: linear-gradient(180deg, var(--orange-100), var(--stone-50));
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.75rem 1.5rem;
  border-radius: 0.875rem;
  background: var(--orange-700);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 1px 2px rgb(0 0 0 / 0.1);
}

.btn:hover {
  background: var(--orange-800);
}

.cta {
  margin: 1.25rem 0 0.5rem;
}

.cta .btn {
  width: 100%;
}

.note {
  color: var(--stone-600);
  font-size: 0.875rem;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
  font-size: 0.8125rem;
  font-weight: 500;
}

.chips li {
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--stone-200);
  color: var(--stone-700);
}

.steps {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.steps li {
  position: relative;
  margin-bottom: 0.75rem;
  padding: 0.75rem 1rem 0.75rem 3.25rem;
  border: 1px solid var(--stone-200);
  border-radius: var(--radius);
  background: #fff;
  counter-increment: step;
}

.steps li::before {
  content: counter(step);
  position: absolute;
  left: 1rem;
  top: 0.75rem;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 999px;
  background: var(--orange-700);
  color: #fff;
  font-size: 0.8125rem;
  font-weight: 700;
  line-height: 1.5rem;
  text-align: center;
}

.privacy {
  padding: 1rem;
  border-radius: var(--radius);
  background: var(--emerald-50);
  color: var(--emerald-800);
}

.privacy h2 {
  color: var(--emerald-800);
}

.privacy p:last-child,
.faq p:last-child {
  margin-bottom: 0;
}

.faq h3:first-of-type {
  margin-top: 0;
}

.links {
  display: grid;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.links a {
  display: block;
  padding: 0.75rem 1rem;
  border: 1px solid var(--stone-200);
  border-radius: var(--radius);
  background: #fff;
  color: var(--stone-900);
  font-weight: 600;
  text-decoration: none;
}

.links a:hover {
  border-color: var(--orange-200);
  background: var(--orange-50);
}

.links span {
  display: block;
  color: var(--stone-600);
  font-size: 0.875rem;
  font-weight: 400;
}

/* Pie */
.foot {
  border-top: 1px solid var(--stone-200);
  background: #fff;
  color: var(--stone-600);
  font-size: 0.875rem;
}

.foot .wrap {
  padding-top: 1.25rem;
  padding-bottom: 1.5rem;
}

.foot nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1rem;
}

.foot nav a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  color: var(--stone-700);
}

@media (min-width: 40rem) {
  h1 {
    font-size: 2.5rem;
  }

  .hero {
    margin: 0;
    padding: 2rem;
    border-radius: 1.5rem;
  }

  .cta .btn {
    width: auto;
  }

  .top nav .hide-sm {
    display: inline-flex;
  }

  .links {
    grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr));
  }
}

@media (prefers-reduced-motion: no-preference) {
  .btn,
  .links a {
    transition:
      background-color 0.15s,
      border-color 0.15s;
  }
}
