/* ============================================================================
   TuLigaPro — landing page
   ----------------------------------------------------------------------------
   Standalone static site. It ships no build step and no dependencies, so the
   design tokens below are a hand-mirror of `apps/frontend/src/globals.css`.
   When a token changes there, change it here too — they are the same design
   system, not two.
   ========================================================================== */

:root {
  /* Brand scale — mirrors globals.css */
  --brand: #1a6e3c;
  --brand-50: #f2faf5;
  --brand-100: #e6f5ed;
  --brand-200: #c2e5d1;
  --brand-300: #8fcfae;
  --brand-400: #4fae7c;
  --brand-600: #166233;
  --brand-700: #145a30;
  --brand-800: #0e4322;

  /* Surfaces and text */
  --background: #f9fafb;
  --surface: #ffffff;
  --surface-2: #f1f2f4;
  --foreground: #0f1115;
  --text-secondary: #4a4f58;
  --text-tertiary: #6b7280;
  --border: #e5e7eb;
  --border-subtle: #f1f2f4;
  --ink-400: #9ca3af;

  /* Typography */
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', Menlo, monospace;
  --text-xs: 11px;
  --text-sm: 12px;
  --text-md: 14px;
  --text-base: 15px;
  --text-lg: 17px;
  --text-xl: 20px;
  --text-2xl: 24px;
  --text-3xl: 30px;
  --text-4xl: 36px;
  /*
   * Landing-only extension of the DS type scale. The app tops out at 36px
   * because no in-app screen needs a display size; a marketing hero does.
   */
  --text-5xl: 44px;
  --text-6xl: 56px;

  /* Radius */
  --radius-xs: 4px;
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-2xl: 24px;
  --radius-pill: 999px;

  /* Elevation */
  --elev-1: 0 1px 2px rgba(15, 17, 21, 0.05);
  --elev-2: 0 1px 3px rgba(15, 17, 21, 0.08), 0 1px 2px rgba(15, 17, 21, 0.04);
  --elev-3: 0 4px 12px rgba(15, 17, 21, 0.08), 0 1px 3px rgba(15, 17, 21, 0.04);
  --elev-4: 0 10px 24px rgba(15, 17, 21, 0.1), 0 2px 6px rgba(15, 17, 21, 0.06);
  --elev-5: 0 24px 60px rgba(15, 17, 21, 0.14), 0 6px 16px rgba(15, 17, 21, 0.07);

  /* Motion */
  --duration-fast: 180ms;
  --duration-base: 240ms;
  --ease-standard: cubic-bezier(0.2, 0, 0, 1);

  --shadow-focus: 0 0 0 3px rgba(26, 110, 60, 0.18);

  /* Layout */
  --header-h: 64px;
  --container: 1120px;
}

/* ── Base ─────────────────────────────────────────────────────────────────── */

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--text-base);
  line-height: 1.55;
  color: var(--foreground);
  background: var(--background);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1,
h2,
h3,
p,
ul,
ol,
figure {
  margin: 0;
}

ul,
ol {
  padding: 0;
  list-style: none;
}

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

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

:focus-visible {
  outline: none;
  box-shadow: var(--shadow-focus);
  border-radius: var(--radius-sm);
}

/* Skip link — visible only once focused. */
.skip-link {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: var(--radius-md);
  background: var(--brand);
  color: #fff;
  font-size: var(--text-md);
  font-weight: 600;
  transition: top var(--duration-fast) var(--ease-standard);
}
.skip-link:focus-visible {
  top: 12px;
}

/* ── Layout primitives ────────────────────────────────────────────────────── */

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

.section,
#main {
  scroll-margin-top: var(--header-h);
}

.section {
  padding: 72px 0;
}

.section--tight {
  padding: 56px 0;
}

.section-head {
  max-width: 620px;
  margin-bottom: 40px;
}

.section-head--center {
  margin-inline: auto;
  text-align: center;
}

.eyebrow {
  display: block;
  margin-bottom: 12px;
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand);
}

.eyebrow--muted {
  color: var(--text-tertiary);
}

.h2 {
  font-size: var(--text-3xl);
  font-weight: 800;
  letter-spacing: -0.015em;
  line-height: 1.15;
}

.h3 {
  font-size: var(--text-lg);
  font-weight: 700;
  letter-spacing: -0.01em;
}

.lead {
  margin-top: 14px;
  font-size: var(--text-lg);
  line-height: 1.6;
  color: var(--text-secondary);
}

.muted {
  color: var(--text-tertiary);
}

.accent {
  color: var(--brand);
}

/* ── Brand lockup ─────────────────────────────────────────────────────────── */

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.logo-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  flex-shrink: 0;
}

.logo-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.logo-word {
  font-size: var(--text-lg);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1;
}

/* On brand-coloured surfaces the lockup inverts. */
.logo--onbrand .logo-mark {
  background: rgba(255, 255, 255, 0.16);
}
.logo--onbrand .logo-word {
  color: #fff;
}
.logo--onbrand .logo-word span {
  color: var(--brand-200);
}
.logo-word span {
  color: var(--brand);
}

/* ── Buttons ──────────────────────────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 44px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  font-family: inherit;
  font-size: var(--text-md);
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  transition:
    background var(--duration-fast) var(--ease-standard),
    border-color var(--duration-fast) var(--ease-standard),
    box-shadow var(--duration-fast) var(--ease-standard),
    transform var(--duration-fast) var(--ease-standard);
}

.btn svg {
  width: 16px;
  height: 16px;
}

.btn--primary {
  background: var(--brand);
  color: #fff;
  box-shadow: var(--elev-2);
}
.btn--primary:hover {
  background: var(--brand-600);
  box-shadow: var(--elev-3);
}

.btn--outline {
  background: var(--surface);
  color: var(--foreground);
  border-color: var(--border);
  box-shadow: var(--elev-1);
}
.btn--outline:hover {
  background: var(--surface-2);
  border-color: var(--ink-400);
}

.btn--ghost {
  background: transparent;
  color: var(--text-secondary);
}
.btn--ghost:hover {
  background: var(--surface-2);
  color: var(--foreground);
}

.btn--onbrand {
  background: #fff;
  color: var(--brand-800);
  box-shadow: var(--elev-3);
}
.btn--onbrand:hover {
  background: var(--brand-50);
}

.btn--onbrand-ghost {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.3);
}
.btn--onbrand-ghost:hover {
  background: rgba(255, 255, 255, 0.12);
}

.btn--sm {
  height: 40px;
  padding: 0 14px;
  font-size: var(--text-md);
}

/*
 * On a phone the header CTA is the only button on screen, so it goes back to
 * the full 44px the DS asks for ("targets grandes (44px+)", principio 1).
 */
@media (max-width: 767px) {
  .header-actions .btn {
    height: 44px;
  }
  /* No nav down here, so both actions share the row with the logo: the ghost
     one drops its side padding and reads as a link to make them fit. */
  .header-actions .btn--ghost {
    padding-inline: 0;
  }
  /* Stacked, the centred row leaves every check on a different left edge. */
  .hero-proof {
    flex-direction: column;
    align-items: flex-start;
    width: fit-content;
    margin-inline: auto;
  }
}

/* ── Header ───────────────────────────────────────────────────────────────── */

.header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  background: rgba(249, 250, 251, 0.85);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--duration-base) var(--ease-standard);
}

/* The rule only appears once the page has scrolled — set from JS. */
.header.is-stuck {
  border-bottom-color: var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 20px;
  height: 100%;
}

.header-nav {
  display: none;
  gap: 4px;
  margin-left: 12px;
}

.header-nav a {
  padding: 8px 12px;
  border-radius: var(--radius-md);
  font-size: var(--text-md);
  font-weight: 500;
  color: var(--text-secondary);
  transition:
    color var(--duration-fast) var(--ease-standard),
    background var(--duration-fast) var(--ease-standard);
}
.header-nav a:hover {
  color: var(--foreground);
  background: var(--surface-2);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

/* ── Hero ─────────────────────────────────────────────────────────────────── */

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

/* Soft brand wash behind the hero — the same move the DS uses on its stages. */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(
      ellipse 70% 60% at 50% -10%,
      rgba(26, 110, 60, 0.09) 0%,
      transparent 70%
    ),
    linear-gradient(180deg, var(--brand-50) 0%, var(--background) 62%);
}

.hero > * {
  position: relative;
}

.hero-copy {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}

.hero h1 {
  font-size: clamp(34px, 5.6vw, var(--text-6xl));
  font-weight: 800;
  letter-spacing: -0.018em;
  line-height: 1.04;
}

.hero-sub {
  max-width: 580px;
  margin: 18px auto 0;
  font-size: var(--text-lg);
  line-height: 1.6;
  color: var(--text-secondary);
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 28px;
}

.hero-proof {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 22px;
  margin-top: 26px;
}

.hero-proof li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: var(--text-md);
  color: var(--text-secondary);
}

.check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  border-radius: var(--radius-pill);
  background: var(--brand-100);
  color: var(--brand);
}
.check svg {
  width: 11px;
  height: 11px;
}

/* ── Product mockup ───────────────────────────────────────────────────────── */

.mock-stage {
  margin-top: 52px;
  padding-bottom: 72px;
}

.mock {
  max-width: 980px;
  margin: 0 auto;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  background: var(--surface);
  box-shadow: var(--elev-5);
  overflow: hidden;
}

.mock-chrome {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  background: var(--surface-2);
  border-bottom: 1px solid var(--border);
}

.mock-lights {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
}
.mock-lights span {
  width: 10px;
  height: 10px;
  border-radius: var(--radius-pill);
  background: var(--border);
}

.mock-url {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 7px;
  height: 26px;
  padding: 0 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  background: var(--surface);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--text-tertiary);
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.mock-url svg {
  width: 11px;
  height: 11px;
  flex-shrink: 0;
}

/*
 * The hero shot is a real screenshot of the panel. The intrinsic width/height
 * on the <img> keep the slot reserved before it decodes, so the hero never
 * shifts under the reader.
 */
.mock-shot {
  display: block;
  width: 100%;
  height: auto;
  border-top: 1px solid var(--border);
}

/* ── Steps ────────────────────────────────────────────────────────────────── */

.steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  counter-reset: step;
}

.step {
  position: relative;
  padding-top: 22px;
  border-top: 2px solid var(--border);
  counter-increment: step;
}

.step::before {
  content: counter(step, decimal-leading-zero);
  display: block;
  margin-bottom: 12px;
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--brand);
}

.step p {
  margin-top: 8px;
  font-size: var(--text-md);
  line-height: 1.6;
  color: var(--text-secondary);
}

/* ── Features ─────────────────────────────────────────────────────────────── */

.features {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.feature {
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--elev-1);
  transition:
    border-color var(--duration-base) var(--ease-standard),
    box-shadow var(--duration-base) var(--ease-standard),
    transform var(--duration-base) var(--ease-standard);
}
.feature:hover {
  border-color: var(--brand-300);
  box-shadow: var(--elev-3);
  transform: translateY(-2px);
}

.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin-bottom: 16px;
  border: 1px solid rgba(26, 110, 60, 0.2);
  border-radius: var(--radius-md);
  background: var(--brand-100);
  color: var(--brand);
}
.feature-icon svg {
  width: 19px;
  height: 19px;
}

.feature p {
  margin-top: 7px;
  font-size: var(--text-md);
  line-height: 1.6;
  color: var(--text-secondary);
}

/* ── Vitrina (public showcase) ────────────────────────────────────────────── */

.showcase {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.showcase-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: center;
}

.showcase-list {
  display: grid;
  gap: 14px;
  margin-top: 26px;
}
.showcase-list li {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  font-size: var(--text-md);
  color: var(--text-secondary);
}
.showcase-list .check {
  margin-top: 2px;
}
.showcase-list strong {
  color: var(--foreground);
  font-weight: 600;
}

/* ── Capturas de la app ───────────────────────────────────────────────────── */

.gallery {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-top: 32px;
}

.shot {
  margin: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--elev-3);
  overflow: hidden;
}

.shot img {
  display: block;
  width: 100%;
  height: auto;
}

.shot figcaption {
  padding: 12px 16px;
  border-top: 1px solid var(--border-subtle);
  font-size: var(--text-md);
  line-height: 1.5;
  color: var(--text-secondary);
}

/*
 * Las tres capturas de la galería vienen con proporciones distintas, así que
 * se recortan a una sola forma. `top left` mantiene a la vista lo que las hace
 * reconocibles —la barra lateral y el encabezado— en vez de centrar el recorte.
 */
.gallery .shot img {
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: top left;
}

.shot--framed {
  box-shadow: var(--elev-4);
}

.palette {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
}
.palette li:not(.palette-note) {
  width: 22px;
  height: 22px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(15, 17, 21, 0.1);
}
.palette-note {
  margin-left: 4px;
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-tertiary);
}

/* ── Closing CTA ──────────────────────────────────────────────────────────── */

.cta {
  position: relative;
  overflow: hidden;
  margin: 0;
  padding: 72px 0;
  background: linear-gradient(
    160deg,
    var(--brand-700) 0%,
    var(--brand) 55%,
    var(--brand-400) 100%
  );
  color: #fff;
}

/* Dot-grid texture — the same one the auth brand panel uses. */
.cta::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.5;
  background-image: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.1) 1px,
    transparent 1px
  );
  background-size: 20px 20px;
}

.cta > * {
  position: relative;
}

.cta-inner {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
}

.cta h2 {
  font-size: clamp(28px, 4.2vw, var(--text-5xl));
  font-weight: 800;
  letter-spacing: -0.018em;
  line-height: 1.1;
}

.cta p {
  margin-top: 14px;
  font-size: var(--text-lg);
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.85);
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 28px;
}

/* ── Footer ───────────────────────────────────────────────────────────────── */

.footer {
  padding: 48px 0 40px;
  background: var(--surface);
  border-top: 1px solid var(--border);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}

.footer-about p {
  max-width: 300px;
  margin-top: 14px;
  font-size: var(--text-md);
  line-height: 1.6;
  color: var(--text-tertiary);
}

/* El contacto va debajo de la bajada, con el peso de un link y no de un párrafo. */
.footer-contact {
  max-width: 300px;
  margin-top: 14px;
  font-size: var(--text-md);
  line-height: 1.6;
  color: var(--text-tertiary);
}
.footer-contact a {
  color: var(--brand);
  font-weight: 500;
}
.footer-contact a:hover {
  color: var(--brand);
}

.footer-col h3 {
  margin-bottom: 12px;
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-tertiary);
}

.footer-col li + li {
  margin-top: 2px;
}

/* Padded to a ~34px target — a bare 15px line is too small to tap reliably. */
.footer-col a {
  display: inline-block;
  padding: 6px 0;
  font-size: var(--text-md);
  color: var(--text-secondary);
  transition: color var(--duration-fast) var(--ease-standard);
}
.footer-col a:hover {
  color: var(--brand);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  align-items: center;
  justify-content: space-between;
  margin-top: 36px;
  padding-top: 20px;
  border-top: 1px solid var(--border-subtle);
  font-size: var(--text-sm);
  color: var(--text-tertiary);
}

/* ── Scroll reveal ────────────────────────────────────────────────────────── */

/*
 * The hidden state is scoped to `.js-reveal`, a class JS puts on <html>. With
 * JS off — or with the observer unsupported — nothing ever hides.
 */
.js-reveal .reveal {
  opacity: 0;
  transform: translateY(14px);
  transition:
    opacity 620ms var(--ease-standard),
    transform 620ms var(--ease-standard);
}
.js-reveal .reveal.is-in {
  opacity: 1;
  transform: none;
}

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

/* ── Responsive ───────────────────────────────────────────────────────────── */

/* 480px is the TLP mobile breakpoint (see globals.css). */
/* ── Importación ───────────────────────────────────────────────────────────── */

.section--tint {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.import-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: start;
}

.import-note {
  margin-top: 16px;
  font-size: var(--text-sm);
  color: var(--text-tertiary);
}

.import-note code {
  padding: 2px 6px;
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  font-family: var(--font-mono);
  font-size: 0.92em;
}

/* ── Roles ─────────────────────────────────────────────────────────────────── */

.role {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: center;
  padding: 40px 0;
  border-top: 1px solid var(--border);
}
.role:first-of-type {
  border-top: 0;
}

.role-tag {
  display: inline-flex;
  align-items: center;
  height: 24px;
  padding: 0 10px;
  border-radius: var(--radius-pill);
  background: var(--brand-50);
  color: var(--brand-700);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.role-copy .h3 {
  margin-top: 14px;
  font-size: var(--text-2xl);
  letter-spacing: -0.015em;
}

.role-copy p {
  margin-top: 12px;
  font-size: var(--text-md);
  line-height: 1.6;
  color: var(--text-secondary);
}

.role-list {
  display: grid;
  gap: 9px;
  margin-top: 18px;
}
.role-list li {
  position: relative;
  padding-left: 18px;
  font-size: var(--text-md);
  line-height: 1.55;
  color: var(--text-secondary);
}
.role-list strong {
  color: var(--foreground);
  font-weight: 600;
}
.role-list code {
  padding: 1px 5px;
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  font-family: var(--font-mono);
  font-size: 0.92em;
}
/* Un guión en vez de un bullet: la lista es una enumeración, no un checklist. */
.role-list li::before {
  content: '';
  position: absolute;
  top: 0.72em;
  left: 0;
  width: 8px;
  height: 1.5px;
  background: var(--brand-300);
}

/*
 * La captura es un teléfono: se limita por ancho, no por columna, para que en
 * pantallas anchas no quede una imagen de 500px de alto estirada al lado del
 * texto.
 */
.role-shot {
  max-width: 300px;
  margin: 0 auto;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: var(--elev-3);
  overflow: hidden;
}
.role-shot img {
  display: block;
  width: 100%;
  height: auto;
}
.role-shot figcaption {
  padding: 12px 16px;
  border-top: 1px solid var(--border);
  font-size: var(--text-sm);
  color: var(--text-tertiary);
}

.role-mini {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin-top: 44px;
  padding-top: 36px;
  border-top: 1px solid var(--border);
}
.role-mini p {
  margin-top: 10px;
  font-size: var(--text-md);
  line-height: 1.55;
  color: var(--text-secondary);
}

/* ── 404 ───────────────────────────────────────────────────────────────────── */

/*
 * Centrada en el viewport y sin header ni footer: en un 404 lo único que
 * importa es volver, y una nav completa invita a seguir perdiéndose.
 */
.notfound {
  display: flex;
  align-items: center;
  min-height: 100dvh;
  padding: 48px 0;
  background: linear-gradient(180deg, var(--brand-50) 0%, var(--background) 60%);
}

.notfound .container {
  max-width: 560px;
  text-align: center;
}

.notfound .logo {
  justify-content: center;
  margin-bottom: 36px;
}

.notfound .eyebrow {
  display: block;
}

.notfound .h2 {
  margin-top: 12px;
}

.notfound .lead {
  margin: 14px auto 0;
}

.notfound-cta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 28px;
}

.notfound-help {
  margin-top: 32px;
  font-size: var(--text-sm);
  color: var(--text-tertiary);
}
.notfound-help a {
  color: var(--brand);
  font-weight: 500;
}

/* ── Preguntas ─────────────────────────────────────────────────────────────── */

.container--narrow {
  max-width: 760px;
}

.faq {
  margin-top: 32px;
  border-top: 1px solid var(--border);
}

.faq-item {
  border-bottom: 1px solid var(--border);
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 0;
  min-height: 44px;
  cursor: pointer;
  font-size: var(--text-lg);
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--foreground);
  list-style: none;
}
/* Safari dibuja su propio triángulo salvo que se le saque el marcador. */
.faq-item summary::-webkit-details-marker {
  display: none;
}
.faq-item summary:hover {
  color: var(--brand);
}

.faq-chevron {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  color: var(--text-tertiary);
  transition: transform var(--duration-base) var(--ease-standard);
}
.faq-item[open] .faq-chevron {
  transform: rotate(180deg);
}

.faq-item p {
  padding: 0 0 20px;
  max-width: 68ch;
  font-size: var(--text-md);
  line-height: 1.65;
  color: var(--text-secondary);
}

@media (min-width: 480px) {
  .steps {
    grid-template-columns: repeat(2, 1fr);
  }
  .features {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 768px) {
  .section {
    padding: 96px 0;
  }
  .container {
    padding: 0 32px;
  }
  .hero {
    padding-top: 76px;
  }
  .steps {
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
  }
  .features {
    grid-template-columns: repeat(3, 1fr);
  }
  .gallery {
    grid-template-columns: repeat(3, 1fr);
    align-items: start;
  }
  .footer-grid {
    grid-template-columns: 1.6fr 1fr 1fr;
    gap: 48px;
  }
}

@media (min-width: 900px) {
  .import-grid {
    grid-template-columns: 1fr 1fr;
    gap: 56px;
  }
  .role {
    grid-template-columns: 1fr 300px;
    gap: 56px;
    padding: 56px 0;
  }
  /*
   * Alterna el lado de la captura sin reordenar el DOM. Las columnas se dan
   * vuelta junto con el orden: mover sólo el `order` deja el texto en la
   * columna de 300px y parte el título en tres líneas.
   */
  .role--flip {
    grid-template-columns: 300px 1fr;
  }
  .role--flip .role-copy {
    order: 2;
  }
  .role--flip .role-shot {
    order: 1;
  }
  .role-mini {
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
  }
}

@media (min-width: 1024px) {
  .header-nav {
    display: flex;
  }
  .showcase-grid {
    grid-template-columns: 1fr 1fr;
    gap: 64px;
  }
}

/* ── WhatsApp FAB ─────────────────────────────────────────────────────────── */

/*
 * Floating contact button. The green is WhatsApp's own and not the brand's:
 * being recognised at a glance is the only reason a button that covers content
 * on every screen earns its place.
 *
 * It sits under the skip link (z-index 100) so a keyboard user still reaches
 * the skip target first, and over everything else.
 */
.wa-fab {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: var(--radius-pill);
  background: #25d366;
  color: #fff;
  box-shadow: var(--elev-4);
  transition:
    background var(--duration-fast) var(--ease-standard),
    box-shadow var(--duration-fast) var(--ease-standard),
    transform var(--duration-fast) var(--ease-standard);
}

.wa-fab svg {
  width: 28px;
  height: 28px;
}

.wa-fab:hover {
  background: #1eb955;
  box-shadow: var(--elev-5);
  transform: translateY(-2px);
}

/*
 * The global ring is brand green at 18% opacity — invisible on a green circle.
 * A white inner ring with a dark outer one reads against both the button and
 * whatever section happens to be scrolled behind it.
 */
.wa-fab:focus-visible {
  box-shadow:
    0 0 0 3px #fff,
    0 0 0 6px var(--brand-800);
}

@media (min-width: 768px) {
  .wa-fab {
    right: 24px;
    bottom: 24px;
    width: 56px;
    height: 56px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .wa-fab {
    transition: none;
  }
  .wa-fab:hover {
    transform: none;
  }
}
