/* === ZEROLAGIA SCANNER — Estilos compartidos === */

.tools-wrap { max-width: 720px; margin: 0 auto; }
.tool-card {
  position: relative;
  background: linear-gradient(180deg, rgba(28,28,32,0.72) 0%, rgba(20,20,24,0.85) 100%);
  backdrop-filter: blur(28px) saturate(180%);
  -webkit-backdrop-filter: blur(28px) saturate(180%);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 20px;
  padding: 44px 40px;
  box-shadow:
    0 1px 0 0 rgba(255,255,255,0.06) inset,
    0 0 0 1px rgba(0,0,0,0.5),
    0 30px 60px -15px rgba(0,0,0,0.5),
    0 0 120px -20px rgba(139,92,246,0.18);
  transition: transform 0.4s cubic-bezier(0.65, 0, 0.35, 1), box-shadow 0.4s cubic-bezier(0.65, 0, 0.35, 1);
  overflow: hidden;
}
.tool-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 20px;
  padding: 1px;
  background: linear-gradient(135deg, rgba(139,92,246,0.4) 0%, rgba(6,182,212,0.25) 50%, transparent 100%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  opacity: 0.6;
}
.tool-card > * { position: relative; z-index: 1; }
.tool-card h2 {
  font-family: var(--head);
  font-size: clamp(22px, 2.5vw, 30px);
  font-weight: 600;
  color: var(--text);
  margin-bottom: 10px;
  letter-spacing: -0.02em;
}
.tool-card .tool-sub {
  color: rgba(228,236,242,0.55);
  font-size: 15px;
  margin-bottom: 32px;
  line-height: 1.55;
  letter-spacing: -0.01em;
}
.tool-label {
  font-size: 12px;
  color: rgba(228,236,242,0.5);
  margin-bottom: 8px;
  display: block;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

/* Scanner — form (pro look) */
.sc-input {
  width: 100%;
  background: rgba(255,255,255,0.03);
  border: 1.5px solid rgba(200,212,224,0.14);
  border-radius: 12px;
  padding: 18px 22px;
  color: var(--text);
  font-family: var(--body);
  font-size: 16px;
  margin-bottom: 18px;
  transition: all 0.25s cubic-bezier(0.65, 0, 0.35, 1);
  letter-spacing: -0.01em;
  box-shadow: 0 1px 0 0 rgba(255,255,255,0.03) inset;
}
.sc-input::placeholder { color: rgba(228,236,242,0.32); letter-spacing: -0.005em; }
.sc-input:hover { border-color: rgba(200,212,224,0.26); background: rgba(255,255,255,0.05); }
.sc-input:focus {
  outline: none;
  border-color: var(--accent);
  background: rgba(255,255,255,0.06);
  box-shadow: 0 0 0 4px rgba(200,212,224,0.10), 0 1px 0 0 rgba(255,255,255,0.05) inset;
}
.sc-btn {
  position: relative;
  background: linear-gradient(135deg, #ffffff 0%, #c8d4e0 100%);
  color: #09090B;
  border: none;
  border-radius: 12px;
  padding: 18px 32px;
  font-family: var(--head);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: -0.01em;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.65, 0, 0.35, 1);
  width: 100%;
  box-shadow:
    0 1px 0 0 rgba(255,255,255,0.6) inset,
    0 0 0 1px rgba(255,255,255,0.04),
    0 10px 30px -8px rgba(200,212,224,0.30),
    0 0 60px -10px rgba(139,92,246,0.20);
  overflow: hidden;
}
.sc-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(139,92,246,0) 0%, rgba(139,92,246,0.12) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.sc-btn:hover:not(:disabled) {
  transform: translateY(-2px) scale(1.005);
  box-shadow:
    0 1px 0 0 rgba(255,255,255,0.8) inset,
    0 0 0 1px rgba(255,255,255,0.06),
    0 16px 40px -8px rgba(200,212,224,0.40),
    0 0 80px -10px rgba(139,92,246,0.35);
}
.sc-btn:hover:not(:disabled)::before { opacity: 1; }
.sc-btn:active:not(:disabled) { transform: translateY(0) scale(0.99); }
.sc-btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }
.sc-hint { text-align: center; font-size: 13px; color: rgba(228,236,242,0.45); margin-top: 14px; letter-spacing: -0.005em; }
.sc-error { color: #f87171; font-size: 13px; text-align: center; margin-top: 8px; }

/* Scanner — loading state (sin consola hacker) */
.sc-terminal-wrap { display: none; padding: 40px 30px; text-align: center; background: rgba(200,212,224,0.02); border: 1px solid rgba(200,212,224,0.08); border-radius: 14px; }
.sc-terminal-wrap.visible { display: block; }
.sc-terminal-chrome { display: flex; flex-direction: column; align-items: center; gap: 18px; margin-bottom: 20px; }
.sc-chrome-dots { width: 64px; height: 64px; flex-shrink: 0; }
.sc-chrome-label { font-size: 17px; font-weight: 600; color: var(--text); font-family: var(--head); text-align: center; }
.sc-terminal { background: transparent; border: none; padding: 8px 0 4px; font-family: var(--body); font-size: 14px; min-height: 70px; overflow: hidden; line-height: 1.65; color: var(--muted); text-align: center; }
.sc-terminal > .sc-tline { opacity: 0; animation: sc-fade-in 0.35s ease forwards; padding: 2px 0; }
@keyframes sc-fade-in { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: translateY(0); } }
.sc-tline.info { color: var(--muted); }
.sc-tline.ok { color: #5aaa7a; }
.sc-tline.warn { color: #c8a96a; }
.sc-cursor { display: none; }
.sc-progress-wrap { position: relative; display: flex; align-items: center; gap: 12px; margin-top: 18px; max-width: 380px; margin-left: auto; margin-right: auto; }
.sc-progress-wrap::before { content: ''; position: absolute; left: 0; right: 52px; top: 50%; transform: translateY(-50%); height: 4px; background: rgba(200,212,224,0.08); border-radius: 100px; }
.sc-pbar { position: absolute; left: 0; top: 50%; transform: translateY(-50%); height: 4px; background: linear-gradient(90deg, var(--accent), #8B5CF6); width: 0%; max-width: calc(100% - 52px); transition: width 0.3s linear; border-radius: 100px; box-shadow: 0 0 10px rgba(139,92,246,0.4); }
.sc-pbar-pct { margin-left: auto; font-family: var(--head); font-size: 13px; font-weight: 700; color: var(--accent); min-width: 44px; text-align: right; font-variant-numeric: tabular-nums; }

/* Scanner — results */
.sc-results-wrap { display: none; }
.sc-results-wrap.visible { display: block; }
.sc-score-header { display: flex; align-items: center; gap: 24px; margin-bottom: 16px; padding: 22px 26px; background: var(--bg2); border: 1px solid var(--border); border-radius: 12px; }
.sc-donut-wrap { position: relative; width: 110px; height: 110px; flex-shrink: 0; }
.sc-donut-wrap svg { display: block; }
.sc-donut-label { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.sc-donut-num { font-family: var(--head); font-size: 34px; font-weight: 700; line-height: 1; }
.sc-donut-denom { font-size: 12px; color: var(--muted); }
.sc-score-info { flex: 1; }
.sc-score-label { font-family: var(--head); font-size: 22px; margin-bottom: 4px; }
.sc-score-biz { font-size: 13px; color: var(--muted); margin-bottom: 10px; }
.sc-bench { display: inline-flex; align-items: center; gap: 8px; background: rgba(34,197,94,0.06); border: 1px solid rgba(34,197,94,0.15); border-radius: 8px; padding: 5px 12px; font-size: 12px; color: var(--muted); }
.sc-bench-dot { width: 6px; height: 6px; border-radius: 50%; background: #22c55e; flex-shrink: 0; }
.sc-bench strong { color: #22c55e; }
.sc-analysis-split { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 12px; }
.sc-radar-panel, .sc-bars-panel { background: var(--bg2); border: 1px solid var(--border); border-radius: 12px; padding: 18px; }
.sc-radar-panel { display: flex; flex-direction: column; align-items: center; }
.sc-bars-panel { display: flex; flex-direction: column; justify-content: center; }
.sc-panel-label { font-size: 10px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; align-self: flex-start; }
.sc-dim-row { margin-bottom: 11px; }
.sc-dim-row:last-child { margin-bottom: 0; }
.sc-dim-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 4px; }
.sc-dim-left { display: flex; align-items: center; gap: 6px; }
.sc-dim-icon { font-size: 12px; }
.sc-dim-name { font-size: 12px; color: var(--muted); }
.sc-dim-val { font-size: 12px; font-weight: 700; }
.sc-dim-track { height: 4px; background: rgba(200,212,224,0.07); border-radius: 2px; overflow: hidden; }
.sc-dim-fill { height: 100%; border-radius: 2px; transition: width 1s ease; }
.sc-findings-wrap { background: var(--bg2); border: 1px solid var(--border); border-radius: 12px; padding: 18px 22px; margin-bottom: 12px; }
.sc-findings-wrap .sc-panel-label { margin-bottom: 12px; }
.sc-finding { border: 1px solid var(--border); border-left: 3px solid transparent; border-radius: 10px; padding: 12px 15px; margin-bottom: 9px; background: var(--surface); }
.sc-finding:last-child { margin-bottom: 0; }
.sc-finding.critical { border-left-color: #f87171; }
.sc-finding.warning { border-left-color: #fb923c; }
.sc-finding.ok { border-left-color: #22c55e; }
.sc-finding-head { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 8px; }
.sc-finding-icon { font-size: 17px; flex-shrink: 0; line-height: 1.4; }
.sc-finding-title { font-size: 14px; color: var(--text); font-weight: 600; font-family: var(--head); }
.sc-finding-desc { font-size: 13px; color: var(--muted); line-height: 1.6; }
.sc-finding-footer { display: flex; gap: 8px; align-items: center; margin-top: 10px; flex-wrap: wrap; }
.sc-impact { font-size: 11px; color: #f87171; background: rgba(248,113,113,0.08); border: 1px solid rgba(248,113,113,0.15); border-radius: 100px; padding: 3px 10px; }
.sc-finding.warning .sc-impact { color: #fb923c; background: rgba(251,146,60,0.08); border-color: rgba(251,146,60,0.15); }
.sc-finding.ok .sc-impact { color: #22c55e; background: rgba(34,197,94,0.08); border-color: rgba(34,197,94,0.15); }
.sc-autom { font-size: 11px; color: var(--accent); background: rgba(200,212,224,0.07); border: 1px solid rgba(200,212,224,0.15); border-radius: 100px; padding: 3px 10px; }
.sc-cta-box { background: rgba(200,212,224,0.03); border: 1px solid rgba(200,212,224,0.12); border-radius: 12px; padding: 28px; text-align: center; margin-top: 12px; }
.sc-cta-h { font-family: var(--head); font-size: 18px; margin-bottom: 8px; }
.sc-cta-sub { font-size: 14px; color: var(--muted); margin-bottom: 20px; }
.sc-email-row { display: flex; gap: 10px; max-width: 400px; margin: 0 auto 10px; }
.sc-email-row input { flex: 1; background: var(--bg2); border: 1px solid var(--border); border-radius: 8px; padding: 11px 14px; color: var(--text); font-family: var(--body); font-size: 16px; }
.sc-email-row input:focus { outline: none; border-color: var(--accent); }
.sc-email-btn { background: var(--accent); color: #111113; border: none; border-radius: 8px; padding: 11px 20px; font-family: var(--head); font-weight: 700; font-size: 13px; cursor: pointer; white-space: nowrap; transition: background 0.2s; }
.sc-email-btn:hover { background: #dae4ee; }
.sc-sent { font-size: 13px; color: #4a9a6a; display: none; margin-bottom: 12px; }
.sc-reset { font-size: 13px; color: var(--muted); background: none; border: none; cursor: pointer; padding: 0; text-decoration: underline; display: block; margin: 12px auto 0; font-family: var(--body); transition: color 0.2s; }
.sc-reset:hover { color: var(--text); }
@media (max-width: 600px) { .sc-analysis-split { grid-template-columns: 1fr; } .sc-score-header { flex-direction: column; text-align: center; } }

/* Scanner — summary + quickstats */
.sc-summary-para { font-size: 14px; color: var(--muted); line-height: 1.78; margin-bottom: 12px; padding: 14px 18px; background: var(--bg2); border: 1px solid var(--border); border-radius: 10px; }
.sc-quickstats { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.sc-qs-item { display: flex; align-items: center; gap: 7px; background: var(--bg2); border: 1px solid var(--border); border-radius: 8px; padding: 7px 13px; font-size: 12px; }
.sc-qs-icon { font-size: 13px; line-height: 1; }
.sc-qs-label { color: var(--muted); }
.sc-qs-sep { color: var(--border); margin: 0 1px; }
.sc-qs-value { font-weight: 700; }
.sc-qs-value.good { color: #22c55e; }
.sc-qs-value.warn { color: #fb923c; }
.sc-qs-value.bad { color: #f87171; }
.sc-qs-value.neutral { color: var(--accent); }

/* Scanner — no-web row */
.sc-noweb-row { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 24px; padding-top: 22px; border-top: 1px solid var(--border); flex-wrap: wrap; }
.sc-noweb-sep { font-size: 13px; color: var(--muted); }
.sc-noweb-btn { background: none; border: 1px solid rgba(200,212,224,0.22); border-radius: 8px; padding: 10px 18px; font-family: var(--head); font-size: 13px; font-weight: 700; color: var(--accent); cursor: pointer; transition: all 0.2s; }
.sc-noweb-btn:hover { border-color: rgba(200,212,224,0.40); background: rgba(200,212,224,0.05); }

/* Scanner — no-web modal (rediseño institucional acorde al site) */
.sc-nw-overlay { display: none; position: fixed; inset: 0; background: rgba(8,8,10,0.85); z-index: 200; backdrop-filter: blur(8px); }
.sc-nw-overlay.open { display: block; }
.sc-nw-modal { display: none; position: fixed; top: 50%; left: 50%; transform: translate(-50%,-50%); z-index: 201; background: linear-gradient(180deg, rgba(26,26,31,0.98) 0%, rgba(20,20,24,0.98) 100%); border: 1px solid rgba(200,212,224,0.16); border-radius: 18px; padding: 40px 40px 30px; max-width: 520px; width: calc(100% - 32px); max-height: 88vh; overflow-y: auto; box-shadow: 0 24px 80px rgba(0,0,0,0.5), 0 0 0 1px rgba(200,212,224,0.04) inset; }
.sc-nw-modal.open { display: block; }
.sc-nw-close { position: absolute; top: 16px; right: 20px; background: rgba(200,212,224,0.05); border: 1px solid rgba(200,212,224,0.10); border-radius: 8px; color: var(--muted); font-size: 18px; cursor: pointer; line-height: 1; width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; padding: 0; font-family: var(--body); transition: all 0.2s; }
.sc-nw-close:hover { color: var(--text); background: rgba(200,212,224,0.10); border-color: rgba(200,212,224,0.20); }
.sc-nw-progress { display: flex; gap: 6px; margin-bottom: 28px; padding-top: 8px; }
.sc-nw-pd { height: 3px; flex: 1; background: rgba(200,212,224,0.08); border-radius: 2px; transition: background 0.3s; }
.sc-nw-pd.active { background: linear-gradient(90deg, #c8d4e0, #e4ecf2); }
.sc-nw-stepnum { font-size: 10px; font-weight: 700; letter-spacing: 2.5px; text-transform: uppercase; color: rgba(228,236,242,0.45); margin-bottom: 10px; }
.sc-nw-q { font-family: var(--head); font-size: 22px; margin-bottom: 24px; line-height: 1.25; color: var(--text); letter-spacing: -0.01em; }
.sc-nw-options { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 28px; }
.sc-nw-opt { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; background: rgba(200,212,224,0.025); border: 1px solid rgba(200,212,224,0.10); border-radius: 12px; padding: 18px 12px; text-align: center; cursor: pointer; transition: all 0.2s ease; font-size: 13px; color: rgba(228,236,242,0.75); line-height: 1.35; min-height: 96px; font-family: var(--body); }
.sc-nw-opt:hover { border-color: rgba(200,212,224,0.28); background: rgba(200,212,224,0.055); color: var(--text); transform: translateY(-1px); }
.sc-nw-opt.sel { border-color: rgba(200,212,224,0.50); background: rgba(200,212,224,0.08); color: var(--text); box-shadow: 0 0 0 1px rgba(200,212,224,0.18) inset; }
.sc-nw-opt-icon { display: flex; align-items: center; justify-content: center; width: 26px; height: 26px; color: rgba(200,212,224,0.65); flex-shrink: 0; }
.sc-nw-opt-icon svg { width: 24px; height: 24px; display: block; }
.sc-nw-opt:hover .sc-nw-opt-icon { color: var(--accent); }
.sc-nw-opt.sel .sc-nw-opt-icon { color: var(--accent); }
.sc-nw-lbl { font-size: 12px; color: rgba(228,236,242,0.55); margin-bottom: 7px; display: block; font-weight: 500; letter-spacing: 0.02em; text-transform: none; }
.sc-nw-inp { width: 100%; background: rgba(200,212,224,0.025); border: 1px solid rgba(200,212,224,0.10); border-radius: 10px; padding: 13px 15px; color: var(--text); font-family: var(--body); font-size: 16px; margin-bottom: 16px; transition: all 0.2s; }
.sc-nw-inp:focus { outline: none; border-color: rgba(200,212,224,0.40); background: rgba(200,212,224,0.05); }
.sc-nw-inp::placeholder { color: rgba(228,236,242,0.35); }
.sc-nw-textarea { resize: vertical; min-height: 90px; line-height: 1.5; }
select.sc-nw-inp { appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path d='M1 1l5 5 5-5' stroke='rgba(228,236,242,0.55)' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/></svg>"); background-repeat: no-repeat; background-position: right 16px center; padding-right: 42px; cursor: pointer; color: var(--text); }
select.sc-nw-inp option { background: #1a1a1f; color: #e4ecf2; padding: 8px; }
select.sc-nw-inp option:hover, select.sc-nw-inp option:checked { background: #2a2a35; color: #ffffff; }
select.sc-nw-inp:invalid, select.sc-nw-inp option[value=""] { color: rgba(228,236,242,0.45); }
.sc-nw-next { width: 100%; background: var(--accent); color: #111113; border: none; border-radius: 10px; padding: 15px; font-family: var(--head); font-weight: 700; font-size: 15px; cursor: pointer; transition: all 0.2s; letter-spacing: 0.01em; }
.sc-nw-next:hover { background: #e4ecf2; transform: translateY(-1px); box-shadow: 0 8px 20px rgba(200,212,224,0.15); }
.sc-nw-back { background: none; border: none; color: rgba(228,236,242,0.45); font-size: 13px; cursor: pointer; padding: 12px 0 6px; text-decoration: none; display: block; text-align: center; margin-top: 8px; font-family: var(--body); transition: color 0.2s; }
.sc-nw-back:hover { color: var(--text); }
.sc-nw-success { text-align: center; padding: 20px 0; }
.sc-nw-success-icon { font-size: 56px; margin-bottom: 20px; display: inline-flex; align-items: center; justify-content: center; width: 84px; height: 84px; background: rgba(34,197,94,0.10); border: 1px solid rgba(34,197,94,0.30); border-radius: 50%; color: #4ade80; }
.sc-nw-success h4 { font-family: var(--head); font-size: 24px; margin-bottom: 12px; letter-spacing: -0.01em; }
.sc-nw-success p { font-size: 14px; color: rgba(228,236,242,0.65); line-height: 1.75; max-width: 380px; margin: 0 auto; }
@media (max-width: 480px) { .sc-nw-options { grid-template-columns: 1fr 1fr; gap: 8px; } .sc-nw-opt { padding: 14px 8px; min-height: 84px; font-size: 12px; } .sc-nw-modal { padding: 32px 22px 22px; } .sc-nw-q { font-size: 19px; } }
@media (max-width: 768px) { .tool-card { padding: 24px; } .sc-email-row { flex-direction: column; } }
