/* CobranzaPC — landing de producto de cobranza (suscripción de pago) */

:root {
  --ink: #0b1f2a;
  --ink-2: #143041;
  --ink-soft: #4a6170;
  --paper: #f4f7f8;
  --paper-2: #e8eef1;
  --white: #ffffff;
  --teal: #0d7a72;
  --teal-deep: #0a5f59;
  --teal-soft: #d3ebe8;
  --sand: #f3ebe0;
  --line: rgba(11, 31, 42, 0.12);
  --line-strong: rgba(11, 31, 42, 0.2);
  --shadow: 0 20px 50px rgba(11, 31, 42, 0.14);
  --font-display: "Manrope", "Avenir Next", "Segoe UI", sans-serif;
  --font-body: "Public Sans", "Segoe UI", sans-serif;
  --radius: 0.7rem;
  --header-h: 4.15rem;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --app-height: 100vh;
}

@supports (height: 100dvh) {
  :root { --app-height: 100dvh; }
}

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

html { scroll-behavior: smooth; color-scheme: light; }

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

body.nav-open { overflow: hidden; }

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }

h1, h2, h3 {
  font-family: var(--font-display);
  line-height: 1.18;
  letter-spacing: -0.025em;
  margin: 0 0 0.7rem;
  color: var(--ink);
}
h1 { font-size: clamp(2.05rem, 4.4vw, 3.2rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 2.8vw, 2.2rem); font-weight: 800; }
h3 { font-size: 1.15rem; font-weight: 700; }

p { margin: 0 0 1rem; }
p:last-child { margin-bottom: 0; }

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  z-index: 100;
  background: var(--teal);
  color: #fff;
  padding: 0.6rem 1rem;
  border-radius: 0.4rem;
  font-weight: 700;
}
.skip-link:focus { left: 0.75rem; top: 0.75rem; }

.shell {
  width: min(1140px, calc(100% - 2rem));
  margin-inline: auto;
}

:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 3px;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: color-mix(in srgb, var(--ink) 92%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: min(1140px, calc(100% - 2rem));
}

.brand-logo {
  height: 2.45rem;
  width: auto;
  display: block;
  object-fit: contain;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.92rem;
  font-weight: 600;
}
.site-nav a:not(.btn):hover { color: #fff; }

.nav-toggle {
  display: none;
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 0.45rem;
  background: transparent;
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 0;
}
.nav-toggle span {
  width: 1.1rem;
  height: 2px;
  background: #fff;
  display: block;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  border-radius: 0.5rem;
  padding: 0.7rem 1.15rem;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.94rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.18s var(--ease), background 0.18s ease, border-color 0.18s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-sm { padding: 0.42rem 0.8rem; font-size: 0.86rem; }
.btn-lg { padding: 0.88rem 1.3rem; font-size: 1rem; }
.btn-block { width: 100%; }
.btn-primary {
  background: var(--teal);
  color: #fff;
  box-shadow: 0 10px 24px rgba(13, 122, 114, 0.28);
}
.btn-primary:hover { background: var(--teal-deep); }
.btn-ghost {
  background: transparent;
  color: inherit;
  border-color: currentColor;
  opacity: 0.95;
}
.site-nav .btn-ghost {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.35);
}
.btn-light {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.28);
}
.plan .btn-ghost {
  color: var(--ink);
  border-color: var(--line-strong);
}
.plan .btn-ghost:hover {
  border-color: var(--teal);
  color: var(--teal);
}

/* Hero */
.hero {
  position: relative;
  min-height: calc(var(--app-height) - var(--header-h));
  display: flex;
  align-items: center;
  background:
    radial-gradient(900px 500px at 85% 10%, rgba(13, 122, 114, 0.28), transparent 55%),
    radial-gradient(700px 420px at 5% 90%, rgba(243, 235, 224, 0.12), transparent 50%),
    linear-gradient(155deg, #0b1f2a 0%, #123445 48%, #0d2a36 100%);
  color: #fff;
  overflow: hidden;
}

.hero-bg { position: absolute; inset: 0; pointer-events: none; }
.hero-mesh {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at 40% 40%, #000 20%, transparent 75%);
}
.hero-line {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.25), transparent);
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(1.5rem, 4vw, 3.25rem);
  align-items: center;
  padding: clamp(2rem, 5vh, 3.25rem) 0;
}

.hero-brand {
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 2.8vw, 1.95rem);
  font-weight: 800;
  color: #8fd4cb;
  margin: 0 0 0.55rem;
  letter-spacing: -0.03em;
  animation: rise 0.7s var(--ease) both;
}
.hero h1 {
  color: #fff;
  animation: rise 0.75s var(--ease) 0.06s both;
}
.hero-lead {
  color: rgba(255, 255, 255, 0.82);
  font-size: clamp(1.02rem, 1.5vw, 1.15rem);
  max-width: 34rem;
  animation: rise 0.75s var(--ease) 0.12s both;
}
.hero-paid {
  display: inline-block;
  margin: 0 0 1.25rem;
  padding: 0.45rem 0.75rem;
  border-left: 3px solid #8fd4cb;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.9rem;
  font-weight: 600;
  animation: rise 0.75s var(--ease) 0.16s both;
}
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  animation: rise 0.75s var(--ease) 0.2s both;
}

.hero-stage { animation: rise 0.85s var(--ease) 0.18s both; }

.stage-screen {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 1rem;
  padding: 1rem;
  box-shadow: var(--shadow);
  backdrop-filter: blur(8px);
}
.stage-chrome {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin-bottom: 0.9rem;
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.8rem;
  font-weight: 600;
}
.stage-chrome span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.28);
}
.stage-chrome span:nth-child(1) { background: #e8a090; }
.stage-chrome span:nth-child(2) { background: #e2c87a; }
.stage-chrome span:nth-child(3) { background: #8fd4cb; }
.stage-chrome em { margin-left: auto; font-style: normal; }
.stage-body { display: grid; gap: 0.65rem; }
.stage-kpi {
  padding: 0.85rem 0.95rem;
  border-radius: 0.65rem;
  background: rgba(11, 31, 42, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.stage-kpi strong {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #8fd4cb;
  margin-bottom: 0.2rem;
}
.stage-kpi b {
  display: block;
  font-family: var(--font-display);
  font-size: 1.05rem;
}
.stage-kpi i {
  display: block;
  margin-top: 0.2rem;
  font-style: normal;
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.88rem;
}
.stage-kpi-accent {
  background: linear-gradient(135deg, rgba(13, 122, 114, 0.45), rgba(11, 31, 42, 0.4));
}

/* Sections */
.section { padding: clamp(3.4rem, 7vw, 5.2rem) 0; }
.section-alt { background: var(--paper-2); }
.section-dark {
  background: linear-gradient(145deg, #0b1f2a, #143041 55%, #0d3a40);
  color: #fff;
}
.section-dark h2 { color: #fff; }

.section-head { max-width: 42rem; margin-bottom: 2.1rem; }
.kicker {
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--teal);
  margin: 0 0 0.5rem;
}
.kicker-light { color: #8fd4cb; }
.lead { color: var(--ink-soft); font-size: 1.06rem; max-width: 40rem; }
.lead-light { color: rgba(255, 255, 255, 0.82); }

.flow {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}
.flow li {
  display: grid;
  gap: 0.55rem;
  padding-top: 0.25rem;
  border-top: 3px solid var(--teal-soft);
}
.flow span {
  font-family: var(--font-display);
  font-weight: 800;
  color: var(--teal);
  font-size: 0.95rem;
}
.flow p { color: var(--ink-soft); font-size: 0.96rem; }

.modules {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.35rem 1.5rem;
}
.modules article {
  padding-bottom: 0.25rem;
  border-bottom: 1px solid var(--line);
}
.modules p { color: var(--ink-soft); }

/* Plans — cards as plan selection UI */
.audience-switch {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  padding: 0.3rem;
  margin-bottom: 1.25rem;
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: 999px;
  width: fit-content;
  max-width: 100%;
}
.audience-btn {
  border: 0;
  background: transparent;
  color: var(--ink-soft);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.92rem;
  padding: 0.55rem 1rem;
  border-radius: 999px;
  cursor: pointer;
}
.audience-btn.is-active {
  background: var(--ink);
  color: #fff;
}
.audience-intro {
  color: var(--ink-soft);
  margin: 0 0 1.25rem;
  font-size: 0.98rem;
}
.audience-panel[hidden] { display: none !important; }
.audience-panel { margin-bottom: 2rem; }

.plans {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.1rem;
  align-items: stretch;
  margin-bottom: 0.5rem;
}
.plans-two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: 760px;
}

.plan {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 1rem;
  padding: 1.35rem 1.25rem 1.3rem;
  position: relative;
}
.plan-featured {
  border-color: color-mix(in srgb, var(--teal) 55%, var(--line));
  box-shadow: var(--shadow);
  transform: translateY(-4px);
}
.plan-badge {
  position: absolute;
  top: -0.7rem;
  left: 1.1rem;
  margin: 0;
  background: var(--teal);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.28rem 0.55rem;
  border-radius: 999px;
}
.plan h3 {
  font-size: 1.45rem;
  margin-bottom: 0.25rem;
}
.plan-for {
  color: var(--ink-soft);
  font-size: 0.92rem;
  margin-bottom: 0.75rem;
}
.plan-price {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--ink);
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem;
}
.plan-uf {
  font-size: 2.35rem;
  line-height: 1;
  color: var(--teal-deep);
  letter-spacing: -0.03em;
}
.plan-iva {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--ink-soft);
}
.plan-price-note {
  color: var(--ink-soft);
  font-size: 0.85rem;
  margin: 0.35rem 0 0;
}
.plan ul {
  display: grid;
  gap: 0.5rem;
  flex: 1;
  margin-bottom: 0.25rem;
}
.plan li {
  position: relative;
  padding-left: 1.25rem;
  color: var(--ink-soft);
  font-size: 0.94rem;
}
.plan li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.5rem;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--teal);
}
.plan li.muted {
  opacity: 0.72;
}
.plan li.muted::before {
  background: #b7c4cb;
}

.compare {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 1rem;
  padding: 1.25rem 1.15rem 1.35rem;
}
.compare h3 { margin-bottom: 0.9rem; }
.table-wrap { overflow-x: auto; }
.compare table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.94rem;
}
.compare th, .compare td {
  text-align: left;
  padding: 0.7rem 0.65rem;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.compare thead th {
  font-family: var(--font-display);
  font-weight: 800;
  color: var(--ink);
  background: var(--paper);
}
.compare tbody th {
  font-weight: 600;
  color: var(--ink);
}
.compare td { color: var(--ink-soft); }
.compare-note {
  margin-top: 1rem;
  color: var(--ink-soft);
  font-size: 0.92rem;
}

/* Demo */
.demo-row {
  display: grid;
  grid-template-columns: 1.35fr 0.65fr;
  gap: 2rem;
  align-items: center;
}
.ticks {
  display: grid;
  gap: 0.45rem;
  margin: 1rem 0 1.35rem;
}
.ticks li {
  padding-left: 1.2rem;
  position: relative;
  color: rgba(255, 255, 255, 0.85);
}
.ticks li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #8fd4cb;
  font-weight: 800;
}
.demo-aside {
  text-align: center;
  padding: 1.5rem 1rem;
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
}
.demo-num {
  font-family: var(--font-display);
  font-size: 4.2rem;
  font-weight: 800;
  line-height: 1;
  color: #8fd4cb;
  margin: 0;
}
.demo-label {
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.85rem;
  margin: 0.35rem 0 0;
}
.demo-sub {
  color: rgba(255, 255, 255, 0.7);
  margin: 0.35rem 0 0;
}

/* FAQ */
.faq-list {
  display: grid;
  gap: 0.6rem;
  max-width: 48rem;
}
.faq-list details {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 0.55rem;
  padding: 0.85rem 1rem;
}
.faq-list summary {
  font-family: var(--font-display);
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: "+";
  float: right;
  color: var(--teal);
}
.faq-list details[open] summary::after { content: "–"; }
.faq-list p {
  margin-top: 0.6rem;
  color: var(--ink-soft);
}

/* Footer */
.site-footer {
  background: #07151c;
  color: rgba(255, 255, 255, 0.78);
  padding: 2.75rem 0 1.35rem;
}
.footer-logo {
  height: 2.15rem;
  width: auto;
  margin-bottom: 0.8rem;
  display: block;
  object-fit: contain;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 1.75rem;
  padding-bottom: 1.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.footer-label {
  font-family: var(--font-display);
  font-weight: 800;
  color: #fff;
  margin: 0 0 0.65rem;
}
.footer-grid a {
  display: block;
  margin-bottom: 0.35rem;
  color: rgba(255, 255, 255, 0.72);
}
.footer-grid a:hover { color: #fff; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1rem;
  font-size: 0.9rem;
}

/* Motion */
@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.55s var(--ease), transform 0.55s var(--ease);
}
.reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal, .hero-brand, .hero h1, .hero-lead, .hero-paid, .hero-cta, .hero-stage {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
    transition: none !important;
  }
}

@media (max-width: 980px) {
  .hero-grid,
  .flow,
  .modules,
  .plans,
  .plans-two,
  .demo-row,
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .plan-featured { transform: none; }
  .hero { min-height: auto; }
}

@media (max-width: 820px) {
  .nav-toggle { display: inline-flex; }
  .site-nav {
    position: fixed;
    inset: var(--header-h) 0 auto;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0.35rem;
    padding: 1rem 1.2rem 1.2rem;
    background: var(--ink);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }
  .site-nav.is-open { display: flex; }
  .site-nav .btn { width: 100%; }
}

@media (max-width: 560px) {
  .hero-cta { flex-direction: column; align-items: stretch; }
  .footer-bottom { flex-direction: column; }
}
