/* Security OS — páginas de herramienta y alertas (/chequeo-php/, /alertas/ y sus versiones EN).
   Se carga después de styles.css y reutiliza sus tokens (--orange es el sky #38BDF8 de la v1b). */
:root {
  --crit: #ff6b5e;
  --high: #ffb35c;
  --med: #7dd3fc;
  --low: #9a9a96;
}

/* ── Hero de subpágina: copia + herramienta a la izquierda, terminal a la derecha ── */
.sub-hero { position: relative; min-height: clamp(700px, calc(100vh - 52px), 940px); overflow: hidden; display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: clamp(24px, 4vw, 56px); align-items: end;
  padding: 150px clamp(24px, 4vw, 56px) clamp(28px, 4vw, 56px); }
.sub-hero .hero-img { opacity: .55; background-position: 80% 30%; }
.sub-hero .hero-img::after { background: linear-gradient(90deg, rgba(10,10,11,.96) 0%, rgba(10,10,11,.78) 45%, rgba(10,10,11,.35) 100%),
  linear-gradient(0deg, rgba(10,10,11,.95) 0%, transparent 45%); }
.sub-hero .ghost { top: 18%; left: 50%; transform: translateX(-50%); font-size: clamp(4rem, 13vw, 12rem); }
.sub-hero > :not(.hero-img):not(.ghost):not(.tab):not(.menu-fab):not(.site-menu) { position: relative; z-index: 3; }
.sub-hero h1 { font-family: var(--display); font-weight: 500; text-transform: uppercase; font-size: clamp(2rem, 4.2vw, 3.9rem);
  line-height: 1.02; letter-spacing: .02em; margin: 14px 0 18px; }
.sub-hero h1 b { font-weight: 500; color: var(--orange); }
.alert-tag { display: inline-flex; align-items: center; gap: 10px; font-family: var(--mono); font-size: .78rem; letter-spacing: .12em;
  text-transform: uppercase; color: #ffd7d2; background: rgba(255,107,94,.1); border: 1px solid rgba(255,107,94,.45);
  border-radius: 999px; padding: 7px 14px; }
.alert-tag i { width: 8px; height: 8px; border-radius: 50%; background: var(--crit); box-shadow: 0 0 0 0 rgba(255,107,94,.7);
  animation: pulse 1.6s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(255,107,94,.7); } 70% { box-shadow: 0 0 0 12px rgba(255,107,94,0); } 100% { box-shadow: 0 0 0 0 rgba(255,107,94,0); } }

/* ── Formulario del chequeo ── */
.scan { margin-top: 26px; max-width: 640px; }
.scan-row { display: flex; align-items: center; gap: 8px; background: rgba(20,20,22,.88); border: 1px solid rgba(255,255,255,.18);
  border-radius: 999px; padding: 7px 7px 7px 22px; backdrop-filter: blur(8px); transition: border-color .2s, box-shadow .2s; }
.scan-row:focus-within { border-color: var(--orange); box-shadow: 0 0 0 6px rgba(56,189,248,.12); }
.scan-row .pre { font-family: var(--mono); color: var(--faint); font-size: .95rem; }
.scan-row input { flex: 1; min-width: 0; background: transparent; border: 0; color: var(--ink); font: inherit; font-size: 1.05rem; padding: 12px 4px; }
.scan-row input:focus { outline: none; }
.scan-row .btn { height: 54px; border: 0; flex: none; }
.scan-row .btn[disabled] { opacity: .7; cursor: progress; }
.trust { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 14px; font-family: var(--mono); font-size: .76rem; letter-spacing: .06em; color: var(--muted); }
.trust span::before { content: "✓ "; color: var(--ok); }
.scan-msg { min-height: 1.4em; margin-top: 10px; color: var(--high); font-size: .92rem; }

/* ── Terminal animada ── */
.term { background: rgba(8,8,9,.86); border: 1px solid rgba(255,255,255,.14); border-radius: 22px; overflow: hidden;
  box-shadow: 0 40px 80px -30px rgba(0,0,0,.8), 0 0 0 1px rgba(56,189,248,.08) inset; backdrop-filter: blur(6px); position: relative; }
.term::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: repeating-linear-gradient(0deg, rgba(255,255,255,.025) 0 1px, transparent 1px 3px); }
.term-bar { display: flex; align-items: center; gap: 7px; padding: 13px 16px; border-bottom: 1px solid var(--line); font-family: var(--mono); font-size: .74rem; color: var(--faint); }
.term-bar i { width: 10px; height: 10px; border-radius: 50%; background: #2a2a2d; }
.term-bar i:first-child { background: var(--crit); } .term-bar i:nth-child(2) { background: var(--high); } .term-bar i:nth-child(3) { background: var(--ok); }
.term-bar span { margin-left: 10px; }
.term pre { margin: 0; padding: 18px 20px 22px; font-family: var(--mono); font-size: .86rem; line-height: 1.7; color: #c9c9c5;
  white-space: pre-wrap; word-break: break-word; min-height: 300px; }
.term .k { color: var(--faint); } .term .v { color: var(--orange-2); } .term .bad { color: var(--crit); } .term .warn { color: var(--high); } .term .good { color: var(--ok); }
.term .cur { display: inline-block; width: .6em; height: 1.05em; background: var(--orange); vertical-align: -2px; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.radar { position: absolute; right: -60px; bottom: -60px; width: 220px; height: 220px; border-radius: 50%; pointer-events: none; opacity: .5;
  background: repeating-radial-gradient(circle, rgba(56,189,248,.18) 0 1px, transparent 1px 36px); }
.radar::after { content: ""; position: absolute; inset: 0; border-radius: 50%;
  background: conic-gradient(from 0deg, rgba(56,189,248,.35), transparent 22%); animation: sweep 3.2s linear infinite; }
@keyframes sweep { to { transform: rotate(360deg); } }

/* ── Cuenta regresiva PHP 8.2 ── */
.countdown { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: clamp(20px, 4vw, 56px); align-items: center;
  background: var(--panel-2); border: 1px solid var(--line); border-radius: 28px; padding: clamp(24px, 4vw, 44px); position: relative; overflow: hidden; z-index: 2; }
.countdown::before { content: ""; position: absolute; inset: 0; background: radial-gradient(500px 220px at 0% 50%, rgba(255,179,92,.12), transparent 70%); pointer-events: none; }
.countdown .days { font-family: var(--display); font-size: clamp(4.5rem, 11vw, 9rem); line-height: .9; color: var(--high); position: relative; }
.countdown .days small { display: block; font-family: var(--mono); font-size: .8rem; letter-spacing: .14em; color: var(--muted); text-transform: uppercase; margin-top: 10px; }
.countdown h3 { font-family: var(--display); font-weight: 500; text-transform: uppercase; font-size: clamp(1.2rem, 2.2vw, 1.8rem); line-height: 1.15; }
.countdown p { color: var(--muted); margin-top: 10px; max-width: 620px; }
.track { margin-top: 22px; height: 10px; border-radius: 999px; background: rgba(255,255,255,.07); overflow: hidden; }
.track span { display: block; height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, var(--orange), var(--high), var(--crit)); transition: width 1.6s cubic-bezier(.2,.8,.2,1); }

/* ── Reporte ── */
.report { display: none; }
.report.on { display: block; }
.rep-top { display: grid; grid-template-columns: minmax(260px, .7fr) minmax(0, 1.3fr); gap: 14px; position: relative; z-index: 2; }
.rep-sum { background: var(--panel-2); border: 1px solid var(--line); border-radius: 24px; padding: 28px; display: grid; gap: 16px; align-content: start; }
.rep-sum .host { font-family: var(--mono); color: var(--orange-2); font-size: .9rem; letter-spacing: .06em; word-break: break-all; }
.rep-sum h3 { font-family: var(--display); font-weight: 500; text-transform: uppercase; font-size: clamp(1.3rem, 2.4vw, 2rem); line-height: 1.1; }
.kv { display: flex; flex-wrap: wrap; gap: 8px; }
.kv span { font-family: var(--mono); font-size: .76rem; padding: 6px 11px; border-radius: 999px; border: 1px solid var(--line); color: #c9c9c5; }
.kv span b { color: var(--ink); font-weight: 400; }
.gauge.lvl-critical .val { color: var(--crit); } .gauge.lvl-high .val { color: var(--high); } .gauge.lvl-medium .val { color: var(--med); } .gauge.lvl-ok .val, .gauge.lvl-low .val, .gauge.lvl-info .val { color: var(--ok); }
.findings { display: grid; gap: 10px; margin-top: 14px; position: relative; z-index: 2; }
.finding { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 20px; background: var(--panel-2); border: 1px solid var(--line);
  border-radius: 20px; padding: 20px 22px; position: relative; overflow: hidden; }
.finding::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--low); }
.finding.critical::before { background: var(--crit); } .finding.high::before { background: var(--high); } .finding.medium::before { background: var(--med); } .finding.ok::before { background: var(--ok); }
.finding h4 { font-weight: 600; font-size: 1.05rem; }
.finding p { color: var(--muted); font-size: .94rem; margin-top: 6px; }
.finding .do { color: var(--ink); margin-top: 10px; font-size: .92rem; }
.finding .do b { font-family: var(--mono); font-weight: 400; color: var(--orange-2); font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; margin-right: 8px; }
.sev { align-self: start; justify-self: start; font-family: var(--mono); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; padding: 6px 11px; border-radius: 999px; border: 1px solid; white-space: nowrap; }
.sev.critical { color: var(--crit); border-color: rgba(255,107,94,.45); background: rgba(255,107,94,.08); }
.sev.high { color: var(--high); border-color: rgba(255,179,92,.45); background: rgba(255,179,92,.08); }
.sev.medium { color: var(--med); border-color: rgba(125,211,252,.4); background: rgba(125,211,252,.06); }
.sev.low, .sev.info { color: var(--low); border-color: rgba(154,154,150,.35); }
.sev.ok { color: var(--ok); border-color: rgba(126,226,168,.4); background: rgba(126,226,168,.06); }

.rep-cta { margin-top: 14px; display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 14px; position: relative; z-index: 2; }
.rep-cta .pitch { background: linear-gradient(135deg, rgba(56,189,248,.16), rgba(56,189,248,.02) 60%), var(--panel-2); border: 1px solid rgba(56,189,248,.35);
  border-radius: 24px; padding: 28px; display: grid; gap: 12px; align-content: start; }
.rep-cta .pitch h3 { font-family: var(--display); font-weight: 500; text-transform: uppercase; font-size: clamp(1.2rem, 2vw, 1.6rem); line-height: 1.15; }
.rep-cta .pitch p { color: #c9c9c5; }
.rep-cta .pitch ul { list-style: none; display: grid; gap: 8px; color: #c9c9c5; font-size: .95rem; }
.rep-cta .pitch li::before { content: "▸ "; color: var(--orange); }
.disclaimer { color: var(--faint); font-size: .82rem; margin-top: 14px; position: relative; z-index: 2; }

/* ── Tabla de versiones ── */
.tbl .mono { font-family: var(--mono); font-size: .9rem; }
.tbl-wrap { overflow-x: auto; position: relative; z-index: 2; }
.tbl-wrap .tbl { min-width: 620px; }
/* Tabla de versiones junto a la terminal: bajo 1280 px la tabla se compacta para no cortar «Estado»;
   solo en móvil (≤820 px, regla de styles.css) se apilan */
@media (max-width: 1280px) and (min-width: 821px) {
  .evi.ver { grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); }
  .evi.ver .tbl-wrap .tbl { min-width: 0; }
  .evi.ver .tbl th, .evi.ver .tbl td { padding: 14px 12px; font-size: .84rem; }
  .evi.ver .tbl th { letter-spacing: .06em; }
  .evi.ver .term pre { font-size: .78rem; }
}
.evi.ver td:last-child { white-space: nowrap; }

/* ── Alertas ── */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; position: relative; z-index: 2; }
.filters button { background: transparent; color: #c9c9c5; border: 1px solid var(--line); border-radius: 999px; padding: 9px 16px; font-size: .86rem; transition: .2s; }
.filters button:hover { border-color: rgba(56,189,248,.5); }
.filters button[aria-pressed="true"] { background: var(--orange); border-color: var(--orange); color: #021320; }
.filters button b { font-family: var(--mono); font-weight: 400; opacity: .7; margin-left: 6px; }
.alert-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; position: relative; z-index: 2; }
.alert { background: var(--panel-2); border: 1px solid var(--line); border-radius: 24px; padding: 24px; display: flex; flex-direction: column; gap: 12px; position: relative; overflow: hidden; transition: border-color .25s, transform .25s; }
.alert:hover { border-color: rgba(56,189,248,.5); transform: translateY(-2px); }
.alert::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--low); }
.alert.critical::before { background: var(--crit); } .alert.high::before { background: var(--high); } .alert.medium::before { background: var(--med); }
.alert[hidden] { display: none; }
.alert .meta { display: flex; flex-wrap: wrap; gap: 6px; }
.alert .meta span { font-family: var(--mono); font-size: .68rem; letter-spacing: .08em; text-transform: uppercase; padding: 4px 9px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); }
.alert .meta .exp { color: #ffd7d2; border-color: rgba(255,107,94,.5); background: rgba(255,107,94,.1); }
.alert .meta .kev { color: var(--high); border-color: rgba(255,179,92,.45); }
.alert .prod { font-family: var(--mono); font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: var(--orange-2); }
.alert h3 { font-size: 1.08rem; font-weight: 600; line-height: 1.3; }
.alert dl { display: grid; gap: 8px; font-size: .9rem; }
.alert dt { font-family: var(--mono); font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: var(--faint); }
.alert dd { color: #c9c9c5; }
.alert .foot { margin-top: auto; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; align-items: center; padding-top: 10px; border-top: 1px solid rgba(255,255,255,.06); }
.alert .foot .id { font-family: var(--mono); font-size: .72rem; color: var(--faint); }
.alert .foot a { font-size: .84rem; color: var(--orange-2); }
.alert .foot a:hover { text-decoration: underline; }
.alert .chk { display: inline-flex; align-items: center; gap: 8px; align-self: flex-start; font-size: .86rem; border: 1px solid rgba(56,189,248,.5); border-radius: 999px; padding: 7px 14px; color: var(--ink); }
.alert .chk:hover { background: rgba(56,189,248,.12); }
.alert.feature { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 28px; padding: clamp(24px, 3vw, 40px);
  background: radial-gradient(600px 300px at 100% 0%, rgba(255,107,94,.14), transparent 70%), var(--panel-2); border-color: rgba(255,107,94,.35); }
.alert.feature h3 { font-family: var(--display); font-weight: 500; text-transform: uppercase; font-size: clamp(1.4rem, 2.8vw, 2.3rem); line-height: 1.08; }
.alert.feature .side { display: grid; gap: 14px; align-content: start; }
.alert.feature .big { font-family: var(--display); font-size: clamp(3rem, 6vw, 5rem); line-height: .9; color: var(--crit); }
.alert.feature .big small { display: block; font-family: var(--mono); font-size: .76rem; letter-spacing: .12em; color: var(--muted); margin-top: 8px; }
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 28px; position: relative; z-index: 2; }
.stat { background: var(--panel-2); border: 1px solid var(--line); border-radius: 22px; padding: 22px; }
.stat b { display: block; font-family: var(--display); font-weight: 500; font-size: clamp(2rem, 4vw, 3rem); line-height: 1; }
.stat span { display: block; margin-top: 8px; font-family: var(--mono); font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.stat.c b { color: var(--crit); } .stat.h b { color: var(--high); } .stat.k b { color: var(--orange); }

@media (max-width: 1080px) {
  .alert-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .sub-hero { grid-template-columns: minmax(0, 1fr); padding-top: 130px; align-items: start; }
  .term pre { min-height: 220px; }
  .rep-top, .rep-cta, .countdown, .alert.feature { grid-template-columns: minmax(0, 1fr); }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .alert-grid { grid-template-columns: minmax(0, 1fr); }
  .finding { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .scan-row { flex-wrap: wrap; border-radius: 22px; padding: 10px; }
  .scan-row .pre { display: none; }
  .scan-row input { width: 100%; flex-basis: 100%; padding: 10px 8px; }
  .scan-row .btn { width: 100%; justify-content: center; }
  .sub-hero { padding-left: 16px; padding-right: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .alert-tag i, .radar::after, .term .cur { animation: none; }
  .track span { transition: none; }
}

/* Móvil: la imagen del hero queda de fondo (styles.css la pone en flujo con 430px de alto) */
@media (max-width: 820px) {
  .sub-hero { min-height: 0 !important; padding-top: 112px; }
  .sub-hero .hero-img { position: absolute; inset: 0; height: auto; opacity: .4; background-size: cover; background-position: 70% 0; }
  .sub-hero .hero-img::after { background: linear-gradient(180deg, rgba(10,10,11,.3) 0%, rgba(10,10,11,.92) 55%, var(--panel) 100%); }
  .sub-hero .ghost { top: 90px; }
}

/* Terminal como loader del chequeo: alto fijo con scroll al final y barra de progreso */
#term-out { height: 340px; min-height: 0; overflow-y: auto; scrollbar-width: none; }
#term-out::-webkit-scrollbar { display: none; }
.term .ts { color: #55555a; }
.term .tag { color: var(--orange); }
.term-prog { display: flex; align-items: center; gap: 12px; padding: 0 20px 18px; font-family: var(--mono); font-size: .74rem; color: var(--faint); position: relative; z-index: 1; }
.term-prog[hidden] { display: none; }
.term-prog .bar { flex: 1; height: 4px; border-radius: 99px; background: rgba(255,255,255,.08); overflow: hidden; }
.term-prog .bar i { display: block; height: 100%; width: 0; border-radius: inherit; background: linear-gradient(110deg, #7DD3FC 0%, #38BDF8 50%, #0284C7 100%); box-shadow: 0 0 12px rgba(56,189,248,.6); transition: width .45s ease; }
.term-prog b { font-weight: 400; color: var(--orange-2); min-width: 4ch; text-align: right; }
.rep-go { margin-top: 18px; position: relative; z-index: 2; }
#contacto .rep-cta { margin-top: 0; }
.attached { margin: 0; padding: 10px 14px; border-radius: 12px; background: rgba(56,189,248,.08); border: 1px solid rgba(56,189,248,.25); color: var(--orange-2); font-family: var(--mono); font-size: .78rem; }
@media (max-width: 900px) { #term-out { height: 300px; } }
@media (max-width: 820px) { #term-out { height: 260px; } }
@media (max-width: 520px) { #term-out { font-size: .74rem; line-height: 1.6; padding: 14px 14px 16px; } .term .ts { display: none; } }
/* Hero: la terminal arranca a la altura de «Alerta activa» (estira a la altura del texto; sus logs no la crecen).
   Solo con dos columnas (>900 px); en una columna conserva su alto fijo */
@media (min-width: 901px) {
  .sub-hero { align-content: end; }
  .sub-hero .term { align-self: stretch; contain: size; display: flex; flex-direction: column; }
  .sub-hero .term #term-out { flex: 1; height: auto; min-height: 0; }
}
/* Botón «Revisar gratis»: brillo que cruza y halo (GSAP en chequeo.js) */
.scan-row .btn { position: relative; overflow: hidden; isolation: isolate; }
.scan-row .btn .shine { position: absolute; inset: -20% auto -20% 0; width: 45%; z-index: -1; pointer-events: none;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.55), transparent); transform: translateX(-160%) skewX(-18deg); }

/* ── Chequeo ampliado (2026-10-24) ── */
.ext { position: relative; z-index: 2; margin-top: 14px; }
.ext[hidden] { display: none; }
.ext-head { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 24px; align-items: center; background: var(--panel-2); border: 1px solid var(--line); border-radius: 24px; padding: 24px 28px; }
.ext-head h3 { font-family: var(--display); font-weight: 500; text-transform: uppercase; font-size: clamp(1.1rem, 2vw, 1.5rem); line-height: 1.15; margin-top: 6px; word-break: break-word; }
.ext-head p { color: var(--muted); margin-top: 6px; }
.grade { width: 96px; height: 96px; border-radius: 26px; display: grid; place-items: center; font-family: var(--display); font-size: 3.2rem; font-weight: 600; border: 2px solid currentColor; }
.g-A, .g-B { color: var(--ok); } .g-C { color: var(--med); } .g-D { color: var(--high); } .g-F { color: var(--crit); }
.areas { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; margin-top: 10px; }
.area { background: var(--panel-2); border: 1px solid var(--line); border-radius: 18px; padding: 16px; display: grid; gap: 6px; }
.area b { font-family: var(--display); font-size: 1.9rem; font-weight: 600; line-height: 1; }
.area span { font-size: .86rem; color: #e8e8e4; }
.area small { font-family: var(--mono); font-size: .7rem; color: var(--faint); letter-spacing: .06em; }
.area .bar { height: 4px; border-radius: 99px; background: rgba(255,255,255,.08); overflow: hidden; }
.area .bar i { display: block; height: 100%; background: currentColor; border-radius: inherit; }
.ext-sum { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 10px; }
.ext-sum > div, .ext-card { background: var(--panel-2); border: 1px solid var(--line); border-radius: 20px; padding: 20px 22px; }
.ext-sum h4, .ext-card h4 { font-family: var(--mono); font-weight: 400; font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; color: var(--faint); margin-bottom: 10px; }
.ext-sum ul, .plan3 ul { list-style: none; display: grid; gap: 8px; margin: 0; padding: 0; }
.ext-sum li { font-size: .92rem; padding-left: 18px; position: relative; }
#x-top li::before { content: "▲"; position: absolute; left: 0; color: var(--high); font-size: .7rem; top: 3px; }
#x-good li::before { content: "✓"; position: absolute; left: 0; color: var(--ok); }
.f-area { font-family: var(--mono); font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; color: var(--orange-2); margin: 18px 0 2px; }
.ext-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ext-card table { width: 100%; border-collapse: collapse; font-size: .86rem; }
.ext-card td { padding: 8px 0; border-bottom: 1px solid rgba(255,255,255,.06); vertical-align: top; }
.ext-card td:last-child { text-align: right; font-family: var(--mono); font-size: .76rem; }
.ext-card .muted, .x-src { color: var(--muted); font-size: .84rem; }
.chips-s { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.chips-s span { font-family: var(--mono); font-size: .72rem; padding: 4px 9px; border-radius: 999px; border: 1px solid var(--line); color: #c9c9c5; }
.chips-s span.hot-s { border-color: rgba(255,179,92,.5); color: var(--high); }
.ext-h { font-family: var(--display); font-weight: 500; text-transform: uppercase; font-size: 1.2rem; margin: 26px 0 10px; }
.plan3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.plan3 > div { background: var(--panel-2); border: 1px solid var(--line); border-radius: 20px; padding: 20px 22px; }
.plan3 > div:first-child { border-color: rgba(56,189,248,.4); background: linear-gradient(135deg, rgba(56,189,248,.1), transparent 60%), var(--panel-2); }
.plan3 b { display: block; font-family: var(--mono); font-weight: 400; font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; color: var(--orange-2); margin-bottom: 12px; }
.plan3 li { font-size: .9rem; color: #d6d6d2; padding-left: 16px; position: relative; }
.plan3 li::before { content: "▸"; position: absolute; left: 0; color: var(--orange); }
.x-src { margin-top: 14px; }
.pulse-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--orange); margin-right: 8px; animation: blink 1s steps(1) infinite; }
@media (max-width: 1080px) { .areas { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 820px) {
  .ext-head { grid-template-columns: auto minmax(0, 1fr); } .ext-actions { grid-column: 1 / -1; }
  .ext-sum, .ext-grid, .plan3 { grid-template-columns: minmax(0, 1fr); } .areas { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grade { width: 72px; height: 72px; font-size: 2.4rem; border-radius: 20px; }
}

/* /bot/ */
.sub-hero-sm { min-height: clamp(520px, 70vh, 680px); grid-template-columns: minmax(0, 1fr); }
.ok-tag i { background: var(--ok); box-shadow: none; animation: none; }
.doc { max-width: 860px; display: grid; gap: 14px; position: relative; z-index: 2; }
.doc h2 { font-family: var(--display); font-weight: 500; text-transform: uppercase; font-size: clamp(1.2rem, 2.2vw, 1.7rem); margin-top: 22px; }
.doc h3 { font-size: 1.05rem; margin-bottom: 10px; }
.doc p, .doc li { color: #c9c9c5; line-height: 1.65; }
.doc a { color: var(--orange-2); text-decoration: underline; text-underline-offset: 3px; }
.doc ol { padding-left: 22px; display: grid; gap: 8px; }
.ua { font-family: var(--mono); font-size: .88rem; background: rgba(8,8,9,.86); border: 1px solid var(--line); border-radius: 14px; padding: 14px 18px; color: var(--orange-2); white-space: pre-wrap; word-break: break-all; }
.doc-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 8px; }
.doc-2 > div { background: var(--panel-2); border: 1px solid var(--line); border-radius: 20px; padding: 22px; }
.ticks, .crosses { list-style: none; padding: 0; display: grid; gap: 10px; }
.ticks li, .crosses li { padding-left: 24px; position: relative; font-size: .94rem; }
.ticks li::before { content: "✓"; position: absolute; left: 0; color: var(--ok); }
.crosses li::before { content: "✕"; position: absolute; left: 0; color: var(--crit); }
@media (max-width: 820px) { .doc-2 { grid-template-columns: minmax(0, 1fr); } }

/* Imprimir / PDF del reporte: solo el reporte, fondo claro */
@media print {
  @page { margin: 14mm; }
  body, .frame, .panel { background: #fff !important; color: #111 !important; }
  .sub-hero, nav, .tab, .footer, .wa, .menu-fab, .site-menu, .lang-suggest, main > section:not(#reporte), .rep-go, .ext-actions, .ghost { display: none !important; }
  #reporte { display: block !important; padding: 0 !important; }
  .rep-sum, .ext-head, .area, .ext-sum > div, .ext-card, .plan3 > div, .finding, .gauge { background: #fff !important; border-color: #ccc !important; color: #111 !important; box-shadow: none !important; break-inside: avoid; }
  .finding p, .ext-head p, .area span, .plan3 li, .ext-sum li, .x-src, .sec-head p { color: #333 !important; }
  .sec-head h2, .ext-head h3, .finding h4, .rep-sum h3 { color: #111 !important; }
  .rv { opacity: 1 !important; transform: none !important; }
}
.plan3 li strong { display: block; font-weight: 600; color: #fff; font-size: .9rem; }
.plan3 li .pa { display: block; color: var(--muted); font-size: .84rem; margin-top: 3px; }
#x-print { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.35); cursor: pointer; }
#x-print:hover { border-color: var(--orange); color: var(--orange); }
@media (max-width: 520px) { .ext-head { grid-template-columns: minmax(0, 1fr); padding: 20px; } }

/* Ventana «Descarga tu reporte en PDF» (pide el correo) */
.pdf-gate { position: fixed; inset: 0; margin: auto; height: fit-content; max-height: calc(100dvh - 32px); overflow: auto; width: min(460px, calc(100vw - 32px)); padding: 0; border: 0; background: transparent; color: var(--ink); }
.pdf-gate::backdrop { background: rgba(2,4,10,.7); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
.pdf-gate[open] { animation: sm-in .3s cubic-bezier(.2,.8,.2,1); }
.pdf-gate form.lead { position: relative; border-color: rgba(56,189,248,.35); box-shadow: 0 40px 90px -20px rgba(0,0,0,.8);
  background: linear-gradient(135deg, rgba(56,189,248,.1), transparent 55%), var(--panel-2); }
.pdf-gate h3 { font-family: var(--display); font-weight: 500; text-transform: uppercase; font-size: 1.35rem; line-height: 1.15; }
.gate-p { color: var(--muted); font-size: .92rem; margin: 0; }
.gate-x { position: absolute; top: 14px; right: 14px; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line); background: transparent; color: #fff; cursor: pointer; }
.gate-x:hover { border-color: var(--orange); color: var(--orange); }
@media print { .pdf-gate { display: none !important; } }

/* Contacto del chequeo: personaje de tela con el elefante de PHP */
.ct-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 40px; align-items: center; position: relative; z-index: 2; }
.ct-hero { width: clamp(220px, 26vw, 340px); height: auto; border-radius: 28px; border: 1px solid rgba(56,189,248,.25);
  box-shadow: 0 30px 70px -30px rgba(56,189,248,.45); }
@media (max-width: 820px) { .ct-head { grid-template-columns: minmax(0, 1fr); } .ct-hero { width: min(70vw, 300px); justify-self: center; } }

/* ── Guías (/guias/, /en/guides/) ── */
.g-h1 { font-size: clamp(1.7rem, 3.6vw, 3rem) !important; line-height: 1.1; }
.g-crumbs { font-family: var(--mono); font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); margin-bottom: 18px; position: relative; z-index: 2; }
.g-crumbs a { color: var(--muted); text-decoration: none; }
.g-crumbs a:hover { color: var(--orange-2); }
.doc.guide { max-width: 820px; gap: 16px; }
.doc.guide h2 { margin-top: 30px; text-transform: none; font-size: clamp(1.25rem, 2.3vw, 1.75rem); line-height: 1.2; }
.doc.guide h3 { margin: 14px 0 0; }
.doc.guide p, .doc.guide li { font-size: 1.04rem; }
.doc.guide ul { padding-left: 22px; display: grid; gap: 8px; }
.g-hero { margin: 0 0 8px; border-radius: 24px; overflow: hidden; border: 1px solid rgba(56,189,248,.25); }
.g-hero img { display: block; width: 100%; height: auto; }
.g-callout { background: var(--panel-2); border: 1px solid rgba(56,189,248,.3); border-left: 3px solid var(--orange); border-radius: 18px; padding: 18px 22px; }
.g-callout strong { display: block; font-family: var(--display); font-weight: 500; text-transform: uppercase; letter-spacing: .04em; font-size: .92rem; color: var(--orange-2); margin-bottom: 6px; }
.g-callout p { margin: 0; }
.g-quote { margin: 6px 0; padding: 6px 0 6px 20px; border-left: 3px solid var(--orange); font-size: 1.2rem; color: var(--ink); }
.g-table { overflow-x: auto; border: 1px solid var(--line); border-radius: 18px; background: var(--panel-2); }
.g-table table { width: 100%; border-collapse: collapse; font-size: .94rem; min-width: 520px; }
.g-table th { text-align: left; font-family: var(--mono); font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; color: var(--orange-2); padding: 14px 16px; border-bottom: 1px solid var(--line); }
.g-table td { padding: 12px 16px; border-bottom: 1px solid var(--line); color: #c9c9c5; vertical-align: top; }
.g-table tr:last-child td { border-bottom: 0; }
.g-code { margin: 0; background: rgba(8,8,9,.86); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.g-code-t { display: block; font-family: var(--mono); font-size: .74rem; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); padding: 10px 18px; border-bottom: 1px solid var(--line); }
.g-code pre { margin: 0; padding: 14px 18px; font-family: var(--mono); font-size: .86rem; line-height: 1.65; color: #c9c9c5; white-space: pre-wrap; word-break: break-word; }
.g-cta { display: grid; gap: 14px; justify-items: start; background: linear-gradient(135deg, rgba(56,189,248,.12), rgba(2,132,199,.06)); border: 1px solid rgba(56,189,248,.35); border-radius: 22px; padding: 22px 24px; margin-top: 10px; }
.g-cta p { margin: 0; }
.g-faq { background: var(--panel-2); border: 1px solid var(--line); border-radius: 18px; padding: 16px 22px; }
.g-faq h3 { margin: 0 0 6px !important; font-size: 1.02rem; }
.g-faq p { margin: 0; color: var(--muted); }
.g-src { font-size: .9rem; }
@media (max-width: 640px) { .doc.guide p, .doc.guide li { font-size: 1rem; } .g-cta { padding: 18px; } }
.g-byline { display: flex; gap: 14px; align-items: center; padding: 14px 18px; background: var(--panel-2); border: 1px solid var(--line); border-radius: 18px; }
.g-byline img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; flex: none; border: 1px solid rgba(56,189,248,.35); }
.g-byline div { display: grid; gap: 2px; }
.g-byline span { color: var(--ink); font-size: .96rem; }
.g-byline small { color: var(--faint); font-size: .84rem; line-height: 1.45; }
.g-toc { background: var(--panel-2); border: 1px solid var(--line); border-radius: 18px; padding: 16px 22px; }
.g-toc b { display: block; font-family: var(--mono); font-size: .76rem; letter-spacing: .1em; text-transform: uppercase; color: var(--orange-2); margin-bottom: 8px; }
.g-toc ol { margin: 0; gap: 4px !important; }
.g-toc a { text-decoration: none; color: #c9c9c5; }
.g-toc a:hover { color: var(--orange-2); text-decoration: underline; }
/* Hero de guía con imagen propia (columna derecha) */
.g-head { align-items: center; min-height: clamp(560px, 78vh, 760px); }
.g-head .g-h1 { font-size: clamp(1.6rem, 3vw, 2.7rem) !important; }
.g-hero { margin: 0; border-radius: 26px; overflow: hidden; border: 1px solid rgba(56,189,248,.3); box-shadow: 0 40px 90px -30px rgba(56,189,248,.35); align-self: center; }
.g-hero img { display: block; width: 100%; height: auto; }
@media (max-width: 900px) { .g-head { min-height: 0; } .g-hero { margin-top: 8px; } }
/* Guía: su imagen como fondo del hero (como el casco), anclada a la derecha */
.sub-hero .hero-img.g-bg { opacity: .7; background-size: auto 100%; background-position: right center; background-repeat: no-repeat; }
.sub-hero .hero-img.g-bg::after { background: linear-gradient(90deg, rgba(10,10,11,.98) 0%, rgba(10,10,11,.88) 38%, rgba(10,10,11,.25) 75%, rgba(10,10,11,.1) 100%),
  linear-gradient(0deg, rgba(10,10,11,.95) 0%, transparent 40%); }
@media (max-width: 900px) { .sub-hero .hero-img.g-bg { background-size: cover; background-position: 70% center; opacity: .45; } }
