/*
 * Identidad de UDECA en web: negro, oro cálido, Sora para los títulos e Inter
 * para el texto. Los mismos valores que usa la app (lib/theme.ts), para que
 * quien llega desde la web y abre la app no note que ha cambiado de sitio.
 */
:root {
  --bg: #000000;
  --surface: #0d0d0d;
  --surface-alt: #141414;
  --border: #232323;
  --gold: #a2968b;
  --gold-bright: #c9bdb0;
  --gold-dark: #7a6f66;
  --hairline: rgba(162, 150, 139, 0.35);
  --text: #ffffff;
  --muted: #adadad;
  --faint: #6b6b6b;
  --ok: #4caf7d;
  --radius: 18px;
  --max: 1140px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

h1, h2, h3 {
  font-family: Sora, 'Helvetica Neue', Arial, sans-serif;
  letter-spacing: -0.02em;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.15;
  margin: 0;
}

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 22px; }

/* Halo cálido de fondo: la app tiene el mismo, y sin él el negro es plano. */
.halo {
  position: fixed;
  inset: -20% -20% auto -20%;
  height: 70vh;
  background: radial-gradient(60% 60% at 50% 0%, rgba(162, 150, 139, 0.16), rgba(0, 0, 0, 0) 70%);
  pointer-events: none;
  z-index: 0;
}

/* ---------- Navegación ---------- */
header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  background: rgba(0, 0, 0, 0.72);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s ease;
}
header.scrolled { border-bottom-color: var(--border); }
.nav { display: flex; align-items: center; gap: 20px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; margin-right: auto; }
.brand img { width: 34px; height: 34px; }
.brand span {
  font-family: Sora, 'Helvetica Neue', Arial, sans-serif;
  letter-spacing: -0.02em;
  font-weight: 700;
  letter-spacing: 0.22em;
  font-size: 15px;
}
.nav-links { display: none; gap: 26px; }
.nav-links a {
  font-size: 14px;
  color: var(--muted);
  transition: color 0.2s ease;
}
.nav-links a:hover { color: var(--gold-bright); }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: 999px;
  border: 1px solid var(--hairline);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-primary {
  background: linear-gradient(135deg, var(--gold-bright), var(--gold));
  color: #0a0a0a;
  border-color: transparent;
}
.btn-primary:hover { background: linear-gradient(135deg, #ddd3c8, var(--gold-bright)); }
.btn-ghost { background: rgba(255, 255, 255, 0.03); color: var(--text); }
.btn-ghost:hover { background: rgba(162, 150, 139, 0.12); }
.btn[aria-disabled='true'] {
  opacity: 0.45;
  cursor: default;
  transform: none !important;
}

/* ---------- Estructura ---------- */
section { position: relative; z-index: 1; padding: 84px 0; }
.eyebrow {
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 14px;
}
.section-title { font-size: 30px; margin-bottom: 12px; }
.lead { color: var(--muted); font-size: 17px; max-width: 62ch; }
.rule { height: 1px; background: linear-gradient(90deg, var(--hairline), transparent); margin: 0; border: 0; }

/* ---------- Portada ---------- */
.hero { padding: 64px 0 30px; }
.hero h1 { font-size: clamp(38px, 9vw, 68px); letter-spacing: 0.01em; }
.hero h1 em { font-style: normal; color: var(--gold-bright); }
.hero p.lead { margin-top: 20px; font-size: 18px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero-note { margin-top: 16px; font-size: 13px; color: var(--faint); }

.shots {
  display: flex;
  gap: 18px;
  justify-content: center;
  margin-top: 56px;
  perspective: 1400px;
}
.phone {
  width: min(230px, 42vw);
  border-radius: 30px;
  border: 1px solid var(--border);
  background: #0a0a0a;
  padding: 7px;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(162, 150, 139, 0.08);
  overflow: hidden;
}
.phone img { border-radius: 24px; }
.phone:nth-child(1) { transform: rotateY(9deg) translateZ(-40px); }
.phone:nth-child(3) { transform: rotateY(-9deg) translateZ(-40px); }
.phone:nth-child(2) { display: none; }

/* ---------- Rejillas ---------- */
.grid { display: grid; gap: 18px; margin-top: 40px; }
.card {
  background: linear-gradient(180deg, var(--surface-alt), var(--surface));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
}
.card h3 { font-size: 18px; margin-bottom: 8px; }
.card p { color: var(--muted); font-size: 15px; margin: 0; }
.card .ico {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(162, 150, 139, 0.12);
  border: 1px solid var(--hairline);
  margin-bottom: 16px;
  font-size: 19px;
}

/* ---------- Planes ---------- */
.plans { display: grid; gap: 20px; margin-top: 44px; }
.plan {
  position: relative;
  background: linear-gradient(180deg, var(--surface-alt), var(--surface));
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
}
.plan.featured { border-color: var(--hairline); box-shadow: 0 0 0 1px rgba(162, 150, 139, 0.18), 0 24px 60px rgba(0, 0, 0, 0.6); }
.plan .tag {
  position: absolute;
  top: -12px;
  left: 28px;
  background: linear-gradient(135deg, var(--gold-bright), var(--gold));
  color: #0a0a0a;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 5px 13px;
  border-radius: 999px;
}
.plan h3 { font-size: 22px; }
.plan .who { color: var(--gold); font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 18px; }
.price { display: flex; align-items: baseline; gap: 8px; margin: 6px 0 4px; }
.price b { font-family: Sora, 'Helvetica Neue', Arial, sans-serif;
  letter-spacing: -0.02em; font-size: 44px; font-weight: 700; }
.price span { color: var(--muted); font-size: 15px; }
.plan .sub { color: var(--faint); font-size: 13px; margin-bottom: 22px; }
.plan ul { list-style: none; margin: 0 0 26px; padding: 0; display: grid; gap: 11px; }
.plan li { display: flex; gap: 10px; font-size: 15px; color: var(--muted); }
.plan li::before { content: '✓'; color: var(--gold-bright); font-weight: 700; }
.plan .btn { width: 100%; margin-top: auto; }
.plan .after { margin-top: 12px; font-size: 12px; color: var(--faint); text-align: center; }

/* ---------- Descargas ---------- */
.stores { display: grid; gap: 14px; margin-top: 36px; }
.store {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 22px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surface);
  transition: border-color 0.2s ease, background 0.2s ease;
}
.store:hover { border-color: var(--hairline); background: var(--surface-alt); }
.store .logo { font-size: 26px; width: 34px; text-align: center; }
.store b { display: block; font-size: 15px; }
.store small { color: var(--faint); font-size: 13px; }
.store .state {
  margin-left: auto;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  border: 1px solid var(--hairline);
  border-radius: 999px;
  padding: 5px 12px;
  white-space: nowrap;
}
.store.ready .state { color: var(--ok); border-color: rgba(76, 175, 125, 0.45); }

/* ---------- Historia ---------- */
.story { display: grid; gap: 26px; margin-top: 36px; }
.story p { color: var(--muted); }
.quote {
  border-left: 2px solid var(--hairline);
  padding-left: 22px;
  font-family: Sora, 'Helvetica Neue', Arial, sans-serif;
  letter-spacing: -0.02em;
  font-size: 20px;
  line-height: 1.5;
  color: var(--gold-bright);
}
.people { display: grid; gap: 16px; margin-top: 30px; }
.person { display: flex; gap: 16px; align-items: center; }
.person .av {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  border: 1px solid var(--hairline);
  background: var(--surface-alt);
  display: grid;
  place-items: center;
  font-family: Sora, 'Helvetica Neue', Arial, sans-serif;
  letter-spacing: -0.02em;
  font-size: 20px;
  color: var(--gold-bright);
  flex: none;
}
.person b { display: block; font-size: 16px; }
.person small { color: var(--faint); }

/* ---------- Comunidad ---------- */
.community {
  border: 1px solid var(--hairline);
  border-radius: 24px;
  padding: 44px 32px;
  text-align: center;
  background:
    radial-gradient(70% 120% at 50% 0%, rgba(162, 150, 139, 0.14), rgba(0, 0, 0, 0)),
    var(--surface);
}
.community h2 { font-size: 27px; margin-bottom: 12px; }
.community p { color: var(--muted); max-width: 54ch; margin: 0 auto 26px; }

/* ---------- Preguntas ---------- */
details {
  border-bottom: 1px solid var(--border);
  padding: 18px 0;
}
details summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 16px;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 16px;
}
details summary::-webkit-details-marker { display: none; }
details summary::after { content: '+'; color: var(--gold); font-size: 20px; line-height: 1; }
details[open] summary::after { content: '−'; }
details p { color: var(--muted); margin: 12px 0 0; font-size: 15px; }

/* ---------- Pie ---------- */
footer { border-top: 1px solid var(--border); padding: 44px 0 60px; position: relative; z-index: 1; }
.foot { display: flex; flex-wrap: wrap; gap: 20px; align-items: center; }
.foot .brand { margin-right: auto; }
.foot-links { display: flex; flex-wrap: wrap; gap: 20px; font-size: 14px; color: var(--muted); }
.foot-links a:hover { color: var(--gold-bright); }
.legal { margin-top: 26px; color: var(--faint); font-size: 12.5px; }

/* ---------- Aparición al bajar ---------- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Pantallas grandes ---------- */
@media (min-width: 760px) {
  section { padding: 104px 0; }
  .section-title { font-size: 38px; }
  .grid { grid-template-columns: repeat(2, 1fr); gap: 22px; }
  .plans { grid-template-columns: repeat(2, 1fr); gap: 26px; }
  .stores { grid-template-columns: repeat(3, 1fr); }
  .store { flex-direction: column; align-items: flex-start; gap: 10px; }
  .store .state { margin-left: 0; }
  .phone:nth-child(2) { display: block; transform: translateZ(30px); }
  .people { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1000px) {
  .nav-links { display: flex; }
  .grid { grid-template-columns: repeat(3, 1fr); }
  .story { grid-template-columns: 1.1fr 0.9fr; align-items: start; gap: 48px; }
  .hero { padding: 96px 0 40px; }
}

/* Pasos numerados de la página de gracias: lo único que se lee ahí. */
.pasos {
  color: var(--muted);
  padding-left: 20px;
  margin: 14px 0 0;
  display: grid;
  gap: 12px;
  line-height: 1.55;
}
.pasos b { color: var(--text); }
