/* Páginas de producto (autofacturación, asistente de WhatsApp, muro de fotos). */
.product,
.pricingVars {
  --navy: #0b1f3a;
  --royal: #2563eb;
  --azure: #0284c7;
  --teal: #0891b2;
  --ice: #eff6ff;
  --cloud: #f8fbff;
  --ink: #0a1930;
  --muted: #60708a;
  --line: #d9e5f2;
}
.product {
  min-height: 100vh;
  overflow-x: hidden;
  background: #fff;
  color: var(--ink);
}
.product a {
  color: inherit;
  text-decoration: none;
}
.wrap {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

/* Encabezado */
.pHeader {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgb(255 255 255 / 92%);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.pHeader .wrap {
  display: flex;
  align-items: center;
  gap: 28px;
  height: 72px;
}
.pHeader .logo img {
  display: block;
  width: 150px;
  height: auto;
}
.pHeader nav {
  display: flex;
  gap: 22px;
  margin-left: auto;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}
.pHeader nav a:hover {
  color: var(--royal);
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 22px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 800;
  transition:
    transform 0.15s,
    box-shadow 0.15s,
    background 0.15s;
}
.btn:hover {
  transform: translateY(-1px);
}
.btn.primary {
  background: linear-gradient(135deg, var(--royal), var(--azure));
  color: #fff !important;
  box-shadow: 0 12px 28px rgb(37 99 235 / 28%);
}
.btn.whats {
  background: #1f7a3e;
  color: #fff !important;
  box-shadow: 0 12px 28px rgb(31 122 62 / 25%);
}
.btn.ghost {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--navy);
}
.pHeader .btn {
  min-height: 40px;
  padding: 0 16px;
  font-size: 13px;
}

/* Portada */
.pHero {
  padding: 64px 0 72px;
  background:
    radial-gradient(circle at 85% 20%, rgb(56 189 248 / 16%), transparent 40%),
    linear-gradient(180deg, var(--ice), #fff);
}
.pHero .wrap {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  align-items: center;
  gap: 56px;
}
.pHero .kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  color: var(--royal);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
}
.pHero .kicker::before {
  content: "";
  width: 28px;
  height: 2px;
  background: currentColor;
}
.launch {
  display: inline-block;
  margin: 0 0 16px;
  padding: 6px 12px;
  border-radius: 999px;
  background: #fff7ed;
  color: #b45309;
  font-size: 12px;
  font-weight: 800;
  border: 1px solid #fed7aa;
}
.pHero h1 {
  margin: 0 0 18px;
  color: var(--navy);
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.05;
  letter-spacing: -0.035em;
}
.pHero h1 span {
  color: var(--royal);
}
.pHero .lead {
  margin: 0 0 26px;
  color: #33445c;
  font-size: 18px;
  line-height: 1.6;
}
.heroActions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.assure {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}
.assure li::before {
  content: "✓ ";
  color: var(--teal);
}

/* Secciones */
.pSection {
  padding: 84px 0;
}
.pSection.alt {
  background: var(--cloud);
}
.sHead {
  max-width: 720px;
  margin: 0 0 40px;
}
.sHead.center {
  margin-inline: auto;
  text-align: center;
}
.sHead p.eyebrow {
  margin: 0 0 12px;
  color: var(--royal);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.sHead h2 {
  margin: 0 0 12px;
  color: var(--navy);
  font-size: clamp(28px, 3.6vw, 40px);
  line-height: 1.12;
  letter-spacing: -0.03em;
}
.sHead > p:last-child {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.6;
}

/* Pasos */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: paso;
}
.steps li {
  position: relative;
  padding: 26px 24px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  counter-increment: paso;
}
.steps li::before {
  content: counter(paso);
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  margin-bottom: 16px;
  border-radius: 12px;
  background: var(--ice);
  color: var(--royal);
  font-weight: 800;
}
.steps h3 {
  margin: 0 0 8px;
  color: var(--navy);
  font-size: 18px;
}
.steps p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.55;
}

/* Funciones */
.feats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.featCol {
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
}
.featCol h3 {
  margin: 0 0 14px;
  color: var(--navy);
  font-size: 18px;
}
.featCol ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.featCol li {
  position: relative;
  padding-left: 26px;
  color: #33445c;
  font-size: 15px;
  line-height: 1.5;
}
.featCol li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 3px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--ice)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.3 6.8 11 12 5.5' fill='none' stroke='%232563eb' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")
    center / 14px no-repeat;
}
.new {
  margin-left: 6px;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--royal);
  color: #fff;
  font-size: 10px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  vertical-align: 3px;
}

/* Prueba social */
.proof {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 28px;
  padding: 30px 34px;
  border-radius: 22px;
  background: linear-gradient(135deg, var(--navy), #12325e);
  color: #dbeafe;
}
.proof strong {
  color: #fff;
  font-size: clamp(38px, 5vw, 56px);
  line-height: 1;
  letter-spacing: -0.03em;
}
.proof p {
  margin: 0;
  font-size: 16px;
  line-height: 1.6;
}
.proof p b {
  color: #fff;
}

/* Planes */
.plans {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 16px;
  align-items: stretch;
}
.plan {
  position: relative;
  display: grid;
  grid-template-rows: auto auto auto 1fr auto;
  gap: 12px;
  padding: 26px 22px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #fff;
}
.plan.featured {
  border: 2px solid var(--royal);
  box-shadow: 0 24px 50px rgb(37 99 235 / 16%);
}
.plan .tag {
  position: absolute;
  top: -12px;
  left: 22px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--royal);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
}
.plan h3 {
  margin: 0;
  color: var(--navy);
  font-size: 18px;
}
.plan .price {
  margin: 0;
  color: var(--navy);
  font-size: 34px;
  font-weight: 800;
  letter-spacing: -0.03em;
}
.plan .price small {
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0;
}
.plan .quota {
  margin: 0;
  color: var(--teal);
  font-size: 14px;
  font-weight: 800;
}
.plan ul {
  display: grid;
  align-content: start;
  gap: 8px;
  margin: 4px 0 6px;
  padding: 0;
  list-style: none;
  color: #33445c;
  font-size: 14px;
  line-height: 1.45;
}
.plan li::before {
  content: "✓ ";
  color: var(--teal);
  font-weight: 800;
}
.plan .btn {
  width: 100%;
  min-height: 42px;
  font-size: 14px;
}
.planNote {
  display: grid;
  gap: 6px;
  margin: 26px 0 0;
  padding: 18px 22px;
  border: 1px dashed #b9cde4;
  border-radius: 14px;
  background: #fff;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}
.planNote b {
  color: var(--navy);
}

/* Preguntas frecuentes */
.faq {
  display: grid;
  gap: 10px;
  max-width: 820px;
  margin: 0 auto;
}
.faq details {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
}
.faq summary {
  position: relative;
  padding: 18px 52px 18px 20px;
  color: var(--navy);
  font-size: 16px;
  font-weight: 800;
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: "+";
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--royal);
  font-size: 22px;
}
.faq details[open] summary::after {
  content: "–";
}
.faq details p {
  margin: 0;
  padding: 0 20px 18px;
  color: #33445c;
  font-size: 15px;
  line-height: 1.6;
}

/* Cierre */
.pCta {
  padding: 72px 0;
  background: linear-gradient(135deg, var(--navy), #12325e);
  color: #dbeafe;
  text-align: center;
}
.pCta h2 {
  margin: 0 0 12px;
  color: #fff;
  font-size: clamp(28px, 4vw, 42px);
  letter-spacing: -0.03em;
}
.pCta p {
  margin: 0 auto 26px;
  max-width: 560px;
  font-size: 16px;
  line-height: 1.6;
}
.pCta .heroActions {
  justify-content: center;
}

/* Otros productos y pie */
.others {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.others a {
  display: grid;
  gap: 6px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  transition:
    border-color 0.15s,
    transform 0.15s;
}
.others a:hover {
  border-color: var(--royal);
  transform: translateY(-2px);
}
.others strong {
  color: var(--navy);
}
.others span {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}
.pFooter {
  padding: 34px 0 40px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}
.pFooter .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.pFooter img {
  width: 130px;
  height: auto;
}
.pFooter nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
}
.pFooter a:hover {
  color: var(--royal);
}

/* La demo de la portada reutiliza los estilos de los casos (casos.css). */
.pHero .browser,
.pHero .phone,
.pHero .eventDemo {
  margin: 0 auto;
}
.pHero .case {
  display: contents;
}

@media (max-width: 980px) {
  .pHero .wrap {
    grid-template-columns: 1fr;
  }
  .steps,
  .others {
    grid-template-columns: 1fr;
  }
  .feats {
    grid-template-columns: 1fr;
  }
  .pHeader nav {
    display: none;
  }
  .pHeader .btn {
    margin-left: auto;
  }
}
@media (max-width: 560px) {
  .pHero {
    padding: 40px 0 56px;
  }
  .pSection {
    padding: 60px 0;
  }
  .pHero .lead {
    font-size: 16px;
  }
  .heroActions .btn {
    width: 100%;
  }
  .proof {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 26px;
  }
  .pHeader .logo img {
    width: 120px;
  }
}
