/* Tipografía: Syne (display) + Figtree (body). Secciones en cascada. */

:root {
  color-scheme: light;
  --font: 'Figtree', system-ui, -apple-system, sans-serif;
  --font-display: 'Syne', system-ui, sans-serif;
  --navy: #0a2540;
  --slate: #425466;
  --muted: #8898aa;
  --bg: #f6f9fc;
  --bg-white: #ffffff;
  --border: #e6ebf1;
  --accent: #0f766e;
  --accent-hover: #0d9488;
  --accent-soft: #ecfdf5;
  --shadow-sm: 0 1px 3px rgb(10 37 64 / 0.06);
  --shadow-md: 0 4px 24px rgb(10 37 64 / 0.08);
  --shadow-tile: 0 8px 30px rgb(10 37 64 / 0.1);
  --radius: 12px;
  --topbar-h: 4rem;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--navy);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3,
.brand-name,
.footer-brand,
.topbar-brand > span:last-child {
  font-family: var(--font-display);
}

.skip-link {
  position: absolute;
  left: -9999px;
  z-index: 200;
  padding: 0.5rem 1rem;
  background: var(--accent);
  color: #fff;
  border-radius: 8px;
  text-decoration: none;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

code {
  font-size: 0.875em;
  padding: 0.15em 0.4em;
  background: var(--bg);
  border-radius: 4px;
  border: 1px solid var(--border);
}

/* —— Topbar —— */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgb(255 255 255 / 0.88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.topbar-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1rem;
  max-width: 72rem;
  margin: 0 auto;
  padding: 0 1.25rem;
  min-height: var(--topbar-h);
}

.topbar-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: var(--navy);
  font-weight: 600;
  font-size: 1.0625rem;
  letter-spacing: -0.02em;
}

.topbar-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 8px;
  background: var(--accent-soft);
  color: var(--accent);
}

.topbar-nav {
  display: none;
  justify-content: center;
  gap: 2rem;
}

.topbar-nav a {
  color: var(--slate);
  text-decoration: none;
  font-size: 0.9375rem;
  font-weight: 500;
  transition: color 0.15s var(--ease);
}

.topbar-nav a:hover,
.topbar-nav a:focus-visible {
  color: var(--navy);
}

.topbar-actions {
  display: none;
  align-items: center;
  gap: 0.5rem;
}

.topbar-menu-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  margin-left: auto;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg-white);
  color: var(--navy);
  cursor: pointer;
}

.topbar-drawer {
  border-top: 1px solid var(--border);
  background: var(--bg-white);
  padding: 1rem 1.25rem 1.25rem;
}

.topbar-drawer nav {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.topbar-drawer a {
  padding: 0.65rem 0;
  color: var(--slate);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9375rem;
}

.topbar-drawer .btn-block {
  margin-top: 0.75rem;
  text-align: center;
}

@media (min-width: 768px) {
  .topbar-inner {
    grid-template-columns: auto 1fr auto;
  }

  .topbar-nav {
    display: flex;
  }

  .topbar-actions {
    display: flex;
  }

  .topbar-menu-btn {
    display: none;
  }

  .topbar-drawer {
    display: none !important;
  }
}

/* —— Buttons —— */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1rem;
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.25;
  text-decoration: none;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.2s var(--ease), color 0.2s var(--ease),
    border-color 0.2s var(--ease), box-shadow 0.2s var(--ease),
    transform 0.15s var(--ease);
  white-space: nowrap;
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
  background: var(--accent-hover);
  box-shadow: 0 4px 14px rgb(15 118 110 / 0.35);
}

.btn-outline {
  background: var(--bg-white);
  color: var(--navy);
  border-color: var(--border);
}

.btn-outline:hover {
  border-color: var(--muted);
  box-shadow: var(--shadow-sm);
}

.btn-ghost {
  background: transparent;
  color: var(--slate);
}

.btn-ghost:hover {
  color: var(--navy);
  background: var(--bg);
}

.btn-lg {
  padding: 0.75rem 1.5rem;
  font-size: 0.9375rem;
}

.btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* —— Cascade layout —— */
.cascade {
  display: flex;
  flex-direction: column;
}

.cascade-block {
  width: 100%;
  padding: 4rem 0;
}

.cascade-inner {
  width: 100%;
  max-width: 72rem;
  margin: 0 auto;
  padding-inline: 1.25rem;
}

.cascade-narrow {
  max-width: 40rem;
}

/* Hero */
.hero {
  padding-top: 3rem;
  padding-bottom: 4.5rem;
  background: linear-gradient(180deg, #fff 0%, var(--bg) 100%);
  border-bottom: 1px solid var(--border);
}

.hero-inner {
  max-width: 42rem;
  text-align: center;
  margin-inline: auto;
}

.badge {
  display: inline-block;
  margin: 0 0 1.25rem;
  padding: 0.35rem 0.85rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-soft);
  border-radius: 999px;
}

.hero h1 {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 6vw, 3.25rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--navy);
}

.hero-lead {
  margin: 0 0 2rem;
  font-size: 1.125rem;
  color: var(--slate);
  line-height: 1.65;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

.section-head {
  margin-bottom: 2.5rem;
  max-width: 36rem;
}

.section-head h2,
.section-head-centered h2 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 600;
  letter-spacing: -0.02em;
}

.section-head p,
.section-head-centered p {
  margin: 0;
  color: var(--slate);
  font-size: 1.0625rem;
}

.section-head-centered {
  text-align: center;
  max-width: 32rem;
  margin: 0 auto 2rem;
  padding-inline: 1.25rem;
}

/* Sección “Todo en un solo flujo” */
.section-flow {
  position: relative;
  padding: 4.5rem 0;
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}

.section-flow-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 10% 20%, rgb(15 118 110 / 0.12) 0%, transparent 55%),
    radial-gradient(ellipse 70% 50% at 90% 80%, rgb(99 102 241 / 0.1) 0%, transparent 50%),
    linear-gradient(165deg, #f0fdfa 0%, #f6f9fc 45%, #eef2ff 100%);
  z-index: 0;
}

.section-flow-inner {
  position: relative;
  z-index: 1;
}

.section-head--flow {
  text-align: center;
  max-width: 34rem;
  margin-inline: auto;
  margin-bottom: 2.75rem;
}

.section-label {
  display: inline-block;
  margin-bottom: 0.75rem;
  padding: 0.3rem 0.75rem;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  background: rgb(255 255 255 / 0.85);
  border: 1px solid rgb(15 118 110 / 0.2);
  border-radius: 999px;
}

.flow-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.75rem;
}

@media (min-width: 900px) {
  .flow-grid {
    flex-direction: row;
    align-items: stretch;
    justify-content: center;
    gap: 0;
  }
}

.flow-card {
  flex: 1;
  max-width: 20rem;
  margin: 0 auto;
  padding: 1.75rem 1.5rem 1.5rem;
  background: rgb(255 255 255 / 0.92);
  border: 1px solid rgb(255 255 255 / 0.8);
  border-radius: 16px;
  box-shadow: var(--shadow-md);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

@media (min-width: 900px) {
  .flow-card {
    margin: 0;
    max-width: none;
  }
}

.flow-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgb(10 37 64 / 0.12);
}

.flow-card--teal {
  --flow-accent: #0f766e;
  --flow-soft: #ccfbf1;
  --flow-border: rgb(15 118 110 / 0.25);
}

.flow-card--blue {
  --flow-accent: #4f46e5;
  --flow-soft: #e0e7ff;
  --flow-border: rgb(79 70 229 / 0.25);
}

.flow-card--violet {
  --flow-accent: #7c3aed;
  --flow-soft: #ede9fe;
  --flow-border: rgb(124 58 237 / 0.25);
}

.flow-card {
  border-top: 3px solid var(--flow-accent);
}

.flow-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3.25rem;
  height: 3.25rem;
  margin-bottom: 1rem;
  border-radius: 14px;
  background: var(--flow-soft);
  color: var(--flow-accent);
  border: 1px solid var(--flow-border);
}

.flow-step {
  display: inline-block;
  margin-bottom: 0.5rem;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--flow-accent);
}

.flow-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--navy);
}

.flow-card p {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.55;
  color: var(--slate);
}

.flow-card code {
  background: var(--flow-soft);
  border-color: var(--flow-border);
  color: var(--flow-accent);
}

.flow-connector {
  display: none;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 2.5rem;
  color: var(--muted);
  opacity: 0.55;
}

@media (min-width: 900px) {
  .flow-connector {
    display: flex;
    align-self: center;
    padding-top: 1.5rem;
  }
}

@media (max-width: 899px) {
  .flow-card + .flow-connector {
    display: flex;
    transform: rotate(90deg);
    height: 2rem;
    width: auto;
    margin: 0 auto;
  }
}

/* Comercios destacados — grilla comercial */
.section-spotlight {
  padding: 4rem 0 4.5rem;
  background: var(--bg-white);
  border-bottom: 1px solid var(--border);
}

.spotlight-head {
  margin-bottom: 2rem;
  max-width: 36rem;
}

.spotlight-label {
  display: inline-block;
  margin-bottom: 0.65rem;
  padding: 0.3rem 0.75rem;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-soft, #ecfdf5);
  border-radius: 999px;
}

.spotlight-head h2 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--navy);
}

.spotlight-head p {
  margin: 0;
  font-size: 1.0625rem;
  color: var(--slate);
  line-height: 1.55;
}

.business-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

@media (min-width: 640px) {
  .business-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
  }
}

@media (min-width: 1024px) {
  .business-grid {
    grid-template-columns: repeat(5, 1fr);
  }
}

.business-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease),
    border-color 0.2s var(--ease);
}

.business-card:hover {
  transform: translateY(-4px);
  border-color: rgb(15 118 110 / 0.35);
  box-shadow: var(--shadow-md);
}

.business-card:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.business-card-media {
  position: relative;
  padding: 0.65rem 0.65rem 0;
}

.business-category {
  position: absolute;
  top: 1rem;
  left: 1rem;
  z-index: 1;
  padding: 0.2rem 0.55rem;
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--navy);
  background: rgb(255 255 255 / 0.95);
  border-radius: 6px;
  box-shadow: var(--shadow-sm);
}

.business-tile {
  aspect-ratio: 1;
  padding: 0.5rem;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
}

.business-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 6px;
  display: block;
}

.business-card-body {
  padding: 0.75rem 0.85rem 1rem;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 0.15rem;
}

.business-name {
  margin: 0;
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--navy);
  line-height: 1.3;
}

.business-meta {
  margin: 0;
  font-size: 0.8125rem;
  color: var(--muted);
}

.business-cta {
  margin-top: 0.5rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--accent);
}

.business-card:hover .business-cta span {
  display: inline-block;
  transform: translateX(3px);
  transition: transform 0.2s var(--ease);
}

/* Cómo funciona — bloque gris separado */
.section-steps {
  padding: 4.5rem 0;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}

/* Steps cascade */
.steps-cascade {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.steps-cascade li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.25rem;
  padding: 1.75rem 0;
  border-bottom: 1px solid var(--border);
}

.steps-cascade li:last-child {
  border-bottom: none;
}

.step-dot {
  width: 12px;
  height: 12px;
  margin-top: 0.4rem;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}

.steps-cascade h3 {
  margin: 0 0 0.35rem;
  font-size: 1.125rem;
  font-weight: 600;
}

.steps-cascade p {
  margin: 0;
  color: var(--slate);
  font-size: 0.9375rem;
}

/* CTA */
.section-cta {
  padding: 4rem 0 5rem;
}

.cta-panel {
  text-align: center;
  padding: 3rem 2rem;
  background: var(--navy);
  color: #fff;
  border-radius: 16px;
  box-shadow: var(--shadow-md);
}

.cta-panel h2 {
  margin: 0 0 0.5rem;
  font-size: 1.75rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.cta-panel p {
  margin: 0 0 1.5rem;
  color: rgb(255 255 255 / 0.75);
  font-size: 1.0625rem;
}

.cta-panel .btn-primary {
  background: #fff;
  color: var(--navy);
}

.cta-panel .btn-primary:hover {
  background: var(--accent-soft);
  color: var(--accent);
  box-shadow: none;
}

/* Footer */
.site-footer {
  padding: 2rem 0;
  border-top: 1px solid var(--border);
  background: var(--bg-white);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.footer-brand {
  font-weight: 600;
  color: var(--navy);
}

.footer-inner p {
  margin: 0;
  font-size: 0.8125rem;
  color: var(--muted);
}

@media (prefers-reduced-motion: reduce) {
  .business-card:hover,
  .flow-card:hover {
    transform: none;
  }
}
