/* MaxWin LATAM — refresh layer: minimal, modern, readable (2026-11-03)
   Loaded AFTER mw-base.css and mw-themes.css. Uses only theme variables,
   so every site keeps its own colours and fonts. No HTML changes needed. */

body.mw-site {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* ---------- Type ---------- */
.mw-h1 {
  letter-spacing: -0.025em;
  line-height: 1.04;
  font-size: clamp(2rem, 4.6vw, 3.25rem);
}

.mw-h2,
.mw-vitrina__head h2 {
  letter-spacing: -0.02em;
  line-height: 1.12;
  font-size: clamp(1.5rem, 2.8vw, 2.15rem);
  margin-bottom: 0.75rem;
}

.mw-prose h3,
.mw-card h3,
.mw-vitrina__live h3 {
  letter-spacing: -0.01em;
}

.mw-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.7rem;
  letter-spacing: 0.16em;
}

.mw-eyebrow::before {
  width: 0.4rem;
  height: 0.4rem;
  content: "";
  background: currentColor;
  border-radius: 50%;
}

.mw-lead {
  line-height: 1.6;
}

/* ---------- Buttons: clean, no glow clutter ---------- */
.mw-btn {
  letter-spacing: 0.01em;
}

body.mw-site .mw-btn--pri {
  border: 0;
  text-shadow: none;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.28);
}

body.mw-site .mw-btn--pri:hover {
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.34);
}

/* Fix: buttons inside text blocks inherited the link colour */
body.mw-site .mw-prose a.mw-btn--pri,
body.mw-site .mw-prose a.mw-btn--pri:visited {
  color: var(--mw-btn-fg);
  text-decoration: none;
}

body.mw-site .mw-btn--ghost {
  border-width: 1px;
  background: rgba(255, 255, 255, 0.04);
}

/* ---------- Chips ---------- */
.mw-hero__chips {
  gap: 0.4rem;
}

.mw-hero__chips li,
.mw-vitrina__cats li {
  padding: 0.3rem 0.7rem;
  font-size: 0.75rem;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--mw-border);
}

/* ---------- Section rhythm ---------- */
.mw-sect {
  padding: clamp(3rem, 6vw, 5rem) 0;
}

.mw-sect + .mw-sect {
  border-top: 1px solid var(--mw-border);
}

.mw-sect--alt {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.025), rgba(255, 255, 255, 0));
}

.mw-vitrina {
  padding: clamp(2.5rem, 5vw, 4rem) 0 clamp(1rem, 2.5vw, 1.75rem);
}

/* Vitrina → first prose section: avoid double stack of section padding */
.mw-vitrina + .mw-sect {
  padding-top: clamp(1.25rem, 2.5vw, 2rem);
}

/* ---------- Reading column ---------- */
.mw-prose {
  max-width: 46rem;
}

.mw-prose p,
.mw-prose li {
  line-height: 1.75;
}

.mw-prose h3 {
  margin-top: 2rem;
}

.mw-prose ul {
  padding-left: 0;
  list-style: none;
}

.mw-prose ul li {
  position: relative;
  padding-left: 1.4rem;
  margin-bottom: 0.5rem;
}

.mw-prose ul li::before {
  position: absolute;
  top: 0.72em;
  left: 0.15rem;
  width: 0.45rem;
  height: 0.45rem;
  content: "";
  background: var(--mw-accent-2);
  border-radius: 50%;
}

/* Numbered steps as tidy cards */
.mw-steps {
  counter-reset: mw-step;
  display: grid;
  gap: 0.6rem;
  padding-left: 0;
  list-style: none;
}

.mw-prose--center .mw-steps {
  display: grid;
  max-width: 40rem;
}

.mw-steps li {
  counter-increment: mw-step;
  position: relative;
  margin: 0;
  padding: 0.85rem 1rem 0.85rem 3.1rem;
  color: var(--mw-text);
  text-align: left;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--mw-border);
  border-radius: 14px;
}

.mw-steps li::before {
  position: absolute;
  top: 0.8rem;
  left: 0.9rem;
  display: grid;
  width: 1.6rem;
  height: 1.6rem;
  place-items: center;
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--mw-btn-fg);
  content: counter(mw-step);
  background: var(--mw-btn-bg);
  border-radius: 50%;
}

/* ---------- Cards ---------- */
.mw-card,
.mw-seo-point {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--mw-border);
  border-radius: 16px;
  box-shadow: none;
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.mw-grid-3 .mw-card:hover,
.mw-seo-point:hover {
  border-color: var(--mw-chip-border);
  transform: translateY(-2px);
}

.mw-grid-3 .mw-card h3 {
  margin-top: 0;
  font-size: 1.05rem;
}

.mw-grid-3 .mw-card p {
  margin-bottom: 0;
  color: var(--mw-muted);
}

/* ---------- Vitrina ---------- */
.mw-vitrina__tile {
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
}

.mw-vitrina__tile img {
  border-radius: 14px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
  transition: transform 0.2s ease;
}

.mw-vitrina__tile:hover {
  box-shadow: none;
  transform: none;
}

.mw-vitrina__tile:hover img {
  transform: translateY(-4px);
}

.mw-vitrina__tile strong {
  font-size: 0.85rem;
}

.mw-vitrina__live {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--mw-border);
  border-radius: 16px;
}

/* ---------- Install screenshots: compact, side by side ---------- */
.mw-install-grid {
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  max-width: 34rem;
  margin-inline: auto;
}

.mw-app-install--left .mw-install-grid {
  max-width: 34rem;
  margin-inline: 0;
}

.mw-install-grid figure {
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.03);
}

.mw-install-grid figcaption {
  font-size: 0.75rem;
  text-align: center;
}

/* ---------- FAQ: clean list ---------- */
#faq .mw-faq {
  gap: 0;
  max-width: 50rem;
  border-top: 1px solid var(--mw-border);
}

#faq .mw-faq .mw-card {
  padding: 1.15rem 0;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--mw-border);
  border-radius: 0;
}

#faq .mw-faq .mw-card:hover {
  transform: none;
}

#faq .mw-faq .mw-card h3 {
  margin: 0 0 0.35rem;
  font-size: 1.02rem;
}

#faq .mw-faq .mw-card p {
  margin: 0;
  color: var(--mw-muted);
}

/* ---------- Footer ---------- */
.mw-foot {
  margin-top: 0;
}

.mw-foot h4 {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mw-muted);
}

/* ---------- Mobile ---------- */
@media (max-width: 767px) {
  .mw-sect {
    padding: 2.5rem 0;
  }

  .mw-steps li {
    padding-left: 2.9rem;
  }

  .mw-install-grid {
    gap: 0.5rem;
  }

  .mw-install-grid figcaption {
    padding: 0.5rem;
    font-size: 0.7rem;
  }

  /* Text over the hero photo stays readable on phones */
  .mw-hero--overlay-left .mw-hero__shade,
  .mw-hero--overlay-right .mw-hero__shade {
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.45) 0%, rgba(0, 0, 0, 0.78) 55%, rgba(0, 0, 0, 0.9) 100%);
  }
}

/* ======================================================================
   Install section: a different, natural layout per site (no HTML change)
   MX: centred step cards (default above)
   CO APK: three steps in a row
   AR APK: steps on the left, screenshots on the right
   CL: screenshots on the left, timeline steps on the right
   PE: big numbers without boxes, screenshots in a soft panel
   ====================================================================== */

/* --- CO APK: steps in a row --- */
@media (min-width: 768px) {
  body.mw-theme-co-apk #descarga-app .mw-wrap {
    max-width: 1140px;
  }

  body.mw-theme-co-apk #descarga-app .mw-lead {
    max-width: 44rem;
    margin-inline: auto;
  }

  body.mw-theme-co-apk #descarga-app .mw-steps {
    max-width: none;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
  }

  body.mw-theme-co-apk #descarga-app .mw-steps li {
    padding: 3.4rem 1.25rem 1.25rem;
  }

  body.mw-theme-co-apk #descarga-app .mw-steps li::before {
    top: 1.15rem;
    left: 1.25rem;
  }
}

/* --- AR APK: text + steps left, screenshots right --- */
@media (min-width: 900px) {
  body.mw-theme-ar-apk #descarga-app .mw-wrap {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    grid-template-rows: auto auto auto auto 1fr;
    column-gap: 3.5rem;
    max-width: 1140px;
  }

  body.mw-theme-ar-apk #descarga-app .mw-wrap > * {
    grid-column: 1;
  }

  body.mw-theme-ar-apk #descarga-app .mw-install-grid {
    grid-column: 2;
    grid-row: 1 / span 5;
    align-self: center;
    max-width: none;
    margin: 0;
  }

  body.mw-theme-ar-apk #descarga-app .mw-install-cta {
    align-self: start;
  }
}

/* --- CL: screenshots left, timeline right --- */
body.mw-theme-cl-apk #descarga-app .mw-steps {
  gap: 0;
}

body.mw-theme-cl-apk #descarga-app .mw-steps li {
  padding: 0.15rem 0 1.5rem 3rem;
  background: none;
  border: 0;
  border-radius: 0;
}

body.mw-theme-cl-apk #descarga-app .mw-steps li::before {
  top: 0;
  left: 0;
  width: 2rem;
  height: 2rem;
}

body.mw-theme-cl-apk #descarga-app .mw-steps li:not(:last-child)::after {
  position: absolute;
  top: 2.3rem;
  bottom: 0.3rem;
  left: calc(1rem - 1px);
  width: 2px;
  content: "";
  background: var(--mw-border);
}

@media (min-width: 900px) {
  body.mw-theme-cl-apk #descarga-app .mw-wrap {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    grid-template-rows: auto auto auto auto 1fr;
    column-gap: 3.5rem;
    max-width: 1140px;
  }

  body.mw-theme-cl-apk #descarga-app .mw-wrap > * {
    grid-column: 2;
  }

  body.mw-theme-cl-apk #descarga-app .mw-install-grid {
    grid-column: 1;
    grid-row: 1 / span 5;
    align-self: center;
    max-width: none;
    margin: 0;
  }

  body.mw-theme-cl-apk #descarga-app .mw-install-cta {
    align-self: start;
  }
}

/* --- PE: big numbers, no boxes; screenshots in a panel --- */
body.mw-theme-pe-apk #descarga-app .mw-steps li {
  padding: 0 0 0 3.2rem;
  background: none;
  border: 0;
  border-radius: 0;
}

body.mw-theme-pe-apk #descarga-app .mw-steps li::before {
  top: -0.2rem;
  left: 0;
  width: auto;
  height: auto;
  font-family: var(--mw-font-head);
  font-size: 1.7rem;
  line-height: 1;
  color: var(--mw-accent-2);
  content: "0" counter(mw-step);
  background: none;
}

body.mw-theme-pe-apk #descarga-app .mw-steps {
  gap: 1.1rem;
  margin-bottom: 2rem;
}

body.mw-theme-pe-apk #descarga-app .mw-install-grid {
  padding: 0.9rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--mw-border);
  border-radius: 22px;
}

@media (min-width: 768px) {
  body.mw-theme-pe-apk #descarga-app .mw-wrap {
    max-width: 1140px;
  }

  body.mw-theme-pe-apk #descarga-app .mw-lead {
    max-width: 44rem;
    margin-inline: auto;
  }

  body.mw-theme-pe-apk #descarga-app .mw-steps {
    max-width: 62rem;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2rem;
  }

  body.mw-theme-pe-apk #descarga-app .mw-steps li {
    padding: 2.6rem 0 0;
    border-top: 1px solid var(--mw-border);
  }

  body.mw-theme-pe-apk #descarga-app .mw-steps li::before {
    top: 0.75rem;
  }
}
