/* ============================================================
   pentest.css — Herramienta de PenTest | Berlo
   Estética: Cybersecurity / Dark Premium
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=JetBrains+Mono:wght@400;500;600&display=swap');

/* ── Variables ─────────────────────────────────────────────── */
:root {
  --pt-bg:          #0a0e1a;
  --pt-surface:     #0f1629;
  --pt-surface-2:   #1a2040;
  --pt-border:      rgba(99, 179, 237, 0.15);
  --pt-accent:      #3b82f6;
  --pt-accent-glow: rgba(59, 130, 246, 0.3);
  --pt-cyan:        #06b6d4;
  --pt-green:       #10b981;
  --pt-yellow:      #f59e0b;
  --pt-red:         #ef4444;
  --pt-text:        #e2e8f0;
  --pt-text-muted:  #94a3b8;
  --pt-mono:        'JetBrains Mono', monospace;
  --pt-radius:      16px;
  --pt-radius-sm:   8px;
  --pt-shadow:      0 25px 50px rgba(0, 0, 0, 0.5);
  --pt-glow-green:  0 0 20px rgba(16, 185, 129, 0.3);
  --pt-glow-red:    0 0 20px rgba(239, 68, 68, 0.3);
  --pt-glow-blue:   0 0 20px rgba(59, 130, 246, 0.3);
}

/* ── Base ───────────────────────────────────────────────────── */
.pentest-page {
  font-family: 'Inter', sans-serif;
  background-color: var(--pt-bg);
  color: var(--pt-text);
  min-height: 100vh;
}

/* ── Hero ───────────────────────────────────────────────────── */
.pentest-hero {
  position: relative;
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  background-color: #0a0e1a;
  padding: 120px 20px 80px;
}

.pentest-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at center, rgba(10, 14, 26, 0.4) 0%, #0a0e1a 100%),
    url('../img/pentest-hero-bg.png') no-repeat center center;
  background-size: cover;
  animation: bg-pan-slow 25s ease-in-out infinite alternate;
  pointer-events: none;
  z-index: 1;
}

@keyframes bg-pan-slow {
  0% { transform: scale(1.0) translate(0, 0); }
  100% { transform: scale(1.07) translate(-1%, 1%); }
}

/* Grid de circuito animado */
.pentest-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(59,130,246,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(59,130,246,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  animation: grid-pulse 8s ease-in-out infinite;
  pointer-events: none;
}

@keyframes grid-pulse {
  0%, 100% { opacity: 0.5; }
  50%       { opacity: 1; }
}

.pentest-hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
}

.pentest-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(59, 130, 246, 0.12);
  border: 1px solid rgba(59, 130, 246, 0.3);
  color: var(--pt-accent);
  border-radius: 100px;
  padding: 8px 20px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 28px;
  animation: badge-glow 3s ease-in-out infinite;
}

@keyframes badge-glow {
  0%, 100% { box-shadow: 0 0 0 rgba(59,130,246,0); }
  50%       { box-shadow: 0 0 20px rgba(59,130,246,0.2); }
}

.pentest-hero-badge .badge-dot {
  width: 8px;
  height: 8px;
  background: var(--pt-accent);
  border-radius: 50%;
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { transform: scale(1); opacity: 1; }
  50%       { transform: scale(1.4); opacity: 0.7; }
}

.pentest-hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 24px;
  background: linear-gradient(135deg, #ffffff 0%, #93c5fd 50%, #06b6d4 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.pentest-hero p {
  font-size: 1.15rem;
  color: var(--pt-text-muted);
  line-height: 1.7;
  max-width: 600px;
  margin: 0 auto 40px;
}

.pentest-hero-stats {
  display: flex;
  gap: 40px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 48px;
}

.hero-stat {
  text-align: center;
}

.hero-stat-number {
  font-size: 2rem;
  font-weight: 800;
  color: var(--pt-accent);
  font-family: var(--pt-mono);
}

.hero-stat-label {
  font-size: 0.8rem;
  color: var(--pt-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 4px;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, var(--pt-accent), var(--pt-cyan));
  color: white;
  padding: 16px 36px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 8px 30px rgba(59, 130, 246, 0.4);
}

.hero-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(59, 130, 246, 0.6);
}

/* ── Sección Checks ─────────────────────────────────────────── */
.pentest-checks-section {
  padding: 100px 20px;
  background: var(--pt-surface);
}

.pentest-checks-section .container {
  max-width: 1200px;
  margin: 0 auto;
}

.section-header {
  text-align: center;
  margin-bottom: 64px;
}

.section-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--pt-cyan);
  margin-bottom: 16px;
}

.section-header h2 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  color: white;
  margin-bottom: 16px;
}

.section-header p {
  color: var(--pt-text-muted);
  font-size: 1.05rem;
  max-width: 560px;
  margin: 0 auto;
}

.checks-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.check-card {
  background: var(--pt-bg);
  border: 1px solid var(--pt-border);
  border-radius: var(--pt-radius);
  padding: 28px 24px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.check-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--pt-accent), var(--pt-cyan));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.check-card:hover {
  border-color: rgba(59, 130, 246, 0.4);
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), var(--pt-glow-blue);
}

.check-card:hover::before {
  transform: scaleX(1);
}

.check-card-icon {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, rgba(59,130,246,0.15), rgba(6,182,212,0.1));
  border: 1px solid rgba(59,130,246,0.2);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  font-size: 1.3rem;
}

.check-card-icon svg {
  width: 22px;
  height: 22px;
  stroke: var(--pt-cyan);
}

.check-card h3 {
  font-size: 0.95rem;
  font-weight: 700;
  color: white;
  margin-bottom: 8px;
}

.check-card p {
  font-size: 0.82rem;
  color: var(--pt-text-muted);
  line-height: 1.6;
  margin: 0;
}

.check-card-severity {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: 4px;
  margin-top: 12px;
}

.severity-critical { background: rgba(239,68,68,0.15); color: #fca5a5; }
.severity-high     { background: rgba(245,158,11,0.15); color: #fde68a; }
.severity-medium   { background: rgba(59,130,246,0.15); color: #93c5fd; }
.severity-low      { background: rgba(148,163,184,0.1); color: #94a3b8; }

/* ── Formulario ─────────────────────────────────────────────── */
.pentest-form-section {
  padding: 100px 20px;
  background: var(--pt-bg);
}

.pentest-form-section .container {
  max-width: 800px;
  margin: 0 auto;
}

.form-card {
  background: var(--pt-surface);
  border: 1px solid var(--pt-border);
  border-radius: 24px;
  padding: 56px 48px;
  box-shadow: var(--pt-shadow);
  position: relative;
  overflow: hidden;
}

.form-card::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 20%;
  right: 20%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--pt-accent), var(--pt-cyan), transparent);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-group {
  margin-bottom: 24px;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--pt-text-muted);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.form-group label .required {
  color: var(--pt-red);
  margin-left: 2px;
}

.form-control {
  width: 100%;
  background: var(--pt-surface-2);
  border: 1px solid var(--pt-border);
  border-radius: var(--pt-radius-sm);
  padding: 14px 18px;
  color: var(--pt-text);
  font-size: 0.95rem;
  font-family: 'Inter', sans-serif;
  transition: all 0.3s ease;
  box-sizing: border-box;
}

.form-control:focus {
  outline: none;
  border-color: var(--pt-accent);
  box-shadow: 0 0 0 3px var(--pt-accent-glow);
  background: rgba(26, 32, 64, 0.8);
}

.form-control::placeholder {
  color: rgba(148, 163, 184, 0.5);
}

.form-control-url {
  font-family: var(--pt-mono);
  font-size: 0.9rem;
}

.url-input-wrapper {
  position: relative;
}

.url-input-prefix {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--pt-cyan);
  font-family: var(--pt-mono);
  font-size: 0.85rem;
  font-weight: 600;
  pointer-events: none;
}

.form-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
}

.form-checkbox input[type="checkbox"] {
  width: 18px;
  height: 18px;
  min-width: 18px;
  accent-color: var(--pt-accent);
  margin-top: 2px;
  cursor: pointer;
}

.form-checkbox label {
  font-size: 0.85rem;
  color: var(--pt-text-muted);
  line-height: 1.5;
  cursor: pointer;
  text-transform: none;
  letter-spacing: 0;
  margin: 0;
}

.form-checkbox label a {
  color: var(--pt-accent);
  text-decoration: none;
}

.form-checkbox label a:hover {
  text-decoration: underline;
}

.btn-scan {
  width: 100%;
  background: linear-gradient(135deg, var(--pt-accent), #2563eb);
  color: white;
  border: none;
  border-radius: 12px;
  padding: 18px 32px;
  font-size: 1rem;
  font-weight: 700;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: 0 8px 30px rgba(59, 130, 246, 0.4);
  margin-top: 8px;
}

.btn-scan:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(59, 130, 246, 0.6);
}

.btn-scan:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.btn-scan svg {
  transition: transform 0.3s ease;
}

.btn-scan:hover svg {
  transform: translateX(4px);
}

.form-error {
  color: var(--pt-red);
  font-size: 0.8rem;
  margin-top: 6px;
  display: none;
}

.form-error.visible {
  display: block;
}

/* ── Progress Bar ───────────────────────────────────────────── */
#pentest-progress-section {
  padding: 80px 20px;
  background: var(--pt-surface);
  display: none;
}

#pentest-progress-section.visible {
  display: block;
}

#pentest-progress-section .container {
  max-width: 800px;
  margin: 0 auto;
}

.progress-header {
  text-align: center;
  margin-bottom: 48px;
}

.progress-header h2 {
  font-size: 1.8rem;
  font-weight: 800;
  color: white;
  margin-bottom: 8px;
}

.progress-header p {
  color: var(--pt-text-muted);
}

.progress-bar-wrapper {
  background: var(--pt-surface-2);
  border: 1px solid var(--pt-border);
  border-radius: 100px;
  height: 12px;
  overflow: hidden;
  margin-bottom: 40px;
}

.progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--pt-accent), var(--pt-cyan));
  border-radius: 100px;
  width: 0%;
  transition: width 0.6s ease;
  position: relative;
}

.progress-bar-fill::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 60px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3));
  animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
  0%   { opacity: 0; }
  50%  { opacity: 1; }
  100% { opacity: 0; }
}

.progress-percentage {
  text-align: center;
  font-family: var(--pt-mono);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--pt-accent);
  margin-bottom: 32px;
}

.progress-checks-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.progress-check-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 20px;
  background: var(--pt-bg);
  border: 1px solid var(--pt-border);
  border-radius: var(--pt-radius-sm);
  font-size: 0.9rem;
  color: var(--pt-text-muted);
  transition: all 0.3s ease;
}

.progress-check-item.running {
  border-color: rgba(59, 130, 246, 0.4);
  color: var(--pt-text);
  background: rgba(59, 130, 246, 0.05);
}

.progress-check-item.done-pass {
  border-color: rgba(16, 185, 129, 0.3);
  color: var(--pt-green);
}

.progress-check-item.done-fail {
  border-color: rgba(239, 68, 68, 0.3);
  color: var(--pt-red);
}

.progress-check-item.done-warning {
  border-color: rgba(245, 158, 11, 0.3);
  color: var(--pt-yellow);
}

.progress-check-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  flex-shrink: 0;
}

.icon-pending  { background: rgba(148,163,184,0.1); color: var(--pt-text-muted); }
.icon-running  { background: rgba(59,130,246,0.15); color: var(--pt-accent); animation: spin 1s linear infinite; }
.icon-pass     { background: rgba(16,185,129,0.15); color: var(--pt-green); }
.icon-fail     { background: rgba(239,68,68,0.15);  color: var(--pt-red); }
.icon-warning  { background: rgba(245,158,11,0.15); color: var(--pt-yellow); }

@keyframes spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

/* ── Resultados ─────────────────────────────────────────────── */
#pentest-results-section {
  padding: 100px 20px;
  background: var(--pt-bg);
  display: none;
}

#pentest-results-section.visible {
  display: block;
}

#pentest-results-section .container {
  max-width: 1100px;
  margin: 0 auto;
}

/* Score principal */
.results-header {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 48px;
  align-items: center;
  margin-bottom: 64px;
}

.score-circle-wrapper {
  text-align: center;
}

.score-circle {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  position: relative;
  background: var(--pt-surface);
  border: 4px solid transparent;
  transition: all 0.5s ease;
}

.score-circle-bg {
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  background: conic-gradient(var(--score-color, var(--pt-accent)) var(--score-deg, 0deg), rgba(30,41,59,0.5) 0deg);
  z-index: 0;
  transition: background 1s ease;
}

.score-circle-inner {
  position: relative;
  z-index: 1;
  width: calc(100% - 16px);
  height: calc(100% - 16px);
  background: var(--pt-surface);
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.score-number {
  font-family: var(--pt-mono);
  font-size: 3.2rem;
  font-weight: 900;
  color: white;
  line-height: 1;
}

.score-label {
  font-size: 0.75rem;
  color: var(--pt-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-top: 4px;
}

.grade-badge {
  font-size: 2.5rem;
  font-weight: 900;
  font-family: var(--pt-mono);
  padding: 8px 24px;
  border-radius: 12px;
  display: inline-block;
}

.grade-aplus { background: rgba(16,185,129,0.15); color: #34d399; border: 1px solid rgba(16,185,129,0.3); }
.grade-a     { background: rgba(16,185,129,0.1);  color: #6ee7b7; border: 1px solid rgba(16,185,129,0.2); }
.grade-b     { background: rgba(59,130,246,0.15); color: #93c5fd; border: 1px solid rgba(59,130,246,0.3); }
.grade-c     { background: rgba(245,158,11,0.15); color: #fde68a; border: 1px solid rgba(245,158,11,0.3); }
.grade-d     { background: rgba(239,68,68,0.1);   color: #fca5a5; border: 1px solid rgba(239,68,68,0.2); }
.grade-f     { background: rgba(239,68,68,0.15);  color: #f87171; border: 1px solid rgba(239,68,68,0.4); }

.results-summary h2 {
  font-size: 2.2rem;
  font-weight: 800;
  color: white;
  margin-bottom: 12px;
}

.results-summary p.scan-url {
  font-family: var(--pt-mono);
  font-size: 0.85rem;
  color: var(--pt-cyan);
  margin-bottom: 24px;
  word-break: break-all;
}

.summary-pills {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

.summary-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
}

.pill-fail     { background: rgba(239,68,68,0.15); color: #fca5a5; border: 1px solid rgba(239,68,68,0.3); }
.pill-warning  { background: rgba(245,158,11,0.15); color: #fde68a; border: 1px solid rgba(245,158,11,0.3); }
.pill-pass     { background: rgba(16,185,129,0.15); color: #6ee7b7; border: 1px solid rgba(16,185,129,0.3); }

.btn-download-pdf {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, #1e3a5f, #1e40af);
  border: 1px solid rgba(59,130,246,0.4);
  color: white;
  padding: 14px 28px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: 'Inter', sans-serif;
}

.btn-download-pdf:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(59, 130, 246, 0.4);
}

/* Categorías de resultados */
.results-categories {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.result-category {
  background: var(--pt-surface);
  border: 1px solid var(--pt-border);
  border-radius: var(--pt-radius);
  overflow: hidden;
  transition: all 0.3s ease;
}

.result-category:hover {
  border-color: rgba(59, 130, 246, 0.3);
}

.result-category-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 28px;
  cursor: pointer;
  user-select: none;
  transition: background 0.2s ease;
}

.result-category-header:hover {
  background: rgba(59, 130, 246, 0.04);
}

.result-category-header-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.result-category-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.2);
}

.result-category-name {
  font-size: 1rem;
  font-weight: 700;
  color: white;
}

.result-category-meta {
  font-size: 0.8rem;
  color: var(--pt-text-muted);
  margin-top: 2px;
}

.result-category-score-bar {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}

.score-bar-track {
  width: 120px;
  height: 6px;
  background: rgba(30,41,59,0.8);
  border-radius: 3px;
  overflow: hidden;
}

.score-bar-fill {
  height: 100%;
  border-radius: 3px;
  transition: width 0.8s ease;
}

.score-bar-fill.score-good    { background: linear-gradient(90deg, var(--pt-green), #34d399); }
.score-bar-fill.score-ok      { background: linear-gradient(90deg, var(--pt-accent), var(--pt-cyan)); }
.score-bar-fill.score-warning { background: linear-gradient(90deg, var(--pt-yellow), #fbbf24); }
.score-bar-fill.score-bad     { background: linear-gradient(90deg, var(--pt-red), #f87171); }

.score-bar-number {
  font-family: var(--pt-mono);
  font-size: 0.9rem;
  font-weight: 700;
  min-width: 40px;
  text-align: right;
}

.category-chevron {
  color: var(--pt-text-muted);
  transition: transform 0.3s ease;
  flex-shrink: 0;
}

.result-category.expanded .category-chevron {
  transform: rotate(180deg);
}

.result-category-body {
  display: none;
  border-top: 1px solid var(--pt-border);
}

.result-category.expanded .result-category-body {
  display: block;
}

.result-check-item {
  display: grid;
  grid-template-columns: 32px 1fr auto;
  gap: 16px;
  align-items: start;
  padding: 20px 28px;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  transition: background 0.2s ease;
}

.result-check-item:last-child {
  border-bottom: none;
}

.result-check-item:hover {
  background: rgba(255,255,255,0.02);
}

.check-status-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  margin-top: 2px;
  flex-shrink: 0;
}

.status-pass    { background: rgba(16,185,129,0.15); color: var(--pt-green); }
.status-fail    { background: rgba(239,68,68,0.15);  color: var(--pt-red); }
.status-warning { background: rgba(245,158,11,0.15); color: var(--pt-yellow); }

.check-content h4 {
  font-size: 0.9rem;
  font-weight: 600;
  color: white;
  margin-bottom: 6px;
}

.check-detail {
  font-size: 0.82rem;
  color: var(--pt-text-muted);
  line-height: 1.5;
  margin-bottom: 0;
}

.check-recommendation {
  font-size: 0.8rem;
  color: var(--pt-yellow);
  line-height: 1.5;
  margin-top: 8px;
  padding: 10px 14px;
  background: rgba(245, 158, 11, 0.06);
  border-left: 3px solid var(--pt-yellow);
  border-radius: 0 4px 4px 0;
}

.check-severity-badge {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 4px;
  white-space: nowrap;
  flex-shrink: 0;
}

/* ── Aviso Legal ────────────────────────────────────────────── */
.pentest-legal {
  padding: 48px 20px;
  background: var(--pt-surface);
  border-top: 1px solid var(--pt-border);
}

.pentest-legal .container {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.pentest-legal h4 {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--pt-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 12px;
}

.pentest-legal p {
  font-size: 0.8rem;
  color: rgba(148, 163, 184, 0.6);
  line-height: 1.7;
  margin: 0;
}

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 900px) {
  .results-header {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .summary-pills {
    justify-content: center;
  }
  .score-bar-track {
    width: 80px;
  }
}

@media (max-width: 640px) {
  .form-card {
    padding: 36px 24px;
  }
  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .result-check-item {
    grid-template-columns: 28px 1fr;
  }
  .check-severity-badge {
    display: none;
  }
  .result-category-score-bar {
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
  }
  .score-bar-track {
    width: 70px;
  }
}

/* ── Print / PDF styles ─────────────────────────────────────── */
@media print {
  .pentest-hero,
  .pentest-checks-section,
  .pentest-form-section,
  #pentest-progress-section,
  .pentest-legal,
  .btn-download-pdf,
  .btn-scan { display: none !important; }

  #pentest-results-section {
    display: block !important;
    padding: 0;
    background: white;
    color: #1a1a1a;
  }
}
