/* ==========================================================================
   MP Envíos — Landing Page
   Design tokens sampled from the real app (mpenvios.com.ar/login)
   ========================================================================== */

:root {
  --bg: #0c0e12;
  --bg-panel: #14171c;
  --bg-panel-2: #191c22;

  --orange: #fe8b13;
  --orange-dark: #e57d0d;
  --on-orange: #1a1206;

  --text: #edeef0;
  --text-soft: rgba(237,238,240,0.72);
  --text-mute: rgba(237,238,240,0.5);

  --border: #262a32;
  --border-soft: rgba(255,255,255,0.1);

  --radius-sm: 6px;
  --radius-md: 10px;

  --font: "Sora", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;

  --container: 1180px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
}
body.is-loading { overflow: hidden; }

/* ---------- Page loader ---------- */
.page-loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  transition: opacity 0.4s ease, visibility 0.4s ease;
}
.page-loader.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.page-loader-logo {
  width: 130px;
  height: auto;
  animation: page-loader-pulse 1.3s ease-in-out infinite;
}
@keyframes page-loader-pulse {
  0%, 100% { opacity: 0.55; transform: scale(0.92); }
  50% { opacity: 1; transform: scale(1); }
}
@media (prefers-reduced-motion: reduce) {
  .page-loader-logo { animation: none; }
}

h1, h2, h3, h4 {
  font-family: var(--font);
  font-weight: 600;
  line-height: 1.2;
  margin: 0 0 0.5em;
  color: var(--text);
  letter-spacing: -0.01em;
}

p { margin: 0 0 1em; color: var(--text-soft); line-height: 1.6; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
ul { list-style: none; margin: 0; padding: 0; }
button { font-family: inherit; cursor: pointer; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.section-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 10px;
}

.section-head {
  max-width: 620px;
  margin: 0 0 32px;
}
.section-head h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); }
.section-head p { font-size: 1rem; margin-bottom: 0; }

section { position: relative; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.92rem;
  border: 1px solid transparent;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.btn svg { width: 16px; height: 16px; flex-shrink: 0; }

.btn-primary { background: var(--orange); color: var(--on-orange); }
.btn-primary:hover { background: var(--orange-dark); }

.btn-dark { background: var(--bg); color: #fff; border-color: rgba(0,0,0,0.3); }
.btn-dark:hover { background: #000; }

.btn-line-light {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,0.3);
}
.btn-line-light:hover { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.5); }

.btn-outline {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}
.btn-outline:hover { border-color: var(--orange); color: var(--orange); }

/* Outline for orange backgrounds (better contrast than the white line variant) */
.btn-ink {
  background: transparent;
  color: var(--on-orange);
  border-color: rgba(26,18,6,0.45);
}
.btn-ink:hover { background: rgba(26,18,6,0.08); border-color: rgba(26,18,6,0.75); }

.btn-block { width: 100%; }
.btn-sm { padding: 9px 16px; font-size: 0.85rem; }

/* ---------- Navbar ---------- */
.navbar {
  position: sticky;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(12,14,18,0.9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border-soft);
}
.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 64px;
}

.brand {
  display: flex;
  align-items: center;
}
.brand img {
  height: 30px;
  width: auto;
  display: block;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 26px;
}
.nav-links a {
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--text-soft);
}
.nav-links a:hover { color: #fff; }

.nav-actions { display: flex; align-items: center; gap: 20px; }
.nav-login {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  font-size: 0.86rem;
  color: var(--text-soft);
  padding-right: 20px;
  border-right: 1px solid var(--border);
}
.nav-login:last-of-type { border-right: none; padding-right: 0; }
.nav-login i { font-size: 0.95rem; }
.nav-login:hover { color: #fff; }

.nav-toggle {
  display: none;
  width: 38px; height: 38px;
  border: 1px solid var(--border);
  background: transparent;
  border-radius: var(--radius-sm);
  align-items: center;
  justify-content: center;
}
.nav-toggle svg { width: 20px; height: 20px; stroke: #fff; }
.nav-toggle i { font-size: 1.2rem; color: #fff; }

/* ---------- Hero ---------- */
.hero {
  background:
    linear-gradient(to right, rgba(11,8,5,0.93) 0%, rgba(17,12,7,0.82) 40%, rgba(36,21,4,0.6) 100%),
    url("../assets/slider.webp") center 30% / cover no-repeat;
  color: #fff;
  padding: 64px 0 60px;
  overflow: hidden;
  border-bottom: 1px solid var(--border-soft);
}
.hero .container {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: start;
}

.proof-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(255,255,255,0.07);
  border: 1px solid var(--border-soft);
  border-radius: 99px;
  padding: 7px 16px 7px 14px;
  margin-bottom: 18px;
}
.proof-badge .stars {
  color: var(--orange);
  font-size: 0.8rem;
  letter-spacing: 1px;
}
.proof-badge span:last-child {
  font-size: 0.8rem;
  font-weight: 600;
  color: rgba(255,255,255,0.75);
}

.hero h1 {
  font-size: clamp(2rem, 3.6vw, 2.6rem);
  color: #fff;
  margin-bottom: 14px;
}

.hero-sub {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.75);
  max-width: 480px;
  margin-bottom: 28px;
}

.hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 30px;
}

.hero-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  border-top: 1px solid rgba(255,255,255,0.14);
  padding-top: 22px;
  max-width: 440px;
}
.hero-facts .fact {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  flex: 1;
  min-width: 170px;
  padding: 0 18px;
  border-left: 1px solid rgba(255,255,255,0.14);
}
.hero-facts .fact:first-child { border-left: none; padding-left: 0; }
.hero-facts .fact i {
  font-size: 1.2rem;
  color: var(--orange);
  margin-top: 2px;
  flex-shrink: 0;
}
.hero-facts .fact strong {
  display: block;
  font-size: 1.3rem;
  font-weight: 600;
  color: #fff;
}
.hero-facts .fact span {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.55);
}

/* Hero panel: why join us */
.hero-panel {
  background: var(--bg-panel);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  padding: 26px;
}
.hero-panel-label {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-mute);
  margin-bottom: 16px;
}
.benefit-list { display: flex; flex-direction: column; }
.benefit-item {
  display: flex;
  gap: 12px;
  padding: 14px 0;
  border-top: 1px solid var(--border-soft);
}
.benefit-item:first-child { border-top: none; padding-top: 0; }
.benefit-item .ic {
  width: 34px; height: 34px;
  border-radius: var(--radius-sm);
  background: rgba(254,139,19,0.15);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.benefit-item .ic svg { width: 18px; height: 18px; color: var(--orange); }
.benefit-item .ic i { font-size: 1rem; color: var(--orange); }
.benefit-item strong { display: block; font-size: 0.92rem; margin-bottom: 2px; color: #fff; }
.benefit-item span { font-size: 0.82rem; color: var(--text-mute); }

/* ---------- Partners (logo grid) ---------- */
.partners { padding: 44px 0; background: var(--bg-panel); border-bottom: 1px solid var(--border-soft); }
.partners-head { text-align: center; margin: 0 auto 24px; max-width: 560px; }
.partners-head h2 { font-size: clamp(1.2rem, 2vw, 1.5rem); margin: 0; }
.partners-head p { margin: 8px 0 0; font-size: 0.92rem; color: var(--text-soft); }

.partners-grid-wrap { position: relative; }
.partners-grid {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 14px;
  overflow: hidden;
  /* Room for the hover lift (translateY -3px) and its shadow, which overflow:hidden
     would otherwise clip on the first row and the side columns. The negative margin
     cancels the padding so the tiles stay exactly where they were. */
  padding: 8px 8px 0;
  margin: -8px -8px 0;
  max-height: 168px;
  transition: max-height 0.45s ease;
}
.partners-grid.expanded { max-height: 3000px; }

.partners-fade {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 90px;
  background: linear-gradient(to bottom, transparent, var(--bg-panel));
  pointer-events: none;
  opacity: 1;
  transition: opacity 0.3s ease;
}
.partners-grid.expanded ~ .partners-fade { opacity: 0; }

.partners-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 22px auto 0;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-soft);
  padding: 10px 22px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
}
.partners-toggle:hover { border-color: var(--orange); color: #fff; }
.partners-toggle i { font-size: 0.85rem; transition: transform 0.3s ease; }
.partners-toggle[aria-expanded="true"] i { transform: rotate(180deg); }

.partner-tile {
  position: relative;
  overflow: hidden;
  background: #fff;
  border-radius: 10px;
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  box-shadow: 0 8px 18px rgba(0,0,0,0.26);
}
.partner-tile::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #e9e9e9 25%, #f6f6f6 37%, #e9e9e9 63%);
  background-size: 400% 100%;
  animation: partner-shimmer 1.4s ease infinite;
}
.partner-tile.loaded::before { content: none; }
/* Tiles are links to each merchant's Instagram / Facebook */
a.partner-tile { color: inherit; text-decoration: none; cursor: pointer; transition: transform 0.18s ease, box-shadow 0.18s ease; }
a.partner-tile:hover { transform: translateY(-3px); box-shadow: 0 14px 24px rgba(0,0,0,0.38); }
a.partner-tile:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; }
.partner-tile img {
  position: relative;
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0;
  transition: opacity 0.25s ease;
}
.partner-tile.loaded img { opacity: 1; }
.partner-tile img.invert-on-light { filter: invert(1) brightness(0.85); }

@keyframes partner-shimmer {
  0% { background-position: 100% 0; }
  100% { background-position: 0 0; }
}

@media (max-width: 1000px) {
  .partners-grid { grid-template-columns: repeat(6, 1fr); }
}

@media (max-width: 760px) {
  .partners { padding: 36px 0; }
  .partners-grid { grid-template-columns: repeat(4, 1fr); gap: 10px; max-height: 148px; }
  .partners-grid.expanded { max-height: 3000px; }
  .partner-tile { height: 78px; padding: 6px 10px; }
  .partners-fade { height: 72px; }
}

@media (max-width: 480px) {
  .partners-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ---------- Rubros ---------- */
.rubros { padding: 64px 0; background: var(--bg); border-bottom: 1px solid var(--border-soft); }
.rubros .section-head { margin-bottom: 28px; }
.rubros-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
@media (min-width: 1100px) {
  .rubros-grid { grid-template-columns: repeat(4, 1fr); }
}
.rubro-tile {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 76px;
  padding: 18px 20px;
  background: var(--bg-panel);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
}
.rubro-tile .ic {
  width: 40px; height: 40px;
  flex-shrink: 0;
  border-radius: var(--radius-sm);
  background: rgba(254,139,19,0.15);
  display: flex; align-items: center; justify-content: center;
}
.rubro-tile .ic svg, .rubro-tile--more .arrow {
  fill: none;
  stroke: var(--orange);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.rubro-tile .ic svg { width: 20px; height: 20px; }
.rubro-tile h3 { font-size: 0.98rem; font-weight: 600; line-height: 1.25; margin: 0; }
.rubro-tile span { font-size: 0.8rem; color: var(--text-mute); }

/* Last tile invites merchants from other categories to join */
.rubro-tile--more {
  border-style: dashed;
  border-color: rgba(254,139,19,0.45);
  transition: background 0.15s ease, border-color 0.15s ease;
}
.rubro-tile--more:hover { background: rgba(254,139,19,0.08); border-color: var(--orange); }
.rubro-tile--more div span { display: block; margin-top: 2px; }
.rubro-tile--more .arrow { width: 18px; height: 18px; margin-left: auto; flex-shrink: 0; transition: transform 0.15s ease; }
.rubro-tile--more:hover .arrow { transform: translateX(3px); }

/* ---------- How it works ---------- */
.how { padding: 64px 0; background: var(--bg-panel); border-bottom: 1px solid var(--border-soft); }
.how-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.step-card { position: relative; }
.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--on-orange);
  background: var(--orange);
  width: 30px; height: 30px;
  border-radius: 50%;
  margin-bottom: 12px;
}
.step-card h3 { font-size: 1.02rem; margin-bottom: 4px; }
.step-card p { font-size: 0.88rem; margin-bottom: 0; }

/* ---------- Modalidades ---------- */
.services { padding: 64px 0; background: var(--bg-panel); border-bottom: 1px solid var(--border-soft); }
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.service-card .ic {
  width: 40px; height: 40px;
  border-radius: var(--radius-sm);
  background: rgba(254,139,19,0.15);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
}
.service-card .ic i { font-size: 1.15rem; color: var(--orange); }
.service-card {
  background: var(--bg-panel-2);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  padding: 24px 22px;
}
.service-card h3 { font-size: 1.02rem; margin-bottom: 6px; }
.service-card p { font-size: 0.88rem; margin-bottom: 0; }
.service-card .tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--orange);
  margin-bottom: 8px;
}

/* Modalidad cards: the illustration breaks over the panel instead of
   sitting boxed inside it — negative margin pulls the panel up under the
   character, z-index keeps the (transparent-background) art in front. */
.service-card--media { padding: 0; background: none; border: none; display: flex; flex-direction: column; }
.modalidad-art {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: center;
  margin-bottom: -64px;
  pointer-events: none;
}
.modalidad-art img {
  width: 76%;
  max-width: 250px;
  height: auto;
  filter: drop-shadow(0 16px 20px rgba(0,0,0,0.45));
}
.modalidad-panel {
  position: relative;
  z-index: 1;
  background: var(--bg-panel-2);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  padding: 84px 22px 24px;
}
.modalidad-panel .ic { margin-bottom: 12px; }

/* ---------- Testimonials: shipping-label tickets ---------- */
.testimonials {
  --paper: #f6efe4;
  --ink: #1a1206;
  --ink-soft: rgba(26,18,6,0.68);
  --ink-line: rgba(26,18,6,0.22);
  --orange-text: #a85500;
  padding: 64px 0;
  background: var(--bg);
  border-bottom: 1px solid var(--border-soft);
}
.testimonials .section-head { margin-bottom: 40px; }

.label-grid { display: grid; grid-template-columns: 1fr; gap: 24px; align-items: stretch; }
@media (min-width: 761px) {
  .label-grid { grid-template-columns: 1fr 1fr; }
  .label-grid .label:last-child { grid-column: 1 / -1; }
}
@media (min-width: 1000px) {
  .label-grid { grid-template-columns: repeat(3, 1fr); }
  .label-grid .label:last-child { grid-column: auto; }
}

.label {
  position: relative;
  display: flex;
  flex-direction: column;
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  border-radius: 14px;
  box-shadow: 0 22px 34px -22px rgba(0,0,0,0.85);
  transition: transform 0.2s ease;
}
.label:hover { transform: translateY(-3px); }

.label-head { display: flex; align-items: center; gap: 12px; padding: 20px 22px 0; }
.label-logo {
  width: 64px; height: 44px;
  flex-shrink: 0;
  background: #fff;
  border-radius: 8px;
  border: 1px solid rgba(26,18,6,0.1);
  padding: 6px 8px;
  display: flex; align-items: center; justify-content: center;
}
.label-logo img { width: 100%; height: 100%; object-fit: contain; }
.label-logo img.invert-on-light { filter: invert(1) brightness(0.85); }
.label-from small {
  display: block;
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 1px;
}
.label-from strong { display: block; font-size: 0.98rem; font-weight: 700; color: var(--ink); line-height: 1.2; }
.label-from em { display: block; font-style: normal; font-size: 0.78rem; color: var(--ink-soft); }

.label-stamp {
  margin-left: auto;
  flex-shrink: 0;
  transform: rotate(-7deg);
  border: 2px solid var(--orange-text);
  border-radius: var(--radius-sm);
  padding: 3px 8px 2px;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  line-height: 1.3;
  text-align: center;
  color: var(--orange-text);
  opacity: 0.9;
}

.label-body { position: relative; flex: 1; padding: 18px 22px 24px; overflow: hidden; }
.label-body blockquote { margin: 0; }
.label-body p { margin: 0; position: relative; font-size: 0.98rem; line-height: 1.65; color: var(--ink); text-wrap: pretty; }

/* Perforated stub */
.label-foot {
  position: relative;
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px;
  padding: 14px 22px;
  border-top: 2px dashed var(--ink-line);
}
.label-foot::before, .label-foot::after {
  content: "";
  position: absolute;
  top: -11px;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--bg);
}
.label-foot::before { left: -10px; }
.label-foot::after { right: -10px; }
.label-barcode {
  height: 24px; width: 92px;
  opacity: 0.78;
  background: repeating-linear-gradient(90deg, var(--ink) 0 2px, transparent 2px 4px, var(--ink) 4px 5px, transparent 5px 8px, var(--ink) 8px 11px, transparent 11px 13px);
}
.label-foot-logo { height: 20px; width: auto; flex-shrink: 0; }

/* Featured quote: orange paper, like the "Envío en Lotes" badge in the illustrations */
.label--featured { grid-column: 1 / -1; background: var(--orange); --ink-soft: rgba(26,18,6,0.72); --ink-line: rgba(26,18,6,0.32); }
.label--featured .label-stamp { border-color: var(--ink); color: var(--ink); opacity: 0.75; }
/* The orange "MP" would vanish on orange paper: render the whole wordmark in ink */
.label--featured .label-foot-logo { filter: brightness(0); }
.label--featured .label-head { padding: 26px 28px 0; }
.label--featured .label-body { padding: 26px 28px 32px; }
.label--featured .label-foot { padding: 16px 28px; }
.label--featured .label-body p { font-size: 1.32rem; line-height: 1.55; font-weight: 500; letter-spacing: -0.005em; }
.label--featured .label-body::after {
  content: "\201D";
  position: absolute;
  right: 22px; bottom: -46px;
  font-size: 11rem;
  line-height: 1;
  font-weight: 800;
  color: var(--ink);
  opacity: 0.09;
  pointer-events: none;
}

/* Desktop / tablet: the featured quote becomes a horizontal ticket with a vertical stub */
@media (min-width: 761px) {
  .label--featured { display: grid; grid-template-columns: 1fr 280px; grid-template-rows: 1fr auto; }
  .label--featured .label-body { grid-column: 1; grid-row: 1 / span 2; padding: 34px 36px 34px 32px; display: flex; align-items: center; }
  .label--featured .label-body p { font-size: clamp(1.15rem, 2.1vw, 1.5rem); line-height: 1.55; max-width: 27em; }
  .label--featured .label-body::after { bottom: -56px; right: 14px; font-size: 12rem; }
  .label--featured .label-head {
    grid-column: 2; grid-row: 1;
    flex-direction: column; align-items: flex-start;
    gap: 14px;
    padding: 30px 28px 0;
    border-left: 2px dashed var(--ink-line);
  }
  .label--featured .label-stamp { margin: 6px 0 0; transform: rotate(-6deg); }
  .label--featured .label-foot {
    grid-column: 2; grid-row: 2;
    border-top: 0;
    border-left: 2px dashed var(--ink-line);
    padding: 20px 28px 26px;
  }
  .label--featured .label-foot::before, .label--featured .label-foot::after { display: none; }
  /* notches of the vertical perforation, top and bottom */
  .label--featured::before, .label--featured::after {
    content: "";
    position: absolute;
    right: 270px;
    width: 20px; height: 20px;
    border-radius: 50%;
    background: var(--bg);
  }
  .label--featured::before { top: -10px; }
  .label--featured::after { bottom: -10px; }
}

/* ---------- Join (comercios / repartidores) ---------- */
.join { padding: 64px 0; background: var(--bg); border-bottom: 1px solid var(--border-soft); }
.join-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.join-card {
  background: var(--bg-panel);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  padding: 26px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.join-card svg { width: 24px; height: 24px; color: var(--orange); margin-bottom: 14px; }
.join-card i { display: inline-block; font-size: 1.5rem; color: var(--orange); margin-bottom: 14px; }
.join-card h3 { font-size: 1.05rem; margin-bottom: 6px; }
.join-card p { font-size: 0.88rem; margin-bottom: 16px; }

/* ---------- FAQ ---------- */
.faq { padding: 64px 0; background: var(--bg-panel); border-bottom: 1px solid var(--border-soft); }
.faq .container {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 56px;
  align-items: start;
}
.faq-side { position: sticky; top: 88px; }
.faq-side h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); }
.faq-side > p { max-width: 34ch; font-size: 1rem; margin-bottom: 28px; }

.help-card {
  background: var(--bg);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  padding: 22px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
}
.help-card .ic {
  width: 40px; height: 40px;
  border-radius: var(--radius-sm);
  background: rgba(37,211,102,0.15);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 12px;
}
.help-card .ic svg { width: 20px; height: 20px; color: #25d366; }
.help-card strong { font-size: 1.02rem; font-weight: 600; color: #fff; }
.help-card .help-text { font-size: 0.88rem; color: var(--text-mute); margin-bottom: 14px; }

.faq-list { display: flex; flex-direction: column; gap: 10px; }
.faq-item {
  background: var(--bg-panel-2);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  transition: border-color 0.2s ease;
}
.faq-item.open { border-color: rgba(254,139,19,0.4); }
.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  background: none;
  border: none;
  text-align: left;
  font-weight: 600;
  font-size: 0.98rem;
  line-height: 1.35;
  color: var(--text);
}
.faq-q .plus {
  width: 26px; height: 26px;
  flex-shrink: 0;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  display: grid;
  place-items: center;
  font-size: 1.05rem;
  font-weight: 400;
  line-height: 1;
  color: var(--text-mute);
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.faq-q .plus::before { content: "\002B"; }
.faq-q:hover .plus { border-color: var(--orange); color: var(--orange); }
.faq-item.open .faq-q .plus { background: var(--orange); border-color: var(--orange); color: var(--on-orange); }
.faq-item.open .faq-q .plus::before { content: "\2212"; }
/* Grid-rows animation: height follows the content, no fixed max-height to outgrow */
.faq-a {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.28s ease;
}
.faq-item.open .faq-a { grid-template-rows: 1fr; }
.faq-a > div { overflow: hidden; }
.faq-a p { font-size: 0.9rem; padding: 0 20px 20px; margin: 0; max-width: 64ch; }

/* ---------- Final CTA ---------- */
.cta-final {
  padding: 64px 0;
  background: var(--orange);
  color: var(--on-orange);
  overflow: hidden;
}
/* The icon lives in its own space and never sits behind the buttons:
   small in the top corner by default, centered in a reserved column on wide screens. */
.cta-final::after {
  content: "";
  position: absolute;
  right: 16px;
  top: 12px;
  width: 80px;
  height: 56px;
  background: url("../assets/isotipomp.png") no-repeat center / contain;
  filter: brightness(0) invert(1);
  opacity: 0.28;
  pointer-events: none;
}
.cta-final .container {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
@media (min-width: 1100px) {
  .cta-final::after {
    right: max(24px, calc((100vw - var(--container)) / 2 + 24px));
    top: 50%;
    transform: translateY(-50%);
    width: 210px;
    height: 146px;
    opacity: 0.2;
  }
  .cta-final .container { padding-right: 274px; }
}
.cta-final h2 { color: var(--on-orange); font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: 8px; }
.cta-final p { color: rgba(26,18,6,0.75); margin: 0; }
.cta-final .hero-cta-row { margin: 0; flex-wrap: nowrap; }

/* ---------- Footer ---------- */
footer { background: #08090b; color: var(--text-mute); padding: 48px 0 24px; }
.footer-top {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--border-soft);
}
.footer-brand p { color: var(--text-mute); font-size: 0.88rem; max-width: 270px; }
.footer-brand .brand { margin-bottom: 14px; }
.social-row { display: flex; gap: 8px; margin-top: 18px; }
.social-row a {
  width: 34px; height: 34px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
}
.social-row a:hover { border-color: var(--orange); }
.social-row svg { width: 15px; height: 15px; color: var(--text-soft); }
.social-row i { font-size: 0.95rem; color: var(--text-soft); }

.footer-col h5 { color: #fff; font-size: 0.88rem; margin-bottom: 16px; font-weight: 600; }
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col a { font-size: 0.86rem; color: var(--text-mute); }
.footer-col a:hover { color: #fff; }
.footer-col .detail {
  display: block;
  font-size: 0.8rem;
  color: var(--text-mute);
  opacity: 0.8;
  margin-top: 2px;
  overflow-wrap: anywhere;
  font-variant-numeric: tabular-nums;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  padding-top: 20px;
  font-size: 0.8rem;
  color: var(--text-mute);
}
.footer-bottom .legal-links { display: flex; gap: 18px; }
.footer-bottom a:hover { color: #fff; }
.footer-credit strong { color: #fff; }
.footer-credit a { color: inherit; }
.footer-credit a:hover { color: var(--orange); }

.back-to-top {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 16px;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-soft);
  flex-shrink: 0;
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}
.back-to-top:hover { border-color: var(--orange); color: #fff; }
.back-to-top svg { width: 14px; height: 14px; }
.back-to-top i { font-size: 0.85rem; transition: transform 0.2s ease; }
.back-to-top:hover i { transform: translateY(-2px); }

/* ---------- Legal pages (Términos / Privacidad) ---------- */
.legal-hero {
  padding: 48px 0 28px;
  border-bottom: 1px solid var(--border-soft);
}
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-mute);
  margin-bottom: 18px;
}
.back-link:hover { color: #fff; }
.legal-hero h1 { font-size: clamp(1.7rem, 3vw, 2.3rem); margin-bottom: 8px; }
.legal-hero > .container > p { max-width: 560px; margin-bottom: 22px; }
.legal-nav { display: flex; flex-wrap: wrap; gap: 12px; }
.legal-nav a {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-soft);
  border: 1px solid var(--border);
  padding: 9px 16px;
  border-radius: 999px;
}
.legal-nav a:hover { border-color: var(--orange); color: #fff; }

.legal-content { padding: 48px 0 24px; }
.legal-content .container { max-width: 780px; }
.legal-content h2 { font-size: clamp(1.3rem, 2.2vw, 1.6rem); scroll-margin-top: 90px; }
.legal-content h3 { font-size: 1.05rem; margin-top: 2em; scroll-margin-top: 90px; }
.legal-content h4 { font-size: 0.95rem; margin-top: 1.6em; color: var(--text-soft); }
.legal-content p { font-size: 0.92rem; }
.legal-content .updated { color: var(--text-mute); font-size: 0.82rem; margin-bottom: 2em; }
.legal-content ul {
  list-style: disc;
  padding-left: 1.3em;
  margin: 0 0 1em;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.legal-content ul li { font-size: 0.92rem; color: var(--text-soft); line-height: 1.6; }
.legal-content strong { color: var(--text); }
.legal-divider {
  border: none;
  border-top: 1px solid var(--border-soft);
  margin: 3em 0;
}
.legal-back-to-top { margin: 8px 0 40px; }

/* ---------- Floating WhatsApp ---------- */
.wa-float {
  position: fixed;
  bottom: 22px;
  right: 22px;
  z-index: 90;
  width: 50px; height: 50px;
  border-radius: 50%;
  background: #25d366;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 14px rgba(0,0,0,0.4);
}
.wa-float svg { width: 24px; height: 24px; color: #fff; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1000px) {
  .hero .container { grid-template-columns: 1fr; }
  .hero-panel { max-width: 440px; }
  .how-grid { grid-template-columns: repeat(3, 1fr); gap: 18px; }
  .services-grid { grid-template-columns: repeat(3, 1fr); gap: 14px; }
  .footer-top { grid-template-columns: repeat(2, 1fr); }
  .footer-brand { grid-column: 1 / -1; }
  .cta-final .container { flex-direction: column; align-items: flex-start; }
  .faq .container { grid-template-columns: 1fr; gap: 32px; }
  .faq-side { position: static; }
  .faq-side > p { max-width: none; }
}

@media (max-width: 760px) {
  .testimonials .section-head { margin-bottom: 28px; }
  .label-grid { gap: 20px; }
  .label-head { padding: 18px 20px 0; }
  .label-body { padding: 16px 20px 22px; }
  .label-foot { padding: 12px 20px; }
  .label-stamp { font-size: 0.56rem; padding: 2px 6px 1px; }
  .label--featured .label-head { padding: 22px 20px 0; }
  .label--featured .label-body { padding: 20px 20px 26px; }
  .label--featured .label-foot { padding: 14px 20px; }
  .label--featured .label-body p { font-size: 1.08rem; }
  .label--featured .label-body::after { display: none; }
  .nav-links, .nav-actions .nav-login { display: none; }
  .nav-toggle { display: flex; }
  .hero-cta-row { flex-direction: column; align-items: stretch; }
  .hero-cta-row .btn { width: 100%; }
  .hero-facts .fact { min-width: 45%; margin-bottom: 12px; }
  .how-grid, .services-grid { grid-template-columns: 1fr; }
  .join-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: repeat(2, 1fr); gap: 28px 20px; }
  .footer-bottom { flex-direction: column; align-items: center; text-align: center; }
  .footer-bottom .legal-links { justify-content: center; }
  .footer-bottom .back-to-top {
    width: 52px;
    height: 52px;
    padding: 0;
    border-radius: 50%;
    justify-content: center;
    background: var(--bg-panel-2);
    box-shadow: 0 6px 18px rgba(0,0,0,0.35);
    animation: back-to-top-bounce 2.2s ease-in-out infinite;
  }
  .footer-bottom .back-to-top span { display: none; }
  .footer-bottom .back-to-top i { font-size: 1.15rem; }
  .footer-bottom .back-to-top:hover { animation-play-state: paused; }
  section, .hero, .cta-final { padding-top: 44px; padding-bottom: 44px; }
  .faq-q { padding: 16px; font-size: 0.95rem; }
  .faq-a p { padding: 0 16px 18px; }
  .cta-final .container > div:first-child { padding-right: 84px; }
  .cta-final .hero-cta-row { width: 100%; }
  .cta-final .hero-cta-row .btn { padding: 14px 22px; }
  .footer-col ul { gap: 12px; }
}

@media (max-width: 400px) {
  .label-barcode { width: 70px; }
}

/* Narrow phones (360px-wide Android is the common case): keep the navbar on one row,
   keep the CTA on a single line, and stop the hero badge/facts from wrapping awkwardly. */
@media (max-width: 480px) {
  .navbar .container { gap: 12px; }
  .brand { flex-shrink: 0; }
  .nav-actions { gap: 10px; flex-shrink: 0; }
  .nav-actions .btn-sm { padding: 8px 12px; font-size: 0.8rem; white-space: nowrap; }
  .nav-toggle { flex-shrink: 0; width: 38px; }

  .proof-badge {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    border-radius: 16px;
    padding: 10px 14px;
  }
  .proof-badge span:last-child { font-size: 0.78rem; line-height: 1.4; }

  .hero-facts .fact { gap: 10px; padding: 0 12px; min-width: 0; }
  .hero-facts .fact:first-child { padding-left: 0; }
  .hero-facts .fact strong { font-size: 1.1rem; }
}

@media (max-width: 340px) {
  .navbar .container { padding: 0 16px; gap: 10px; }
  .brand img { height: 26px; }
  .nav-actions { gap: 8px; }
  .nav-actions .btn-sm { padding: 8px 10px; font-size: 0.76rem; }
}

@media (max-width: 560px) {
  .rubros-grid { gap: 10px; }
  .rubro-tile { flex-direction: column; align-items: flex-start; gap: 12px; padding: 16px; min-height: 0; }
  /* "Electrodomésticos" carries a soft hyphen (&shy;) in the HTML so it breaks by syllable when it does not fit */
  .rubro-tile h3 { font-size: 0.9rem; overflow-wrap: anywhere; }
  .rubro-tile--more { position: relative; }
  .rubro-tile--more .arrow { position: absolute; top: 16px; right: 16px; }
}

@media (max-width: 560px) {
  .footer-col:last-child { grid-column: 1 / -1; }
  .help-card { padding: 20px; }
  .help-card .btn { width: 100%; padding: 12px 16px; }
}

@keyframes back-to-top-bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

@media (prefers-reduced-motion: reduce) {
  .footer-bottom .back-to-top { animation: none; }
  .faq-a, .faq-item, .faq-q .plus { transition: none; }
  .label { transition: none; }
  .label:hover { transform: none; }
  a.partner-tile { transition: none; }
  a.partner-tile:hover { transform: none; }
}

/* Mobile nav drawer */
.mobile-drawer {
  position: fixed;
  inset: 0;
  background: #08090b;
  z-index: 200;
  display: flex;
  flex-direction: column;
  padding: 24px;
  transform: translateX(100%);
  transition: transform 0.25s ease;
}
.mobile-drawer.open { transform: translateX(0); }
.mobile-drawer .drawer-head { display: flex; justify-content: flex-end; align-items: center; }
.mobile-drawer .close-btn {
  width: 36px; height: 36px;
  border-radius: var(--radius-sm);
  background: transparent;
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
}
.mobile-drawer .close-btn svg { width: 18px; height: 18px; color: #fff; }
.mobile-drawer .close-btn i { font-size: 1.05rem; color: #fff; }
.mobile-drawer .drawer-brand { text-align: center; margin: 4px 0 32px; }
.mobile-drawer .drawer-brand img { height: 96px; width: auto; margin: 0 auto; }
.mobile-drawer nav { display: flex; flex-direction: column; }
.mobile-drawer nav a {
  color: #fff;
  font-weight: 600;
  font-size: 1.15rem;
  padding: 14px 0;
  border-bottom: 1px solid var(--border-soft);
}
.mobile-drawer .drawer-cta { margin-top: auto; display: flex; flex-direction: column; gap: 10px; }
