/* El sitio: cabecera, portada, descarga, contacto, pie y diálogo de ingreso. */

/* ── Cabecera ────────────────────────────────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 20; height: var(--header-h);
  display: flex; align-items: center; gap: 12px; padding: 0 32px;
  background: var(--head-bg); border-bottom: 1px solid var(--head-border);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  transition: background-color .7s, border-color .7s;
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; }
.brand__logo { width: 44px; height: 44px; object-fit: contain; }
.brand__name { font-family: var(--font-display); font-weight: 800; font-size: 22px; letter-spacing: -0.015em; }
.brand--footer .brand__logo { width: 34px; height: 34px; }
.brand--footer .brand__name { font-size: 17px; }

.site-nav { display: flex; align-items: center; gap: 4px; }
.site-nav a {
  display: flex; align-items: center; min-height: 44px; padding: 0 14px; border-radius: 999px;
  font-size: 15px; font-weight: 600; text-decoration: none;
}
.header-link { display: flex; align-items: center; min-height: 44px; padding: 0 12px; color: var(--muted); font-size: 14px; font-weight: 600; text-decoration: none; }

.session-slot { display: flex; min-width: 44px; }
.account-chip {
  display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 16px 0 6px;
  border-radius: 999px; border: 1.5px solid var(--border); background: var(--surface);
  font-size: 15px; font-weight: 700; text-decoration: none;
}
.account-chip--block { width: 100%; justify-content: center; }
.avatar {
  display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px;
  border-radius: 50%; background: var(--pink-soft); color: var(--tag-text); font-weight: 800;
}
.btn--google { padding-left: 12px; font-size: 15px; }
.google-chip { display: flex; width: 22px; height: 22px; align-items: center; justify-content: center; border-radius: 50%; background: #ffffff; }
.google-mark .g-a { fill: var(--g-a); }
.google-mark .g-b { fill: var(--g-b); }
.google-mark .g-c { fill: var(--g-c); }
.google-mark .g-d { fill: var(--g-d); }
.google-chip .google-mark .g-d { fill: #3a2720; }   /* sobre el círculo blanco, siempre oscuro */

.menu-toggle { color: var(--text); }
.site-menu {
  position: sticky; top: var(--header-h); z-index: 19; display: flex; flex-direction: column;
  padding: 8px 16px 16px; background: var(--surface); border-bottom: 1px solid var(--divider);
  box-shadow: var(--shadow-soft); animation: enter .3s var(--ease-out) both;
}
.site-menu a { display: flex; align-items: center; min-height: 48px; padding: 0 8px; font-size: 16px; font-weight: 600; text-decoration: none; }
.site-menu__rule { height: 1px; margin: 8px 0 12px; background: var(--divider); }

@media (min-width: 860px) {
  .menu-toggle, .site-menu { display: none !important; }
}
@media (max-width: 859px) {
  .site-header { padding: 0 16px; }
  .site-nav, .site-header .session-slot { display: none; }
}

/* ── Portada (sobre el recorrido) ───────────────────────────────────────────── */
.home-stage { position: relative; min-height: calc(100vh - var(--header-h)); scroll-margin-top: var(--header-h); }
.hero {
  position: absolute; inset: 0; z-index: 3; display: flex; align-items: center; justify-content: center;
  padding: 24px 32px; pointer-events: none;
  transition: opacity .55s ease, transform .8s var(--ease-out);
}
.hero.is-gone { opacity: 0; transform: translateY(-40px); }
.hero__content {
  max-width: 860px; display: flex; flex-direction: column; align-items: center; gap: 22px;
  text-align: center; pointer-events: auto;
}
.hero.is-gone .hero__content { pointer-events: none; }
.hero__title {
  font-family: var(--font-display); font-weight: 800; font-size: clamp(40px, 6vw, 68px);
  line-height: 1.02; letter-spacing: -0.03em; text-wrap: balance;
}
.hero__lead { max-width: 600px; font-size: clamp(17px, 1.6vw, 19px); line-height: 1.5; color: var(--muted); }
.hero__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 4px; }
.hero__in { animation: enter .8s var(--ease-out) both; }
.hero__in:nth-child(2) { animation-delay: .08s; }
.hero__in:nth-child(3) { animation-delay: .16s; }
.hero__in:nth-child(4) { animation-delay: .24s; }
@media (max-width: 859px) { .hero { padding: 24px 16px; } }

/* ── Descarga ───────────────────────────────────────────────────────────────── */
.steps { list-style: none; margin: 36px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.step { display: flex; flex-direction: column; gap: 10px; padding: 22px; border-radius: 20px; background: var(--bg); border: 1px solid var(--border); }
.step__number {
  display: flex; width: 40px; height: 40px; align-items: center; justify-content: center; border-radius: 12px;
  background: var(--ink); color: var(--ink-text); font-family: var(--font-display); font-weight: 800; font-size: 19px;
}
.step__title { margin-top: 4px; font-size: 18px; font-weight: 700; }
.step p { font-size: 15px; }
.link-action {
  align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; min-height: 44px;
  color: var(--accent-text); font-size: 15px; font-weight: 700; text-decoration: none;
}

.platform-groups { display: flex; flex-wrap: wrap; margin-top: 16px; row-gap: 24px; }
.platform-group { flex: 1 1 340px; min-width: 0; }
.platform-group + .platform-group { padding-left: 28px; border-left: 1px solid var(--divider); }
.platform-group:first-child { padding-right: 28px; }
@media (max-width: 859px) {
  .platform-group + .platform-group { padding-left: 0; border-left: none; }
  .platform-group:first-child { padding-right: 0; }
}
.platform-group__head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.platform-group__title { font-family: var(--font-display); font-size: 20px; font-weight: 800; }
.platform-list { list-style: none; margin: 14px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.platform {
  display: flex; flex-direction: column; gap: 2px; height: 100%; padding: 14px 16px; border-radius: 16px;
  border: 1.5px solid var(--border); background: var(--bg); text-decoration: none;
  transition: transform .15s ease, border-color .3s;
}
a.platform:hover { border-color: var(--pink); transform: translateY(-2px); opacity: 1; }
.platform.is-soon { border-style: dashed; background: transparent; }
.platform__name { font-size: 15px; font-weight: 700; }
.platform__state { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--accent-text); }
.platform.is-soon .platform__state { color: var(--muted); }
.cta-row { margin-top: 36px; }

/* ── Contacto ───────────────────────────────────────────────────────────────── */
.contact { display: flex; flex-wrap: wrap; gap: 32px 48px; align-items: flex-start; }
.contact__intro { flex: 1 1 320px; min-width: 0; }
.contact__intro .section-title { margin-top: 0; }
.contact__form { position: relative; flex: 1 1 380px; min-width: 0; display: flex; flex-direction: column; gap: 10px; padding: 22px; border-radius: 20px; }
.contact__form .btn { align-self: flex-start; }
.contact-done { display: flex; flex-direction: column; gap: 10px; }
.contact-done__icon {
  display: inline-flex; flex: none; width: 44px; height: 44px; align-items: center; justify-content: center;
  border-radius: 50%; background: var(--pink); color: #ffffff;
}
.contact-done__title { font-size: 17px; }

/* ── Pie ────────────────────────────────────────────────────────────────────── */
.site-footer { border-top: 1px solid var(--divider); background: var(--surface); transition: background-color .7s; }
.site-footer__inner { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; padding-block: 28px; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 4px 20px; font-size: 14px; }
.footer-nav a { display: flex; align-items: center; min-height: 44px; color: var(--muted); text-decoration: none; }

/* ── Diálogo de ingreso ─────────────────────────────────────────────────────── */
.login-dialog { width: min(420px, calc(100vw - 32px)); padding: 0; border: none; border-radius: 28px; background: transparent; color: var(--text); }
.login-dialog::backdrop { background: var(--veil); }
.login-dialog[open] { animation: enter .4s var(--ease-out) both; }
.login-dialog__card {
  position: relative; display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center;
  padding: 36px 28px 28px; border-radius: 28px; background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow);
}
.login-dialog__close { position: absolute; top: 12px; right: 12px; border: none; background: transparent; color: var(--muted); }
.login-dialog__title { margin-top: 4px; font-family: var(--font-display); font-weight: 800; font-size: 28px; letter-spacing: -0.02em; }
.btn--google-wide {
  width: 100%; min-height: 52px; margin-top: 10px; gap: 12px; border-color: var(--border);
  background: #ffffff; color: #1f1f1f; font-size: 16px; font-weight: 600;
}
.btn--google-wide .google-mark .g-d { fill: #3a2720; }
