/* ==========================================================================
   Nexora - sitio estatico (landing + legales)
   Tokens espejados de lib/core/theme/app_tokens.dart
   ========================================================================== */

:root {
  /* Marca */
  --ink: #141F29;
  --muted: #75879C;
  --teal: #089C99;
  --teal-end: #26C2B8;
  --blue: #4073E5;
  --orange: #F77A33;
  --purple: #7D5ED6;
  --pink: #E34A5E;
  --green: #1FAB7A;
  --amber: #D98E00;
  --pale-blue: #F0F7FF;
  --pale-teal: #E8F7F7;

  /* Superficies */
  --surface: #FFFFFF;
  --border: #E3EDF2;
  --bg: #F6FAFC;
  --text: var(--ink);
  --text-muted: var(--muted);

  /* Efectos */
  --shadow-card: 0 8px 20px rgba(13, 36, 51, 0.11);
  --shadow-lift: 0 18px 38px rgba(13, 36, 51, 0.16);
  --shadow-cta: 0 10px 24px rgba(8, 156, 153, 0.28);
  --glass: rgba(255, 255, 255, 0.72);
  --glass-border: rgba(227, 237, 242, 0.9);

  /* Radios (app_tokens.dart: AppRadii) */
  --r-chip: 14px;
  --r-cta: 17px;
  --r-card: 18px;
  --r-hero: 22px;
  --r-pill: 999px;

  --gradient: linear-gradient(90deg, var(--teal) 0%, var(--teal-end) 100%);
  --maxw: 1180px;
  --gutter: 16px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ink: #EAF2F7;
    --muted: #93A7BA;
    --pale-blue: #17293B;
    --pale-teal: #102E31;
    --surface: #132130;
    --border: #23384C;
    --bg: #0B1521;
    --shadow-card: 0 8px 20px rgba(0, 0, 0, 0.42);
    --shadow-lift: 0 18px 38px rgba(0, 0, 0, 0.5);
    --shadow-cta: 0 10px 24px rgba(8, 156, 153, 0.34);
    --glass: rgba(15, 28, 41, 0.74);
    --glass-border: rgba(35, 56, 76, 0.9);
  }
}

/* --------------------------------------------------------------- base --- */

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: 88px;
}

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

img, svg { max-width: 100%; display: block; }
a { color: var(--teal); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 {
  margin: 0;
  line-height: 1.16;
  letter-spacing: -0.02em;
  font-weight: 700;
}

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

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

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  background: var(--surface);
  color: var(--text);
  padding: 12px 18px;
  border-radius: 0 0 var(--r-chip) 0;
}
.skip-link:focus { left: 0; }

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ---------------------------------------------------------- tipografia --- */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--teal);
  background: var(--pale-teal);
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  padding: 7px 14px;
}

.grad-text {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lead {
  font-size: 18px;
  color: var(--text-muted);
  margin: 16px 0 0;
  max-width: 58ch;
}

.section {
  padding: 84px 0;
  position: relative;
}

.section-head { max-width: 680px; margin-bottom: 44px; }
.section-head h2 { font-size: clamp(28px, 4.4vw, 42px); margin-top: 14px; }
.section-head p { margin: 14px 0 0; color: var(--text-muted); font-size: 17px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head.center .lead { margin-left: auto; margin-right: auto; }

/* ------------------------------------------------------------ botones --- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 24px;
  border-radius: var(--r-cta);
  border: 1px solid transparent;
  font: inherit;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
  white-space: nowrap;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn svg { width: 18px; height: 18px; flex: none; }

.btn-primary {
  background: var(--gradient);
  color: #fff;
  box-shadow: var(--shadow-cta);
}
.btn-primary:hover { box-shadow: 0 14px 30px rgba(8, 156, 153, 0.36); }

.btn-ghost {
  background: var(--surface);
  color: var(--text);
  border-color: var(--border);
  box-shadow: var(--shadow-card);
}

.btn-lg { padding: 18px 30px; font-size: 16px; }

.btn-android {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 13px 28px 13px 22px;
  border-radius: var(--r-cta);
  background: var(--ink);
  color: #fff;
  box-shadow: 0 10px 24px rgba(13, 36, 51, 0.24);
  transition: transform 0.18s ease;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .btn-android {
    background: #0A1420;
    border: 1px solid var(--border);
    color: #fff;
  }
}
.btn-android:hover { transform: translateY(-2px); text-decoration: none; }
.btn-android .ba-icon { width: 26px; height: 26px; flex: none; }
.btn-android .ba-text { display: flex; flex-direction: column; line-height: 1.22; text-align: left; }
.btn-android .ba-small { font-size: 11px; opacity: 0.74; letter-spacing: 0.07em; text-transform: uppercase; }
.btn-android .ba-big { font-size: 17px; font-weight: 700; letter-spacing: -0.01em; }

/* ------------------------------------------------------------- navbar --- */

.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--glass);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.nav.is-scrolled {
  border-bottom-color: var(--glass-border);
  box-shadow: 0 4px 18px rgba(13, 36, 51, 0.07);
}

.nav-inner {
  position: relative;
  display: flex;
  align-items: center;
  gap: 16px;
  height: 76px;
  transition: height 0.25s ease;
}
.nav.is-scrolled .nav-inner { height: 62px; }

.nav-menu { display: flex; align-items: center; gap: 6px; }

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 700;
  font-size: 21px;
  letter-spacing: -0.03em;
  margin-right: auto;
}
.brand:hover { text-decoration: none; }
.brand .mark { width: 32px; height: 32px; flex: none; }
.mark .ring { stroke: var(--ink); }
.mark .dot { fill: var(--teal); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  display: block;
  padding: 9px 14px;
  border-radius: var(--r-chip);
  color: var(--text-muted);
  font-size: 15px;
  font-weight: 500;
  transition: color 0.16s ease, background 0.16s ease;
}
.nav-links a:hover { color: var(--text); background: var(--pale-teal); text-decoration: none; }

.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  align-items: center;
  justify-content: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-chip);
  cursor: pointer;
  color: var(--text);
}
.nav-toggle span {
  position: relative;
  display: block;
  width: 18px; height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.22s ease, opacity 0.22s ease;
}
.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 18px; height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.22s ease, opacity 0.22s ease;
}
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }
.nav-toggle[aria-expanded="true"] span { transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::before { transform: translateY(6px) rotate(-90deg); }
.nav-toggle[aria-expanded="true"] span::after { opacity: 0; }

@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; }
  .nav-menu {
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 8px);
    flex-direction: column;
    align-items: stretch;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-card);
    box-shadow: var(--shadow-lift);
    padding: 12px;
    display: none;
  }
  .nav-menu.is-open { display: flex; }
  .nav-links { flex-direction: column; align-items: stretch; gap: 2px; }
  .nav-links a { padding: 13px 14px; font-size: 16px; }
  .nav-menu .btn { width: 100%; margin-top: 8px; }
}

/* --------------------------------------------------------------- hero --- */

.hero {
  position: relative;
  padding: 64px 0 92px;
  overflow: hidden;
}

.blobs {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  filter: blur(64px);
  opacity: 0.5;
}
.blob {
  position: absolute;
  border-radius: 50%;
  will-change: transform;
  animation: blobFloat 22s ease-in-out infinite;
}
.blob.b1 { width: 440px; height: 440px; left: -4%; top: -6%; background: radial-gradient(circle at 34% 32%, #26C2B8, transparent 68%); }
.blob.b2 { width: 400px; height: 400px; right: 2%; top: -10%; background: radial-gradient(circle at 60% 40%, #4073E5, transparent 68%); animation-delay: -7s; }
.blob.b3 { width: 380px; height: 380px; left: 38%; top: 44%; background: radial-gradient(circle at 50% 50%, #7D5ED6, transparent 70%); animation-delay: -13s; }
.blob.b4 { width: 300px; height: 300px; right: 20%; bottom: -8%; background: radial-gradient(circle at 50% 50%, #F77A33, transparent 70%); animation-delay: -4s; }

@keyframes blobFloat {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  33%      { transform: translate3d(34px, -28px, 0) scale(1.09); }
  66%      { transform: translate3d(-26px, 22px, 0) scale(0.95); }
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 48px;
  align-items: center;
}

.hero h1 {
  font-size: clamp(36px, 6vw, 64px);
  margin-top: 20px;
  letter-spacing: -0.035em;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 32px;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
  color: var(--text-muted);
  font-size: 14px;
}
.hero-meta li { display: flex; align-items: center; gap: 8px; }
.hero-meta svg { width: 17px; height: 17px; color: var(--teal); flex: none; }

/* ------------------------------------------------------ phone mockups --- */

.hero-stage {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 560px;
}

.phone {
  position: relative;
  width: 300px;
  flex: none;
  border-radius: 42px;
  padding: 10px;
  background: linear-gradient(160deg, #26333F 0%, #0E1720 55%, #26333F 100%);
  box-shadow: 0 30px 70px rgba(13, 36, 51, 0.32);
}
.phone::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 20px;
  width: 78px; height: 6px;
  transform: translateX(-50%);
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.24);
  z-index: 2;
}
.phone-screen {
  position: relative;
  border-radius: 33px;
  overflow: hidden;
  background: #F6FAFC;
  aspect-ratio: 390 / 824;
}
.phone-screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.phone-main {
  z-index: 2;
  animation: floatMain 7s ease-in-out infinite;
}
.phone-side {
  position: absolute;
  right: 0;
  top: 56px;
  width: 208px;
  z-index: 1;
  border-radius: 34px;
  padding: 8px;
  animation: floatSide 9s ease-in-out -2.5s infinite;
}
.phone-side .phone-screen { border-radius: 27px; }
.phone-side::after { width: 54px; height: 5px; top: 16px; }

@keyframes floatMain {
  0%, 100% { transform: translateY(0) rotate(-1.5deg); }
  50%      { transform: translateY(-14px) rotate(-1.5deg); }
}
@keyframes floatSide {
  0%, 100% { transform: translateY(0) rotate(6deg); }
  50%      { transform: translateY(-18px) rotate(6deg); }
}

.parallax { transition: transform 0.4s cubic-bezier(0.2, 0.7, 0.3, 1); }

/* fichas flotantes */
.float-card {
  position: absolute;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 15px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-chip);
  box-shadow: var(--shadow-card);
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
}
.float-card .fc-ico {
  display: grid;
  place-items: center;
  width: 30px; height: 30px;
  border-radius: 10px;
  flex: none;
}
.float-card .fc-ico svg { width: 17px; height: 17px; }
.float-card small { display: block; font-size: 11px; font-weight: 500; color: var(--text-muted); }

.fc-1 { left: 0; top: 78px; animation: floatY 6s ease-in-out infinite; }
.fc-2 { left: -10px; bottom: 126px; animation: floatY 8s ease-in-out -3s infinite; }
.fc-3 { right: 6px; bottom: 54px; animation: floatY 7.4s ease-in-out -1.4s infinite; }

@keyframes floatY {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-12px); }
}

/* ---------------------------------------------------------- funciones --- */

.grid-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(278px, 1fr));
  gap: 20px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-card);
  box-shadow: var(--shadow-card);
  padding: 26px;
}

.feature {
  position: relative;
  overflow: hidden;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}
.feature::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: var(--gradient);
  opacity: 0;
  transition: opacity 0.22s ease;
}
.feature:hover { transform: translateY(-6px); box-shadow: var(--shadow-lift); }
.feature:hover::before { opacity: 1; }

.feature .f-ico {
  display: grid;
  place-items: center;
  width: 48px; height: 48px;
  border-radius: var(--r-chip);
  margin-bottom: 18px;
}
.feature .f-ico svg { width: 24px; height: 24px; }
.feature h3 { font-size: 19px; margin-bottom: 8px; }
.feature p { margin: 0; color: var(--text-muted); font-size: 15px; }

.tone-teal   { background: var(--pale-teal); color: var(--teal); }
.tone-blue   { background: var(--pale-blue); color: var(--blue); }
.tone-purple { background: #F2EEFC; color: var(--purple); }
.tone-orange { background: #FFF1E8; color: var(--orange); }
.tone-green  { background: #E7F7F1; color: var(--green); }
.tone-pink   { background: #FDECEE; color: var(--pink); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .tone-purple { background: #241C3C; }
  :root:not([data-theme="light"]) .tone-orange { background: #33210F; }
  :root:not([data-theme="light"]) .tone-green  { background: #0F2C24; }
  :root:not([data-theme="light"]) .tone-pink   { background: #351A20; }
}

/* ------------------------------------------------------ como funciona --- */

.steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}
.steps::before {
  content: "";
  position: absolute;
  left: 9%;
  right: 9%;
  top: 30px;
  height: 2px;
  background: linear-gradient(90deg, var(--teal), var(--teal-end), var(--blue));
  opacity: 0.3;
}
.step { position: relative; }
.step .s-num {
  display: grid;
  place-items: center;
  width: 60px; height: 60px;
  border-radius: var(--r-pill);
  background: var(--gradient);
  color: #fff;
  font-size: 22px;
  font-weight: 700;
  box-shadow: var(--shadow-cta);
  margin-bottom: 22px;
}
.step h3 { font-size: 20px; margin-bottom: 10px; }
.step p { margin: 0; color: var(--text-muted); }

/* ---------------------------------------------------------- carrusel --- */

.gallery { position: relative; }

.gallery-track {
  display: flex;
  gap: 26px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 10px 0 30px;
  scrollbar-width: none;
  cursor: grab;
}
.gallery-track::-webkit-scrollbar { display: none; }
.gallery-track.is-dragging { cursor: grabbing; scroll-snap-type: none; }

.slide {
  flex: none;
  width: 266px;
  margin: 0;
  scroll-snap-align: center;
  text-align: center;
}
.slide .phone { width: 100%; animation: none; }
.slide figcaption {
  margin-top: 18px;
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
}
.slide figcaption small {
  display: block;
  font-weight: 500;
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 3px;
}
.gallery-track img { pointer-events: none; user-select: none; -webkit-user-drag: none; }

.gallery-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin-top: 6px;
}
.g-arrow {
  display: grid;
  place-items: center;
  width: 46px; height: 46px;
  border-radius: var(--r-pill);
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
  color: var(--text);
  cursor: pointer;
  transition: transform 0.18s ease, color 0.18s ease;
}
.g-arrow:hover { transform: translateY(-2px); color: var(--teal); }
.g-arrow svg { width: 20px; height: 20px; }

.g-dots { display: flex; gap: 8px; }
.g-dots button {
  width: 9px; height: 9px;
  padding: 0;
  border: 0;
  border-radius: var(--r-pill);
  background: var(--border);
  cursor: pointer;
  transition: width 0.22s ease, background 0.22s ease;
}
.g-dots button[aria-current="true"] { width: 26px; background: var(--teal); }

/* --------------------------------------------------------- privacidad --- */

.privacy-band {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 44px;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-hero);
  box-shadow: var(--shadow-card);
  padding: 44px;
  overflow: hidden;
}
.privacy-band::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: var(--gradient);
}

.promise-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.promise-list li {
  display: flex;
  gap: 13px;
  align-items: flex-start;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--r-chip);
  padding: 14px 16px;
}
.promise-list .p-ico {
  display: grid;
  place-items: center;
  width: 26px; height: 26px;
  flex: none;
  border-radius: 8px;
  background: var(--pale-teal);
  color: var(--teal);
  margin-top: 2px;
}
.promise-list .p-ico svg { width: 15px; height: 15px; }
.promise-list strong { display: block; font-weight: 600; font-size: 15px; }
.promise-list .p-txt { color: var(--text-muted); font-size: 14px; }

/* ---------------------------------------------------------- descarga --- */

.download-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-hero);
  padding: 56px 44px;
  text-align: center;
  color: #fff;
  background: linear-gradient(120deg, #06898F 0%, #089C99 44%, #26C2B8 100%);
  box-shadow: 0 24px 60px rgba(8, 156, 153, 0.3);
}
.download-card::before,
.download-card::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  pointer-events: none;
}
.download-card::before { width: 320px; height: 320px; top: -140px; left: -90px; }
.download-card::after { width: 260px; height: 260px; bottom: -130px; right: -70px; }

.download-card h2 { position: relative; font-size: clamp(27px, 4.2vw, 40px); }
.download-card p { position: relative; margin: 16px auto 0; max-width: 54ch; opacity: 0.94; }
.download-card .dl-actions {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
  margin-top: 32px;
}
.download-card .btn-ghost {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.4);
  box-shadow: none;
}

.dl-meta {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 12px;
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
  font-size: 13px;
}
.dl-meta li {
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: var(--r-pill);
  padding: 6px 14px;
}
.dl-meta li[hidden] { display: none; }

.dl-note {
  position: relative;
  margin: 22px auto 0;
  font-size: 13px;
  opacity: 0.86;
  max-width: 64ch;
}

.dl-help { max-width: 760px; margin: 36px auto 0; }

/* --------------------------------------------------------- acordeones --- */

.accordion { display: grid; gap: 12px; }
.accordion.narrow { max-width: 820px; margin: 0 auto; }

.acc-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-card);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}
.acc-btn {
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
  padding: 19px 22px;
  background: none;
  border: 0;
  font: inherit;
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  text-align: left;
  cursor: pointer;
}
.acc-btn .acc-sign {
  margin-left: auto;
  width: 26px; height: 26px;
  flex: none;
  border-radius: var(--r-pill);
  background: var(--pale-teal);
  color: var(--teal);
  display: grid;
  place-items: center;
  transition: transform 0.25s ease;
}
.acc-btn .acc-sign svg { width: 14px; height: 14px; }
.acc-btn[aria-expanded="true"] .acc-sign { transform: rotate(180deg); }

.acc-panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.3s ease;
}
.acc-panel.is-open { grid-template-rows: 1fr; }
.acc-panel > div { overflow: hidden; }
.acc-panel p, .acc-panel ol, .acc-panel ul {
  margin: 0 22px 20px;
  color: var(--text-muted);
  font-size: 15px;
}
.acc-panel ol, .acc-panel ul { padding-left: 20px; }
.acc-panel li { margin-bottom: 7px; }

/* ------------------------------------------------------------- footer --- */

.footer {
  border-top: 1px solid var(--border);
  background: var(--surface);
  padding: 56px 0 30px;
}
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 1fr));
  gap: 36px;
}
.footer .brand { margin-right: 0; }
.footer-about { margin: 16px 0 0; color: var(--text-muted); font-size: 15px; max-width: 42ch; }
.footer h4 {
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 14px;
}
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer ul a { color: var(--text); font-size: 15px; }
.footer ul a:hover { color: var(--teal); }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  justify-content: space-between;
  align-items: center;
  margin-top: 44px;
  padding-top: 22px;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 14px;
}

/* ----------------------------------------------------- paginas legales --- */

.legal-hero {
  position: relative;
  padding: 52px 0 34px;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}
.legal-hero h1 { font-size: clamp(29px, 5vw, 46px); margin-top: 16px; }
.legal-hero .updated {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  font-size: 14px;
  color: var(--text-muted);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  padding: 7px 15px;
}
.legal-hero .updated svg { width: 16px; height: 16px; color: var(--teal); }

.legal-layout {
  display: grid;
  grid-template-columns: 250px minmax(0, 760px);
  gap: 56px;
  justify-content: center;
  padding: 48px 0 80px;
  align-items: start;
}

.toc {
  position: sticky;
  top: 96px;
  max-height: calc(100vh - 130px);
  overflow-y: auto;
  font-size: 14px;
}
.toc h2 {
  font-size: 12px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 12px;
}
.toc ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.toc a {
  display: block;
  padding: 7px 12px;
  border-left: 2px solid var(--border);
  color: var(--text-muted);
  line-height: 1.4;
}
.toc a:hover { color: var(--text); text-decoration: none; background: var(--pale-teal); }
.toc a.is-active {
  color: var(--teal);
  border-left-color: var(--teal);
  font-weight: 600;
  background: var(--pale-teal);
}

.article { min-width: 0; font-size: 16.5px; }
.article h2 {
  font-size: 25px;
  margin: 48px 0 14px;
  scroll-margin-top: 96px;
  letter-spacing: -0.025em;
}
.article > h2:first-child { margin-top: 0; }
.article h3 { font-size: 18px; margin: 28px 0 10px; }
.article p { margin: 0 0 16px; }
.article ul, .article ol { margin: 0 0 18px; padding-left: 22px; }
.article li { margin-bottom: 9px; }
.article strong { font-weight: 600; }
.article a { text-decoration: underline; text-underline-offset: 2px; overflow-wrap: break-word; }

.callout {
  background: var(--pale-teal);
  border: 1px solid var(--border);
  border-left: 4px solid var(--teal);
  border-radius: var(--r-chip);
  padding: 18px 20px;
  margin: 0 0 20px;
}
.callout p:last-child { margin-bottom: 0; }
.callout.info { background: var(--pale-blue); border-left-color: var(--blue); }

.table-wrap { overflow-x: auto; margin: 0 0 20px; }
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
  min-width: 460px;
}
th, td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--border); vertical-align: top; }
th { font-weight: 600; background: var(--bg); font-size: 13.5px; }

.legal-contact {
  margin-top: 44px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-card);
  box-shadow: var(--shadow-card);
  padding: 24px 26px;
}
.legal-contact h2 { margin-top: 0; font-size: 20px; }
.legal-contact p:last-child { margin-bottom: 0; }

/* ----------------------------------------------------- scroll reveal --- */

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.6s cubic-bezier(0.2, 0.7, 0.3, 1), transform 0.6s cubic-bezier(0.2, 0.7, 0.3, 1);
}
.reveal.is-in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: 0.08s; }
.reveal.d2 { transition-delay: 0.16s; }
.reveal.d3 { transition-delay: 0.24s; }
.reveal.d4 { transition-delay: 0.32s; }
.reveal.d5 { transition-delay: 0.4s; }

/* -------------------------------------------------------- responsive --- */

@media (max-width: 1040px) {
  .hero-grid { grid-template-columns: 1fr; gap: 52px; }
  .hero-copy { max-width: 680px; }
  .privacy-band { grid-template-columns: 1fr; gap: 28px; padding: 34px; }
  .legal-layout { grid-template-columns: minmax(0, 760px); gap: 0; }
  .toc { display: none; }
}

@media (max-width: 760px) {
  .section { padding: 64px 0; }
  .steps { grid-template-columns: 1fr; gap: 28px; }
  .steps::before { display: none; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .download-card { padding: 40px 22px; }
}

@media (max-width: 540px) {
  body { font-size: 15.5px; }
  .hero { padding: 36px 0 68px; }
  .hero-stage { min-height: 470px; }
  .phone { width: 248px; border-radius: 36px; padding: 8px; }
  .phone-screen { border-radius: 28px; }
  .phone-side { display: none; }
  .float-card { font-size: 12px; padding: 9px 12px; }
  .fc-1 { left: 0; top: 42px; }
  .fc-2 { left: 0; bottom: 92px; }
  .fc-3 { right: 0; bottom: 30px; }
  .card { padding: 22px; }
  .privacy-band { padding: 22px; }
  .slide { width: 224px; }
  .hero-actions .btn, .dl-actions .btn, .dl-actions .btn-android { width: 100%; }
  .btn-android { justify-content: center; }
  .legal-layout { padding: 32px 0 64px; }
  .article { font-size: 16px; }
  .article h2 { font-size: 22px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  .parallax { transform: none !important; }
}
