/* =========================================================
   PAGOS RED — Design tokens
========================================================= */
:root {
  --black: #050506;
  --near-black: #0b0b0d;
  --charcoal: #17171b;
  --charcoal-2: #202024;
  --white: #ffffff;
  --off-white: #f6f6f4;
  --gray-100: #ececea;
  --gray-300: #d4d4d6;
  --gray-500: #8b8b93;
  --gray-600: #6b6b74;
  --gray-800: #232327;

  --red: #ef1616;
  --red-2: #ff4d4d;
  --red-dark: #8c0000;
  --red-glow: rgba(239, 22, 22, 0.45);

  --font: "Manrope", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --header-h: 80px;
  --container: 1280px;

  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 28px;
  --radius-pill: 999px;

  --ease: cubic-bezier(0.16, 0.84, 0.44, 1);
  --shadow-soft: 0 20px 50px rgba(0, 0, 0, 0.35);
  --shadow-red: 0 20px 45px rgba(239, 22, 22, 0.35);
}

/* =========================================================
   Reset & base
========================================================= */
* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

section[id] {
  scroll-margin-top: var(--header-h);
}

body {
  margin: 0;
  font-family: var(--font);
  background: var(--black);
  color: var(--black);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3, p {
  margin: 0;
}

h1, h2, h3 {
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.08;
}

a { color: inherit; }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--red);
  color: var(--white);
  padding: 12px 20px;
  border-radius: 0 0 10px 0;
  z-index: 10000;
  font-weight: 700;
}

.skip-link:focus {
  left: 0;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* =========================================================
   Shared layout / utilities
========================================================= */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
}

.text-gradient {
  background: linear-gradient(135deg, var(--red-2), var(--red-dark));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--red);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.eyebrow--light { color: var(--red-2); }

.eyebrow__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 0 4px rgba(239, 22, 22, 0.18);
  flex-shrink: 0;
}

.section-head {
  max-width: 640px;
  margin: 0 0 64px;
}

.section-head h2 {
  font-size: clamp(30px, 4vw, 48px);
  margin-bottom: 18px;
}

.section-head p {
  font-size: 18px;
  color: var(--gray-600);
  line-height: 1.5;
}

.section-head--dark p { color: var(--gray-500); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: var(--radius-pill);
  padding: 17px 30px;
  font-weight: 700;
  font-size: 15px;
  font-family: inherit;
  letter-spacing: -0.01em;
  text-decoration: none;
  cursor: pointer;
  border: none;
  white-space: nowrap;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), background 0.25s ease, border-color 0.25s ease;
}

.btn__icon {
  width: 18px;
  height: 18px;
  transition: transform 0.3s var(--ease);
}

.btn:hover .btn__icon {
  transform: translateX(3px);
}

.btn-primary {
  color: var(--white);
  background: linear-gradient(135deg, var(--red-2), var(--red) 55%, var(--red-dark));
  box-shadow: var(--shadow-red);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 24px 55px rgba(239, 22, 22, 0.5);
}

.btn-primary:active {
  transform: translateY(-1px) scale(0.98);
}

.btn-ghost {
  color: var(--black);
  background: transparent;
  border: 1.5px solid rgba(0, 0, 0, 0.18);
}

.btn-ghost:hover {
  border-color: var(--black);
  background: rgba(0, 0, 0, 0.04);
  transform: translateY(-2px);
}

.how .btn-ghost,
.transform .btn-ghost,
.final-cta .btn-ghost {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.25);
}

.how .btn-ghost:hover,
.transform .btn-ghost:hover,
.final-cta .btn-ghost:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.5);
}

.btn-light {
  color: var(--red-dark);
  background: var(--white);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.25);
}

.btn-light:hover {
  transform: translateY(-3px);
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.35);
}

.btn-lg { padding: 19px 36px; font-size: 16px; }
.btn-sm { padding: 12px 22px; font-size: 14px; }

.tag-available {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  color: var(--red);
  background: rgba(239, 22, 22, 0.08);
  border: 1px solid rgba(239, 22, 22, 0.25);
  border-radius: var(--radius-pill);
  padding: 6px 12px;
  margin-top: auto;
  width: fit-content;
}

/* =========================================================
   Scroll reveal
========================================================= */
[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
  transition-delay: var(--reveal-delay, 0ms);
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* =========================================================
   Header
========================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: rgba(5, 5, 6, 0.7);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  transition: background 0.3s ease, border-color 0.3s ease, height 0.3s ease;
}

.site-header.is-scrolled {
  height: 68px;
  background: rgba(5, 5, 6, 0.92);
  border-bottom-color: rgba(255, 255, 255, 0.1);
}

.site-header__inner {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}

.brand__logo {
  height: 42px;
  width: auto;
  display: block;
  transition: height 0.3s ease;
}

.site-header.is-scrolled .brand__logo {
  height: 36px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 40px;
}

.nav__list {
  list-style: none;
  display: flex;
  gap: 34px;
  margin: 0;
  padding: 0;
}

.nav__list a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
  position: relative;
  padding: 6px 0;
  transition: color 0.2s ease;
}

.nav__list a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: var(--red);
  transition: width 0.25s var(--ease);
}

.nav__list a:hover {
  color: var(--white);
}

.nav__list a:hover::after {
  width: 100%;
}

/* Mobile toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.nav-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--white);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.nav-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 900px) {
  .nav-toggle { display: flex; }

  .nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: rgba(5, 5, 6, 0.98);
    backdrop-filter: blur(14px);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 10px 24px 28px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    transform: translateY(-16px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s ease;
  }

  .nav.is-open {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }

  .nav__list {
    flex-direction: column;
    gap: 2px;
    width: 100%;
  }

  .nav__list a {
    display: block;
    padding: 15px 4px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  }

  .nav .btn-primary {
    margin-top: 16px;
    justify-content: center;
  }
}

/* =========================================================
   HERO
========================================================= */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--black);
  color: var(--white);
  padding: 64px 0 40px;
  min-height: calc(100vh - var(--header-h));
  display: flex;
  align-items: center;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 80% 60% at 60% 40%, black 30%, transparent 75%);
}

.hero__glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  pointer-events: none;
}

.hero__glow--1 {
  width: 560px;
  height: 560px;
  top: -180px;
  right: -160px;
  background: rgba(239, 22, 22, 0.4);
}

.hero__glow--2 {
  width: 420px;
  height: 420px;
  bottom: -200px;
  left: -140px;
  background: rgba(239, 22, 22, 0.16);
}

.hero__inner {
  position: relative;
  z-index: 1;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 40px;
  align-items: center;
  width: 100%;
}

.hero__content,
.hero__visual {
  min-width: 0;
}

.hero__title {
  font-size: clamp(36px, 4.6vw, 60px);
  line-height: 1.08;
  margin: 0 0 22px;
}

.hero__subtitle {
  font-size: clamp(16px, 1.6vw, 19px);
  color: var(--gray-300);
  max-width: 480px;
  margin: 0 0 34px;
  line-height: 1.55;
}

.hero__subtitle strong {
  color: var(--white);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 44px;
}

.hero .btn-ghost {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.25);
}

.hero .btn-ghost:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.5);
}

.hero__proof {
  display: flex;
  align-items: center;
  gap: 16px;
}

.hero__proof span {
  font-size: 13px;
  color: var(--gray-500);
  font-weight: 600;
}

.hero__proof-logos {
  display: flex;
  align-items: center;
  gap: 10px;
}

.hero__proof-logos img {
  display: block;
  height: auto;
  width: auto;
  max-height: 20px;
  max-width: 60px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.9);
  padding: 5px 8px;
}

/* ---- Hero visual composition ---- */
.hero__visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 460px;
}

.hero__composition {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  transition: transform 0.2s ease-out;
}

.dashboard-card {
  width: min(320px, 100%);
  background: linear-gradient(165deg, var(--charcoal-2), var(--near-black));
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  padding: 22px 20px 24px;
  box-shadow: var(--shadow-soft), 0 0 0 1px rgba(239, 22, 22, 0.1);
  transform: rotate(-3deg);
  animation: float-slow 7s ease-in-out infinite;
  position: relative;
  z-index: 2;
}

.dashboard-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.dashboard-card__logo {
  height: 20px;
  width: auto;
}

.dashboard-card__status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  color: #4ce07a;
  letter-spacing: 0.3px;
}

.dashboard-card__status i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #4ce07a;
  box-shadow: 0 0 0 3px rgba(76, 224, 122, 0.25);
}

.dashboard-card__list {
  list-style: none;
  margin: 0 0 16px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.dash-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 8px;
  border-radius: 12px;
  transition: background 0.2s ease;
}

.dash-row:hover {
  background: rgba(255, 255, 255, 0.04);
}

.dash-row__icon {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
  padding: 3px;
}

.dash-row__icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.dash-row__label {
  font-size: 13px;
  font-weight: 600;
  color: var(--gray-300);
  flex: 1;
}

.dash-row__amount {
  font-size: 13px;
  font-weight: 800;
  color: #4ce07a;
}

.dashboard-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(135deg, rgba(239, 22, 22, 0.22), rgba(239, 22, 22, 0.05));
  border: 1px solid rgba(239, 22, 22, 0.3);
  border-radius: 14px;
  padding: 13px 15px;
  font-size: 12.5px;
  color: var(--gray-300);
  font-weight: 600;
}

.dashboard-card__footer strong {
  color: var(--red-2);
  font-size: 18px;
}

/* Commission floating badge — hero's signature element */
.commission-float {
  position: absolute;
  z-index: 3;
  left: -6%;
  bottom: -8%;
  width: 192px;
  background: linear-gradient(160deg, var(--red-2), var(--red) 60%, var(--red-dark));
  border-radius: var(--radius-md);
  padding: 22px 22px 20px;
  box-shadow: 0 25px 60px rgba(239, 22, 22, 0.45), 0 0 0 1px rgba(255, 255, 255, 0.1) inset;
  transform: rotate(4deg);
  animation: float-slow 8s ease-in-out infinite 0.4s;
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.commission-float__value {
  font-size: 46px;
  font-weight: 800;
  font-style: italic;
  display: inline;
}

.commission-float__pct {
  font-size: 46px;
  font-weight: 800;
  font-style: italic;
}

.commission-float__label {
  display: block;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.6px;
  margin-top: 6px;
}

.commission-float__sub {
  display: block;
  font-size: 11.5px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.85);
  margin-top: 6px;
  line-height: 1.35;
}

.commission-float--static {
  position: static;
  transform: none;
  animation: none;
  margin: 8px auto 36px;
}

.float-chip {
  position: absolute;
  top: 8%;
  right: -8%;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(23, 23, 27, 0.9);
  border: 1px solid rgba(76, 224, 122, 0.35);
  color: var(--white);
  font-size: 12.5px;
  font-weight: 700;
  padding: 10px 16px;
  border-radius: var(--radius-pill);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(8px);
  animation: float-slow 6s ease-in-out infinite 0.8s;
}

.float-chip svg {
  width: 15px;
  height: 15px;
  color: #4ce07a;
  flex-shrink: 0;
}

@keyframes float-slow {
  0%, 100% { transform: translateY(0) rotate(var(--rot, 0deg)); }
  50% { transform: translateY(-12px) rotate(var(--rot, 0deg)); }
}

.dashboard-card { --rot: -3deg; }
.commission-float:not(.commission-float--static) { --rot: 4deg; }

.hero__scroll {
  position: absolute;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  width: 26px;
  height: 40px;
  border: 1.5px solid rgba(255, 255, 255, 0.3);
  border-radius: var(--radius-pill);
  display: flex;
  justify-content: center;
  padding-top: 8px;
}

.hero__scroll span {
  width: 4px;
  height: 8px;
  border-radius: 2px;
  background: var(--red-2);
  animation: scroll-dot 1.8s ease-in-out infinite;
}

@keyframes scroll-dot {
  0% { transform: translateY(0); opacity: 1; }
  70% { transform: translateY(10px); opacity: 0; }
  100% { opacity: 0; }
}

/* =========================================================
   SERVICIOS — bento grid
========================================================= */
.services {
  background: var(--white);
  padding: 120px 0;
}

.services-bento {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.service-feature {
  grid-column: span 2;
  grid-row: span 2;
  background: var(--black);
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: 32px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.service-feature::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 100% 100%, rgba(239, 22, 22, 0.35), transparent 60%);
  pointer-events: none;
}

.service-feature__info {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
  height: 100%;
}

.service-feature__logo {
  height: auto;
  width: auto;
  max-height: 32px;
  max-width: 160px;
  background: var(--white);
  border-radius: 8px;
  padding: 8px 12px;
  margin-bottom: 6px;
}

.service-feature__info h3 {
  font-size: 24px;
}

.service-feature__info p {
  color: var(--gray-300);
  font-size: 14.5px;
  line-height: 1.5;
  flex: 1;
}

.service-feature__mock {
  position: relative;
  z-index: 1;
  background: var(--charcoal);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 18px;
}

.service-feature__mock-title {
  display: block;
  font-size: 12px;
  color: var(--gray-500);
  font-weight: 700;
  margin-bottom: 12px;
}

.service-feature__amounts {
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
}

.service-feature__amounts span {
  flex: 1;
  text-align: center;
  padding: 8px 4px;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.06);
  font-size: 12.5px;
  font-weight: 700;
  color: var(--gray-300);
}

.service-feature__amounts span.is-active {
  background: var(--red);
  color: var(--white);
}

.service-feature__confirm {
  text-align: center;
  background: var(--white);
  color: var(--black);
  font-weight: 800;
  font-size: 12.5px;
  padding: 11px;
  border-radius: 10px;
}

.service-card {
  background: var(--off-white);
  border-radius: var(--radius-md);
  padding: 26px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), background 0.35s ease;
}

.service-card:hover {
  transform: translateY(-6px);
  background: var(--white);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.service-card img {
  height: auto;
  width: auto;
  max-height: 40px;
  max-width: 140px;
  object-fit: contain;
  object-position: left;
  margin-bottom: 6px;
}

.service-card h3 {
  font-size: 16.5px;
}

.service-card p {
  color: var(--gray-600);
  font-size: 13.5px;
  line-height: 1.5;
  flex: 1;
}

.service-stat {
  background: linear-gradient(145deg, var(--red), var(--red-dark));
  color: var(--white);
  border-radius: var(--radius-md);
  padding: 26px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
}

.service-stat__value {
  font-size: 40px;
  font-weight: 800;
  font-style: italic;
}

.service-stat p {
  font-size: 13.5px;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.4;
}

/* =========================================================
   TRANSFORMACIÓN
========================================================= */
.transform {
  background: var(--black);
  color: var(--white);
  padding: 120px 0;
}

.transform-flow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  flex-wrap: wrap;
}

.transform-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.transform-node__tag {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1.5px;
  color: var(--gray-500);
}

.transform-node__tag--red { color: var(--red-2); }

.transform-node__box {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 20px 26px;
  border-radius: var(--radius-md);
  border: 1.5px solid rgba(255, 255, 255, 0.15);
  color: var(--gray-300);
  font-weight: 700;
  font-size: 15px;
}

.transform-node__box svg {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}

.transform-node__box--active {
  background: linear-gradient(135deg, var(--red-2), var(--red-dark));
  border-color: transparent;
  color: var(--white);
  box-shadow: var(--shadow-red);
}

.transform-arrow {
  width: 46px;
  height: 2px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.35));
  position: relative;
  flex-shrink: 0;
}

.transform-arrow span {
  position: absolute;
  right: -1px;
  top: 50%;
  width: 8px;
  height: 8px;
  border-right: 2px solid rgba(255, 255, 255, 0.5);
  border-top: 2px solid rgba(255, 255, 255, 0.5);
  transform: translateY(-50%) rotate(45deg);
}

.transform-results {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.transform-result {
  padding: 12px 20px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 13.5px;
  font-weight: 700;
  color: var(--gray-300);
}

.transform-result--strong {
  background: linear-gradient(135deg, var(--red-2), var(--red-dark));
  color: var(--white);
  border-color: transparent;
  font-size: 14.5px;
}

/* =========================================================
   20% COMISIÓN — impact section
========================================================= */
.commission-impact {
  background:
    radial-gradient(circle at 15% 20%, rgba(255, 255, 255, 0.08), transparent 45%),
    linear-gradient(135deg, var(--red-2) 0%, var(--red) 50%, var(--red-dark) 100%);
  padding: 130px 0;
  text-align: center;
  color: var(--white);
}

.commission-impact__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.commission-impact__value {
  font-size: clamp(90px, 18vw, 190px);
  font-weight: 800;
  font-style: italic;
  line-height: 1;
  text-shadow: 0 15px 40px rgba(0, 0, 0, 0.25);
}

.commission-impact__caption {
  font-weight: 800;
  font-size: clamp(16px, 2.2vw, 23px);
  letter-spacing: 1.2px;
  margin-top: 10px;
}

.commission-impact__text {
  max-width: 540px;
  margin: 22px auto 0;
  font-size: 17px;
  color: rgba(255, 255, 255, 0.92);
  line-height: 1.5;
}

.commission-pipeline {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 48px 0 46px;
  flex-wrap: wrap;
  justify-content: center;
}

.pipeline-node {
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(6px);
  border-radius: var(--radius-pill);
  padding: 15px 26px;
  font-weight: 800;
  letter-spacing: 0.2px;
  font-size: 14.5px;
}

.pipeline-node--result {
  background: var(--white);
  color: var(--red);
}

.pipeline-line {
  width: 34px;
  height: 2px;
  background: rgba(255, 255, 255, 0.5);
}

/* =========================================================
   BENEFICIOS — asymmetric bento
========================================================= */
.benefits {
  background: var(--off-white);
  padding: 120px 0;
}

.benefits-bento {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(2, auto);
  gap: 20px;
}

.benefit {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
  grid-column: span 1;
}

.benefit:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.1);
}

.benefit--lg {
  grid-column: 1 / span 2;
  grid-row: 1 / span 2;
  background: var(--black);
  color: var(--white);
  justify-content: center;
  padding: 44px;
}

.benefit--lg .benefit__number {
  color: var(--red-2);
}

.benefit--lg p {
  color: var(--gray-300);
  font-size: 16px;
}

.benefit:nth-of-type(2) { grid-column: 3 / span 2; grid-row: 1; }
.benefit:nth-of-type(3) { grid-column: 3; grid-row: 2; }
.benefit:nth-of-type(4) { grid-column: 4; grid-row: 2; }

.benefit__number {
  font-size: 34px;
  font-weight: 800;
  color: var(--gray-300);
  font-style: italic;
}

.benefit h3 {
  font-size: 20px;
}

.benefit--lg h3 { font-size: 28px; }

.benefit p {
  color: var(--gray-600);
  font-size: 14.5px;
  line-height: 1.5;
}

.benefit__badge {
  margin-top: 6px;
  display: inline-flex;
  width: fit-content;
  background: rgba(239, 22, 22, 0.15);
  color: var(--red-2);
  border: 1px solid rgba(239, 22, 22, 0.35);
  padding: 7px 14px;
  border-radius: var(--radius-pill);
  font-size: 12.5px;
  font-weight: 700;
}

/* =========================================================
   CÓMO FUNCIONA
========================================================= */
.how {
  background: var(--black);
  color: var(--white);
  padding: 120px 0;
}

.how .section-head { margin-left: auto; margin-right: auto; text-align: center; }

.steps-flow {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 20px;
}

.steps-flow__line {
  position: absolute;
  top: 26px;
  left: 12%;
  right: 12%;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(239, 22, 22, 0.6), transparent);
  z-index: 0;
}

.step {
  position: relative;
  z-index: 1;
}

.step__number {
  display: block;
  font-size: 52px;
  font-weight: 800;
  font-style: italic;
  background: linear-gradient(135deg, var(--red-2), var(--red-dark));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 14px;
}

.step h3 {
  font-size: 20px;
  margin-bottom: 8px;
}

.step p {
  color: var(--gray-500);
  font-size: 15px;
  max-width: 260px;
  line-height: 1.5;
}

/* =========================================================
   PARA QUIÉN ES
========================================================= */
.audience {
  background: var(--white);
  padding: 110px 0;
  text-align: center;
}

.audience .section-head {
  margin-left: auto;
  margin-right: auto;
}

.audience h2 {
  font-size: clamp(28px, 3.6vw, 42px);
}

.audience-row {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
  margin: 8px 0 32px;
}

.audience-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--off-white);
  border-radius: var(--radius-pill);
  padding: 16px 24px;
  font-weight: 700;
  font-size: 14.5px;
  transition: transform 0.3s var(--ease), background 0.3s ease;
}

.audience-chip:hover {
  background: var(--gray-100);
  transform: translateY(-3px);
}

.audience-chip svg {
  width: 20px;
  height: 20px;
  color: var(--red);
  flex-shrink: 0;
}

.audience-text {
  max-width: 480px;
  margin: 0 auto;
  color: var(--gray-600);
  font-size: 16px;
}

/* =========================================================
   CTA FINAL
========================================================= */
.final-cta {
  position: relative;
  overflow: hidden;
  background: var(--black);
  color: var(--white);
  padding: 130px 0;
  text-align: center;
}

.final-cta .hero__glow--1 {
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  right: auto;
}

.final-cta__inner {
  position: relative;
  z-index: 1;
  max-width: 640px;
}

.final-cta h2 {
  font-size: clamp(30px, 4.4vw, 46px);
  margin-bottom: 18px;
}

.final-cta p {
  color: var(--gray-400);
  font-size: 17px;
}

.final-cta__actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 12px;
}

/* =========================================================
   FOOTER
========================================================= */
.site-footer {
  background: var(--black);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 44px 0;
  text-align: center;
}

.site-footer__logo {
  height: 34px;
  margin: 0 auto 14px;
}

.site-footer p {
  margin: 4px 0;
  color: var(--gray-500);
  font-size: 14px;
}

.site-footer__legal {
  max-width: 640px;
  margin: 12px auto 0;
  font-size: 12px;
  opacity: 0.7;
}

/* =========================================================
   WhatsApp floating button
========================================================= */
.whatsapp-float {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 999;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #25d366;
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 12px 30px rgba(37, 211, 102, 0.45);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
  animation: wa-pulse 2.8s ease-in-out infinite;
}

.whatsapp-float:hover {
  transform: scale(1.08);
  box-shadow: 0 16px 36px rgba(37, 211, 102, 0.55);
}

.whatsapp-float svg {
  width: 30px;
  height: 30px;
}

@keyframes wa-pulse {
  0%, 100% { box-shadow: 0 12px 30px rgba(37, 211, 102, 0.45), 0 0 0 0 rgba(37, 211, 102, 0.4); }
  50% { box-shadow: 0 12px 30px rgba(37, 211, 102, 0.45), 0 0 0 10px rgba(37, 211, 102, 0); }
}

/* =========================================================
   RESPONSIVE
========================================================= */
@media (max-width: 1100px) {
  .hero__inner { gap: 32px; }
  .commission-float { width: 168px; padding: 18px 18px 16px; }
  .commission-float__value, .commission-float__pct { font-size: 38px; }
}

@media (max-width: 960px) {
  .container { padding: 0 24px; }
  .site-header__inner { padding: 0 24px; }
  .hero__inner { padding: 0 24px; }

  .hero {
    min-height: 0;
    padding: 56px 0 90px;
  }

  .hero__inner {
    grid-template-columns: minmax(0, 1fr);
    text-align: center;
  }

  .hero__subtitle { margin-left: auto; margin-right: auto; }
  .hero__actions { justify-content: center; }
  .hero__proof { justify-content: center; flex-wrap: wrap; }

  .hero__visual {
    min-height: 0;
    margin-top: 56px;
    padding: 0 20px;
  }

  .float-chip--approved { right: 0; }
  .commission-float { left: -2%; }

  .services-bento {
    grid-template-columns: repeat(2, 1fr);
  }

  .service-feature {
    grid-column: 1 / -1;
    grid-row: auto;
    grid-template-columns: 1fr;
  }

  .benefits-bento {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: auto;
  }

  .benefit--lg {
    grid-column: 1 / -1;
    grid-row: auto;
  }

  .benefit:nth-of-type(2) { grid-column: 1 / span 1; grid-row: auto; }
  .benefit:nth-of-type(3) { grid-column: 2 / span 1; grid-row: auto; }
  .benefit:nth-of-type(4) { grid-column: 1 / span 1; grid-row: auto; }

  .steps-flow {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .steps-flow__line { display: none; }

  .transform-flow { flex-direction: column; }
  .transform-arrow { width: 2px; height: 32px; }
  .transform-arrow span { right: 50%; top: auto; bottom: -1px; transform: translateX(50%) rotate(135deg); }
}

@media (max-width: 680px) {
  /* Let headings reflow naturally instead of using the desktop-tuned line breaks */
  h1 br, h2 br { display: none; }

  .container { padding: 0 20px; }
  .site-header__inner { padding: 0 20px; }
  .hero__inner { padding: 0 20px; }

  .brand__logo { height: 34px; }
  .site-header.is-scrolled .brand__logo { height: 30px; }

  .section-head { margin-bottom: 44px; }

  .services, .transform, .benefits, .how, .audience { padding: 72px 0; }
  .commission-impact { padding: 90px 0; }
  .final-cta { padding: 90px 0; }

  .hero__actions { flex-direction: column; align-items: stretch; }
  .hero__actions .btn { width: 100%; }

  .hero__composition { flex-direction: column; }
  .dashboard-card { transform: rotate(0); }
  .commission-float { position: static; margin: 28px auto 0; transform: none; animation: none; width: 220px; flex-shrink: 0; }
  .float-chip--approved { position: static; margin: 16px auto 0; display: inline-flex; animation: none; flex-shrink: 0; }
  .hero__visual { display: flex; flex-direction: column; align-items: center; }

  .services-bento { grid-template-columns: 1fr; }
  .service-feature { grid-template-columns: 1fr; }

  .benefits-bento { grid-template-columns: 1fr; }
  .benefit--lg, .benefit:nth-of-type(2), .benefit:nth-of-type(3), .benefit:nth-of-type(4) {
    grid-column: 1 / -1;
    grid-row: auto;
  }

  .commission-pipeline { flex-direction: column; }
  .pipeline-line { width: 2px; height: 20px; }

  .audience-row { flex-direction: column; align-items: stretch; }
  .audience-chip { justify-content: center; }

  .final-cta__actions { flex-direction: column; align-items: stretch; }
  .final-cta__actions .btn { width: 100%; }

  .commission-impact__value { font-size: 88px; }

  .whatsapp-float { right: 16px; bottom: 16px; width: 52px; height: 52px; }
  .whatsapp-float svg { width: 26px; height: 26px; }
}

@media (max-width: 380px) {
  .commission-float { width: 190px; }
  .service-feature { padding: 24px; }
  .benefit, .benefit--lg { padding: 26px; }
}
