/* ============================================================
   DocsPortal — portada publica (/portada).

   Todo cuelga de .pt para no tocar ninguna otra pantalla. Sin colores
   literales: sale de los tokens --dp-* de docsportal-theme.css (los
   tintes se derivan con --dp-primary-rgb). La tipografia de titulos
   (Plus Jakarta Sans) la carga la propia pagina en <HeadContent>.
   Layout: columna de 1180px; hero en dos columnas; bandas alternas.
   ============================================================ */

.pt {
    --pt-display: "Plus Jakarta Sans", var(--dp-font);
    --pt-tint: rgba(var(--dp-primary-rgb), .08);
    --pt-tint-2: rgba(var(--dp-primary-rgb), .14);
    color: var(--dp-fg);
    background: var(--dp-surface);
    font-family: var(--dp-font);
    -webkit-font-smoothing: antialiased;
}

/* El portal no fija box-sizing global: sin esto, width:100% + padding + borde sacaba los
   campos del formulario fuera de su tarjeta. */
.pt *, .pt *::before, .pt *::after { box-sizing: border-box; }

.pt a { color: var(--dp-primary); }
.pt-wrap { max-width: 1180px; margin: 0 auto; padding-inline: 24px; }
.pt h1, .pt h2, .pt h3 { font-family: var(--pt-display); text-wrap: balance; margin: 0; color: var(--dp-fg); }
.pt h2 { font-weight: 800; font-size: clamp(26px, 3vw, 34px); letter-spacing: -.02em; line-height: 1.16; margin-bottom: 14px; }
.pt-kicker { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; font-weight: 700; color: var(--dp-primary); margin: 0 0 12px; }
.pt-deck { font-size: 17px; line-height: 1.6; color: var(--dp-muted); margin: 0 0 18px; max-width: 62ch; }
.pt-deck b { color: var(--dp-fg); }
.pt-deck-narrow { max-width: 640px; margin-bottom: 36px; }

/* ---------- botones ---------- */
.pt-btn {
    display: inline-block; font-family: var(--pt-display); font-weight: 700; font-size: 15px;
    padding: 13px 26px; border-radius: 10px; text-decoration: none; border: 1.5px solid transparent;
    transition: transform .15s ease, background-color .15s ease; cursor: pointer; text-align: center;
}
.pt a.pt-btn-solid, .pt .pt-btn-solid { background: var(--dp-primary); color: var(--dp-surface); box-shadow: 0 10px 24px rgba(var(--dp-primary-rgb), .24); }
.pt .pt-btn-solid:hover { background: var(--dp-primary-dark); transform: translateY(-2px); }
.pt a.pt-btn-ghost { background: var(--dp-surface); color: var(--dp-fg); border-color: var(--dp-line); }
.pt a.pt-btn-ghost:hover { border-color: var(--dp-primary-light); transform: translateY(-2px); }
.pt-btn-sm { padding: 8px 16px; font-size: 14px; }
.pt-btn-block { width: 100%; }
.pt a:focus-visible, .pt button:focus-visible, .pt input:focus-visible, .pt textarea:focus-visible {
    outline: 3px solid var(--dp-primary-light); outline-offset: 2px;
}

/* ---------- nav ---------- */
.pt-nav { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--dp-surface) 88%, transparent); backdrop-filter: blur(12px); border-bottom: 1px solid var(--dp-line); }
.pt-nav-row { display: flex; align-items: center; justify-content: space-between; min-height: 64px; gap: 16px; }
.pt-brand { display: flex; align-items: center; gap: 9px; font-family: var(--pt-display); font-weight: 800; font-size: 18px; color: var(--dp-fg) !important; text-decoration: none; }
.pt-brand small { font-family: var(--dp-font); font-weight: 500; font-size: 12px; color: var(--dp-muted); }
.pt-brand i { width: 18px; height: 18px; border-radius: 5px; background: var(--dp-primary); position: relative; }
.pt-brand i::after { content: ""; position: absolute; left: 4.5px; top: 4.5px; width: 4px; height: 9px; background: var(--dp-surface); }
.pt-nav-links { display: flex; align-items: center; gap: 24px; }
.pt-nav-links a { white-space: nowrap; }
.pt-nav-links a:not(.pt-btn) { color: var(--dp-muted); text-decoration: none; font-size: 14px; font-weight: 500; }
.pt-nav-links a:not(.pt-btn):hover { color: var(--dp-fg); }
/* "Iniciar sesion" va como boton de contorno (igual que "Crear cuenta"): como enlace plano se
   perdia entre las secciones. */
.pt-nav-links .pt-nav-login { color: var(--dp-fg); }

/* ---------- hero ---------- */
.pt-hero {
    background:
        radial-gradient(900px 460px at 82% -6%, var(--pt-tint-2), transparent 60%),
        radial-gradient(700px 460px at 2% 96%, var(--pt-tint), transparent 62%),
        var(--dp-canvas);
    padding-block: 72px 64px; border-bottom: 1px solid var(--dp-line);
}
.pt-hero-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.2fr); gap: 52px; align-items: center; }
.pt-eyebrow { display: inline-block; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; font-weight: 700; padding: 7px 14px; border-radius: 99px; background: var(--dp-primary-lighter); color: var(--dp-primary); margin-bottom: 22px; }
.pt h1 { font-weight: 800; font-size: clamp(34px, 4.2vw, 50px); line-height: 1.06; letter-spacing: -.03em; margin-bottom: 20px; }
.pt-lead { font-size: 18px; line-height: 1.58; color: var(--dp-muted); margin: 0 0 26px; max-width: 470px; }
.pt-lead b { color: var(--dp-fg); font-weight: 600; }
.pt-checks { list-style: none; padding: 0; margin: 0 0 30px; display: grid; gap: 13px; }
.pt-checks li { display: flex; gap: 12px; align-items: flex-start; font-size: 15.5px; line-height: 1.45; }
.pt-tick { flex: none; width: 21px; height: 21px; margin-top: 1px; border-radius: 50%; background: var(--dp-primary); color: var(--dp-surface); display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 700; }
.pt-ctas { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.pt-fine { font-size: 13px; color: var(--dp-muted); margin: 0; }
.pt-media { margin: 0; min-width: 0; }
/* Proporcion del poster (1200x676): el hueco existe antes de que cargue el video, y el
   contenido de abajo no salta cuando llega. */
.pt-video { width: 100%; max-width: 100%; aspect-ratio: 1200 / 676; display: block; border-radius: 16px; border: 1px solid var(--dp-line); background: var(--dp-canvas); }
.pt-media figcaption { font-size: 12px; color: var(--dp-muted); margin: 12px 4px 0; text-align: right; }

/* ---------- cifras ---------- */
.pt-band { padding-block: 34px; border-bottom: 1px solid var(--dp-line); }
.pt-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.pt-stat b { display: block; font-family: var(--pt-display); font-size: 28px; font-weight: 800; letter-spacing: -.02em; color: var(--dp-primary); font-variant-numeric: tabular-nums; }
.pt-stat span { display: block; margin-top: 6px; font-size: 13px; line-height: 1.5; color: var(--dp-muted); }

/* ---------- secciones ---------- */
/* La barra es fija: sin este margen, al saltar a #como, #confianza... la barra tapaba la
   primera linea de la seccion. */
.pt section[id] { scroll-margin-top: 72px; }
.pt-blk { padding-block: 76px; }
.pt-alt { background: var(--dp-canvas); border-top: 1px solid var(--dp-line); border-bottom: 1px solid var(--dp-line); }
.pt-two { display: grid; grid-template-columns: 1fr 1fr; gap: 52px; align-items: center; }
.pt-two-top { align-items: start; }
.pt-two > div, .pt-two > ul { min-width: 0; }

.pt-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.pt-card { background: var(--dp-surface); border: 1px solid var(--dp-line); border-radius: 13px; padding: 24px; }
.pt-card b { display: block; font-family: var(--pt-display); font-size: 17px; margin-bottom: 8px; }
.pt-card p { font-size: 14.5px; line-height: 1.58; color: var(--dp-muted); margin: 0; }
.pt-num { display: flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 50%; border: 1.5px solid var(--dp-primary); color: var(--dp-primary); font-family: var(--pt-display); font-weight: 800; font-size: 13px; margin-bottom: 14px; }

.pt-plain { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; }
.pt-plain li { display: flex; gap: 13px; font-size: 15px; line-height: 1.55; color: var(--dp-muted); }
.pt-plain b { color: var(--dp-fg); }
.pt-plain-tight { gap: 10px; margin-bottom: 22px; }
.pt-dot { flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--dp-primary); margin-top: 8px; }

/* tarjeta de costo: comparacion "sin asistente" / "con DocsPortal" */
.pt-cost { background: var(--dp-surface); border: 1px solid var(--dp-line); border-radius: 16px; padding: 8px 20px 20px; box-shadow: 0 18px 40px rgba(var(--dp-primary-rgb), .08); min-width: 0; }
.pt-cost-head, .pt-cost-row { display: grid; grid-template-columns: 1.1fr 1fr 1.25fr; gap: 12px; align-items: center; padding-block: 12px; }
.pt-cost-row { border-top: 1px solid var(--dp-line); font-size: 14.5px; color: var(--dp-muted); }
.pt-cost-head { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; font-weight: 700; color: var(--dp-muted); }
.pt-cost-row [role="rowheader"] { font-weight: 600; color: var(--dp-fg); }
.pt-cost .pt-cost-us { color: var(--dp-primary-dark); }
.pt-cost-head .pt-cost-us { color: var(--dp-primary); }
.pt-cost-row .pt-cost-us { background: var(--dp-primary-lighter); border-radius: 8px; padding: 6px 10px; margin-block: -6px; }
.pt-cost-row .pt-cost-us b { font-family: var(--pt-display); font-weight: 800; color: var(--dp-primary-darker); }
.pt-cost-chips { list-style: none; margin: 14px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.pt-cost-chips li { font-size: 12.5px; font-weight: 600; color: var(--dp-ok); background: var(--dp-surface); border: 1px solid var(--dp-ok); border-radius: 99px; padding: 4px 11px; }
.pt-cost-chips li::before { content: "✓ "; }

/* Seccion de costo: un punto menos que el resto de la portada (se lee como tarjeta, no como
   texto corrido). */
#costo .pt-deck { font-size: 16px; }
#costo h2 { font-size: clamp(25px, 2.9vw, 33px); }
#costo .pt-cost-row { font-size: 13.5px; }
#costo .pt-cost-head { font-size: 10px; }
#costo .pt-cost-chips li { font-size: 11.5px; }

/* ejemplo de la brecha lexica */
.pt-example { background: var(--dp-surface); border: 1px solid var(--dp-line); border-radius: 14px; padding: 22px; display: grid; gap: 10px; }
.pt-example-row { display: grid; gap: 6px; }
.pt-example-label { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; font-weight: 700; color: var(--dp-muted); }
.pt-bubble { margin: 0; padding: 12px 14px; border-radius: 12px; background: var(--dp-canvas); border: 1px solid var(--dp-line); font-size: 14.5px; line-height: 1.5; color: var(--dp-muted); }
.pt-bubble b { color: var(--dp-fg); }
.pt-bubble-user { background: var(--dp-primary); border-color: var(--dp-primary); color: var(--dp-surface); justify-self: end; max-width: 85%; }
.pt-example-arrow { justify-self: center; color: var(--dp-primary-light); font-weight: 700; }

/* escalera de confianza */
.pt-ladder { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.pt-ladder li { display: flex; gap: 14px; align-items: flex-start; background: var(--dp-surface); border: 1px solid var(--dp-line); border-radius: 12px; padding: 14px 16px; }
.pt-ladder b { display: block; font-size: 15px; margin-bottom: 3px; }
.pt-ladder p { margin: 0; font-size: 14px; line-height: 1.5; color: var(--dp-muted); }
.pt-step { flex: none; width: 26px; height: 26px; border-radius: 8px; background: var(--dp-primary-lighter); color: var(--dp-primary); font-weight: 800; font-size: 13px; display: flex; align-items: center; justify-content: center; }

/* ---------- preguntas frecuentes ---------- */
.pt-faq-wrap { max-width: 860px; }
.pt-faq { display: grid; gap: 10px; margin-top: 8px; }
.pt-faq-item { background: var(--dp-surface); border: 1px solid var(--dp-line); border-radius: 12px; padding: 0 18px; }
.pt-faq-item summary { cursor: pointer; list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 16px; }
.pt-faq-item summary::-webkit-details-marker { display: none; }
.pt-faq-item summary::after { content: "+"; font: 700 20px var(--pt-display); color: var(--dp-primary); flex: none; }
.pt-faq-item[open] summary::after { content: "–"; }
.pt-faq-item summary h3 { font-size: 16px; font-weight: 700; margin: 0; }
.pt-faq-item p { margin: 0 0 16px; font-size: 15px; line-height: 1.6; color: var(--dp-muted); max-width: 70ch; }

/* ---------- demo ---------- */
.pt-end { padding-block: 76px; background: linear-gradient(180deg, var(--dp-surface), var(--dp-canvas)); border-top: 1px solid var(--dp-line); }
.pt-alt-paths { display: grid; gap: 8px; font-size: 14.5px; color: var(--dp-muted); }
.pt-alt-paths p { margin: 0; }
.pt-alt-paths b { color: var(--dp-fg); }
.pt-form-card { background: var(--dp-surface); border: 1px solid var(--dp-line); border-radius: 16px; padding: 26px; box-shadow: 0 18px 40px rgba(var(--dp-primary-rgb), .08); }
.pt-form-title { font-size: 20px; font-weight: 800; margin-bottom: 16px !important; }
.pt-form { display: grid; gap: 14px; }
.pt-field { display: grid; gap: 6px; min-width: 0; }
.pt-field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.pt-field label { font-size: 13px; font-weight: 600; color: var(--dp-fg); }
.pt-field label span { font-weight: 400; color: var(--dp-muted); }
.pt-field input, .pt-field textarea {
    width: 100%; font: 15px/1.4 var(--dp-font); color: var(--dp-fg); background: var(--dp-surface);
    border: 1.5px solid var(--dp-line); border-radius: 9px; padding: 10px 12px;
}
.pt-field textarea { resize: vertical; min-height: 84px; }
.pt-field input:focus, .pt-field textarea:focus { border-color: var(--dp-primary); outline: none; }
.pt-field input.invalid, .pt-field textarea.invalid { border-color: var(--dp-danger); }
.pt-error { font-size: 12.5px; color: var(--dp-danger-ink); }
.pt-form-error { margin: 0; padding: 10px 12px; border-radius: 9px; background: var(--dp-danger-bg); border: 1px solid var(--dp-danger-line); color: var(--dp-danger-ink); font-size: 14px; }
.pt-done h3 { font-size: 20px; font-weight: 800; margin-bottom: 8px; }
.pt-done p { margin: 0; color: var(--dp-muted); line-height: 1.55; }
.pt-done-warn h3 { color: var(--dp-danger-ink); }

/* ---------- imagen gancho: "tu pantalla" con el asistente encima ---------- */
.pt-mock { position: relative; margin: 6px 0 30px; padding: 0 0 34px; max-width: 520px; }
.pt-mock-win { background: var(--dp-surface); border: 1px solid var(--dp-line); border-radius: 12px; overflow: hidden; box-shadow: 0 18px 40px rgba(var(--dp-primary-rgb), .10); }
.pt-mock-bar { display: flex; align-items: center; gap: 5px; padding: 8px 10px; background: var(--dp-canvas); border-bottom: 1px solid var(--dp-line); }
.pt-mock-bar span { width: 8px; height: 8px; border-radius: 50%; background: var(--dp-line); }
.pt-mock-bar em { margin-left: 8px; font: 500 11px var(--dp-font-mono); font-style: normal; color: var(--dp-muted); background: var(--dp-surface); border: 1px solid var(--dp-line); border-radius: 6px; padding: 2px 8px; }
.pt-mock-body { display: grid; grid-template-columns: 70px 1fr; min-height: 170px; }
.pt-mock-side { display: grid; align-content: start; gap: 8px; padding: 12px 10px; border-right: 1px solid var(--dp-line); }
.pt-mock-side i { display: block; height: 7px; border-radius: 4px; background: var(--dp-line); }
.pt-mock-side i.on { background: var(--dp-primary-light); }
.pt-mock-main { padding: 12px; display: grid; align-content: start; gap: 10px; }
.pt-mock-tag { justify-self: start; font: 700 11px var(--dp-font); letter-spacing: .08em; text-transform: uppercase; color: var(--dp-primary); border: 1.5px dashed var(--dp-primary-light); border-radius: 6px; padding: 3px 8px; }
.pt-mock-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.pt-mock-cards i { display: block; height: 30px; border-radius: 6px; border: 1px solid var(--dp-line); background: var(--dp-canvas); }
.pt-mock-rows { display: grid; gap: 7px; }
.pt-mock-rows i { display: block; height: 8px; border-radius: 4px; background: var(--dp-canvas); border: 1px solid var(--dp-line); }
.pt-mock-rows i:nth-child(2) { width: 85%; } .pt-mock-rows i:nth-child(3) { width: 92%; } .pt-mock-rows i:nth-child(4) { width: 70%; }
.pt-mock-chat {
    position: absolute; right: -8px; bottom: 0; width: min(250px, 70%);
    background: var(--dp-surface); border: 1px solid var(--dp-line); border-radius: 12px; overflow: hidden;
    box-shadow: 0 16px 34px rgba(var(--dp-primary-rgb), .22);
    animation: pt-flota 5s ease-in-out infinite;
}
.pt-mock-chat-head { background: var(--dp-primary-darker); color: var(--dp-surface); font: 700 12px var(--pt-display); padding: 8px 10px; display: flex; align-items: center; gap: 6px; }
.pt-mock-chat-head span { font: 700 9px var(--dp-font); background: var(--dp-ok); border-radius: 99px; padding: 1px 6px; }
.pt-mock-q { margin: 9px 9px 6px auto; max-width: 85%; font-size: 11.5px; line-height: 1.35; background: var(--dp-primary); color: var(--dp-surface); border-radius: 10px; padding: 6px 9px; width: fit-content; }
.pt-mock-a { margin: 0 9px 6px; font-size: 11.5px; line-height: 1.4; background: var(--dp-canvas); color: var(--dp-muted); border-radius: 10px; padding: 7px 9px; }
.pt-mock-a b { color: var(--dp-fg); }
.pt-mock-link { display: block; margin: 0 9px 9px; font-size: 11px; font-weight: 700; color: var(--dp-primary); }
@keyframes pt-flota { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }

/* ---------- volver arriba ---------- */
.pt a.pt-top {
    position: fixed; right: 18px; bottom: calc(18px + env(safe-area-inset-bottom, 0px)); z-index: 30;
    font: 700 13px var(--pt-display); color: var(--dp-surface); background: var(--dp-fg); text-decoration: none;
    padding: 10px 14px; border-radius: 99px; box-shadow: 0 8px 20px rgba(var(--dp-primary-rgb), .25);
    opacity: 0; transform: translateY(10px); pointer-events: none; transition: opacity .2s ease, transform .2s ease;
}
.pt a.pt-top.pt-top-visible { opacity: 1; transform: none; pointer-events: auto; }
.pt a.pt-top:hover { background: var(--dp-primary); }
/* Sin JS el boton no se esconderia nunca: que se vea siempre en ese caso. */
@media (scripting: none) { .pt a.pt-top { opacity: 1; transform: none; pointer-events: auto; } }

/* Aire abajo para que el boton "Arriba" no tape el correo al llegar al final. */
.pt-footer { border-top: 1px solid var(--dp-line); color: var(--dp-muted); font-size: 13px; padding-block: 24px 76px; }
.pt-footer-row { display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; }

/* ---------- responsive ---------- */
/* Cinco enlaces de seccion mas el login y la demo no caben por debajo de ~1120px: se quedan
   solo las dos acciones. */
@media (max-width: 1120px) {
    .pt-nav-links a:not(.pt-btn):not(.pt-nav-login) { display: none; }
}
@media (max-width: 920px) {
    .pt-hero-grid, .pt-two { grid-template-columns: 1fr; gap: 36px; }
    .pt-stats { grid-template-columns: repeat(2, 1fr); }
    .pt-cards { grid-template-columns: 1fr; }
    .pt-blk, .pt-end { padding-block: 56px; }
    .pt-hero { padding-block: 48px; }
}
@media (max-width: 520px) {
    .pt-wrap { padding-inline: 16px; }
    .pt-cost { padding-inline: 14px; }
    .pt-cost-head, .pt-cost-row { grid-template-columns: .9fr 1fr 1.1fr; gap: 8px; font-size: 13px; }
    .pt-cost-head { font-size: 9.5px; }
    .pt-field-row { grid-template-columns: 1fr; }
    .pt-brand small { display: none; }
    .pt-nav-links { gap: 14px; }
}
/* En un telefono estrecho la barra no da para dos acciones: se queda la demo, y el login
   sigue a mano en el hero y en la seccion final. */
@media (max-width: 420px) {
    .pt-nav-links .pt-nav-login { display: none; }
}
@media (prefers-reduced-motion: reduce) {
    .pt-btn, .pt a.pt-top { transition: none; }
    .pt-mock-chat { animation: none; }
    .pt .pt-btn-solid:hover, .pt a.pt-btn-ghost:hover { transform: none; }
}
