/* ============================================================
   Accessbot — Landing
   Brand: blue→cyan gradient on deep night-blue (from the logo)
   ============================================================ */

:root {
  /* Brand palette pulled from the logo & app UI */
  --night:      #070b16;   /* logo background */
  --night-2:    #0a1020;
  --night-3:    #0e1730;
  --ink:        #e8eefc;
  --ink-soft:   #9fb0d0;
  --ink-mute:   #6c7d9e;

  --blue:       #2a86ff;   /* app accent */
  --blue-bright:#3aa0ff;
  --cyan:       #38d6ff;   /* logo top stop */
  --blue-deep:  #0a5bff;   /* logo bottom stop */
  --green:      #28b665;   /* positive amounts in app */

  --grad:       linear-gradient(135deg, var(--cyan) 0%, var(--blue) 45%, var(--blue-deep) 100%);
  --grad-soft:  linear-gradient(135deg, rgba(56,214,255,.18), rgba(10,91,255,.18));

  --card:       rgba(255,255,255,.035);
  --card-brd:   rgba(255,255,255,.08);
  --card-brd-hi:rgba(58,160,255,.45);

  --radius:     18px;
  --radius-lg:  26px;
  --wrap:       1160px;
  --shadow:     0 24px 60px -20px rgba(0,0,0,.65);

  --font-head:  'Plus Jakarta Sans', system-ui, sans-serif;
  --font-body:  'Inter', system-ui, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--night);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

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

h1, h2, h3 { font-family: var(--font-head); font-weight: 800; line-height: 1.1; letter-spacing: -.02em; }

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

.eyebrow {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: .78rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--cyan);
  padding: 6px 14px;
  border: 1px solid rgba(56,214,255,.3);
  border-radius: 999px;
  background: rgba(56,214,255,.06);
}
.eyebrow--center { margin: 0 auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: .95rem;
  border-radius: 999px;
  padding: 12px 24px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform .18s ease, box-shadow .25s ease, background .2s ease, border-color .2s;
  white-space: nowrap;
}
.btn--primary {
  background: var(--grad);
  color: #fff;
  box-shadow: 0 10px 28px -8px rgba(42,134,255,.6);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 16px 36px -10px rgba(42,134,255,.8); }
.btn--ghost {
  background: rgba(255,255,255,.04);
  border-color: var(--card-brd);
  color: var(--ink);
}
.btn--ghost:hover { border-color: var(--card-brd-hi); transform: translateY(-2px); }
.btn--lg { padding: 15px 30px; font-size: 1.02rem; }
.btn--sm { padding: 9px 18px; font-size: .85rem; }
.btn--block { width: 100%; }

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  background: rgba(7,11,22,.55);
  border-bottom: 1px solid transparent;
  transition: background .3s, border-color .3s;
}
.nav.scrolled { background: rgba(7,11,22,.85); border-bottom-color: var(--card-brd); }
.nav__inner { display: flex; align-items: center; gap: 24px; height: 70px; }

.brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-head); }
.brand__mark { width: 34px; height: 34px; border-radius: 9px; }
.brand__name { font-weight: 800; font-size: 1.18rem; letter-spacing: -.02em; }

.nav__links { display: flex; gap: 28px; margin-left: auto; }
.nav__links a { font-size: .92rem; color: var(--ink-soft); font-weight: 500; transition: color .2s; }
.nav__links a:hover { color: var(--ink); }
.nav .btn { margin-left: 4px; }

.nav__toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 6px; }
.nav__toggle span { width: 24px; height: 2px; background: var(--ink); border-radius: 2px; transition: .25s; }

.nav__mobile { display: none; flex-direction: column; gap: 4px; padding: 8px 24px 20px; border-bottom: 1px solid var(--card-brd); background: rgba(7,11,22,.95); }
.nav__mobile a { padding: 12px 6px; color: var(--ink-soft); font-weight: 500; border-bottom: 1px solid rgba(255,255,255,.04); }
.nav__mobile .btn { margin-top: 10px; }
.nav__mobile.open { display: flex; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 70px 0 90px; overflow: hidden; }
.hero__glow {
  position: absolute; top: -250px; left: 50%; transform: translateX(-50%);
  width: 900px; height: 700px;
  background: radial-gradient(ellipse at center, rgba(42,134,255,.32), rgba(56,214,255,.12) 40%, transparent 70%);
  filter: blur(20px); pointer-events: none;
}
.hero__grid-bg {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(120,160,255,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(120,160,255,.05) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, #000 30%, transparent 75%);
  pointer-events: none;
}
.hero__inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 40px;
  align-items: center;
}
.hero__copy { max-width: 580px; }
.hero__title { font-size: clamp(2.6rem, 6vw, 4.3rem); margin: 22px 0 20px; }
.hero__lead { font-size: 1.12rem; color: var(--ink-soft); max-width: 520px; }
.hero__cta { display: flex; gap: 14px; margin: 32px 0 40px; flex-wrap: wrap; }

.hero__stats { display: flex; gap: 36px; list-style: none; flex-wrap: wrap; }
.hero__stats li { display: flex; flex-direction: column; }
.hero__stats strong { font-family: var(--font-head); font-size: 1.6rem; font-weight: 800; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero__stats span { font-size: .82rem; color: var(--ink-mute); }

/* Phone mockups */
.hero__device { position: relative; display: flex; justify-content: center; align-items: center; min-height: 560px; }
.phone {
  position: relative;
  border-radius: 42px;
  background: #05080f;
  border: 9px solid #1b2438;
  box-shadow: var(--shadow);
  overflow: hidden;
  width: 280px;
}
.phone img { width: 100%; display: block; }
.phone--hero {
  z-index: 2;
  transform: rotate(-3deg);
}
.phone--hero .phone__notch {
  position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 110px; height: 26px; background: #05080f; border-radius: 0 0 16px 16px; z-index: 3;
}
.phone--behind {
  position: absolute;
  right: -6%;
  top: 8%;
  width: 240px;
  transform: rotate(7deg) scale(.92);
  z-index: 1;
  opacity: .92;
}

/* ---------- Sections ---------- */
.section { padding: 96px 0; position: relative; }
.section__head { max-width: 720px; margin: 0 auto 56px; text-align: center; display: flex; flex-direction: column; gap: 18px; align-items: center; }
.section__title { font-size: clamp(1.9rem, 4vw, 2.8rem); }
.section__sub { color: var(--ink-soft); font-size: 1.08rem; }

/* ---------- Card grids ---------- */
.cards { display: grid; gap: 20px; }
.cards--4 { grid-template-columns: repeat(4, 1fr); }
.cards--3 { grid-template-columns: repeat(3, 1fr); }

.pcard, .fcard {
  background: var(--card);
  border: 1px solid var(--card-brd);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: transform .25s ease, border-color .25s ease, background .25s;
}
.pcard:hover, .fcard:hover { transform: translateY(-4px); border-color: var(--card-brd-hi); background: rgba(42,134,255,.05); }
.pcard__ico, .fcard__ico {
  font-size: 1.6rem;
  width: 52px; height: 52px;
  display: grid; place-items: center;
  border-radius: 14px;
  background: var(--grad-soft);
  border: 1px solid rgba(56,214,255,.2);
  margin-bottom: 18px;
}
.pcard h3, .fcard h3 { font-size: 1.18rem; margin-bottom: 8px; }
.pcard p, .fcard p { color: var(--ink-soft); font-size: .95rem; }

.problem { background: var(--night-2); }

/* ---------- How it works ---------- */
.flow { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: step; }
.flow__step {
  position: relative;
  background: var(--card);
  border: 1px solid var(--card-brd);
  border-radius: var(--radius);
  padding: 30px 24px;
}
.flow__step::after {
  content: "→";
  position: absolute; right: -16px; top: 50%; transform: translateY(-50%);
  color: var(--blue); font-size: 1.4rem; font-weight: 700; z-index: 2;
}
.flow__step:last-child::after { display: none; }
.flow__num {
  display: grid; place-items: center;
  width: 44px; height: 44px;
  border-radius: 12px;
  background: var(--grad);
  font-family: var(--font-head); font-weight: 800; font-size: 1.2rem; color: #fff;
  margin-bottom: 16px;
  box-shadow: 0 8px 20px -6px rgba(42,134,255,.6);
}
.flow__step h3 { font-size: 1.15rem; margin-bottom: 6px; }
.flow__step p { color: var(--ink-soft); font-size: .92rem; }

/* ---------- App gallery ---------- */
.app { background: var(--night-2); }
.gallery {
  display: flex;
  gap: 22px;
  overflow-x: auto;
  padding: 8px 4px 28px;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  scrollbar-color: var(--blue) transparent;
}
.gallery::-webkit-scrollbar { height: 8px; }
.gallery::-webkit-scrollbar-thumb { background: var(--blue); border-radius: 99px; }
.gallery::-webkit-scrollbar-track { background: rgba(255,255,255,.05); border-radius: 99px; }
.shot {
  flex: 0 0 auto;
  width: 230px;
  scroll-snap-align: center;
  text-align: center;
  cursor: zoom-in;
}
.shot img {
  width: 100%;
  border-radius: 26px;
  border: 7px solid #1b2438;
  background: #05080f;
  box-shadow: var(--shadow);
  transition: transform .25s ease;
}
.shot:hover img { transform: translateY(-6px); }
.shot figcaption { margin-top: 14px; font-family: var(--font-head); font-weight: 600; font-size: .92rem; color: var(--ink-soft); }

/* ---------- Use cases ---------- */
.uc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.uc {
  background: var(--card);
  border: 1px solid var(--card-brd);
  border-radius: var(--radius);
  padding: 26px 24px;
  transition: transform .25s, border-color .25s;
}
.uc:hover { transform: translateY(-4px); border-color: var(--card-brd-hi); }
.uc h3 { font-size: 1.15rem; margin-bottom: 8px; }
.uc p { color: var(--ink-soft); font-size: .94rem; }
.uc--feature {
  grid-row: span 2;
  background: var(--grad-soft);
  border-color: rgba(56,214,255,.3);
  display: flex; flex-direction: column; justify-content: center;
}
.uc--feature h3 { font-size: 1.5rem; margin: 14px 0 12px; }
.uc--feature p { color: var(--ink); font-size: 1rem; }
.uc__tag {
  align-self: flex-start;
  font-family: var(--font-head); font-weight: 700; font-size: .72rem;
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--night); background: var(--cyan);
  padding: 4px 12px; border-radius: 999px;
}

/* ---------- Benefits ---------- */
.benefits { background: var(--night-2); }
.benefits__inner { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.bcol {
  background: var(--card);
  border: 1px solid var(--card-brd);
  border-radius: var(--radius);
  padding: 30px 28px;
}
.bcol h3 { font-size: 1.25rem; margin-bottom: 18px; padding-bottom: 14px; border-bottom: 1px solid var(--card-brd); }
.bcol ul { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.bcol li { position: relative; padding-left: 28px; color: var(--ink-soft); font-size: .96rem; }
.bcol li::before {
  content: "✓";
  position: absolute; left: 0; top: 0;
  color: var(--green); font-weight: 800;
  background: rgba(40,182,101,.12);
  width: 20px; height: 20px; border-radius: 6px;
  display: grid; place-items: center; font-size: .72rem;
}

/* ---------- CTA ---------- */
.cta__inner {
  position: relative;
  text-align: center;
  background: linear-gradient(160deg, var(--night-3), var(--night-2));
  border: 1px solid var(--card-brd-hi);
  border-radius: var(--radius-lg);
  padding: 70px 30px;
  overflow: hidden;
}
.cta__glow {
  position: absolute; inset: 0;
  background: radial-gradient(circle at 50% 0%, rgba(42,134,255,.25), transparent 60%);
  pointer-events: none;
}
.cta__icon { width: 76px; height: 76px; border-radius: 20px; margin: 0 auto 22px; position: relative; box-shadow: var(--shadow); }
.cta h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); position: relative; }
.cta p { color: var(--ink-soft); font-size: 1.1rem; margin: 14px 0 30px; position: relative; }

.store-badges { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; position: relative; }
.store {
  display: inline-flex; align-items: center; gap: 12px;
  background: #fff; color: #05080f;
  border-radius: 14px; padding: 12px 22px;
  transition: transform .2s, box-shadow .25s;
}
.store:hover { transform: translateY(-3px); box-shadow: 0 14px 30px -10px rgba(0,0,0,.6); }
.store svg { width: 26px; height: 26px; fill: #05080f; }
.store span { display: flex; flex-direction: column; line-height: 1.15; text-align: left; }
.store small { font-size: .68rem; opacity: .7; }
.store strong { font-family: var(--font-head); font-weight: 800; font-size: 1.05rem; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--card-brd); padding: 56px 0 40px; background: var(--night); }
.footer__inner { display: flex; flex-direction: column; align-items: center; gap: 16px; text-align: center; }
.footer__tag { color: var(--ink-mute); font-size: .95rem; }
.footer__links { display: flex; gap: 24px; flex-wrap: wrap; justify-content: center; }
.footer__links a { color: var(--ink-soft); font-size: .9rem; transition: color .2s; }
.footer__links a:hover { color: var(--cyan); }
.footer__copy { color: var(--ink-mute); font-size: .82rem; margin-top: 8px; }

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(3,6,12,.92);
  display: none; align-items: center; justify-content: center;
  padding: 40px; backdrop-filter: blur(6px);
}
.lightbox.open { display: flex; }
.lightbox img { max-height: 88vh; width: auto; border-radius: 30px; border: 8px solid #1b2438; box-shadow: var(--shadow); }
.lightbox__close {
  position: absolute; top: 24px; right: 30px;
  background: none; border: 0; color: #fff; font-size: 2.6rem; cursor: pointer; line-height: 1;
}

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 980px) {
  .nav__links { display: none; }
  .nav .btn--sm { display: none; }
  .nav__toggle { display: flex; margin-left: auto; }

  .hero__inner { grid-template-columns: 1fr; gap: 10px; }
  .hero__copy { max-width: 100%; }
  .hero__device { min-height: 480px; margin-top: 20px; }

  .cards--4 { grid-template-columns: repeat(2, 1fr); }
  .cards--3 { grid-template-columns: repeat(2, 1fr); }
  .flow { grid-template-columns: repeat(2, 1fr); }
  .flow__step:nth-child(2)::after { display: none; }
  .uc-grid { grid-template-columns: repeat(2, 1fr); }
  .uc--feature { grid-row: auto; grid-column: span 2; }
  .benefits__inner { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .section { padding: 70px 0; }
  .cards--4, .cards--3, .flow, .uc-grid { grid-template-columns: 1fr; }
  .uc--feature { grid-column: auto; }
  .flow__step::after { display: none; }
  .hero__stats { gap: 22px; }
  .phone--behind { display: none; }
  .phone--hero { transform: rotate(0); }
  .store-badges { flex-direction: column; align-items: center; }
}

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ============================================================
   Legal pages (Aviso de privacidad / términos)
   ============================================================ */
.legal {
  position: relative;
  padding: 60px 0 90px;
  overflow: hidden;
}
.legal__bg {
  position: absolute; top: -200px; left: 50%; transform: translateX(-50%);
  width: 820px; height: 560px;
  background: radial-gradient(ellipse at center, rgba(42,134,255,.20), rgba(56,214,255,.07) 45%, transparent 70%);
  filter: blur(20px); pointer-events: none;
}
.legal__wrap { position: relative; max-width: 860px; }
.legal__head { margin-bottom: 40px; }
.legal__title { font-size: clamp(2rem, 4.5vw, 3rem); margin: 18px 0 14px; }
.legal__meta {
  display: flex; flex-wrap: wrap; gap: 10px 22px;
  font-size: .88rem; color: var(--ink-mute);
  padding-top: 16px; border-top: 1px solid var(--card-brd);
}
.legal__meta strong { color: var(--ink-soft); font-weight: 600; }

.legal__body { font-size: 1.02rem; color: var(--ink-soft); }
.legal__body > p { margin-bottom: 18px; }
.legal__body h2 {
  font-family: var(--font-head); font-size: 1.4rem; color: var(--ink);
  margin: 44px 0 16px; padding-top: 26px; border-top: 1px solid var(--card-brd);
}
.legal__body h3 {
  font-family: var(--font-head); font-size: 1.08rem; color: var(--ink);
  margin: 26px 0 10px;
}
.legal__body ul, .legal__body ol { margin: 0 0 18px 1.2em; }
.legal__body li { margin-bottom: 8px; }
.legal__body a { color: var(--blue-bright); text-decoration: underline; text-underline-offset: 3px; }
.legal__body a:hover { color: var(--cyan); }
.legal__body strong { color: var(--ink); font-weight: 600; }

.legal__card {
  background: var(--card); border: 1px solid var(--card-brd);
  border-radius: var(--radius); padding: 22px 24px; margin: 8px 0 24px;
}
.legal__card p { margin: 0 0 6px; }
.legal__card p:last-child { margin-bottom: 0; }

.legal__toplink { margin-bottom: 8px; }
.legal__toplink a { color: var(--ink-mute); font-size: .9rem; }
.legal__toplink a:hover { color: var(--ink); }

/* Modo embebido para WebView (?embed=1): solo el contenido del aviso */
.embed .nav,
.embed .footer,
.embed .legal__toplink { display: none !important; }
.embed .legal { padding-top: 28px; }
.embed .legal__bg { display: none; }

/* ============================================================
   Contact form
   ============================================================ */
.contact__inner {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 48px;
  align-items: start;
}
.contact__copy { max-width: 460px; padding-top: 8px; }
.contact__copy .section__title { text-align: left; margin: 18px 0 0; }
.contact__copy .section__sub { text-align: left; margin-left: 0; }
.contact__meta { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.contact__meta li { display: flex; align-items: center; gap: 10px; color: var(--ink-soft); }
.contact__meta a { color: var(--blue-bright); }
.contact__meta a:hover { color: var(--cyan); }

.cform {
  background: var(--card);
  border: 1px solid var(--card-brd);
  border-radius: var(--radius-lg);
  padding: 30px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  box-shadow: var(--shadow);
}
.cform__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.cform__field { display: flex; flex-direction: column; gap: 7px; }
.cform__field > span {
  font-family: var(--font-head); font-weight: 600;
  font-size: .85rem; color: var(--ink-soft);
}
.cform input, .cform textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: .98rem;
  color: var(--ink);
  background: rgba(255,255,255,.04);
  border: 1px solid var(--card-brd);
  border-radius: 12px;
  padding: 12px 14px;
  transition: border-color .2s, box-shadow .2s;
}
.cform textarea { resize: vertical; min-height: 120px; }
.cform input::placeholder, .cform textarea::placeholder { color: var(--ink-mute); }
.cform input:focus, .cform textarea:focus {
  outline: none;
  border-color: var(--card-brd-hi);
  box-shadow: 0 0 0 3px rgba(58,160,255,.18);
}
.cform .btn { margin-top: 4px; align-self: flex-start; }
.cform__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.cform__status { font-size: .92rem; margin: 0; min-height: 1.2em; }
.cform__status.is-ok { color: var(--green); }
.cform__status.is-error { color: #ff6b6b; }

@media (max-width: 860px) {
  .contact__inner { grid-template-columns: 1fr; gap: 28px; }
  .contact__copy { max-width: 100%; }
}
@media (max-width: 560px) {
  .cform__row { grid-template-columns: 1fr; }
  .cform { padding: 22px; }
  .cform .btn { align-self: stretch; width: 100%; }
}
