/* znrapp · página /php
   Usa los tokens y los componentes de styles.css (botones, listas, planes, preguntas, pie).
   Acá va sólo lo propio de esta página: la tarjeta de revisión, la ficha, los pasos y el bloque de quién lo hace. */

:root{
  --ok:#0B7A43;         /* verde "ya tiene el arreglo" · 5.9:1 sobre blanco, sólo para el punto */
  --ok-bg:#E6F4EC;
  --warn-bg:#FFF4D6;
  --bad-bg:#FBE9E7;
}

code{
  padding:2px 6px; border-radius:4px; background:var(--tint);
  font-family:ui-monospace, 'Cascadia Mono', Consolas, 'Liberation Mono', monospace; font-size:.92em;
}
.tint code{ background:#fff; }

/* ---------- 1 · inicio: texto + tarjeta de revisión ---------- */
.php-hero{ padding:64px 0 112px; }
.php-hero .grid{ align-items:start; row-gap:48px; }
.php-hero .hero-text{ grid-column:1 / span 6; }
.php-hero .lede strong{ color:var(--ink); font-weight:700; }
.check-card{
  grid-column:8 / span 5; display:grid; gap:20px; min-width:0;
  padding:32px; background:#fff; border:1px solid var(--line); border-radius:var(--radius); box-shadow:var(--shadow);
}
.check-card h2{ font-size:24px; line-height:32px; font-weight:800; letter-spacing:-.015em; }
.check-intro{ margin-top:-8px; font-size:16px; line-height:24px; color:var(--ink-2); }
.check-card .btn{ width:100%; }

.check-result{
  display:grid; gap:12px; padding:20px; border-radius:var(--radius-sm);
  border-left:4px solid var(--line-2); background:var(--tint);
}
.check-result[hidden]{ display:none; } /* hasta que el visitante revisa, el recuadro no existe */
.check-result[data-state="ok"]{ border-color:var(--ok); background:var(--ok-bg); }
.check-result[data-state="old"], .check-result[data-state="eol"]{ border-color:var(--error); background:var(--bad-bg); }
.check-result[data-state="unknown"]{ border-color:var(--amber); background:var(--warn-bg); }
.check-status{ display:flex; align-items:center; gap:10px; font-size:18px; line-height:28px; font-weight:800; }
.check-status .dot{ flex:none; width:12px; height:12px; border-radius:50%; background:var(--line-2); }
.check-result[data-state="ok"] .dot{ background:var(--ok); }
.check-result[data-state="old"] .dot, .check-result[data-state="eol"] .dot{ background:var(--error); }
.check-result[data-state="unknown"] .dot{ background:var(--amber); }
.check-result p{ font-size:16px; line-height:24px; }
.check-note{ font-size:14px; line-height:20px; color:var(--ink-2); }
.check-result .btn{ margin-top:4px; }

.check-help summary{
  display:inline-block; cursor:pointer; list-style:none;
  font-size:16px; line-height:24px; font-weight:700; color:var(--navy);
  text-decoration:underline; text-decoration-thickness:2px; text-underline-offset:6px; text-decoration-color:rgba(19,47,76,.3);
}
.check-help summary::-webkit-details-marker{ display:none; }
.check-help summary:hover{ text-decoration-color:var(--navy); }
.check-help .list{ margin-top:16px; }
.check-help code{ word-break:break-all; }
.check-privacy{ font-size:14px; line-height:20px; color:var(--ink-2); }

/* ---------- 2 · qué pasó: texto + ficha ---------- */
.what{ row-gap:40px; }
.what-text{ grid-column:1 / span 7; display:grid; gap:20px; font-size:18px; line-height:28px; }
.what-aside{ grid-column:9 / span 4; display:grid; gap:24px; align-content:start; }
.facts{ margin:0; padding:8px 24px; background:#fff; border:1px solid var(--line); border-radius:var(--radius); box-shadow:var(--shadow-sm); }
.facts > div{ display:grid; gap:4px; padding:16px 0; border-top:1px solid var(--line); }
.facts > div:first-child{ border-top:0; }
.facts dt{ font-size:13px; line-height:20px; font-weight:700; letter-spacing:.06em; text-transform:uppercase; color:var(--ink-2); }
.facts dd{ margin:0; font-size:17px; line-height:24px; font-weight:600; }
.facts dd a{ color:var(--navy); text-underline-offset:4px; }
.tech{ padding:0 24px; background:#fff; border:1px solid var(--line); border-radius:var(--radius); }
.tech summary{
  display:flex; align-items:center; justify-content:space-between; gap:16px;
  padding:16px 0; font-size:17px; line-height:24px; font-weight:700; cursor:pointer; list-style:none;
}
.tech summary::-webkit-details-marker{ display:none; }
.tech summary::after{
  content:""; flex:none; width:32px; height:32px; border-radius:50%;
  background:var(--navy-50) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Cpath d='M16 10v12M10 16h12' stroke='%23132F4C' stroke-width='2.2' stroke-linecap='round'/%3E%3C/svg%3E") center / 32px no-repeat;
  transition:transform .35s var(--ease-out);
}
.tech[open] summary::after{ transform:rotate(45deg); }
.tech ul{ display:grid; gap:12px; padding:0 0 20px; font-size:15px; line-height:22px; color:var(--ink-2); }
.tech li{ padding-left:16px; border-left:2px solid var(--line-2); }
.tech strong{ color:var(--ink); }

/* ---------- 3 · cómo arreglarlo: tres tarjetas con pasos numerados ---------- */
.how{ display:grid; grid-template-columns:repeat(3, minmax(0,1fr)); column-gap:var(--gutter); row-gap:24px; }
.how-card{ padding:32px; background:#fff; border:1px solid var(--line); border-radius:var(--radius); box-shadow:var(--shadow-sm); }
.how-card h3{ font-size:24px; line-height:32px; font-weight:800; letter-spacing:-.015em; }
.how-for{ margin-top:4px; font-size:16px; line-height:24px; color:var(--ink-2); }
.how-steps{ counter-reset:paso; display:grid; gap:16px; margin-top:24px; padding-top:24px; border-top:1px solid var(--line); font-size:16px; line-height:24px; }
.how-steps li{ position:relative; padding-left:40px; }
.how-steps li::before{
  counter-increment:paso; content:counter(paso);
  position:absolute; left:0; top:0; width:28px; height:28px; border-radius:50%;
  background:var(--navy); color:#fff; font-size:14px; line-height:28px; font-weight:800; text-align:center;
}
.how-else{ margin-top:48px; font-size:20px; line-height:32px; text-align:center; color:var(--ink-2); }

/* ---------- 5 · quién lo hace ---------- */
.who{ row-gap:40px; align-items:start; }
.who-text{ grid-column:1 / span 6; }
.who-text h2{ margin-top:16px; }
.who-text p:not(.eyebrow){ margin-top:16px; font-size:18px; line-height:28px; color:var(--ink-2); }
.who-text .link{ margin-top:24px; }
.who-list{ grid-column:8 / span 5; display:grid; gap:16px; padding:32px; background:var(--tint); border-radius:var(--radius); font-size:17px; line-height:28px; }
.who-list li{ position:relative; padding-left:32px; }
.who-list li::before{
  content:""; position:absolute; left:0; top:4px; width:20px; height:20px;
  background-color:var(--navy); -webkit-mask:var(--check) center / 20px no-repeat; mask:var(--check) center / 20px no-repeat;
}

/* ---------- 7 · contacto ---------- */
.contact{ width:var(--cols8); max-width:100%; margin:0 auto; text-align:center; }
.contact h2{ margin-top:16px; }
.contact p:not(.eyebrow):not(.alt){ margin:16px auto 0; max-width:640px; font-size:20px; line-height:32px; color:var(--on-navy-2); }
.contact .actions{ justify-content:center; margin-top:32px; }
.contact .alt{ margin-top:24px; font-size:16px; line-height:24px; color:var(--on-navy-2); }
.contact .alt a{ color:#fff; font-weight:700; text-underline-offset:4px; }

/* ---------- tableta y celular ---------- */
@media (max-width:1024px){
  .php-hero{ padding:56px 0 96px; }
  .php-hero .hero-text, .check-card, .what-text, .what-aside, .who-text, .who-list{ grid-column:1 / -1; }
  .php-hero .hero-text, .what-text, .who-text{ max-width:720px; }
  .check-card{ max-width:640px; }
}
@media (max-width:900px){
  .how{ grid-template-columns:minmax(0,1fr); max-width:560px; margin:0 auto; }
}
@media (max-width:640px){
  .php-hero{ padding:40px 0 72px; }
  .php-hero .grid{ row-gap:40px; }
  .check-card{ padding:24px; gap:16px; }
  .check-card h2{ font-size:22px; line-height:28px; }
  .what-text{ font-size:17px; }
  .facts{ padding:4px 20px; }
  .how-card{ padding:24px; }
  .how-else{ font-size:17px; line-height:28px; }
  .who-list{ padding:24px; font-size:16px; line-height:24px; }
  .who-list li::before{ top:2px; }
}
