/* Page sections: hero, value + cards, steps, features, under-the-hood, sellers, dropshipping, closing CTA, footer */

/* Photo backgrounds (carried over from the previous site).
   The photo lives in ::before and the veil in ::after, never as the section's
   own background and never with opacity on the section: opacity is inherited,
   so lowering it on the section would also fade the text and buttons.
   `isolation` keeps the negative z-index layers inside the section, above its
   flat background and below its content.
   What you see is `photo opacity x (1 - veil)`: tune both numbers together.
   Every veil keeps body text at AA or better even over a white pixel. */
.photo-bg {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--bg);
}

.photo-bg::before,
.photo-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.photo-bg::before {
  z-index: -2;
  background: var(--photo) center / cover no-repeat;
  opacity: 0.78;
  /* The source photos are small or busy: a light blur reads as depth, not as a
     defect, and clears the text on top. `scale` hides the blurred edge. */
  filter: blur(3px);
  transform: scale(1.04);
}

.photo-bg::after {
  z-index: -1;
  /* Strong on the text side (left), lighter where the card or mockup sits */
  background: linear-gradient(90deg,
    rgba(5, 8, 38, 0.92) 0%,
    rgba(5, 8, 38, 0.86) 50%,
    rgba(5, 8, 38, 0.62) 100%);
}

.photo-bg--proveedores {
  --photo: url('../img/bg-proveedores-1400.webp');
  border-top: 1px solid var(--line);
}

.photo-bg--vendedores {
  --photo: url('../img/bg-vendedores-1000.webp');
  border-top: 1px solid var(--line);
}

.photo-bg--closing {
  --photo: url('../img/bg-empezamos-1920.webp');
}

/* The closing photo is sharp and large enough: no blur, framed so faces and
   thumbs both fit. An even veil darkens it; the dark "lagoon" behind the text
   (on .closing__inner) does the rest of the legibility work. */
.photo-bg--closing::before {
  background-position: center 34%;
  opacity: 1;
  filter: none;
  transform: none;
}

.photo-bg--closing::after {
  background: rgba(5, 8, 38, 0.45);
}

.eyebrow {
  color: var(--link);
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.tag {
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-2);
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.4;
  white-space: nowrap;
}

.tag--green { background: rgba(34, 197, 94, 0.16); color: var(--green-soft); }
.tag--violet { background: rgba(139, 124, 255, 0.18); color: #C2B9FF; }

.section {
  padding-top: var(--section-y);
  padding-bottom: var(--section-y);
}

.section--bg {
  background: var(--bg);
  border-top: 1px solid var(--line);
}

.section--raised {
  background: var(--bg-raised);
}

.section--deep {
  background: var(--bg-deep);
  border-top: 1px solid var(--line);
}

.section-title {
  font-size: var(--fs-h2);
}

.section-title--center {
  text-align: center;
}

.lead {
  font-size: var(--fs-lead);
  line-height: 1.6;
  color: var(--text-2);
}

.stack {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.cta-row {
  display: flex;
  justify-content: center;
}

/* Hero */

.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(1100px 600px at 18% 30%, var(--glow) 0%, rgba(28, 24, 112, 0) 70%),
    var(--bg-raised);
}

.hero__grid {
  padding-top: clamp(3.5rem, 2rem + 5vw, 7rem);
  padding-bottom: clamp(4rem, 2.5rem + 5vw, 7.5rem);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: 56px;
  align-items: center;
}

.hero__copy {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.hero__title {
  font-size: var(--fs-h1);
  line-height: 1.02;
  letter-spacing: -0.035em;
}

.hero__title-accent {
  display: block;
  color: var(--accent);
}

.hero__lead {
  max-width: 560px;
  font-size: clamp(1.0625rem, 0.95rem + 0.55vw, 1.3125rem);
  line-height: 1.55;
  color: var(--text-2);
}

.hero__lead + .hero__lead {
  margin-top: -20px;
}

.hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

/* Value proposition: intro + 3 benefit cards over the supplier photo */

.value {
  display: flex;
  flex-direction: column;
  gap: 56px;
}

.value__intro {
  max-width: 820px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* Cards run across the whole photo here, not only on the right: even veil */
.photo-bg--proveedores::after {
  background: linear-gradient(180deg,
    rgba(5, 8, 38, 0.90) 0%,
    rgba(5, 8, 38, 0.80) 100%);
}

/* Cards: one surface for the whole page (benefits, under the hood, problems).
   A dark glass sheet: translucent enough to let the section photo or glow
   show through, dark enough that the text keeps AA on its own. */

.card-grid {
  display: grid;
  gap: 20px;
  list-style: none;
  padding: 0;
}

.card-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.card-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

/* 5 cards as 3 + 2, the second row centered */
.card-grid--solve { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.card-grid--solve > li { grid-column: span 2; }
.card-grid--solve > li:nth-child(4) { grid-column: 2 / span 2; }

.card {
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: clamp(24px, 1.2rem + 0.8vw, 30px);
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.07) 0%, rgba(255, 255, 255, 0.02) 60%),
    rgba(12, 15, 50, 0.62);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  backdrop-filter: blur(14px) saturate(140%);
  border: 1px solid rgba(201, 204, 235, 0.16);
  border-radius: 16px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.card:hover {
  border-color: rgba(169, 156, 255, 0.45);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 22px 48px -22px rgba(96, 66, 246, 0.65);
}

@media (prefers-reduced-motion: no-preference) {
  .card:hover {
    transform: translateY(-4px);
  }
}

.card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin-bottom: 6px;
  border-radius: 12px;
  background: rgba(96, 66, 246, 0.22);
  border: 1px solid rgba(139, 124, 255, 0.4);
  color: var(--link-hover);
}

.card h3,
.card h4 {
  margin: 0;
  font-size: clamp(1.1875rem, 1.1rem + 0.4vw, 1.375rem);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

.card p {
  font-size: var(--fs-body);
  line-height: 1.6;
  color: var(--text-3);
}

/* One key phrase per card, in the accent */
.card .hl {
  color: var(--link-hover);
  font-weight: 600;
}

.card .tag {
  align-self: flex-start;
}

/* Steps */

.how {
  display: flex;
  flex-direction: column;
  gap: 64px;
}

.steps {
  position: relative;
}

.steps__track {
  position: absolute;
  left: 16.66%;
  right: 16.66%;
  top: 36px;
  height: 3px;
  background: var(--line-strong);
  border-radius: 3px;
}

.steps__line {
  height: 3px;
  width: 100%;
  background: var(--primary);
  border-radius: 3px;
  transform-origin: left center;
}

.steps__list {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 40px;
  list-style: none;
  padding: 0;
}

.step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  text-align: center;
}

.step__num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 0 8px rgba(96, 66, 246, 0.18);
  font-size: 2rem;
  font-weight: 700;
}

.step h3 {
  font-size: clamp(1.375rem, 1.2rem + 0.6vw, 1.625rem);
  letter-spacing: -0.01em;
}

.step p {
  max-width: 360px;
  color: var(--text-3);
}

/* Features */

.features {
  position: relative;
  background:
    radial-gradient(900px 500px at 80% 40%, var(--glow) 0%, rgba(28, 24, 112, 0) 70%),
    var(--bg-raised);
}

.features__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 64px;
  align-items: center;
}

.features__copy {
  gap: 26px;
}

.features__copy .section-title {
  font-size: clamp(1.875rem, 1.2rem + 2.5vw, 3.125rem);
}

.checklist {
  display: flex;
  flex-direction: column;
  gap: 16px;
  list-style: none;
  padding: 0;
}

.checklist li {
  display: flex;
  gap: 14px;
  font-size: clamp(1.0625rem, 1rem + 0.2vw, 1.125rem);
  line-height: 1.55;
  color: var(--text-2);
}

.checklist svg {
  flex-shrink: 0;
  margin-top: 3px;
}

.checklist strong {
  color: var(--text);
}

/* Under the hood */

.solve {
  display: flex;
  flex-direction: column;
  gap: 56px;
}

.solve__head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  text-align: center;
}

.solve__head .section-title {
  font-size: var(--fs-h2-xl);
}

.solve__head p {
  max-width: 640px;
  font-size: var(--fs-lead);
  color: var(--text-3);
}

/* Section head: eyebrow over the title. */

.how__head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
}







/* For sellers */

.sellers {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 64px;
  align-items: center;
}

.sellers__copy {
  gap: 24px;
}

.sellers__copy .eyebrow {
  margin-bottom: -12px;
}

.sellers__cta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
}

.sellers__note {
  color: var(--text-3);
  font-size: 0.9375rem;
}

/* What dropshipping is */

.dropship {
  display: flex;
  flex-direction: column;
  gap: clamp(3.5rem, 2.5rem + 3vw, 5rem);
}

.dropship__head,
.dropship__subhead {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  text-align: center;
}

.dropship__head p,
.dropship__subhead p {
  font-size: var(--fs-lead);
  line-height: 1.6;
  color: var(--text-2);
}

.dropship__subhead h3 {
  font-size: clamp(1.5rem, 1.25rem + 1vw, 2rem);
  letter-spacing: -0.02em;
}

.pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 8px;
  list-style: none;
  padding: 0;
}

.pills li {
  padding: 10px 18px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--card);
  color: var(--text);
  font-weight: 600;
}

.dropship__problems {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

/* Closing CTA */

.closing {
  padding: clamp(2rem, 1rem + 5vw, 8rem) 0;
}

.closing__inner {
  max-width: 980px;
  margin: 0 auto;
  padding-top: clamp(4.5rem, 3rem + 4.5vw, 7.5rem);
  padding-bottom: clamp(4.5rem, 3rem + 4.5vw, 7.5rem);
  /* The dark lagoon under the text. `closest-side` makes the ellipse end exactly
     at the box edges, so it fades to transparent before any visible edge. */
  background: radial-gradient(closest-side at 50% 50%,
    rgba(5, 8, 38, 0.84) 0%,
    rgba(5, 8, 38, 0.76) 60%,
    rgba(5, 8, 38, 0.36) 88%,
    rgba(5, 8, 38, 0) 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 26px;
  text-align: center;
}

.closing h2 {
  font-size: var(--fs-display);
  line-height: 1;
  letter-spacing: -0.035em;
}

.closing__accent {
  display: block;
  color: var(--on-primary-accent);
}

.closing p {
  max-width: 700px;
  font-size: var(--fs-lead);
  color: var(--on-primary-soft);
}

.closing p strong {
  color: var(--text);
  white-space: nowrap;
}

.closing__ctas {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
}

.btn--closing {
  min-height: 68px;
  padding: 0 32px;
  border-radius: 16px;
  border-color: rgba(255, 255, 255, 0.6);
  background: rgba(5, 8, 38, 0.6);
  font-size: clamp(1.125rem, 1rem + 0.45vw, 1.3125rem);
}

.btn--closing:hover {
  background: rgba(5, 8, 38, 0.8);
}

.closing a:focus-visible,
.closing .btn:focus-visible {
  outline-color: var(--text);
}

/* Footer */

.site-footer {
  background:
    radial-gradient(800px 300px at 30% 0%, #15125A 0%, rgba(21, 18, 90, 0) 70%),
    var(--bg-deep);
}

.site-footer__grid {
  padding-top: clamp(3.5rem, 2.5rem + 3vw, 5.5rem);
  padding-bottom: 40px;
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr));
  gap: 40px;
}

.site-footer__about {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.site-footer__about p {
  max-width: 420px;
  color: var(--text-3);
}

.footer-col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
}

.footer-col h2 {
  margin-bottom: 6px;
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: 0;
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  list-style: none;
  padding: 0;
}

.footer-col ul a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--text-3);
  text-decoration: none;
}

.footer-col ul a:hover {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.site-footer__bottom {
  padding-top: 24px;
  /* leave room for the floating WhatsApp button */
  padding-bottom: 104px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  color: var(--muted);
  font-size: 0.9375rem;
}

/* Floating WhatsApp */

.wa-float {
  position: fixed;
  right: max(16px, env(safe-area-inset-right));
  bottom: max(16px, env(safe-area-inset-bottom));
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--whatsapp);
  box-shadow: 0 10px 30px rgba(37, 211, 102, 0.45);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.wa-float:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 34px rgba(37, 211, 102, 0.55);
}

.wa-float:focus-visible {
  outline-color: var(--text);
  border-radius: 50%;
}

@media (min-width: 641px) {
  .wa-float {
    right: 24px;
    bottom: 24px;
  }
}

/* Responsive */

@media (max-width: 1100px) {
  .site-footer__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .site-footer__about {
    grid-column: 1 / -1;
  }
}

@media (max-width: 900px) {
  .hero__grid,
  .features__grid,
  .sellers {
    grid-template-columns: minmax(0, 1fr);
    gap: 48px;
  }

  /* Columns stack, so the text runs over the whole photo: even, stronger veil */
  .photo-bg::after {
    background: rgba(5, 8, 38, 0.86);
  }

  .photo-bg--proveedores { --photo: url('../img/bg-proveedores-800.webp'); }
  .photo-bg--vendedores { --photo: url('../img/bg-vendedores-640.webp'); }
  .photo-bg--closing { --photo: url('../img/bg-empezamos-960.webp'); }

  /* Narrow screens: the text reaches the edges of the lagoon, so the whole
     photo gets the darker veil instead */
  .photo-bg--closing::after {
    background: rgba(5, 8, 38, 0.72);
  }

  .closing__inner {
    background: none;
  }


  .card-grid--2,
  .card-grid--3 {
    grid-template-columns: minmax(0, 1fr);
  }

  /* 5 cards in 2 columns: the last one spans the row instead of leaving a gap */
  .card-grid--solve {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .card-grid--solve > li,
  .card-grid--solve > li:nth-child(4) {
    grid-column: auto;
  }

  .card-grid--solve > li:last-child {
    grid-column: 1 / -1;
  }

  .steps__track {
    display: none;
  }

  .steps__list {
    grid-template-columns: minmax(0, 1fr);
    gap: 48px;
  }
}

@media (max-width: 640px) {
  .hero__copy {
    gap: 24px;
  }

  .hero__lead + .hero__lead {
    margin-top: -12px;
  }

  .hero__ctas .btn {
    width: 100%;
  }

  .value,
  .solve,
  .how {
    gap: 40px;
  }

  .card-grid--solve {
    grid-template-columns: minmax(0, 1fr);
  }

  .card-grid--solve > li:last-child {
    grid-column: auto;
  }

  .features__copy .btn,
  .sellers__cta,
  .sellers__cta .btn,
  .cta-row .btn {
    width: 100%;
  }

  .btn--light,
  .btn--closing {
    width: 100%;
    padding: 0 20px;
  }

  .site-footer__grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
  }
}
