/* PPCL — landings para aguacomplet.es/ppcl/
   Dirección: cuaderno de registro técnico. Colores de la app PPCL (manifest: #1d4ed8 / #f2f4f7).
   Sin fuentes externas: se publica sin CDN ni transferencias a terceros sin consentimiento. */

:root {
  --bg: #f2f4f7;
  --paper: #ffffff;
  --ink: #0f1b2d;
  --ink-2: #334155;
  --muted: #5b6b7f;
  --line: #d5dce6;
  --grid: #e6ebf2;
  --blue: #1d4ed8;
  --blue-dark: #1e3a8a;
  --blue-soft: #e8efff;
  --ok: #0f7a4a;
  --ok-soft: #e3f4ec;
  --warn: #9a5b00;
  --warn-soft: #fff1d6;
  --alert: #b42318;
  --alert-soft: #fde8e6;
  --radius: 10px;
  --shadow: 0 1px 2px rgba(15, 27, 45, .06), 0 12px 32px -12px rgba(15, 27, 45, .18);
  --display: "Bahnschrift", "DIN Alternate", "Roboto Condensed", "Arial Narrow", sans-serif;
  --text: "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --mono: "Cascadia Mono", "SF Mono", Consolas, "Liberation Mono", monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.6 var(--text);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-underline-offset: 3px; }
button, input, select { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
h1, h2, h3 { font-family: var(--display); font-weight: 600; line-height: 1.08; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2.3rem, 5vw, 3.9rem); }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); }
h3 { font-size: 1.2rem; line-height: 1.25; }
p { margin: 0 0 1em; }
.num { font-family: var(--mono); font-variant-numeric: tabular-nums; white-space: nowrap; }

.wrap { width: min(1160px, calc(100% - 32px)); margin: 0 auto; }
.skip { position: absolute; left: 16px; top: -80px; background: var(--paper); padding: 10px 14px; z-index: 50; }
.skip:focus { top: 10px; }

/* Cabecera */
.top { position: sticky; top: 0; z-index: 30; background: rgba(242, 244, 247, .92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }
.brand { display: flex; align-items: baseline; gap: 10px; color: var(--ink); text-decoration: none; }
.brand b { font-family: var(--display); font-size: 1.6rem; letter-spacing: .02em; }
.brand span { font-size: .8rem; color: var(--muted); }
.nav-links { display: flex; align-items: center; gap: 22px; }
.nav-links a:not(.btn) { color: var(--ink-2); text-decoration: none; font-size: .95rem; }
.nav-links a:not(.btn):hover { color: var(--blue); }

/* Botones: dos niveles, nunca más */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 22px; border-radius: 8px; border: 2px solid var(--blue);
  background: var(--blue); color: #fff; font-weight: 600; text-decoration: none; cursor: pointer;
  transition: background .15s, transform .15s;
}
.btn:hover { background: var(--blue-dark); border-color: var(--blue-dark); }
.btn:active { transform: translateY(1px); }
.btn.ghost { background: transparent; color: var(--blue); }
.btn.ghost:hover { background: var(--blue-soft); }
.btn[disabled] { opacity: .6; cursor: wait; }
.btn.small { min-height: 40px; padding: 0 16px; font-size: .95rem; }

/* Secciones */
section { padding: clamp(56px, 8vw, 96px) 0; }
.band { background: var(--paper); border-block: 1px solid var(--line); }
.kicker { display: inline-block; font: 600 .78rem/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--blue); margin-bottom: 14px; }
.lead { font-size: 1.15rem; color: var(--ink-2); max-width: 60ch; }
.head { max-width: 760px; margin-bottom: 40px; }

/* Hero con hoja de registro */
.hero { padding-top: clamp(40px, 6vw, 72px); background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px); background-size: 32px 32px; background-position: -1px -1px; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.hero .cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0 16px; }
.facts { display: flex; flex-wrap: wrap; gap: 8px 18px; padding: 0; margin: 0; list-style: none; color: var(--muted); font-size: .92rem; }
.facts li::before { content: "✓"; color: var(--ok); font-weight: 700; margin-right: 6px; }

.sheet { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; animation: rise .6s ease-out both; }
.sheet-head { display: flex; justify-content: space-between; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--line); background: #f8fafc; }
.sheet-head b { font-family: var(--display); font-size: 1.05rem; }
.sheet-head small { color: var(--muted); font-family: var(--mono); font-size: .78rem; }
.sheet table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.sheet th { text-align: left; font: 600 .7rem/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); padding: 10px 18px; border-bottom: 1px solid var(--line); }
.sheet td { padding: 11px 18px; border-bottom: 1px solid var(--grid); }
.sheet tr { animation: rise .5s ease-out both; }
.sheet tr:nth-child(2) { animation-delay: .08s; } .sheet tr:nth-child(3) { animation-delay: .16s; }
.sheet tr:nth-child(4) { animation-delay: .24s; } .sheet tr:nth-child(5) { animation-delay: .32s; }
.sheet-foot { padding: 12px 18px; font-size: .78rem; color: var(--muted); }
.tag { display: inline-block; padding: 3px 9px; border-radius: 999px; font: 600 .74rem/1.4 var(--mono); white-space: nowrap; }
.tag.ok { background: var(--ok-soft); color: var(--ok); }
.tag.warn { background: var(--warn-soft); color: var(--warn); }
.tag.alert { background: var(--alert-soft); color: var(--alert); }

/* Tarjetas de función */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.band .card { background: var(--bg); }
.card .ref { font: .76rem/1.4 var(--mono); color: var(--blue); margin-bottom: 10px; display: block; }
.card p { color: var(--ink-2); margin: 0; }
.card ul { margin: 12px 0 0; padding-left: 18px; color: var(--ink-2); }
.card li { margin-bottom: 4px; }

/* Captura real */
.shot { margin: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); background: var(--paper); }
.shot figcaption { padding: 10px 16px; font-size: .85rem; color: var(--muted); border-top: 1px solid var(--line); }

/* Pasos */
.steps { counter-reset: s; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; list-style: none; padding: 0; margin: 0; }
.steps li { counter-increment: s; border-top: 3px solid var(--blue); padding-top: 18px; }
.steps li::before { content: "0" counter(s); display: block; font: 600 .85rem var(--mono); color: var(--blue); margin-bottom: 8px; }
.steps p { color: var(--ink-2); }

/* Precios */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; align-items: stretch; }
.plan { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; display: flex; flex-direction: column; }
.plan.featured { border: 2px solid var(--blue); }
.plan .scope { font: .8rem/1.4 var(--mono); color: var(--muted); }
.plan .price { font-family: var(--display); font-size: 2.6rem; line-height: 1; margin: 14px 0 4px; }
.plan .price small { font: .9rem var(--text); color: var(--muted); }
.plan ul { padding-left: 18px; color: var(--ink-2); margin: 14px 0 20px; flex: 1; }
.fine { font-size: .85rem; color: var(--muted); margin-top: 18px; }

/* Formulario (receptor existente de aguacomplet.es) */
.form-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(28px, 5vw, 60px); align-items: start; }
.form { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(20px, 3vw, 32px); box-shadow: var(--shadow); }
.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 600; font-size: .92rem; margin-bottom: 6px; }
.field label span { font-weight: 400; color: var(--muted); }
.field input, .field select { width: 100%; min-height: 48px; padding: 10px 12px; border: 1px solid #b9c3d1; border-radius: 8px; background: #fff; }
.field input:focus, .field select:focus { border-color: var(--blue); outline: 3px solid rgba(29, 78, 216, .18); outline-offset: 0; }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .9rem; color: var(--ink-2); margin-bottom: 12px; }
.check input { width: 20px; height: 20px; margin-top: 2px; flex: none; accent-color: var(--blue); }
.form .btn { width: 100%; margin-top: 8px; }
.form-status { margin-top: 14px; padding: 12px 14px; border-radius: 8px; font-size: .92rem; }
.form-status:empty { display: none; }
.form-status.error { background: var(--alert-soft); color: var(--alert); }
.form-status.done { background: var(--ok-soft); color: var(--ok); }
.form-status ul { margin: 6px 0 0; padding-left: 18px; }
.legal { font-size: .78rem; color: var(--muted); margin-top: 14px; }
.delivered { display: none; }
.delivered.show { display: block; }

/* Contenido del checklist */
.toc { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--line); }
.toc li { display: grid; grid-template-columns: 44px 1fr; gap: 10px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.toc li b { display: block; }
.toc li span { color: var(--ink-2); font-size: .95rem; }
.toc li::before { content: attr(data-n); font: 600 .9rem var(--mono); color: var(--blue); }

/* FAQ */
.faq details { border-bottom: 1px solid var(--line); padding: 16px 0; }
.faq summary { cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--mono); color: var(--blue); }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 10px 0 0; color: var(--ink-2); }

/* Cierre y pie */
.closing { background: var(--ink); color: #dbe4f0; }
.closing h2 { color: #fff; }
.closing .btn.ghost { color: #fff; border-color: #fff; }
.closing .btn.ghost:hover { background: rgba(255, 255, 255, .1); }
.foot { padding: 32px 0 40px; font-size: .88rem; color: var(--muted); }
.foot .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; }
.foot a { color: var(--ink-2); }

/* Artículo */
.article { max-width: 760px; }
.article h1 { font-size: clamp(2rem, 4.2vw, 3rem); }
.article h2 { font-size: 1.6rem; margin-top: 1.8em; }
.article p, .article li { color: var(--ink-2); }
.article li { margin-bottom: 6px; }
.article table { width: 100%; border-collapse: collapse; margin: 1em 0 1.5em; background: var(--paper); font-size: .95rem; }
.article th, .article td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.article th { font: 600 .75rem var(--mono); text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.article .note { font-size: .88rem; color: var(--muted); border-top: 1px solid var(--line); padding-top: 14px; margin-top: 2em; }
.article .box { background: var(--blue-soft); border-left: 3px solid var(--blue); padding: 18px 20px; border-radius: 0 var(--radius) var(--radius) 0; margin: 2em 0; }
.article .box p { color: var(--ink); }

@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

@media (max-width: 960px) {
  .hero-grid, .form-grid { grid-template-columns: 1fr; }
  .grid-3, .plans, .steps { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .nav-links a:not(.btn) { display: none; }
  .brand span { display: none; }
  .nav-links .btn { white-space: nowrap; }
  .sheet td, .sheet th { padding-inline: 12px; }
  .grid-3, .grid-2, .plans, .steps, .row-2 { grid-template-columns: 1fr; }
  .hero .cta .btn { width: 100%; }
  .sheet th:nth-child(3), .sheet td:nth-child(3) { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
@media print {
  .top, .form, .closing, .foot { display: none; }
  body { background: #fff; }
}
