/* Pidomi home (pidomi.co) — landing estática. Paleta de marca Pidomi. */
:root {
  --dark: #0E3A47;
  --dark-2: #0a2c36;
  --orange: #FF7A33;
  --orange-soft: #ffd9c2;
  --cream: #FFF6EF;
  --text: #0E3A47;
  --muted: #6b7d83;
  --line: #e7ddd4;
  --radius: 18px;
  --shadow: 0 8px 30px rgba(14, 58, 71, 0.16);
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body {
  margin: 0; padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
  background: var(--cream); color: var(--text); line-height: 1.5;
  overflow-x: hidden; /* red de seguridad global: sin scroll horizontal de la pagina (movil) */
}
a { color: inherit; }
img { max-width: 100%; }

/* ---- Marca ---- */
.brand-text { font-weight: 800; font-size: 24px; letter-spacing: .5px; color: #fff; text-decoration: none; }
.brand-text.small { font-size: 20px; }
.brand-i { color: inherit; }
.brand-i::after { content: none; }

/* ---- Topbar ---- */
.topbar {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between;
  gap: 10px; padding: 12px 18px; background: var(--dark);
  box-shadow: 0 2px 12px rgba(0,0,0,.15);
}
.brand { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; }
.brand-mark { height: 28px; width: auto; display: block; }
.brand-cn {
  font-size: 13px; font-weight: 800; letter-spacing: 2px; line-height: 1.4;
  color: #fff; background: var(--orange); padding: 2px 9px 3px; border-radius: 999px; white-space: nowrap;
}
.brand-cn:empty { display: none; }
.foot-logo { height: 30px; width: auto; display: block; margin: 0 auto 6px; opacity: .95; }
.topbar-right { display: flex; align-items: center; gap: 10px; }
.lang-switch { display: flex; gap: 6px; }
.lang-btn {
  background: rgba(255,255,255,.12); color: #fff; border: 0; border-radius: 999px;
  padding: 6px 12px; font-size: 13px; font-weight: 600; cursor: pointer;
}
.lang-btn.active { background: var(--orange); }
.btn-ghost-sm {
  background: rgba(255,255,255,.12); color: #fff; border: 0; border-radius: 999px;
  padding: 7px 14px; font-size: 13px; font-weight: 700; text-decoration: none; white-space: nowrap;
}

/* ---- Botones ---- */
.btn-primary {
  display: inline-block; background: var(--orange); color: #fff; border: 0;
  border-radius: 12px; padding: 14px 22px; font-weight: 800; font-size: 16px;
  text-decoration: none; cursor: pointer;
}
.btn-ghost {
  display: inline-block; background: transparent; color: var(--dark);
  border: 1.5px solid var(--dark); border-radius: 12px; padding: 13px 22px;
  font-weight: 700; font-size: 16px; text-decoration: none; cursor: pointer;
}

/* ---- Layout secciones ---- */
main { display: block; }
section { padding: 0 18px; }
.section-wrap { max-width: 960px; margin: 0 auto; }

/* ---- Hero ---- */
.hero {
  background: linear-gradient(160deg, var(--dark), var(--dark-2));
  color: #fff; text-align: center;
  padding: 56px 18px 48px;
}
.hero-title { margin: 0 auto 14px; font-size: clamp(28px, 6vw, 44px); font-weight: 900; max-width: 16ch; line-height: 1.15; }
.hero-sub { margin: 0 auto 26px; max-width: 52ch; font-size: 16px; color: rgba(255,255,255,.86); }
.hero-cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.hero .btn-ghost { color: #fff; border-color: rgba(255,255,255,.6); }
.trust {
  margin: 26px auto 0; max-width: 48ch; font-size: 13.5px;
  color: var(--orange-soft); display: flex; gap: 8px; align-items: flex-start; justify-content: center;
}

/* ---- Tarjetas de público ---- */
.cards {
  max-width: 960px; margin: -28px auto 0; padding: 0 18px;
  display: grid; gap: 16px; grid-template-columns: repeat(3, 1fr);
}
.card {
  background: #fff; border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 22px; text-decoration: none; color: var(--text);
  transition: transform .1s ease;
}
.card:active { transform: scale(.99); }
.aud-ico { font-size: 34px; }
.aud h2 { margin: 10px 0 6px; font-size: 18px; }
.aud p { margin: 0 0 12px; font-size: 14px; color: var(--muted); }
.aud-go { font-size: 14px; font-weight: 800; color: var(--orange); }

/* ---- Bloques de contenido ---- */
.block { padding: 48px 18px; }
.block.alt { background: #fff; }
.block h2.block-title { margin: 0 0 8px; font-size: clamp(22px, 4vw, 30px); font-weight: 900; text-align: center; }
.block p.block-lead { margin: 0 auto 28px; max-width: 56ch; text-align: center; color: var(--muted); font-size: 15.5px; }

/* dolor: comparación sin-sistema vs con-Pidomi */
.pain-list { max-width: 860px; margin: 0 auto; display: grid; gap: 12px; }
.pain-row {
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px; align-items: stretch;
}
.pain-bad, .pain-good { margin: 0; padding: 14px 16px; border-radius: 12px; font-size: 14px; line-height: 1.45; }
.pain-bad {
  background: #fff; border: 1px solid var(--line); color: var(--muted);
}
.pain-bad::before { content: "😣 "; }
.pain-good {
  background: rgba(31,157,107,.10); border: 1px solid rgba(31,157,107,.30); color: var(--text); font-weight: 600;
}
.pain-good::before { content: "✓ "; color: #1f9d6b; font-weight: 800; }
@media (max-width: 720px) { .pain-row { grid-template-columns: 1fr; gap: 6px; } }

/* puntos del modelo */
.feature-grid { display: grid; gap: 14px; grid-template-columns: repeat(2, 1fr); max-width: 820px; margin: 0 auto; }
.feature { background: var(--cream); border: 1px solid var(--line); border-radius: 14px; padding: 16px; }
.block.alt .feature { background: var(--cream); }
.feature .f-ico { font-size: 22px; }
.feature h3 { margin: 8px 0 4px; font-size: 16px; }
.feature p { margin: 0; font-size: 14px; color: var(--muted); }

/* etiquetas de tipo de negocio (para quién sirve) */
.biz-tags { list-style: none; padding: 0; margin: 0 auto 28px; max-width: 740px; display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.biz-tags li { background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 8px 15px; font-size: 14px; font-weight: 600; color: var(--text); white-space: nowrap; }

/* pasos numerados */
.steps-num { max-width: 720px; margin: 0 auto; list-style: none; padding: 0; counter-reset: s; }
.steps-num li {
  display: flex; gap: 14px; align-items: flex-start;
  padding: 16px; background: var(--cream); border: 1px solid var(--line);
  border-radius: 14px; margin-bottom: 12px;
}
.block.alt .steps-num li { background: #fff; }
.steps-num li::before {
  counter-increment: s; content: counter(s);
  flex: 0 0 auto; width: 32px; height: 32px; border-radius: 50%;
  background: var(--orange); color: #fff; font-weight: 800;
  display: flex; align-items: center; justify-content: center; font-size: 16px;
}
.steps-num h3 { margin: 2px 0 3px; font-size: 16px; }
.steps-num p { margin: 0; font-size: 14px; color: var(--muted); }
.step-cta { text-align: center; margin-top: 22px; }

/* cómo funciona (3 pasos cortos) */
.how { background: var(--dark); color: #fff; padding: 48px 18px; }
.how-title { text-align: center; margin: 0 0 26px; font-size: clamp(22px,4vw,28px); font-weight: 900; }
.steps { max-width: 820px; margin: 0 auto; list-style: none; padding: 0; display: grid; gap: 14px; grid-template-columns: repeat(3, 1fr); }
.steps li { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); border-radius: 14px; padding: 18px; }
.step-n { display: inline-flex; width: 30px; height: 30px; border-radius: 50%; background: var(--orange); color: #fff; font-weight: 800; align-items: center; justify-content: center; margin-bottom: 10px; }
.steps p { margin: 0; font-size: 14px; color: rgba(255,255,255,.86); }

/* banda anti-robo */
.trust-band { background: var(--orange); color: #fff; text-align: center; padding: 32px 18px; }
.trust-band h2 { margin: 0 0 8px; font-size: clamp(20px,3.5vw,26px); font-weight: 900; }
.trust-band p { margin: 0 auto; max-width: 54ch; font-size: 15px; color: rgba(255,255,255,.92); }

/* CTA final */
.final-cta { text-align: center; padding: 48px 18px; }
.final-cta h2 { margin: 0 0 18px; font-size: clamp(22px,4vw,30px); font-weight: 900; }
.final-cta .hero-cta { margin-top: 4px; }

/* ---- Footer ---- */
.foot { background: var(--dark-2); color: rgba(255,255,255,.7); text-align: center; padding: 26px 18px; }
.foot .brand-text { display: inline-block; margin-bottom: 6px; }
.foot p { margin: 0; font-size: 13px; }

/* ---- Responsive ---- */
@media (max-width: 720px) {
  .cards { grid-template-columns: 1fr; margin-top: 18px; }
  .feature-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
}
.pain-close {
  max-width: 760px; margin: 22px auto 0; text-align: center;
  font-size: 15.5px; font-weight: 700; color: var(--dark); line-height: 1.5;
}
