/* ADR-017 Hito 1 — Portal Público del Producto */

:root {
  --pl-ink: #1c1917;
  --pl-muted: #57534e;
  --pl-surface: #ffffff;
  --pl-canvas: #fff7ed;
  --pl-primary: #ff6b35;
  --pl-primary-dark: #c2410c;
  --pl-accent: #fdba74;
  --pl-border: #fed7aa;
  --pl-radius: 0;
  --pl-font: "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --pl-display: "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

html[data-brand="eposone"] {
  --pl-canvas: #ffffff;
  --pl-primary: #ff5722;
  --pl-primary-dark: #1a233a;
  --pl-accent: #ff8a65;
  --pl-border: #e2e8f0;
  --pl-ink: #1a233a;
  --pl-muted: #475569;
  --pl-surface: #ffffff;
}

.pl-brand__logo--wordmark {
  width: auto;
  height: 2.5rem;
  max-width: min(220px, 48vw);
  object-fit: contain;
}

.pl-brand--wide {
  gap: 0;
}

.pl-hero__plane {
  background:
    radial-gradient(900px 420px at 85% 15%, color-mix(in srgb, var(--pl-primary) 18%, transparent), transparent 55%),
    linear-gradient(165deg, #ffffff 0%, #f8fafc 55%, #fff7ed 100%);
}

.pl-about__grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  align-items: center;
}

.pl-about__title {
  margin: 0;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  letter-spacing: -0.03em;
  color: var(--pl-primary-dark);
  line-height: 1.15;
}

.pl-about__title-brand {
  color: var(--pl-primary);
}

.pl-about__lead {
  margin: 1rem 0 0;
  font-size: 1.15rem;
  color: var(--pl-muted);
  max-width: 28rem;
}

.pl-about__cta {
  margin-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.pl-about__wordmark {
  display: block;
  margin-top: 2rem;
  width: min(280px, 100%);
  height: auto;
}

.pl-about__media {
  margin: 0;
}

.pl-about__media img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--pl-border);
  background: #fff;
}

@media (max-width: 860px) {
  .pl-about__grid {
    grid-template-columns: 1fr;
  }

  .pl-about__media {
    order: -1;
  }
}

html[data-brand="epayroll"] {
  --pl-canvas: #eef2ff;
  --pl-primary: #4f46e5;
  --pl-primary-dark: #312e81;
  --pl-accent: #a5b4fc;
  --pl-border: #c7d2fe;
  --pl-ink: #1e1b4b;
  --pl-muted: #4338ca;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body.pl-body {
  margin: 0;
  font-family: var(--pl-font);
  color: var(--pl-ink);
  background: var(--pl-canvas);
  line-height: 1.5;
}

a {
  color: inherit;
}

.pl-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: color-mix(in srgb, var(--pl-canvas) 92%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--pl-border);
}

.pl-header__inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0.85rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.pl-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.pl-brand__logo {
  display: block;
  border-radius: 0;
}

.pl-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 1.1rem;
  align-items: center;
  font-size: 0.92rem;
}

.pl-nav a {
  text-decoration: none;
  color: var(--pl-muted);
}

.pl-nav a:hover {
  color: var(--pl-ink);
}

.pl-nav__login {
  font-weight: 600;
  color: var(--pl-primary-dark) !important;
}

.pl-hero {
  position: relative;
  min-height: min(88vh, 720px);
  display: grid;
  align-items: end;
  overflow: hidden;
  border-bottom: 1px solid var(--pl-border);
}

.pl-hero--split {
  align-items: center;
  min-height: min(78vh, 640px);
}

.pl-hero--split .pl-hero__layout {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 3.5rem 1.25rem 3rem;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 1.75rem 2rem;
  align-items: center;
}

.pl-hero--split .pl-hero__inner {
  max-width: none;
  width: auto;
  margin: 0;
  padding: 0;
}

.pl-hero--split .pl-hero__title {
  max-width: 10ch;
}

.pl-hero__visual {
  margin: 0;
  justify-self: end;
  width: 100%;
  max-width: 34rem;
}

.pl-hero__visual img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--pl-border);
  background: #fff;
  box-shadow: 0 18px 40px rgba(26, 35, 58, 0.12);
}

.pl-hero__plane {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(1200px 480px at 12% 18%, color-mix(in srgb, var(--pl-primary) 35%, transparent), transparent 60%),
    linear-gradient(160deg, var(--pl-canvas) 0%, color-mix(in srgb, var(--pl-accent) 35%, var(--pl-canvas)) 55%, var(--pl-canvas) 100%);
  animation: pl-glow 10s ease-in-out infinite alternate;
}

.pl-hero__inner {
  position: relative;
  max-width: 1100px;
  width: 100%;
  margin: 0 auto;
  padding: 5.5rem 1.25rem 4rem;
}

.pl-hero__eyebrow {
  margin: 0 0 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--pl-muted);
}

.pl-hero__title {
  margin: 0;
  font-family: var(--pl-display);
  font-size: clamp(2.8rem, 8vw, 5.2rem);
  line-height: 0.95;
  letter-spacing: -0.04em;
  font-weight: 800;
  max-width: 12ch;
  animation: pl-rise 0.7s ease-out both;
}

.pl-hero__tagline {
  margin: 0.75rem 0 0;
  font-size: clamp(1.25rem, 3vw, 1.75rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  max-width: 22ch;
  animation: pl-rise 0.75s ease-out 0.04s both;
}

.pl-hero__badge {
  display: inline-block;
  margin: 1.25rem 0 0;
  padding: 0.45rem 0.75rem;
  border: 1px solid var(--pl-border);
  background: color-mix(in srgb, var(--pl-surface) 80%, var(--pl-accent));
  font-size: 0.9rem;
  font-weight: 650;
  color: var(--pl-primary-dark);
}

.pl-hero__fine {
  margin: 1rem 0 0;
  max-width: 36rem;
  font-size: 0.85rem;
  color: var(--pl-muted);
}

.pl-pillars {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}

.pl-pillar h2 {
  margin: 0 0 0.35rem;
  font-size: 1.1rem;
}

.pl-pillar p {
  margin: 0;
  color: var(--pl-muted);
}

.pl-caps {
  list-style: none;
  margin: 2rem 0 0;
  padding: 0;
  display: grid;
  gap: 1rem;
}

.pl-cap {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  align-items: start;
  padding: 1rem 0;
  border-bottom: 1px solid var(--pl-border);
}

.pl-cap__n {
  width: 2rem;
  height: 2rem;
  display: grid;
  place-items: center;
  font-weight: 800;
  background: var(--pl-primary);
  color: #fff;
}

.pl-cap h3 {
  margin: 0 0 0.35rem;
}

.pl-cap p {
  margin: 0;
  color: var(--pl-muted);
}

.pl-modules {
  margin-top: 2rem;
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.pl-module {
  padding: 1.2rem;
  border: 1px solid var(--pl-border);
  background: var(--pl-surface);
}

.pl-module.is-addon {
  border-style: dashed;
}

.pl-module__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.55rem;
}

.pl-module__label {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--pl-primary-dark);
  margin-bottom: 0;
}

.pl-module__badge {
  flex-shrink: 0;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--pl-primary-dark);
  border: 1px solid var(--pl-primary);
  padding: 0.15rem 0.45rem;
}

.pl-module__badge.is-addon {
  color: var(--pl-muted);
  border-color: var(--pl-border);
}

.pl-module h3 {
  margin: 0 0 0.4rem;
}

.pl-module p {
  margin: 0;
  color: var(--pl-muted);
}

.pl-split {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.pl-checklist {
  margin: 1rem 0 0;
  padding-left: 1.15rem;
  color: var(--pl-muted);
}

.pl-checklist li {
  margin: 0.45rem 0;
}

.pl-offers {
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.pl-offers li {
  padding: 0.9rem 1rem;
  border: 1px solid var(--pl-border);
  background: color-mix(in srgb, var(--pl-surface) 75%, var(--pl-canvas));
  display: grid;
  gap: 0.25rem;
}

.pl-offers span {
  color: var(--pl-muted);
  font-size: 0.9rem;
}

.pl-plan__eyebrow {
  margin: 0;
  font-size: 0.8rem;
  color: var(--pl-muted);
  font-weight: 600;
}

.pl-plan__price {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.pl-plan__price span {
  color: var(--pl-primary-dark);
}

.pl-plan__badge {
  display: inline-block;
  margin: 0.4rem 0 0.55rem;
  padding: 0.2rem 0.55rem;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 0.35rem;
  background: color-mix(in srgb, var(--pl-accent) 35%, var(--pl-surface));
  color: var(--pl-primary-dark);
}

.pl-plan__legal {
  margin: 0.65rem 0 0;
  font-size: 0.75rem;
  color: var(--pl-muted);
}

.pl-compare-wrap {
  margin-top: 2.5rem;
  overflow-x: auto;
}

.pl-compare {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
  background: var(--pl-surface);
}

.pl-compare th,
.pl-compare td {
  border: 1px solid var(--pl-border);
  padding: 0.65rem 0.75rem;
  text-align: left;
}

.pl-compare th {
  background: color-mix(in srgb, var(--pl-accent) 25%, var(--pl-surface));
}

.pl-compare__note {
  margin: 0.85rem 0 0;
  font-size: 0.85rem;
  color: var(--pl-muted);
  max-width: 52rem;
}

.pl-quotes {
  margin-top: 1.5rem;
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.pl-quote {
  margin: 0;
  padding: 1.15rem;
  border: 1px solid var(--pl-border);
  background: var(--pl-surface);
}

.pl-quote p {
  margin: 0 0 0.75rem;
}

.pl-quote footer {
  color: var(--pl-muted);
  font-size: 0.9rem;
}

.pl-demo__contacts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin: 1rem 0 0;
}

.pl-source {
  margin-top: 1.5rem;
  font-size: 0.8rem;
  color: var(--pl-muted);
}

.pl-source a {
  color: var(--pl-primary-dark);
}

.pl-hero__cta {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  animation: pl-rise 0.85s ease-out 0.14s both;
}

.pl-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.35rem;
  text-decoration: none;
  border: 1px solid transparent;
  font-weight: 650;
  font-size: 0.95rem;
  cursor: pointer;
  background: transparent;
  color: var(--pl-ink);
}

.pl-btn--primary {
  background: var(--pl-primary);
  color: #fff;
  border-color: var(--pl-primary);
}

.pl-btn--primary:hover {
  background: var(--pl-primary-dark);
  border-color: var(--pl-primary-dark);
}

.pl-btn--ghost {
  border-color: var(--pl-border);
  background: color-mix(in srgb, var(--pl-surface) 70%, transparent);
}

.pl-btn--ghost:hover {
  border-color: var(--pl-primary);
}

.pl-section {
  padding: 4rem 0;
}

.pl-section--alt {
  background: color-mix(in srgb, var(--pl-surface) 70%, var(--pl-canvas));
  border-block: 1px solid var(--pl-border);
}

.pl-section__inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.pl-section__title {
  margin: 0;
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  letter-spacing: -0.03em;
}

.pl-section__lead {
  margin: 0.6rem 0 0;
  max-width: 40rem;
  color: var(--pl-muted);
}

.pl-benefits {
  list-style: none;
  margin: 2rem 0 0;
  padding: 0;
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.pl-benefit h3 {
  margin: 0 0 0.4rem;
  font-size: 1.05rem;
}

.pl-benefit p {
  margin: 0;
  color: var(--pl-muted);
}

.pl-shots {
  margin-top: 2rem;
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.pl-shot {
  min-height: 10rem;
  padding: 1.25rem;
  border: 1px solid var(--pl-border);
  background:
    linear-gradient(145deg, color-mix(in srgb, var(--pl-primary) 12%, var(--pl-surface)), var(--pl-surface));
}

.pl-shot__label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--pl-primary-dark);
  margin-bottom: 0.75rem;
}

.pl-shot p {
  margin: 0;
  color: var(--pl-muted);
}

.pl-plans {
  margin-top: 2rem;
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.pl-plan {
  padding: 1.35rem;
  border: 1px solid var(--pl-border);
  background: var(--pl-surface);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.pl-plan.is-featured {
  border-color: var(--pl-primary);
  box-shadow: 0 0 0 1px var(--pl-primary);
}

.pl-plan h3 {
  margin: 0;
}

.pl-plan__blurb {
  margin: 0;
  color: var(--pl-muted);
  min-height: 2.8em;
}

.pl-plan__points-heading {
  margin: 0;
  font-weight: 600;
  color: var(--pl-ink);
}

.pl-plan ul {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--pl-muted);
  flex: 1;
}

.pl-plan .pl-btn {
  margin-top: 0.5rem;
  width: 100%;
}

.pl-services {
  margin-top: 2.5rem;
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.pl-services__block {
  padding: 1.25rem 1.35rem;
  border: 1px solid var(--pl-border);
  background: var(--pl-surface);
}

.pl-services__block h3 {
  margin: 0 0 0.35rem;
}

.pl-services__block p {
  margin: 0 0 0.75rem;
  color: var(--pl-muted);
}

.pl-services__block ul {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--pl-muted);
}

.pl-demo__form {
  margin-top: 1.5rem;
  max-width: 32rem;
  display: grid;
  gap: 0.85rem;
}

.pl-demo__form label {
  display: grid;
  gap: 0.35rem;
  font-size: 0.9rem;
  font-weight: 600;
}

.pl-demo__form input,
.pl-demo__form textarea {
  font: inherit;
  padding: 0.7rem 0.8rem;
  border: 1px solid var(--pl-border);
  background: var(--pl-surface);
  color: var(--pl-ink);
  border-radius: var(--pl-radius);
}

.pl-demo__form input:focus,
.pl-demo__form textarea:focus {
  outline: 2px solid color-mix(in srgb, var(--pl-primary) 55%, transparent);
  outline-offset: 1px;
}

.pl-demo__status {
  min-height: 1.25rem;
  margin: 0;
  font-size: 0.9rem;
  color: var(--pl-muted);
}

.pl-demo__status.is-ok {
  color: #166534;
}

.pl-demo__status.is-err {
  color: #b91c1c;
}

.pl-faq {
  margin-top: 1.5rem;
  display: grid;
  gap: 0.5rem;
  max-width: 44rem;
}

.pl-faq__item {
  border-bottom: 1px solid var(--pl-border);
  padding: 0.75rem 0;
}

.pl-faq__item summary {
  cursor: pointer;
  font-weight: 650;
}

.pl-faq__item p {
  margin: 0.65rem 0 0;
  color: var(--pl-muted);
}

.pl-footer {
  padding: 2rem 1.25rem;
  border-top: 1px solid var(--pl-border);
  text-align: center;
  color: var(--pl-muted);
  font-size: 0.9rem;
}

.pl-footer p {
  margin: 0.2rem 0;
}

.pl-footer__note {
  font-size: 0.75rem;
  opacity: 0.8;
}

.pl-footer__legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.35rem 0.85rem;
  margin: 0.75rem 0;
}

.pl-footer__legal a {
  color: var(--pl-primary-dark, #134e4a);
  text-decoration: none;
  font-size: 0.8rem;
}

.pl-footer__legal a:hover {
  text-decoration: underline;
}

.pl-demo__accept {
  display: flex;
  gap: 0.55rem;
  align-items: flex-start;
  font-size: 0.85rem;
  color: var(--pl-muted);
  margin: 0.75rem 0 0.5rem;
  text-align: left;
}

.pl-demo__accept input {
  margin-top: 0.2rem;
}

.pl-demo__accept a {
  color: var(--pl-primary-dark, #134e4a);
}

@keyframes pl-rise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pl-glow {
  from {
    filter: saturate(1);
  }
  to {
    filter: saturate(1.15);
  }
}

@media (max-width: 900px) {
  .pl-hero--split .pl-hero__layout {
    grid-template-columns: 1fr;
    padding-top: 3rem;
  }

  .pl-hero__visual {
    justify-self: center;
    max-width: 28rem;
    order: -1;
  }
}

@media (max-width: 720px) {
  .pl-nav a:not(.pl-nav__login) {
    display: none;
  }

  .pl-hero__inner {
    padding-top: 4rem;
  }

  .pl-hero--split .pl-hero__inner {
    padding-top: 0;
  }
}
