/* Web pública. Valores neutros hasta que la fase de diseño fije DESIGN.md; el acento sale de la personalización del panel. */
:root {
  --ps-bg: #ffffff;
  --ps-surface: #f5f6f8;
  --ps-text: #16181d;
  --ps-muted: #4b5260;
  --ps-line: #d9dde3;
  --ps-accent: #d12a00;
  --ps-on-accent: #ffffff;
  --ps-radius: 12px;
  --ps-font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --ps-space: clamp(48px, 8vw, 96px);
  --ps-ease-out: cubic-bezier(0.23, 1, 0.32, 1);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--ps-bg); color: var(--ps-text); font-family: var(--ps-font); font-size: 1.0625rem; line-height: 1.65; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-underline-offset: 0.2em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--ps-accent); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--ps-accent); color: var(--ps-on-accent); }
h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 0.5em; text-wrap: balance; }
h1 { font-size: clamp(2.1rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.4rem); margin-top: 0; }
h3 { font-size: 1.2rem; }
/* About 75 letters per line: with proportional fonts a `ch` is wider than an average letter. */
p { margin: 0 0 1em; max-width: 34em; }

.ps-wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }
.ps-narrow { max-width: 760px; }
.ps-skip { position: absolute; left: 16px; top: -100px; z-index: 10; background: var(--ps-text); color: var(--ps-bg); padding: 12px 16px; border-radius: 8px; }
.ps-skip:focus { top: 16px; }
.ps-preview { background: #fff4d6; color: #4a3300; padding: 12px 16px; text-align: center; font-weight: 600; }

.ps-header { border-bottom: 1px solid var(--ps-line); }
.ps-header-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 32px; min-height: 72px; padding-block: 12px; }
.ps-brand { font-weight: 700; font-size: 1.15rem; text-decoration: none; display: inline-flex; align-items: center; min-height: 44px; }
.ps-brand img { max-height: 40px; width: auto; }
.ps-menu, .ps-footer-links { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 20px; }
.ps-menu a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; font-weight: 600; color: var(--ps-muted); }
.ps-menu a:hover, .ps-menu a[aria-current="page"] { color: var(--ps-text); text-decoration: underline; }

.ps-page-title { padding-top: var(--ps-space); }
.ps-hero { padding-block: var(--ps-space); background: var(--ps-surface); }
.ps-hero-inner { display: grid; gap: 40px; align-items: center; }
.ps-lead { font-size: 1.2rem; color: var(--ps-muted); }
.ps-hero-image, .ps-text img { border-radius: var(--ps-radius); width: 100%; object-fit: cover; }
.ps-section { padding-block: var(--ps-space); }
.ps-section + .ps-section { padding-top: 0; }
.ps-text { display: grid; gap: 40px; align-items: start; }
.ps-features { list-style: none; margin: 32px 0 0; padding: 0; display: grid; gap: 32px; }
.ps-features li { border-top: 2px solid var(--ps-text); padding-top: 16px; }
.ps-faq details { border-bottom: 1px solid var(--ps-line); padding-block: 8px; }
.ps-faq summary { cursor: pointer; font-weight: 600; min-height: 44px; display: flex; align-items: center; }
.ps-faq details p { color: var(--ps-muted); }
.ps-cta .ps-wrap { background: var(--ps-surface); border-radius: var(--ps-radius); padding: 40px 32px; }

.ps-button { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 12px 24px; border: 0; border-radius: 999px;
  background: var(--ps-accent); color: var(--ps-on-accent); font: inherit; font-weight: 700; text-decoration: none; cursor: pointer;
  transition-property: transform, background-color; transition-duration: 160ms; transition-timing-function: var(--ps-ease-out); }
.ps-button:active { transform: scale(0.97); }

.ps-form { display: grid; gap: 8px; margin-top: 24px; }
.ps-form label { font-weight: 600; margin-top: 12px; }
.ps-form input[type=text], .ps-form input[type=email], .ps-form input[type=tel], .ps-form textarea {
  width: 100%; min-height: 48px; padding: 12px 14px; font: inherit; font-size: 1rem; color: var(--ps-text); background: var(--ps-bg);
  border: 1px solid #8a919c; border-radius: 8px; }
.ps-form textarea { resize: vertical; }
.ps-form .ps-button { justify-self: start; margin-top: 20px; }
.ps-check { display: flex; gap: 12px; align-items: flex-start; font-weight: 400 !important; }
.ps-check input { width: 22px; height: 22px; margin-top: 3px; flex: none; accent-color: var(--ps-accent); }
.ps-optional { font-weight: 400; color: var(--ps-muted); }
.ps-trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.ps-notice { background: #e6f4ea; color: #0f3d1f; padding: 12px 16px; border-radius: 8px; }
.ps-errors { background: #fdecea; color: #5c1610; padding: 12px 16px; border-radius: 8px; margin-top: 16px; }
.ps-errors ul { margin: 0; padding-left: 20px; }

.ps-footer { border-top: 1px solid var(--ps-line); padding-block: 40px; color: var(--ps-muted); margin-top: var(--ps-space); }
.ps-footer-links { margin-block: 12px; }
.ps-footer-links a { display: inline-flex; min-height: 44px; align-items: center; }
.ps-small { font-size: 0.9rem; }

@media (min-width: 800px) {
  .ps-hero-inner.ps-has-image, .ps-text.ps-has-image { grid-template-columns: 1.1fr 0.9fr; }
  .ps-features { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
}
@media (hover: hover) and (pointer: fine) {
  .ps-button:hover { filter: brightness(0.92); }
}
@media (prefers-reduced-motion: reduce) {
  .ps-button { transition-duration: 0ms; }
}

.ps-privacy { display: grid; grid-template-columns: max-content 1fr; gap: 4px 12px; margin: 20px 0 4px; padding: 12px 16px;
  background: var(--ps-surface); border-radius: 8px; font-size: 0.9rem; color: var(--ps-muted); }
.ps-privacy dt { font-weight: 700; color: var(--ps-text); }
.ps-privacy dd { margin: 0; }
.ps-legal-identity { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; }
.ps-legal-identity dt { font-weight: 700; }
.ps-legal-identity dd { margin: 0; }
@media (max-width: 480px) { .ps-privacy, .ps-legal-identity { grid-template-columns: 1fr; } .ps-privacy dd, .ps-legal-identity dd { margin-bottom: 6px; } }

.ps-consent { background: var(--ps-text); color: var(--ps-bg); padding-block: 16px; }
.ps-consent p { max-width: none; }
.ps-consent a { color: inherit; }
.ps-consent-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.ps-consent-actions .ps-button { background: var(--ps-bg); color: var(--ps-text); }
