/* ============================================
   ESTILOS MODERNOS - DEGRADADO AZUL/NEGRO
   ============================================ */

/* Contenedor principal con fondo degradado */
.modern-wrapper {
  background: linear-gradient(135deg, #0a0f2a 0%, #050814 50%, #000000 100%);
  position: relative;
  overflow-x: hidden;
}

/* Efecto de ruido sutil */
.modern-wrapper::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, #0a192f 0%, #000000 100%);
  height: 100vh;
  margin: 0;
  pointer-events: none;
}

/* Contenedor */
.container-modern {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Secciones */
.section-modern {
  padding: 4rem 0;
}

/* ===== HERO GRID ===== */
.hero-grid-3 {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 2rem;
  align-items: start;
}

/* Chips */
.chipbar-3 {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.chip-3 {
  background: rgba(110, 231, 255, 0.12);
  backdrop-filter: blur(8px);
  color: #a5f3ff;
  padding: 0.5rem 1.2rem;
  border-radius: 40px;
  font-size: 0.85rem;
  font-weight: 600;
  border: 1px solid rgba(110, 231, 255, 0.25);
  transition: all 0.3s ease;
}

.chip-3:hover {
  background: rgba(110, 231, 255, 0.25);
  transform: translateY(-2px);
}

/* KPIs */
.kpis-3 {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.kpi-3 {
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(8px);
  border-radius: 20px;
  padding: 1.2rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: all 0.3s ease;
}

.kpi-3:hover {
  transform: translateX(5px);
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(110, 231, 255, 0.3);
}

.kpi-3 b {
  font-size: 1.2rem;
  color: #ffffff;
  display: block;
  margin-bottom: 0.5rem;
  border-left: 3px solid #3b82f6;
  padding-left: 0.75rem;
}

.kpi-3 span {
  color: #cbd5e1;
  line-height: 1.4;
  font-size: 0.95rem;
}

/* Panel */
.panel-3 {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(12px);
  border-radius: 24px;
  padding: 1.8rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.panel-3 h2 {
  color: #ffffff;
  border-left: 5px solid #ef4444;
  padding-left: 1rem;
  margin-top: 0;
  font-size: 1.5rem;
}

.panel-3 > p {
  color: #cbd5e1;
  margin-bottom: 1.5rem;
}

/* Formulario */
.flex-inputs-3 {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 1.5rem 0 0.5rem;
}

.flex-inputs-3 input {
  flex: 1;
  padding: 12px 16px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 40px;
  background: rgba(0, 0, 0, 0.3);
  color: white;
  font-size: 0.95rem;
  transition: all 0.3s ease;
}

.flex-inputs-3 input:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

.flex-inputs-3 input::placeholder {
  color: #94a3b8;
}

#runTestBtn3 {
  background: linear-gradient(135deg, #1e3a8a, #3b82f6);
  color: white;
  border: none;
  padding: 12px 28px;
  border-radius: 40px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
}

#runTestBtn3:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.security-note-3 {
  font-size: 1.25rem;
  color: #94a3b8;
  margin-top: 8px;
}

/* Enlaces externos */
.external-refs-3 {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
}

.external-refs-3 p {
  font-size: 1.25rem;
  color: #94a3b8;
}

.external-refs-3 a {
  color: #60a5fa;
  text-decoration: none;
}

.external-refs-3 a:hover {
  text-decoration: underline;
}

/* Tarjeta */
.card-3 {
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(8px);
  border-radius: 20px;
  padding: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.card-3 h2, .card-3 h3 {
  color: #ffffff;
  margin-top: 0;
}

.card-3 p {
  color: #cbd5e1;
}

.badge-f-3 {
  background: #dc2626;
  color: white;
  padding: 2px 10px;
  border-radius: 30px;
  font-size: 0.75rem;
  font-weight: bold;
  display: inline-block;
}

/* FAQ */
.faq-card-3 {
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(8px);
  border-radius: 24px;
  padding: 2rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.faq-card-3 h3 {
  color: #ffffff;
  border-left: 5px solid #ef4444;
  padding-left: 1rem;
  margin-top: 0;
  margin-bottom: 1.5rem;
}

.faq-list-3 {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.faq-item-3 h4 {
  color: #60a5fa;
  margin: 0 0 6px 0;
  font-size: 1rem;
}

.faq-item-3 p {
  color: #cbd5e1;
  margin: 0;
  line-height: 1.5;
}

.faq-footer-3 {
  margin-top: 1.5rem;
  text-align: center;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: #94a3b8;
}

.faq-footer-3 a {
  color: #60a5fa;
  text-decoration: none;
}

/* Grid 2 columnas */
.grid-2-3 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

/* Bullets */
.bullets-3 {
  margin: 1rem 0 0;
  padding-left: 1.2rem;
  color: #cbd5e1;
}

.bullets-3 li {
  margin: 0.5rem 0;
}

/* Services */
.services-3 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.services-3.single-col {
  grid-template-columns: 1fr;
}

.service-3 {
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(8px);
  border-radius: 20px;
  padding: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: all 0.3s ease;
}

.service-3:hover {
  transform: translateY(-5px);
  border-color: rgba(59, 130, 246, 0.3);
}

.service-3 h3 {
  color: #60a5fa;
  margin-top: 0;
  margin-bottom: 0.5rem;
}

.service-3 p {
  color: #cbd5e1;
  margin-bottom: 1rem;
}

.service-3 ul {
  margin: 0;
  padding-left: 1.2rem;
  color: #cbd5e1;
}

.service-3 li {
  margin: 0.5rem 0;
}

/* Steps */
.steps-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.step-3 {
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(8px);
  border-radius: 20px;
  padding: 1.5rem;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: all 0.3s ease;
}

.step-3:hover {
  transform: translateY(-5px);
  border-color: rgba(59, 130, 246, 0.3);
}

.step-3 b {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #1e3a8a, #3b82f6);
  color: white;
  font-size: 1.2rem;
  margin-bottom: 1rem;
}

.step-3 h4 {
  color: #60a5fa;
  margin: 0 0 0.5rem;
}

.step-3 p {
  color: #cbd5e1;
  margin: 0;
}

/* Details */
.details-3 {
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(8px);
  border-radius: 16px;
  padding: 1rem 1.2rem;
  margin: 0.75rem 0;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.details-3 summary {
  cursor: pointer;
  font-weight: 700;
  color: #ffffff;
}

.details-3 p {
  color: #cbd5e1;
  margin-top: 0.75rem;
  margin-bottom: 0;
}

/* Contacto */
.contact-wrap-3 {
  display: grid;
  grid-template-columns: 1fr 0.9fr;
  gap: 1.5rem;
}

.form-row-3 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
}

.form-group-3 {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group-3 label {
  color: #cbd5e1;
  font-weight: 600;
  font-size: 0.9rem;
}

.form-group-3 input,
.form-group-3 select,
.form-group-3 textarea {
  padding: 12px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(0, 0, 0, 0.3);
  color: white;
  font-size: 0.95rem;
}

.form-group-3 input:focus,
.form-group-3 textarea:focus {
  outline: none;
  border-color: #3b82f6;
}

.checkbox-group-3 {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  background: rgba(0, 0, 0, 0.2);
  padding: 1rem;
  border-radius: 12px;
}

.checkbox-group-3 label {
  background: rgba(255, 255, 255, 0.05);
  padding: 0.5rem 1rem;
  border-radius: 40px;
  cursor: pointer;
  font-weight: normal;
}

.checkbox-group-3 input {
  margin-right: 0.5rem;
}

/* Form actions */
.form-actions3 {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
  flex-wrap: wrap;
}

.btn-3 {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border-radius: 40px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
  font-size: 0.95rem;
}

.btn-3.primary {
  background: linear-gradient(135deg, #1e3a8a, #3b82f6);
  color: white;
}

.btn-3.whatsapp {
  background: #25D366;
  color: white;
}

.btn-3:hover {
  transform: translateY(-2px);
  filter: brightness(1.05);
}

.msg-3 {
  padding: 1rem;
  border-radius: 12px;
  margin-top: 1rem;
}

.msg-3.ok {
  background: rgba(34, 197, 94, 0.2);
  border: 1px solid #22c55e;
  color: #86efac;
}

.msg-3.bad {
  background: rgba(239, 68, 68, 0.2);
  border: 1px solid #ef4444;
  color: #fca5a5;
}

.fine-3 {
  font-size: 0.75rem;
  color: #94a3b8;
  margin-top: 1rem;
}

.tip-card-3 {
  margin-top: 1rem;
  background: rgba(59, 130, 246,0.2);
      }



/* ============================================
   RESULTADO DEL TEST - ESTILO MODERNO
   ============================================ */

/* Contenedor principal del resultado */
#resultadoTest {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(12px);
  border-radius: 28px;
  padding: 1.8rem;
  margin-top: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 20px 35px -12px rgba(0, 0, 0, 0.3);
  animation: fadeInUp 0.5s ease-out;
}

/* Animación de entrada */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Header del resultado */
.result-header {
  text-align: center;
  margin-bottom: 1.8rem;
}

.result-icon {
  font-size: 3.5rem;
  display: inline-block;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

.result-header h3 {
  color: #ffffff;
  margin: 0.5rem 0 0.25rem;
  font-size: 1.2rem;
}

.result-header h3 span {
  color: #60a5fa;
  word-break: break-all;
}

.score-badge {
  display: inline-block;
  background: linear-gradient(135deg, #16a34a, #22c55e);
  border-radius: 60px;
  padding: 0.5rem 1.5rem;
  margin: 0.75rem 0;
  box-shadow: 0 8px 20px rgba(34, 197, 94, 0.3);
}

.score-number {
  font-size: 2.8rem;
  font-weight: 800;
  color: white;
  line-height: 1;
}

.score-label {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.8);
  margin-top: 0.25rem;
}

.score-detail {
  font-size: 0.85rem;
  color: #94a3b8;
  margin-top: 0.5rem;
}

.status-badge {
  display: inline-block;
  background: rgba(34, 197, 94, 0.15);
  border: 1px solid rgba(34, 197, 94, 0.3);
  color: #86efac;
  padding: 0.4rem 1.2rem;
  border-radius: 40px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-top: 0.5rem;
}

/* Tarjetas de métricas */
.metrics-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.8rem;
}

.metric-card {
  flex: 1;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 20px;
  padding: 1rem;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: all 0.3s ease;
}

.metric-card:hover {
  transform: translateY(-3px);
  border-color: rgba(59, 130, 246, 0.3);
}

.metric-card.critical {
  background: rgba(239, 68, 68, 0.1);
  border-left: 3px solid #ef4444;
}

.metric-card.recommended {
  background: rgba(245, 158, 11, 0.1);
  border-left: 3px solid #f59e0b;
}

.metric-card.confidence {
  flex: 2;
}

.metric-number {
  font-size: 2rem;
  font-weight: 800;
}

.metric-number.critical {
  color: #f87171;
}

.metric-number.recommended {
  color: #fbbf24;
}

.metric-label {
  font-size: 0.8rem;
  color: #94a3b8;
  margin-top: 0.25rem;
}

/* Barra de confianza */
.confidence-bar-container {
  margin-top: 0.5rem;
}

.confidence-label {
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
}

.confidence-bar {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 40px;
  height: 10px;
  overflow: hidden;
}

.confidence-fill {
  background: linear-gradient(90deg, #16a34a, #22c55e, #4ade80);
  height: 100%;
  border-radius: 40px;
  width: 0%;
  transition: width 1s ease-out;
}

.confidence-percent {
  font-size: 0.8rem;
  color: #86efac;
  margin-top: 0.5rem;
  text-align: right;
}

/* Separador */
.result-divider {
  border: none;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  margin: 1.5rem 0;
}

/* Sección de cabeceras */
.section-title {
  margin: 1.5rem 0 1rem;
  font-size: 1.1rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.section-title.success {
  color: #86efac;
}

.section-title.warning {
  color: #fcd34d;
}

.section-title.info {
  color: #60a5fa;
}

/* Tarjetas de cada cabecera */
.header-item {
  background: rgba(0, 0, 0, 0.25);
  border-radius: 16px;
  padding: 1rem 1.2rem;
  margin-bottom: 0.75rem;
  transition: all 0.3s ease;
  border-left: 4px solid;
}

.header-item:hover {
  transform: translateX(5px);
  background: rgba(0, 0, 0, 0.35);
}

.header-item.success {
  border-left-color: #22c55e;
  background: rgba(34, 197, 94, 0.05);
}

.header-item.warning {
  border-left-color: #f59e0b;
  background: rgba(245, 158, 11, 0.05);
}

.header-item.critical {
  border-left-color: #ef4444;
  background: rgba(239, 68, 68, 0.05);
}

.header-item.info {
  border-left-color: #3b82f6;
  background: rgba(59, 130, 246, 0.05);
}

.header-name {
  font-weight: 700;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.header-name .badge {
  font-size: 0.7rem;
  padding: 0.2rem 0.6rem;
  border-radius: 30px;
  font-weight: 600;
}

.badge-success {
  background: rgba(34, 197, 94, 0.2);
  color: #86efac;
  border: 1px solid rgba(34, 197, 94, 0.3);
}

.badge-warning {
  background: rgba(245, 158, 11, 0.2);
  color: #fcd34d;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.badge-critical {
  background: rgba(239, 68, 68, 0.2);
  color: #fca5a5;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.header-message {
  font-size: 0.9rem;
  color: #cbd5e1;
  line-height: 1.5;
}

.header-message strong {
  color: #facc15;
}

/* Call to action final */
.result-cta {
  background: linear-gradient(135deg, rgba(30, 58, 138, 0.8), rgba(37, 99, 235, 0.6));
  backdrop-filter: blur(8px);
  border-radius: 20px;
  padding: 1.2rem;
  text-align: center;
  margin-top: 1.8rem;
  border: 1px solid rgba(59, 130, 246, 0.3);
}

.result-cta p {
  margin: 0;
  color: #ffffff;
}

.result-cta strong {
  color: #facc15;
}

.result-cta a {
  color: #facc15;
  text-decoration: none;
  font-weight: 700;
  transition: all 0.3s ease;
}

.result-cta a:hover {
  text-decoration: underline;
  color: #fde047;
}

/* Responsive */
@media (max-width: 700px) {
  #resultadoTest {
    padding: 1.2rem;
  }
  
  .metrics-grid {
    flex-direction: column;
  }
  
  .metric-card.confidence {
    flex: auto;
  }
  
  .header-name {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .result-header h3 {
    font-size: 1rem;
  }
  
  .score-number {
    font-size: 2rem;
  }
}



/* ============================================
   RESPONSIVE - MODERN SECTIONS
   ============================================ */

/* Asegurar que el wrapper ocupe todo el ancho */
.modern-wrapper {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

/* Contenedor responsive */
.container-modern {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  box-sizing: border-box;
}

/* Todas las secciones */
.section-modern {
  width: 100%;
  padding: 3rem 0;
  box-sizing: border-box;
}

/* ===== RESPONSIVE HERO GRID ===== */
@media (max-width: 900px) {
  .hero-grid-3 {
    grid-template-columns: 1fr !important;
    gap: 1.5rem !important;
  }
}

@media (max-width: 768px) {
  .container-modern {
    padding: 0 1rem !important;
  }
  
  .section-modern {
    padding: 2rem 0 !important;
  }
  
  /* Chips responsive */
  .chipbar-3 {
    gap: 0.5rem !important;
    margin-bottom: 1.5rem !important;
  }
  
  .chip-3 {
    font-size: 0.75rem !important;
    padding: 0.35rem 0.9rem !important;
  }
  
  /* KPIs responsive */
  .kpis-3 {
    gap: 1rem !important;
  }
  
  .kpi-3 {
    padding: 1rem !important;
  }
  
  .kpi-3 b {
    font-size: 1rem !important;
  }
  
  .kpi-3 span {
    font-size: 0.85rem !important;
  }
  
  /* Panel responsive */
  .panel-3 {
    padding: 1.2rem !important;
  }
  
  .panel-3 h2 {
    font-size: 1.2rem !important;
  }
  
  .panel-3 > p {
    font-size: 0.9rem !important;
  }
  
  /* Formulario responsive */
  .flex-inputs-3 {
    flex-direction: column !important;
    gap: 10px !important;
  }
  
  .flex-inputs-3 input {
    width: 100% !important;
    padding: 10px 14px !important;
    font-size: 0.9rem !important;
  }
  
  #runTestBtn3 {
    width: 100% !important;
    padding: 10px 20px !important;
  }
  
  /* Grid 2 columnas -> 1 columna */
  .grid-2-3 {
    grid-template-columns: 1fr !important;
    gap: 1rem !important;
  }
  
  /* Services responsive */
  .services-3 {
    grid-template-columns: 1fr !important;
    gap: 1rem !important;
  }
  
  .service-3 {
    padding: 1.2rem !important;
  }
  
  .service-3 h3 {
    font-size: 1.1rem !important;
  }
  
  /* Steps responsive */
  .steps-3 {
    grid-template-columns: 1fr !important;
    gap: 1rem !important;
  }
  
  .step-3 {
    padding: 1.2rem !important;
  }
  
  /* Contacto responsive */
  .contact-wrap-3 {
    grid-template-columns: 1fr !important;
    gap: 1.2rem !important;
  }
  
  .form-row-3 {
    grid-template-columns: 1fr !important;
    gap: 0.8rem !important;
  }
  
  .form-actions3 {
    flex-direction: column !important;
  }
  
  .btn-3 {
    width: 100% !important;
    text-align: center !important;
  }
  
  /* FAQ responsive */
  .faq-card-3 {
    padding: 1.2rem !important;
  }
  
  .faq-card-3 h3 {
    font-size: 1.2rem !important;
  }
  
  .faq-item-3 h4 {
    font-size: 0.9rem !important;
  }
  
  .faq-item-3 p {
    font-size: 0.85rem !important;
  }
  
  /* Checkbox group responsive */
  .checkbox-group-3 {
    flex-direction: column !important;
    gap: 0.5rem !important;
  }
  
  .checkbox-group-3 label {
    width: 100% !important;
  }
  
  /* Tarjetas */
  .card-3 {
    padding: 1rem !important;
  }
  
  .card-3 h2 {
    font-size: 1.2rem !important;
  }
  
  /* Details */
  .details-3 {
    padding: 0.8rem 1rem !important;
  }
  
  .details-3 summary {
    font-size: 0.9rem !important;
  }
  
  /* Footer */
  .footer-grid-3 {
    flex-direction: column !important;
    text-align: center !important;
    gap: 0.5rem !important;
  }
}

/* ===== RESPONSIVE PARA MÓVILES PEQUEÑOS ===== */
@media (max-width: 480px) {
  .container-modern {
    padding: 0 0.75rem !important;
  }
  
  .section-modern {
    padding: 1.5rem 0 !important;
  }
  
  .chip-3 {
    font-size: 0.7rem !important;
    padding: 0.25rem 0.7rem !important;
  }
  
  .panel-3 h2 {
    font-size: 1.1rem !important;
  }
  
  .score-number {
    font-size: 2rem !important;
  }
  
  .metrics-grid {
    gap: 0.8rem !important;
  }
  
  .metric-number {
    font-size: 1.5rem !important;
  }
}

/* ===== RESPONSIVE PARA TABLETS ===== */
@media (min-width: 769px) and (max-width: 1024px) {
  .container-modern {
    padding: 0 1.5rem !important;
  }
  
  .hero-grid-3 {
    gap: 1.5rem !important;
  }
  
  .services-3 {
    gap: 1rem !important;
  }
  
  .steps-3 {
    gap: 1rem !important;
  }
}

/* ===== AJUSTES ADICIONALES ===== */

/* Evitar desbordamiento horizontal */
img, iframe, video, canvas {
  max-width: 100%;
  height: auto;
}

/* Textos largos no rompan el diseño */
.hero-grid-3, .panel-3, .card-3, .service-3 {
  overflow-wrap: break-word;
  word-wrap: break-word;
  word-break: break-word;
}

/* Inputs y botones táctiles en móvil */
@media (max-width: 768px) {
  input, button, .btn-3, a {
    touch-action: manipulation;
  }
  
  input, textarea, select {
    font-size: 16px !important; /* Evita zoom en iOS */
  }
}


/* ============================================
   HERO GRID - UNA SOLA COLUMNA (vertical)
   ============================================ */

.hero-grid-3 {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  max-width: 900px;
  margin: 0 auto;
}

/* Columnas internas ocupan todo el ancho */
.hero-grid-3 > div,
.hero-grid-3 > aside {
  width: 100%;
}

/* Chips centrados */
.chipbar-3 {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

/* KPIs en grid horizontal en escritorio (opcional, para que no sean tan largos) */
.kpis-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 1rem;
}

/* Panel (test) ocupa todo el ancho */
.panel-3 {
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
}

/* ============================================
   RESPONSIVE - MODERN SECTIONS
   ============================================ */

/* Asegurar que el wrapper ocupe todo el ancho */
.modern-wrapper {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

/* Contenedor responsive */
.container-modern {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  box-sizing: border-box;
}

/* Todas las secciones */
.section-modern {
  width: 100%;
  padding: 3rem 0;
  box-sizing: border-box;
}

/* ===== ESCRITORIO GRANDE (1200px+) ===== */
@media (min-width: 1200px) {
  .container-modern {
    max-width: 1100px;
  }
  
  .kpis-3 {
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
  }
  
  .panel-3 {
    max-width: 800px;
  }
}

/* ===== ESCRITORIO MEDIANO (992px - 1200px) ===== */
@media (min-width: 992px) and (max-width: 1199px) {
  .container-modern {
    max-width: 950px;
  }
  
  .kpis-3 {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.2rem;
  }
}

/* ===== TABLET (768px - 991px) ===== */
@media (min-width: 768px) and (max-width: 991px) {
  .container-modern {
    padding: 0 1.5rem;
  }
  
  .kpis-3 {
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
  }
  
  .hero-grid-3 {
    gap: 1.5rem;
  }
}

/* ===== MÓVIL (menos de 768px) ===== */
@media (max-width: 767px) {
  .container-modern {
    padding: 0 1rem !important;
  }
  
  .section-modern {
    padding: 2rem 0 !important;
  }
  
  .hero-grid-3 {
    gap: 1.5rem;
  }
  
  /* KPIs en una columna en móvil */
  .kpis-3 {
    grid-template-columns: 1fr !important;
    gap: 1rem !important;
  }
  
  /* Chips responsive */
  .chipbar-3 {
    gap: 0.5rem !important;
    margin-bottom: 1.5rem !important;
  }
  
  .chip-3 {
    font-size: 0.75rem !important;
    padding: 0.35rem 0.9rem !important;
  }
  
  /* KPIs responsive */
  .kpi-3 {
    padding: 1rem !important;
  }
  
  .kpi-3 b {
    font-size: 1rem !important;
  }
  
  .kpi-3 span {
    font-size: 0.85rem !important;
  }
  
  /* Panel responsive */
  .panel-3 {
    padding: 1.2rem !important;
  }
  
  .panel-3 h2 {
    font-size: 1.2rem !important;
  }
  
  .panel-3 > p {
    font-size: 0.9rem !important;
  }
  
  /* Formulario responsive */
  .flex-inputs-3 {
    flex-direction: column !important;
    gap: 10px !important;
  }
  
  .flex-inputs-3 input {
    width: 100% !important;
    padding: 10px 14px !important;
    font-size: 0.9rem !important;
  }
  
  #runTestBtn3 {
    width: 100% !important;
    padding: 10px 20px !important;
  }
  
  /* Grid 2 columnas -> 1 columna */
  .grid-2-3 {
    grid-template-columns: 1fr !important;
    gap: 1rem !important;
  }
  
  /* Services responsive */
  .services-3 {
    grid-template-columns: 1fr !important;
    gap: 1rem !important;
  }
  
  .service-3 {
    padding: 1.2rem !important;
  }
  
  .service-3 h3 {
    font-size: 1.1rem !important;
  }
  
  /* Steps responsive */
  .steps-3 {
    grid-template-columns: 1fr !important;
    gap: 1rem !important;
  }
  
  .step-3 {
    padding: 1.2rem !important;
  }
  
  /* Contacto responsive */
  .contact-wrap-3 {
    grid-template-columns: 1fr !important;
    gap: 1.2rem !important;
  }
  
  .form-row-3 {
    grid-template-columns: 1fr !important;
    gap: 0.8rem !important;
  }
  
  .form-actions3 {
    flex-direction: column !important;
  }
  
  .btn-3 {
    width: 100% !important;
    text-align: center !important;
  }
  
  /* FAQ responsive */
  .faq-card-3 {
    padding: 1.2rem !important;
  }
  
  .faq-card-3 h3 {
    font-size: 1.2rem !important;
  }
  
  .faq-item-3 h4 {
    font-size: 0.9rem !important;
  }
  
  .faq-item-3 p {
    font-size: 0.85rem !important;
  }
  
  /* Checkbox group responsive */
  .checkbox-group-3 {
    flex-direction: column !important;
    gap: 0.5rem !important;
  }
  
  .checkbox-group-3 label {
    width: 100% !important;
  }
  
  /* Tarjetas */
  .card-3 {
    padding: 1rem !important;
  }
  
  .card-3 h2 {
    font-size: 1.2rem !important;
  }
  
  /* Details */
  .details-3 {
    padding: 0.8rem 1rem !important;
  }
  
  .details-3 summary {
    font-size: 0.9rem !important;
  }
}

/* ===== MÓVIL PEQUEÑO (menos de 480px) ===== */
@media (max-width: 480px) {
  .container-modern {
    padding: 0 0.75rem !important;
  }
  
  .section-modern {
    padding: 1.5rem 0 !important;
  }
  
  .chip-3 {
    font-size: 0.7rem !important;
    padding: 0.25rem 0.7rem !important;
  }
  
  .panel-3 h2 {
    font-size: 1.1rem !important;
  }
}

/* ===== TABLET VERTICAL (entre 768px y 900px) ===== */
@media (min-width: 768px) and (max-width: 900px) {
  .kpis-3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ===== AJUSTES ADICIONALES ===== */

/* Centrar contenido importante */
.panel-3, .card-3, .faq-card-3, .service-3, .step-3 {
  margin-left: auto;
  margin-right: auto;
}

/* Textos largos no rompan el diseño */
.hero-grid-3, .panel-3, .card-3, .service-3 {
  overflow-wrap: break-word;
  word-wrap: break-word;
  word-break: break-word;
}

/* Inputs y botones táctiles en móvil */
@media (max-width: 768px) {
  input, button, .btn-3, a {
    touch-action: manipulation;
  }
  
  input, textarea, select {
    font-size: 16px !important;
  }
}


/* ============================================
   RESULTADO DEL TEST - ESTILO SPEEDTEST (CÍRCULO)
   ============================================ */

/* Contenedor principal */
#resultadoTest {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(12px);
  border-radius: 32px;
  padding: 2rem;
  margin-top: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  animation: fadeInUp 0.5s ease-out;
}

/* Medidor circular tipo speedtest */
.circle-container {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 1.5rem 0;
  position: relative;
}

.circle-chart {
  width: 200px;
  height: 200px;
  transform: rotate(-90deg);
}

.circle-chart__circle {
  stroke: rgba(255, 255, 255, 0.1);
  stroke-width: 12;
  fill: none;
}

.circle-chart__circle-progress {
  stroke: url(#gradient);
  stroke-width: 12;
  fill: none;
  stroke-dasharray: 565.48;
  stroke-dashoffset: 565.48;
  stroke-linecap: round;
  transition: stroke-dashoffset 1s ease-out;
  filter: drop-shadow(0 0 8px rgba(59, 130, 246, 0.5));
}

/* Gradiente para el círculo */
.circle-gradient {
  --gradient-start: #3b82f6;
  --gradient-end: #06b6d4;
}

.circle-percentage {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
}

.circle-percentage .number {
  font-size: 3rem;
  font-weight: 800;
  line-height: 1;
  background: linear-gradient(135deg, #ffffff, #60a5fa);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.circle-percentage .label {
  font-size: 0.8rem;
  color: #94a3b8;
  margin-top: 0.25rem;
}

/* Badge de calificación (A, B, C, D, F) */
.grade-badge {
  display: inline-block;
  padding: 0.5rem 1.2rem;
  border-radius: 60px;
  font-size: 1.2rem;
  font-weight: 800;
  margin-top: 0.5rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.grade-A {
  background: linear-gradient(135deg, #16a34a, #22c55e);
  color: white;
  box-shadow: 0 0 15px rgba(34, 197, 94, 0.4);
}

.grade-B {
  background: linear-gradient(135deg, #2563eb, #3b82f6);
  color: white;
}

.grade-C {
  background: linear-gradient(135deg, #d97706, #f59e0b);
  color: white;
}

.grade-D {
  background: linear-gradient(135deg, #ea580c, #f97316);
  color: white;
}

.grade-F {
  background: linear-gradient(135deg, #b91c1c, #dc2626);
  color: white;
}

/* Detalle de puntuación */
.score-detail-modern {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin: 1rem 0;
  flex-wrap: wrap;
}

.score-detail-item {
  text-align: center;
  padding: 0.5rem 1rem;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 40px;
  backdrop-filter: blur(4px);
}

.score-detail-item .value {
  font-size: 1.2rem;
  font-weight: 700;
  color: #60a5fa;
}

.score-detail-item .label {
  font-size: 0.7rem;
  color: #94a3b8;
}

/* Nivel de protección */
.protection-level {
  text-align: center;
  margin: 1rem 0;
  padding: 0.5rem 1rem;
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.3);
  border-radius: 40px;
  display: inline-block;
  width: auto;
  margin-left: auto;
  margin-right: auto;
  font-size: 0.85rem;
  font-weight: 600;
  color: #86efac;
}

/* Tarjeta de advertencia moderna */
.warning-card-modern {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.15), rgba(220, 38, 38, 0.05));
  border: 1px solid rgba(239, 68, 68, 0.3);
  border-radius: 20px;
  padding: 1.2rem;
  margin: 1rem 0;
  text-align: center;
}

.warning-card-modern h4 {
  color: #f87171;
  margin: 0 0 0.5rem;
  font-size: 1rem;
}

.warning-card-modern p {
  color: #cbd5e1;
  font-size: 0.85rem;
  margin: 0;
}

/* Grade indicator (F/D/C) */
.grade-indicator {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  margin: 1rem 0;
}

.grade-letter {
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  font-size: 1.5rem;
  font-weight: 800;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
}

.grade-letter.active-F {
  background: linear-gradient(135deg, #b91c1c, #dc2626);
  border-color: #ef4444;
  box-shadow: 0 0 15px rgba(239, 68, 68, 0.4);
}

.grade-letter.active-D {
  background: linear-gradient(135deg, #ea580c, #f97316);
  border-color: #f97316;
  box-shadow: 0 0 15px rgba(249, 115, 22, 0.4);
}

.grade-letter.active-C {
  background: linear-gradient(135deg, #d97706, #f59e0b);
  border-color: #f59e0b;
  box-shadow: 0 0 15px rgba(245, 158, 11, 0.4);
}

.grade-letter.active-B {
  background: linear-gradient(135deg, #2563eb, #3b82f6);
  border-color: #3b82f6;
  box-shadow: 0 0 15px rgba(59, 130, 246, 0.4);
}

.grade-letter.active-A {
  background: linear-gradient(135deg, #16a34a, #22c55e);
  border-color: #22c55e;
  box-shadow: 0 0 15px rgba(34, 197, 94, 0.4);
}

/* Tooltip info */
.info-tooltip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  font-size: 0.7rem;
  color: #94a3b8;
  cursor: help;
  margin-left: 0.5rem;
  position: relative;
}

.info-tooltip:hover::after {
  content: attr(data-tip);
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: #1e293b;
  color: #f1f5f9;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  font-size: 0.75rem;
  white-space: nowrap;
  z-index: 10;
  margin-bottom: 8px;
}

/* Animaciones */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.02); }
}

/* Responsive */
@media (max-width: 600px) {
  #resultadoTest {
    padding: 1.2rem;
  }
  
  .circle-chart {
    width: 160px;
    height: 160px;
  }
  
  .circle-percentage .number {
    font-size: 2.2rem;
  }
  
  .grade-letter {
    width: 45px;
    height: 45px;
    font-size: 1.2rem;
  }
  
  .score-detail-item .value {
    font-size: 1rem;
  }
}


/* ============================================
   MEJORAS DE COLOR Y CONTRASTE - RESULTADO TEST
   ============================================ */

/* Mejorar el contraste del texto en general */
#resultadoTest, 
#resultadoTest * {
  color-scheme: dark;
}

/* Asegurar que el texto principal sea legible */
.result-header h3,
.result-header h3 span {
  color: #ffffff !important;
}

.score-detail-item .value {
  color: #60a5fa !important;
  font-size: 1.3rem;
  font-weight: 800;
}

.score-detail-item .label {
  color: #94a3b8 !important;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Mejorar el badge de calificación */
.grade-badge {
  display: inline-block;
  padding: 0.6rem 1.8rem;
  border-radius: 60px;
  font-size: 1.3rem;
  font-weight: 800;
  margin: 0.5rem 0;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  letter-spacing: 1px;
}

.grade-A {
  background: linear-gradient(135deg, #16a34a, #22c55e);
  color: white;
  box-shadow: 0 0 20px rgba(34, 197, 94, 0.4);
}

.grade-B {
  background: linear-gradient(135deg, #2563eb, #3b82f6);
  color: white;
}

.grade-C {
  background: linear-gradient(135deg, #d97706, #f59e0b);
  color: white;
}

.grade-D {
  background: linear-gradient(135deg, #ea580c, #f97316);
  color: white;
}

.grade-F {
  background: linear-gradient(135deg, #b91c1c, #dc2626);
  color: white;
  box-shadow: 0 0 20px rgba(220, 38, 38, 0.4);
}

/* Nivel de protección */
.protection-level {
  text-align: center;
  margin: 1rem auto;
  padding: 0.6rem 1.5rem;
  background: rgba(34, 197, 94, 0.12);
  border: 1px solid rgba(34, 197, 94, 0.3);
  border-radius: 40px;
  display: inline-block;
  width: auto;
  font-size: 0.9rem;
  font-weight: 700;
  color: #86efac;
  backdrop-filter: blur(4px);
}

/* Tarjetas de métricas mejoradas */
.metrics-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin: 1.5rem 0;
  justify-content: center;
}

.metric-card {
  background: rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(8px);
  border-radius: 20px;
  padding: 1rem 1.2rem;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: all 0.3s ease;
  min-width: 100px;
}

.metric-card.critical {
  border-left: 3px solid #ef4444;
}

.metric-card.recommended {
  border-left: 3px solid #f59e0b;
}

.metric-card.confidence {
  flex: 2;
  min-width: 180px;
}

.metric-number {
  font-size: 2rem;
  font-weight: 800;
}

.metric-number.critical {
  color: #f87171;
}

.metric-number.recommended {
  color: #fbbf24;
}

.metric-label {
  font-size: 0.75rem;
  color: #94a3b8;
  margin-top: 0.25rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Barra de confianza */
.confidence-label {
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 0.5rem;
  font-size: 0.85rem;
}

.confidence-bar {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 40px;
  height: 10px;
  overflow: hidden;
}

.confidence-fill {
  background: linear-gradient(90deg, #3b82f6, #22c55e);
  height: 100%;
  border-radius: 40px;
  transition: width 1s ease-out;
}

.confidence-percent {
  font-size: 0.7rem;
  color: #86efac;
  margin-top: 0.5rem;
  text-align: right;
}

/* Tarjetas de cabeceras - mejorar colores */
.header-item {
  background: rgba(0, 0, 0, 0.25);
  border-radius: 16px;
  padding: 1rem 1.2rem;
  margin-bottom: 0.75rem;
  transition: all 0.3s ease;
  border-left: 4px solid;
}

.header-item:hover {
  transform: translateX(5px);
  background: rgba(0, 0, 0, 0.4);
}

.header-item.success {
  border-left-color: #22c55e;
  background: rgba(34, 197, 94, 0.05);
}

.header-item.warning {
  border-left-color: #f59e0b;
  background: rgba(245, 158, 11, 0.05);
}

.header-item.critical {
  border-left-color: #ef4444;
  background: rgba(239, 68, 68, 0.05);
}

.header-item.info {
  border-left-color: #3b82f6;
  background: rgba(59, 130, 246, 0.05);
}

.header-name {
  font-weight: 700;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  color: #ffffff;
}

.header-message {
  font-size: 0.85rem;
  color: #cbd5e1;
  line-height: 1.5;
}

.header-message strong {
  color: #facc15;
}

/* Badges para cabeceras */
.badge {
  font-size: 0.7rem;
  padding: 0.2rem 0.6rem;
  border-radius: 30px;
  font-weight: 600;
}

.badge-success {
  background: rgba(34, 197, 94, 0.2);
  color: #86efac;
  border: 1px solid rgba(34, 197, 94, 0.3);
}

.badge-warning {
  background: rgba(245, 158, 11, 0.2);
  color: #fcd34d;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.badge-critical {
  background: rgba(239, 68, 68, 0.2);
  color: #fca5a5;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

/* Sección de títulos */
.section-title {
  margin: 1.5rem 0 1rem;
  font-size: 1.1rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.section-title.success {
  color: #86efac;
}

.section-title.warning {
  color: #fcd34d;
}

.section-title.info {
  color: #60a5fa;
}

/* Separador */
.result-divider {
  border: none;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  margin: 1.5rem 0;
}

/* CTA final */
.result-cta {
  background: linear-gradient(135deg, rgba(30, 58, 138, 0.8), rgba(37, 99, 235, 0.6));
  backdrop-filter: blur(8px);
  border-radius: 20px;
  padding: 1.2rem;
  text-align: center;
  margin-top: 1.8rem;
  border: 1px solid rgba(59, 130, 246, 0.3);
}

.result-cta p {
  margin: 0;
  color: #ffffff;
}

.result-cta strong {
  color: #facc15;
}

.result-cta a {
  color: #facc15;
  text-decoration: none;
  font-weight: 700;
}

.result-cta a:hover {
  text-decoration: underline;
}

.success-cta {
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.2), rgba(22, 163, 74, 0.1));
  border: 1px solid rgba(34, 197, 94, 0.3);
}

.success-cta strong {
  color: #86efac;
}

/* Mejorar el círculo */
.circle-container {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 1.5rem 0;
  position: relative;
}

.circle-chart {
  width: 200px;
  height: 200px;
  transform: rotate(-90deg);
}

.circle-chart__circle {
  stroke: rgba(255, 255, 255, 0.08);
  stroke-width: 12;
  fill: none;
}

.circle-chart__circle-progress {
  stroke-width: 12;
  fill: none;
  stroke-dasharray: 565.48;
  stroke-linecap: round;
  transition: stroke-dashoffset 1s ease-out;
  filter: drop-shadow(0 0 12px rgba(59, 130, 246, 0.4));
}

.circle-percentage {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
}

.circle-percentage .number {
  font-size: 2.8rem;
  font-weight: 800;
  line-height: 1;
  background: linear-gradient(135deg, #ffffff, #60a5fa);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.circle-percentage .label {
  font-size: 0.7rem;
  color: #94a3b8;
  margin-top: 0.25rem;
  letter-spacing: 1px;
}

/* Indicador de grados (A/B/C/D/F) */
.grade-indicator {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  margin: 1rem 0;
}

.grade-letter {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  font-size: 1.3rem;
  font-weight: 800;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: all 0.3s ease;
  color: #94a3b8;
}

.grade-letter.active-A {
  background: linear-gradient(135deg, #16a34a, #22c55e);
  border-color: #22c55e;
  color: white;
  box-shadow: 0 0 15px rgba(34, 197, 94, 0.4);
}

.grade-letter.active-B {
  background: linear-gradient(135deg, #2563eb, #3b82f6);
  border-color: #3b82f6;
  color: white;
  box-shadow: 0 0 15px rgba(59, 130, 246, 0.4);
}

.grade-letter.active-C {
  background: linear-gradient(135deg, #d97706, #f59e0b);
  border-color: #f59e0b;
  color: white;
  box-shadow: 0 0 15px rgba(245, 158, 11, 0.4);
}

.grade-letter.active-D {
  background: linear-gradient(135deg, #ea580c, #f97316);
  border-color: #f97316;
  color: white;
  box-shadow: 0 0 15px rgba(249, 115, 22, 0.4);
}

.grade-letter.active-F {
  background: linear-gradient(135deg, #b91c1c, #dc2626);
  border-color: #ef4444;
  color: white;
  box-shadow: 0 0 15px rgba(239, 68, 68, 0.4);
}

/* Tooltip */
.info-tooltip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  font-size: 0.7rem;
  color: #94a3b8;
  cursor: help;
  margin-left: 0.5rem;
  position: relative;
}

.info-tooltip:hover::after {
  content: attr(data-tip);
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: #1e293b;
  color: #f1f5f9;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  font-size: 0.75rem;
  white-space: nowrap;
  z-index: 10;
  margin-bottom: 8px;
}

/* Responsive */
@media (max-width: 600px) {
  .circle-chart {
    width: 150px;
    height: 150px;
  }
  
  .circle-percentage .number {
    font-size: 2rem;
  }
  
  .grade-letter {
    width: 42px;
    height: 42px;
    font-size: 1.1rem;
  }
  
  .grade-badge {
    font-size: 1rem;
    padding: 0.4rem 1.2rem;
  }
  
  .score-detail-item .value {
    font-size: 1rem;
  }
  
  .metrics-grid {
    gap: 0.75rem;
  }
  
  .metric-card {
    padding: 0.8rem;
    min-width: 80px;
  }
  
  .metric-number {
    font-size: 1.5rem;
  }
}


/* ============================================
   MEDIDOR CIRCULAR MEJORADO (0-150%)
   ============================================ */

/* Contenedor del círculo */
.circle-container {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 1.5rem 0;
  position: relative;
}

/* Círculo base */
.circle-chart {
  width: 220px;
  height: 220px;
  transform: rotate(-90deg);
}

.circle-chart__circle {
  stroke: rgba(255, 255, 255, 0.1);
  stroke-width: 14;
  fill: none;
}

/* Círculo de fondo (marca el 100%) */
.circle-chart__circle-base {
  stroke: rgba(59, 130, 246, 0.2);
  stroke-width: 14;
  fill: none;
  stroke-dasharray: 565.48;
  stroke-dashoffset: 0;
}

/* Círculo de progreso (color dinámico según porcentaje) */
.circle-chart__circle-progress {
  stroke-width: 14;
  fill: none;
  stroke-dasharray: 565.48;
  stroke-dashoffset: 565.48;
  stroke-linecap: round;
  transition: stroke-dashoffset 1.5s ease-out;
  filter: drop-shadow(0 0 12px currentColor);
}

/* Colores según el porcentaje */
.progress-excellent {
  stroke: url(#gradient-excellent);
  filter: drop-shadow(0 0 15px rgba(34, 197, 94, 0.5));
}

.progress-good {
  stroke: url(#gradient-good);
}

.progress-warning {
  stroke: url(#gradient-warning);
}

.progress-danger {
  stroke: url(#gradient-danger);
}

/* Marcas del círculo (para mostrar dónde está el 100%) */
.circle-marks {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.mark-100 {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(calc(360deg * 100 / 150 - 90deg));
  transform-origin: center;
  width: 105%;
  height: 105%;
}

.mark-100::before {
  content: "100%";
  position: absolute;
  top: -8px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.7rem;
  color: #60a5fa;
  background: rgba(0, 0, 0, 0.6);
  padding: 2px 6px;
  border-radius: 20px;
  font-weight: 600;
}

/* Indicador de punta (marca la posición actual) */
.needle {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 4px;
  height: 90px;
  background: linear-gradient(180deg, #ffffff, #60a5fa);
  transform-origin: top center;
  transform: translate(-50%, 0) rotate(0deg);
  border-radius: 4px;
  transition: transform 1.5s ease-out;
  box-shadow: 0 0 8px #60a5fa;
}

.needle::after {
  content: "";
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 16px;
  height: 16px;
  background: radial-gradient(circle, #60a5fa, #3b82f6);
  border-radius: 50%;
  box-shadow: 0 0 10px #60a5fa;
}

/* Porcentaje central */
.circle-percentage {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  z-index: 10;
}

.circle-percentage .number {
  font-size: 3rem;
  font-weight: 800;
  line-height: 1;
  background: linear-gradient(135deg, #ffffff, #60a5fa);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.circle-percentage .label {
  font-size: 0.7rem;
  color: #94a3b8;
  margin-top: 0.25rem;
  letter-spacing: 1px;
}

.circle-percentage .extra-bonus {
  font-size: 0.65rem;
  color: #22c55e;
  margin-top: 0.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

/* Rango de colores por porcentaje */
.range-indicator {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin: 0.5rem 0 1rem;
  flex-wrap: wrap;
}

.range-item {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.7rem;
  padding: 0.2rem 0.6rem;
  border-radius: 20px;
  background: rgba(0, 0, 0, 0.3);
}

.range-color {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.range-color.danger { background: #dc2626; }
.range-color.warning { background: #f59e0b; }
.range-color.good { background: #3b82f6; }
.range-color.excellent { background: #22c55e; }
.range-color.plus { background: #a855f7; }

.range-text {
  color: #94a3b8;
}

/* Badge extra de seguridad */
.extra-security-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.2), rgba(59, 130, 246, 0.1));
  border: 1px solid rgba(168, 85, 247, 0.4);
  border-radius: 40px;
  padding: 0.3rem 1rem;
  margin: 0.5rem auto;
  width: fit-content;
}

.extra-security-badge span {
  font-size: 0.75rem;
  color: #c084fc;
  font-weight: 600;
}

/* Responsive */
@media (max-width: 600px) {
  .circle-chart {
    width: 180px;
    height: 180px;
  }
  
  .circle-percentage .number {
    font-size: 2.2rem;
  }
  
  .needle {
    height: 70px;
  }
}



/* ============================================
   CÍRCULO CON MANECILLA (ESTILO SPEEDTEST)
   ============================================ */

/* Contenedor principal del círculo */
.circle-container {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 1rem 0;
}

/* SVG del círculo */
.circle-chart {
  width: 240px;
  height: 240px;
  display: block;
}

/* Círculo de fondo */
.circle-chart__circle-bg {
  transition: all 0.3s ease;
}

/* Círculo de progreso */
.circle-chart__progress {
  transition: stroke-dashoffset 1.5s cubic-bezier(0.4, 0, 0.2, 1);
  filter: drop-shadow(0 0 8px currentColor);
}

/* MANECILLA (aguja) */
.needle {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 4px;
  height: 80px;
  background: linear-gradient(180deg, #ffffff, #60a5fa);
  transform-origin: top center;
  transform: translate(-50%, 0) rotate(0deg);
  border-radius: 4px;
  transition: transform 1.5s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 0 15px rgba(96, 165, 250, 0.6);
  z-index: 10;
}

/* Círculo en la punta de la manecilla */
.needle-circle {
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 14px;
  height: 14px;
  background: radial-gradient(circle, #ffffff, #60a5fa);
  border-radius: 50%;
  box-shadow: 0 0 12px #60a5fa;
}

/* Centro del círculo (eje de la manecilla) */
.needle-center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 18px;
  height: 18px;
  background: radial-gradient(circle, #ffffff, #3b82f6);
  border-radius: 50%;
  box-shadow: 0 0 15px rgba(59, 130, 246, 0.8);
  z-index: 15;
  border: 2px solid rgba(255, 255, 255, 0.3);
}

/* Porcentaje debajo del círculo */
.percentage-value {
  text-align: center;
  margin-top: 1rem;
}

.percentage-number {
  font-size: 2.5rem;
  font-weight: 800;
  background: linear-gradient(135deg, #ffffff, #60a5fa);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1;
}

.percentage-label {
  font-size: 0.75rem;
  color: #94a3b8;
  letter-spacing: 1px;
  margin-top: 0.25rem;
}

.percentage-extra {
  font-size: 0.7rem;
  color: #22c55e;
  margin-top: 0.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

/* Indicador de rangos debajo del porcentaje */
.range-indicator {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  margin: 1rem 0;
  flex-wrap: wrap;
}

.range-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.65rem;
  padding: 0.2rem 0.6rem;
  border-radius: 20px;
  background: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(4px);
}

.range-color {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.range-color.danger { background: #dc2626; box-shadow: 0 0 4px #dc2626; }
.range-color.warning { background: #f59e0b; box-shadow: 0 0 4px #f59e0b; }
.range-color.good { background: #3b82f6; box-shadow: 0 0 4px #3b82f6; }
.range-color.excellent { background: #22c55e; box-shadow: 0 0 4px #22c55e; }
.range-color.elite { background: #a855f7; box-shadow: 0 0 4px #a855f7; }

.range-text {
  color: #94a3b8;
}

/* Badge extra de seguridad */
.extra-security-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.2), rgba(59, 130, 246, 0.1));
  border: 1px solid rgba(168, 85, 247, 0.4);
  border-radius: 40px;
  padding: 0.3rem 1rem;
  margin: 0.5rem auto;
  width: fit-content;
}

.extra-security-badge span {
  font-size: 0.75rem;
  color: #c084fc;
  font-weight: 600;
}

/* Responsive */
@media (max-width: 600px) {
  .circle-chart {
    width: 200px;
    height: 200px;
  }
  
  .needle {
    height: 65px;
    width: 3px;
  }
  
  .needle-circle {
    width: 10px;
    height: 10px;
    bottom: -6px;
  }
  
  .needle-center {
    width: 14px;
    height: 14px;
  }
  
  .percentage-number {
    font-size: 2rem;
  }
}


/* ============================================
   RESULTADO SIMPLE - BARRA DE PROGRESO
   ============================================ */

/* Contenedor principal del resultado */
#resultadoTest {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(12px);
  border-radius: 28px;
  padding: 1.8rem;
  margin-top: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  animation: fadeInUp 0.5s ease-out;
}

/* Porcentaje grande */
.big-percentage {
  text-align: center;
  margin: 1rem 0;
}

.big-percentage .number {
  font-size: 4.5rem;
  font-weight: 800;
  background:radial-gradient(center center, circle, black, #1162ac);

  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1;
}

.big-percentage .label {
  font-size: 0.9rem;
  color: #94a3b8;
  margin-top: 0.5rem;
  letter-spacing: 2px;
}

.big-percentage .extra {
  font-size: 0.8rem;
  color: #22c55e;
  margin-top: 0.25rem;
}

/* Barra de progreso */
.progress-container {
  margin: 1.5rem 0;
}

.progress-bar-bg {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 40px;
  height: 16px;
  overflow: hidden;
}

.progress-bar-fill {
  background: linear-gradient(90deg, #3b82f6, #22c55e);
  border-radius: 40px;
  height: 100%;
  width: 0%;
  transition: width 1s ease-out;
  box-shadow: 0 0 10px rgba(34, 197, 94, 0.5);
}

/* Etiquetas de la barra */
.progress-labels {
  display: flex;
  justify-content: space-between;
  margin-top: 0.5rem;
  font-size: 0.7rem;
  color: #94a3b8;
}

/* Badge de calificación */
.grade-badge {
  display: inline-block;
  padding: 0.5rem 1.5rem;
  border-radius: 60px;
  font-size: 1.2rem;
  font-weight: 800;
  margin: 0.5rem auto;
  text-align: center;
}

.grade-A { background: linear-gradient(135deg, #16a34a, #22c55e); color: white; }
.grade-B { background: linear-gradient(135deg, #2563eb, #3b82f6); color: white; }
.grade-C { background: linear-gradient(135deg, #d97706, #f59e0b); color: white; }
.grade-D { background: linear-gradient(135deg, #ea580c, #f97316); color: white; }
.grade-F { background: linear-gradient(135deg, #b91c1c, #dc2626); color: white; }

/* Detalles de puntuación */
.score-details {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin: 1.5rem 0;
  flex-wrap: wrap;
}

.score-item {
  text-align: center;
  padding: 0.5rem 1rem;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 16px;
  min-width: 80px;
}

.score-item .value {
  font-size: 1.3rem;
  font-weight: 700;
  color: #60a5fa;
}

.score-item .label {
  font-size: 0.7rem;
  color: #94a3b8;
  margin-top: 0.25rem;
}

/* Nivel de protección */
.protection-level {
  text-align: center;
  margin: 1rem auto;
  padding: 0.5rem 1.2rem;
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.3);
  border-radius: 40px;
  display: inline-block;
  width: auto;
  font-size: 0.85rem;
  font-weight: 600;
  color: #86efac;
}

/* Tarjeta de advertencia */
.warning-card {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  border-radius: 16px;
  padding: 1rem;
  margin: 1rem 0;
  text-align: center;
}

.warning-card h4 {
  color: #f87171;
  margin: 0 0 0.5rem;
  font-size: 0.9rem;
}

.warning-card p {
  color: #cbd5e1;
  font-size: 0.8rem;
  margin: 0;
}

/* Indicador de grados */
.grade-indicator {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  margin: 1rem 0;
}

.grade-letter {
  width: 45px;
  height: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  font-size: 1.2rem;
  font-weight: 800;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #94a3b8;
}

.grade-letter.active-A { background: #16a34a; color: white; }
.grade-letter.active-B { background: #2563eb; color: white; }
.grade-letter.active-C { background: #d97706; color: white; }
.grade-letter.active-D { background: #ea580c; color: white; }
.grade-letter.active-F { background: #dc2626; color: white; }

/* Separador */
.result-divider {
  border: none;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
  margin: 1.5rem 0;
}

/* Sección de títulos */
.section-title {
  margin: 1.5rem 0 1rem;
  font-size: 1rem;
  font-weight: 700;
}

.section-title.success { color: #86efac; }
.section-title.warning { color: #fcd34d; }
.section-title.info { color: #60a5fa; }

/* Tarjetas de cabeceras */
.header-item {
  background: rgba(0, 0, 0, 0.25);
  border-radius: 12px;
  padding: 0.8rem 1rem;
  margin-bottom: 0.75rem;
  border-left: 4px solid;
}

.header-item.success { border-left-color: #22c55e; }
.header-item.warning { border-left-color: #f59e0b; }
.header-item.critical { border-left-color: #ef4444; }
.header-item.info { border-left-color: #3b82f6; }

.header-name {
  font-weight: 700;
  margin-bottom: 0.3rem;
  font-size: 0.9rem;
  color: #ffffff;
}

.header-message {
  font-size: 0.8rem;
  color: #cbd5e1;
  line-height: 1.4;
}

/* CTA final */
.result-cta {
  background: linear-gradient(135deg, rgba(30, 58, 138, 0.8), rgba(37, 99, 235, 0.6));
  border-radius: 16px;
  padding: 1rem;
  text-align: center;
  margin-top: 1.5rem;
}

.result-cta p {
  margin: 0;
  color: white;
  font-size: 0.85rem;
}

.result-cta a {
  color: #facc15;
  text-decoration: none;
  font-weight: 700;
}

/* Animación */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive */
@media (max-width: 600px) {
  #resultadoTest {
    padding: 1rem;
  }
  
  .big-percentage .number {
    font-size: 3rem;
  }
  
  .score-details {
    gap: 0.8rem;
  }
  
  .score-item {
    padding: 0.3rem 0.8rem;
    min-width: 65px;
  }
  
  .score-item .value {
    font-size: 1rem;
  }
  
  .grade-letter {
    width: 38px;
    height: 38px;
    font-size: 1rem;
  }
}

/* ============================================
   RESULTADO SIMPLE - BARRA DE PROGRESO
   ============================================ */

/* Contenedor principal del resultado */
#resultadoTest {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(12px);
  border-radius: 28px;
  padding: 1.8rem;
  margin-top: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  animation: fadeInUp 0.5s ease-out;
}

/* Porcentaje grande */
.big-percentage {
  text-align: center;
  margin: 1rem 0;
}

.big-percentage .number {
  font-size: 4.5rem;
  font-weight: 800;
  background: linear-gradient(135deg, #ffffff, #60a5fa);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1;
}

.big-percentage .label {
  font-size: 0.9rem;
  color: #94a3b8;
  margin-top: 0.5rem;
  letter-spacing: 2px;
}

.big-percentage .extra {
  font-size: 0.8rem;
  color: #22c55e;
  margin-top: 0.25rem;
}

/* Barra de progreso */
.progress-container {
  margin: 1.5rem 0;
}

.progress-bar-bg {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 40px;
  height: 16px;
  overflow: hidden;
}

.progress-bar-fill {
  background: linear-gradient(90deg, #3b82f6, #22c55e);
  border-radius: 40px;
  height: 100%;
  width: 0%;
  transition: width 1s ease-out;
  box-shadow: 0 0 10px rgba(34, 197, 94, 0.5);
}

/* Etiquetas de la barra */
.progress-labels {
  display: flex;
  justify-content: space-between;
  margin-top: 0.5rem;
  font-size: 0.7rem;
  color: #94a3b8;
}

/* Badge de calificación */
.grade-badge {
  display: inline-block;
  padding: 0.5rem 1.5rem;
  border-radius: 60px;
  font-size: 1.2rem;
  font-weight: 800;
  margin: 0.5rem auto;
  text-align: center;
}

.grade-A { background: linear-gradient(135deg, #16a34a, #22c55e); color: white; }
.grade-B { background: linear-gradient(135deg, #2563eb, #3b82f6); color: white; }
.grade-C { background: linear-gradient(135deg, #d97706, #f59e0b); color: white; }
.grade-D { background: linear-gradient(135deg, #ea580c, #f97316); color: white; }
.grade-F { background: linear-gradient(135deg, #b91c1c, #dc2626); color: white; }

/* Detalles de puntuación */
.score-details {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin: 1.5rem 0;
  flex-wrap: wrap;
}

.score-item {
  text-align: center;
  padding: 0.5rem 1rem;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 16px;
  min-width: 80px;
}

.score-item .value {
  font-size: 1.3rem;
  font-weight: 700;
  color: #60a5fa;
}

.score-item .label {
  font-size: 0.7rem;
  color: #94a3b8;
  margin-top: 0.25rem;
}

/* Nivel de protección */
.protection-level {
  text-align: center;
  margin: 1rem auto;
  padding: 0.5rem 1.2rem;
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.3);
  border-radius: 40px;
  display: inline-block;
  width: auto;
  font-size: 0.85rem;
  font-weight: 600;
  color: #86efac;
}

/* Tarjeta de advertencia */
.warning-card {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  border-radius: 16px;
  padding: 1rem;
  margin: 1rem 0;
  text-align: center;
}

.warning-card h4 {
  color: #f87171;
  margin: 0 0 0.5rem;
  font-size: 0.9rem;
}

.warning-card p {
  color: #cbd5e1;
  font-size: 0.8rem;
  margin: 0;
}

/* Indicador de grados */
.grade-indicator {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  margin: 1rem 0;
}

.grade-letter {
  width: 45px;
  height: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  font-size: 1.2rem;
  font-weight: 800;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #94a3b8;
}

.grade-letter.active-A { background: #16a34a; color: white; }
.grade-letter.active-B { background: #2563eb; color: white; }
.grade-letter.active-C { background: #d97706; color: white; }
.grade-letter.active-D { background: #ea580c; color: white; }
.grade-letter.active-F { background: #dc2626; color: white; }

/* Separador */
.result-divider {
  border: none;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
  margin: 1.5rem 0;
}

/* Sección de títulos */
.section-title {
  margin: 1.5rem 0 1rem;
  font-size: 1rem;
  font-weight: 700;
}

.section-title.success { color: #86efac; }
.section-title.warning { color: #fcd34d; }
.section-title.info { color: #60a5fa; }

/* Tarjetas de cabeceras */
.header-item {
  background: rgba(0, 0, 0, 0.25);
  border-radius: 12px;
  padding: 0.8rem 1rem;
  margin-bottom: 0.75rem;
  border-left: 4px solid;
}

.header-item.success { border-left-color: #22c55e; }
.header-item.warning { border-left-color: #f59e0b; }
.header-item.critical { border-left-color: #ef4444; }
.header-item.info { border-left-color: #3b82f6; }

.header-name {
  font-weight: 700;
  margin-bottom: 0.3rem;
  font-size: 0.9rem;
  color: #ffffff;
}

.header-message {
  font-size: 0.8rem;
  color: #cbd5e1;
  line-height: 1.4;
}

/* CTA final */
.result-cta {
  background: linear-gradient(135deg, rgba(30, 58, 138, 0.8), rgba(37, 99, 235, 0.6));
  border-radius: 16px;
  padding: 1rem;
  text-align: center;
  margin-top: 1.5rem;
}

.result-cta p {
  margin: 0;
  color: white;
  font-size: 0.85rem;
}

.result-cta a {
  color: #facc15;
  text-decoration: none;
  font-weight: 700;
}

/* Animación */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive */
@media (max-width: 600px) {
  #resultadoTest {
    padding: 1rem;
  }
  
  .big-percentage .number {
    font-size: 3rem;
  }
  
  .score-details {
    gap: 0.8rem;
  }
  
  .score-item {
    padding: 0.3rem 0.8rem;
    min-width: 65px;
  }
  
  .score-item .value {
    font-size: 1rem;
  }
  
  .grade-letter {
    width: 38px;
    height: 38px;
    font-size: 1rem;
  }
}


/* ============================================
   CÍRCULO DE PORCENTAJE - VERSIÓN FUNCIONAL
   ============================================ */

.circle-wrap {
  margin: 1rem auto;
  width: 180px;
  height: 180px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 50%;
  position: relative;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
}

.circle-wrap .circle {
  width: 100%;
  height: 100%;
  position: relative;
}

.circle-wrap .circle .mask,
.circle-wrap .circle .fill {
  width: 180px;
  height: 180px;
  position: absolute;
  border-radius: 50%;
}

.circle-wrap .circle .mask {
  clip: rect(0px, 180px, 180px, 90px);
}

.circle-wrap .circle .mask .fill {
  clip: rect(0px, 90px, 180px, 0px);
  background: linear-gradient(135deg, #3b82f6, #22c55e);
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  left: 0;
  top: 0;
}

/* Para porcentajes menores a 50% */
.circle-wrap .circle .mask.full {
  display: none;
}

/* Para porcentajes mayores a 50% */
.circle-wrap .circle .mask.half {
  display: block;
}

/* Círculo interior */
.circle-wrap .inside-circle {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 100;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.3);
}

.circle-wrap .inside-circle .percent-number {
  font-size: 2.5rem;
  font-weight: 800;
  background: linear-gradient(135deg, #ffffff, #60a5fa);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1;
}

.circle-wrap .inside-circle .percent-label {
  font-size: 0.7rem;
  color: #94a3b8;
  margin-top: 0.25rem;
  letter-spacing: 1px;
}

/* Responsive */
@media (max-width: 600px) {
  .circle-wrap {
    width: 150px;
    height: 150px;
  }
  
  .circle-wrap .circle .mask,
  .circle-wrap .circle .fill {
    width: 150px;
    height: 150px;
  }
  
  .circle-wrap .circle .mask {
    clip: rect(0px, 150px, 150px, 75px);
  }
  
  .circle-wrap .circle .mask .fill {
    clip: rect(0px, 75px, 150px, 0px);
  }
  
  .circle-wrap .inside-circle {
    width: 125px;
    height: 125px;
  }
  
  .circle-wrap .inside-circle .percent-number {
    font-size: 2rem;
  }
}


.canvas-responsive {
    width: 100%;
    max-width: 400px;
    height: auto;
}

.hidden {
    display: none;
}


/* ============================================
   CÍRCULO DE PORCENTAJE (SIMPLE Y FUNCIONAL)
   ============================================ */

.circle-wrap {
    margin: 1rem auto;
    width: 180px;
    height: 180px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    position: relative;
}

.circle-wrap .circle {
    width: 100%;
    height: 100%;
    position: relative;
}

.circle-wrap .circle .mask,
.circle-wrap .circle .fill {
    width: 180px;
    height: 180px;
    position: absolute;
    border-radius: 50%;
}

.circle-wrap .circle .mask {
    clip: rect(0px, 180px, 180px, 90px);
}

.circle-wrap .circle .mask .fill {
    clip: rect(0px, 90px, 180px, 0px);
    background: linear-gradient(135deg, #3b82f6, #22c55e);
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    left: 0;
    top: 0;
}

.circle-wrap .circle .mask.full {
    display: none;
}

.circle-wrap .circle .mask.half {
    display: block;
}

.circle-wrap .inside-circle {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.circle-wrap .inside-circle .percent-number {
    font-size: 2rem;
    font-weight: 800;
    background: linear-gradient(135deg, #ffffff, #60a5fa);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.circle-wrap .inside-circle .percent-label {
    font-size: 0.7rem;
    color: #94a3b8;
    margin-top: 0.25rem;
}

.percent-number {
    font-size: 2.5rem !important;
    font-weight: 800;
    background: linear-gradient(135deg, #ffffff, #60a5fa);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.percent-label {
    font-size: 0.8rem;
    color: #94a3b8;
    margin-top: 0.25rem;
}

/* Círculo más grande */
.circle-wrap {
    margin: 1rem auto;
    width: 220px;    /* Antes 180px */
    height: 220px;   /* Antes 180px */
}

.circle-wrap .circle .mask,
.circle-wrap .circle .fill {
    width: 220px;
    height: 220px;
}

.circle-wrap .circle .mask {
    clip: rect(0px, 220px, 220px, 110px);
}

.circle-wrap .circle .mask .fill {
    clip: rect(0px, 110px, 220px, 0px);
}

.circle-wrap .inside-circle {
    width: 185px;
    height: 185px;
}

.circle-wrap .inside-circle .percent-number {
    font-size: 2.5rem;
}

/* ============================================
   CÍRCULO DE PORCENTAJE (FUNCIONAL)
   ============================================ */

.circle-wrap {
    margin: 1rem auto;
    width: 180px;
    height: 180px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    position: relative;
}

.circle-wrap .circle {
    width: 100%;
    height: 100%;
    position: relative;
}

.circle-wrap .circle .mask,
.circle-wrap .circle .fill {
    width: 180px;
    height: 180px;
    position: absolute;
    border-radius: 50%;
}

.circle-wrap .circle .mask {
    clip: rect(0px, 180px, 180px, 90px);
}

.circle-wrap .circle .mask .fill {
    clip: rect(0px, 90px, 180px, 0px);
    background: linear-gradient(135deg, #3b82f6, #22c55e);
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    left: 0;
    top: 0;
    transition: transform 0.5s ease-out;
}

/* Cuando el porcentaje es >50%, mostramos el mask full */
.circle-wrap .circle .mask.full {
    display: block;
}

/* Cuando el porcentaje es <50%, ocultamos el mask full */
.circle-wrap .circle .mask.full.hidden {
    display: none;
}

.circle-wrap .circle .mask.half {
    display: block;
}

/* Círculo interior (texto) */
.circle-wrap .inside-circle {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.3);
    z-index: 10;
}

.circle-wrap .inside-circle .percent-number {
    font-size: 2rem;
    font-weight: 800;
    background: linear-gradient(135deg, #ffffff, #60a5fa);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    line-height: 1;
}

.circle-wrap .inside-circle .percent-label {
    font-size: 0.7rem;
    color: #94a3b8;
    margin-top: 0.25rem;
    letter-spacing: 1px;
}

/* Colores según calificación */
.circle-wrap[data-grade="A"] .mask .fill {
    background: linear-gradient(135deg, #16a34a, #22c55e);
}

.circle-wrap[data-grade="B"] .mask .fill {
    background: linear-gradient(135deg, #2563eb, #3b82f6);
}

.circle-wrap[data-grade="C"] .mask .fill {
    background: linear-gradient(135deg, #d97706, #f59e0b);
}

.circle-wrap[data-grade="D"] .mask .fill {
    background: linear-gradient(135deg, #ea580c, #f97316);
}

.circle-wrap[data-grade="F"] .mask .fill {
    background: linear-gradient(135deg, #b91c1c, #dc2626);
}

/* Responsive */
@media (max-width: 600px) {
    .circle-wrap {
        width: 150px;
        height: 150px;
    }
    .circle-wrap .circle .mask,
    .circle-wrap .circle .fill {
        width: 150px;
        height: 150px;
    }
    .circle-wrap .circle .mask {
        clip: rect(0px, 150px, 150px, 75px);
    }
    .circle-wrap .circle .mask .fill {
        clip: rect(0px, 75px, 150px, 0px);
    }
    .circle-wrap .inside-circle {
        width: 125px;
        height: 125px;
    }
    .circle-wrap .inside-circle .percent-number {
        font-size: 1.5rem;
    }
}


.circle-wrap {
    width: 180px;
    height: 180px;
    margin: 1rem auto;
    position: relative;
}

.circle-wrap .circle {
    width: 100%;
    height: 100%;
    position: relative;
}

.circle-wrap .mask {
    width: 100%;
    height: 100%;
    position: absolute;
    border-radius: 50%;
    clip: rect(0px, 90px, 180px, 0px);
}

.circle-wrap .fill {
    width: 100%;
    height: 100%;
    position: absolute;
    border-radius: 50%;
    clip: rect(0px, 180px, 180px, 90px);
    background: linear-gradient(135deg, #3b82f6, #22c55e);
}

.circle-wrap .mask.full {
    clip: rect(0px, 180px, 180px, 90px);
}

.circle-wrap .mask.full .fill {
    clip: rect(0px, 90px, 180px, 0px);
    transform: rotate(180deg);
}


/* ============================================
   CÍRCULO DE PORCENTAJE - VERSIÓN CORREGIDA
   ============================================ */

.circle-wrap {
    width: 180px;
    height: 180px;
    margin: 1rem auto;
    position: relative;
    border-radius: 50%;
}

.circle-wrap .circle {
    width: 100%;
    height: 100%;
    position: relative;
}

/* Máscaras para el círculo */
.circle-wrap .mask {
    width: 100%;
    height: 100%;
    position: absolute;
    border-radius: 50%;
    overflow: hidden;
}

.circle-wrap .mask.full {
    clip: rect(0px, 180px, 180px, 90px);
}

.circle-wrap .mask.half {
    clip: rect(0px, 90px, 180px, 0px);
}

/* Relleno del círculo */
.circle-wrap .fill {
    width: 100%;
    height: 100%;
    position: absolute;
    border-radius: 50%;
    background: linear-gradient(135deg, #3b82f6, #22c55e);
}

.circle-wrap .mask.full .fill {
    clip: rect(0px, 90px, 180px, 0px);
}

.circle-wrap .mask.half .fill {
    clip: rect(0px, 180px, 180px, 90px);
}

/* Círculo interior (donde va el texto) */
.circle-wrap .inside-circle {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    z-index: 10;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
}

/* Texto dentro del círculo */
.circle-wrap .inside-circle .percent-number {
    font-size: 2.2rem;
    font-weight: 800;
    background: linear-gradient(135deg, #ffffff, #60a5fa);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    line-height: 1;
}

.circle-wrap .inside-circle .percent-label {
    font-size: 0.7rem;
    color: #94a3b8;
    margin-top: 0.25rem;
    letter-spacing: 1px;
}

/* Colores según calificación */
.circle-wrap[data-grade="A"] .fill {
    background: linear-gradient(135deg, #16a34a, #22c55e);
}

.circle-wrap[data-grade="B"] .fill {
    background: linear-gradient(135deg, #2563eb, #3b82f6);
}

.circle-wrap[data-grade="C"] .fill {
    background: linear-gradient(135deg, #d97706, #f59e0b);
}

.circle-wrap[data-grade="D"] .fill {
    background: linear-gradient(135deg, #ea580c, #f97316);
}

.circle-wrap[data-grade="F"] .fill {
    background: linear-gradient(135deg, #b91c1c, #dc2626);
}

/* Responsive */
@media (max-width: 600px) {
    .circle-wrap {
        width: 150px;
        height: 150px;
    }
    .circle-wrap .mask.full {
        clip: rect(0px, 150px, 150px, 75px);
    }
    .circle-wrap .mask.half {
        clip: rect(0px, 75px, 150px, 0px);
    }
    .circle-wrap .inside-circle {
        width: 125px;
        height: 125px;
    }
    .circle-wrap .inside-circle .percent-number {
        font-size: 1.8rem;
    }
}



/* ============================================
   CENTRADO Y MEJORAS VISUALES DEL RESULTADO
   ============================================ */

/* Contenedor principal del resultado */
#resultadoTest {
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(12px);
    border-radius: 28px;
    padding: 1.5rem;
    margin-top: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

/* Contenedor del velocímetro */
.gauge-container {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 1rem auto;
}

/* Canvas del velocímetro */
#speedCanvas {
    display: block;
    margin: 0 auto;
    max-width: 100%;
    height: auto;
}

/* Valor numérico dentro del velocímetro */
.speed-value {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 10;
    width: 100%;
}

.speed-number {
    font-size: 3rem;
    font-weight: 800;
    background: linear-gradient(135deg, #ffffff, #60a5fa);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    line-height: 1;
}

.speed-unit {
    font-size: 1.5rem;
    font-weight: 500;
    color: #94a3b8;
    margin-left: 4px;
}

.percent-badge {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 500;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    padding: 0.2rem 0.8rem;
    border-radius: 40px;
    color: #A78BFA;
    margin-top: 0.25rem;
}

/* Detalles de puntuación - centrados */
.score-details {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin: 1.5rem 0;
    flex-wrap: wrap;
}

.score-item {
    text-align: center;
    padding: 0.6rem 1rem;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 16px;
    min-width: 85px;
}

.score-item .value {
    font-size: 1.3rem;
    font-weight: 700;
    color: #60a5fa;
}

.score-item .label {
    font-size: 0.7rem;
    color: #94a3b8;
    margin-top: 0.25rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Badge de calificación */
.grade-badge {
    display: inline-block;
    padding: 0.5rem 1.5rem;
    border-radius: 60px;
    font-size: 1.2rem;
    font-weight: 800;
    margin: 0.5rem auto;
}

.grade-A { background: linear-gradient(135deg, #16a34a, #22c55e); color: white; }
.grade-B { background: linear-gradient(135deg, #2563eb, #3b82f6); color: white; }
.grade-C { background: linear-gradient(135deg, #d97706, #f59e0b); color: white; }
.grade-D { background: linear-gradient(135deg, #ea580c, #f97316); color: white; }
.grade-F { background: linear-gradient(135deg, #b91c1c, #dc2626); color: white; }

/* Nivel de protección */
.protection-level {
    text-align: center;
    margin: 1rem auto;
    padding: 0.5rem 1.2rem;
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.3);
    border-radius: 40px;
    display: inline-block;
    font-size: 0.85rem;
    font-weight: 600;
    color: #86efac;
}

/* Centrar texto */
.text-center {
    text-align: center;
}

/* Separador */
.result-divider {
    border: none;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    margin: 1.5rem 0;
}

/* Tarjeta de advertencia */
.warning-card {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 16px;
    padding: 1rem;
    margin: 1rem 0;
    text-align: center;
}

.warning-card h4 {
    color: #f87171;
    margin: 0 0 0.5rem;
    font-size: 0.9rem;
}

.warning-card p {
    color: #cbd5e1;
    font-size: 0.8rem;
    margin: 0;
}

/* Indicador de grados A/B/C/D/F */
.grade-indicator {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    margin: 1rem 0;
}

.grade-letter {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    font-size: 1.2rem;
    font-weight: 800;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #94a3b8;
    transition: all 0.3s ease;
}

.grade-letter.active-A { background: #16a34a; color: white; }
.grade-letter.active-B { background: #2563eb; color: white; }
.grade-letter.active-C { background: #d97706; color: white; }
.grade-letter.active-D { background: #ea580c; color: white; }
.grade-letter.active-F { background: #dc2626; color: white; }

/* Tarjetas de cabeceras */
.header-item {
    background: rgba(0, 0, 0, 0.25);
    border-radius: 12px;
    padding: 0.8rem 1rem;
    margin-bottom: 0.75rem;
    border-left: 4px solid;
    text-align: left;
}

.header-item.success { border-left-color: #22c55e; }
.header-item.warning { border-left-color: #f59e0b; }
.header-item.critical { border-left-color: #ef4444; }
.header-item.info { border-left-color: #3b82f6; }

.header-name {
    font-weight: 700;
    margin-bottom: 0.3rem;
    font-size: 0.9rem;
    color: #ffffff;
}

.header-message {
    font-size: 0.8rem;
    color: #cbd5e1;
    line-height: 1.4;
}

/* Sección de títulos */
.section-title {
    margin: 1.5rem 0 1rem;
    font-size: 1rem;
    font-weight: 700;
    text-align: left;
}

.section-title.success { color: #86efac; }
.section-title.warning { color: #fcd34d; }
.section-title.info { color: #60a5fa; }

/* CTA final */
.result-cta {
    background: linear-gradient(135deg, rgba(30, 58, 138, 0.8), rgba(37, 99, 235, 0.6));
    border-radius: 16px;
    padding: 1rem;
    text-align: center;
    margin-top: 1.5rem;
}

.result-cta p {
    margin: 0;
    color: white;
    font-size: 0.85rem;
}

.result-cta a {
    color: #facc15;
    text-decoration: none;
    font-weight: 700;
}

.success-cta {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.2), rgba(22, 163, 74, 0.1));
    border: 1px solid rgba(34, 197, 94, 0.3);
}

/* Botones de compartir */
#shareButtons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.share-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.2rem;
    border-radius: 40px;
    font-weight: 600;
    font-size: 0.85rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.share-btn.whatsapp {
    background: #25D366;
    color: white;
}

.share-btn.email {
    background: #3b82f6;
    color: white;
}

.share-btn:hover {
    transform: translateY(-2px);
    filter: brightness(1.05);
}

/* Responsive móvil */
@media (max-width: 600px) {
    #resultadoTest {
        padding: 1rem;
    }
    
    .speed-number {
        font-size: 3rem;
    }
    
    .score-item {
        padding: 0.4rem 0.8rem;
        min-width: 70px;
    }
    
    .score-item .value {
        font-size: 1rem;
    }
    
    .grade-letter {
        width: 38px;
        height: 38px;
        font-size: 1rem;
    }
    
    .grade-badge {
        font-size: 1rem;
        padding: 0.4rem 1.2rem;
    }
}


.toast-notification {
    position: fixed;
    bottom: 20px;
    right: 20px;
    padding: 10px 20px;
    border-radius: 40px;
    font-size: 0.85rem;
    z-index: 9999;
    animation: fadeInUp 0.3s ease;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}
.toast-notification.success { background: #22c55e; color: white; }
.toast-notification.info { background: #facc15; color: #1e293b; }
.toast-notification.error { background: #ef4444; color: white; }












/* Tarjetas de seguridad nuevas */
.card-seguridad {
  background: #ffffff;
  border-radius: 16px;
  margin: 20px 0;
  padding: 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  border: 1px solid #e9ecef;
  overflow: hidden;
}

.card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  background: #f8f9fa;
  border-bottom: 1px solid #e9ecef;
}

.card-header .icon {
  font-size: 24px;
}

.card-header h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  color: #1a1a2e;
}

.card-content {
  padding: 20px;
}

.loading-state {
  color: #6c757d;
  font-style: italic;
  padding: 20px;
  text-align: center;
}

/* Lista de puertos */
.ports-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 15px;
}

.port-badge {
  background: #e7f1ff;
  color: #004e92;
  padding: 6px 14px;
  border-radius: 20px;
  font-family: monospace;
  font-size: 14px;
  font-weight: 600;
}

/* Vulnerabilidades */
.vuln-item {
  background: #fff3cd;
  border-left: 4px solid #ffc107;
  padding: 10px 15px;
  margin: 10px 0;
  border-radius: 8px;
  font-size: 14px;
}

.vuln-code {
  font-family: monospace;
  font-weight: bold;
  color: #856404;
}

/* SSL Info */
.ssl-info {
  background: #e8f5e9;
  padding: 15px;
  border-radius: 12px;
  margin-bottom: 15px;
}

.ssl-field {
  margin: 8px 0;
  font-size: 14px;
}

.ssl-label {
  font-weight: 600;
  color: #2e7d32;
}

/* Botón VirusTotal */
.btn-virustotal {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #0033cc;
  color: white;
  padding: 12px 24px;
  border-radius: 40px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  margin: 10px 0;
}

.btn-virustotal:hover {
  background: #002299;
  transform: translateY(-2px);
}

.warning-box {
  background: #fff3cd;
  border: 1px solid #ffecb5;
  border-radius: 12px;
  padding: 15px;
  margin: 15px 0;
  font-size: 14px;
  color: #856404;
}

.error-box {
  background: #f8d7da;
  border: 1px solid #f5c6cb;
  border-radius: 12px;
  padding: 15px;
  color: #721c24;
}

/* Botón para ver más certificados */
.details-btn {
  background: none;
  border: none;
  color: #0066cc;
  cursor: pointer;
  font-size: 14px;
  margin-top: 10px;
  padding: 5px 0;
}

/* ============================================
   ESTILOS PARA RESULTADOS DE SEGURIDAD AVANZADA
   ============================================ */

/* Contenedor principal de resultados */
#resultadosSeguridad {
    margin-top: 30px;
    animation: fadeInUp 0.5s ease-out;
}

/* Tarjetas de seguridad (mismo estilo que panel-3) */
.card-seguridad {
    background: #ffffff;
    border-radius: 24px;
    margin: 20px 0;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #eef2ff;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card-seguridad:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
}

/* Header de las tarjetas */
.card-seguridad .card-header {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    padding: 16px 24px;
    border-bottom: 2px solid #e2e8f0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.card-seguridad .card-header .icon {
    font-size: 28px;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}

.card-seguridad .card-header h3 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
    color: #1e293b;
    letter-spacing: -0.3px;
}

/* Contenido de las tarjetas */
.card-seguridad .card-content {
    padding: 20px 24px;
}

/* Loading state */
.loading-state {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 30px;
    color: #64748b;
    font-size: 0.95rem;
}

.loading-state::before {
    content: "";
    width: 20px;
    height: 20px;
    border: 2px solid #e2e8f0;
    border-top-color: #3b82f6;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Lista de puertos */
.ports-list {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 20px;
}

.port-badge {
    background: linear-gradient(135deg, #e0e7ff 0%, #c7d2fe 100%);
    color: #3730a3;
    padding: 8px 18px;
    border-radius: 40px;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

/* Vulnerabilidades */
.vuln-item {
    background: #fef3c7;
    border-left: 4px solid #f59e0b;
    padding: 12px 16px;
    margin: 12px 0;
    border-radius: 12px;
    font-size: 13px;
    color: #92400e;
}

.vuln-code {
    font-family: monospace;
    font-weight: bold;
    background: #fffbeb;
    padding: 2px 6px;
    border-radius: 6px;
    display: inline-block;
    margin-bottom: 6px;
}

/* SSL Info */
.ssl-info {
    background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
    padding: 18px;
    border-radius: 16px;
    margin-bottom: 16px;
    border: 1px solid #a7f3d0;
}

.ssl-field {
    margin: 10px 0;
    font-size: 14px;
    line-height: 1.5;
}

.ssl-label {
    font-weight: 700;
    color: #065f46;
    display: inline-block;
    min-width: 100px;
}

/* Botón de detalles */
.details-btn {
    background: none;
    border: none;
    color: #3b82f6;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    padding: 8px 12px;
    margin-top: 8px;
    border-radius: 20px;
    transition: all 0.2s;
}

.details-btn:hover {
    background: #eff6ff;
    color: #1d4ed8;
}

/* Warning y Error boxes */
.warning-box {
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-radius: 16px;
    padding: 16px;
    color: #92400e;
    font-size: 14px;
}

.error-box {
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 16px;
    padding: 16px;
    color: #991b1b;
    font-size: 14px;
}

/* Botón VirusTotal (mismo estilo que el botón de test) */
.btn-virustotal {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    color: white;
    padding: 12px 28px;
    border-radius: 40px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    margin: 10px 0;
    border: none;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.btn-virustotal:hover {
    background: linear-gradient(135deg, #334155 0%, #1e293b 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* Animación de entrada */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .card-seguridad .card-header {
        padding: 12px 16px;
    }
    
    .card-seguridad .card-header h3 {
        font-size: 1rem;
    }
    
    .card-seguridad .card-content {
        padding: 16px;
    }
    
    .ports-list {
        gap: 8px;
    }
    
    .port-badge {
        padding: 6px 12px;
        font-size: 12px;
    }
    
    .ssl-field {
        font-size: 12px;
    }
    
    .ssl-label {
        min-width: 80px;
    }
}






/* ============================================
   ESTILOS PARA RESULTADOS DE SEGURIDAD AVANZADA
   (Mismo estilo que las tarjetas de cabeceras)
   ============================================ */

/* Contenedor principal */
#resultadosSeguridad {
    margin-top: 2rem;
}

/* Tarjetas individuales (mismo estilo que tus .card-3 o similar) */
.card-seguridad {
    background: #f8f9fa;
    border-radius: 1rem;
    margin-bottom: 1.5rem;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    border: 1px solid #e9ecef;
    transition: box-shadow 0.2s ease;
}

.card-seguridad:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* Header de la tarjeta (igual que en tu imagen) */
.card-seguridad .card-header {
    background: #ffffff;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #e9ecef;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.card-seguridad .card-header .icon {
    font-size: 1.5rem;
}

.card-seguridad .card-header h3 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: #212529;
}

/* Contenido de la tarjeta */
.card-seguridad .card-content {
    padding: 1.25rem 1.5rem;
    background: #ffffff;
}

/* Loading state */
.loading-state {
    color: #6c757d;
    font-style: italic;
    padding: 1rem 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.loading-state::before {
    content: "⏳";
    font-style: normal;
}

/* Lista de puertos (badges como en tu imagen) */
.ports-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.port-badge {
    background: #e9ecef;
    color: #495057;
    padding: 0.25rem 0.75rem;
    border-radius: 2rem;
    font-size: 0.8rem;
    font-family: monospace;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

/* Vulnerabilidades */
.vuln-item {
    background: #fff3cd;
    border-left: 3px solid #ffc107;
    padding: 0.75rem 1rem;
    margin: 0.75rem 0;
    border-radius: 0.5rem;
    font-size: 0.85rem;
    color: #856404;
}

.vuln-code {
    font-family: monospace;
    font-weight: bold;
    background: #fffbeb;
    padding: 0.125rem 0.375rem;
    border-radius: 0.25rem;
    display: inline-block;
    margin-bottom: 0.25rem;
}

/* Información SSL */
.ssl-info {
    background: #e8f4f8;
    padding: 1rem;
    border-radius: 0.75rem;
    margin-bottom: 1rem;
    border: 1px solid #cce5f0;
}

.ssl-field {
    margin: 0.5rem 0;
    font-size: 0.85rem;
    line-height: 1.4;
}

.ssl-label {
    font-weight: 600;
    color: #0c5460;
    display: inline-block;
    min-width: 90px;
}

/* Botón de detalles (certificados adicionales) */
.details-btn {
    background: none;
    border: none;
    color: #0066cc;
    cursor: pointer;
    font-size: 0.8rem;
    padding: 0.25rem 0.5rem;
    margin-top: 0.5rem;
    border-radius: 0.25rem;
}

.details-btn:hover {
    background: #e9ecef;
    text-decoration: underline;
}

/* Cajas de advertencia y error */
.warning-box {
    background: #fff3cd;
    border: 1px solid #ffeeba;
    border-radius: 0.5rem;
    padding: 1rem;
    color: #856404;
    font-size: 0.85rem;
}

.error-box {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    border-radius: 0.5rem;
    padding: 1rem;
    color: #721c24;
    font-size: 0.85rem;
}

/* Botón VirusTotal (estilo similar a tus botones) */
.btn-virustotal {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #212529;
    color: white;
    padding: 0.5rem 1.25rem;
    border-radius: 2rem;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    transition: background 0.2s ease;
    margin: 0.5rem 0;
}

.btn-virustotal:hover {
    background: #000000;
    text-decoration: none;
    color: white;
}

/* Responsive */
@media (max-width: 768px) {
    .card-seguridad .card-header {
        padding: 0.75rem 1rem;
    }
    
    .card-seguridad .card-header h3 {
        font-size: 1rem;
    }
    
    .card-seguridad .card-content {
        padding: 1rem;
    }
    
    .ssl-label {
        min-width: 75px;
    }
}


/* ============================================
   ESTILOS PARA RESULTADOS DE SEGURIDAD AVANZADA
   (Mismo estilo que tus tarjetas de cabeceras - fondo gris claro)
   ============================================ */

/* Contenedor principal */
#resultadosSeguridad {
    margin-top: 2rem;
}

/* Tarjetas individuales - mismo estilo que en tu imagen */
.card-seguridad {
    background: #f5f7fa;
    border-radius: 1rem;
    margin-bottom: 1.5rem;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    transition: box-shadow 0.2s ease;
}

.card-seguridad:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

/* Header de la tarjeta (igual que en tu imagen) */
.card-seguridad .card-header {
    background: #0c0c0c;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid #e9ecef;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.card-seguridad .card-header .icon {
    font-size: 1.4rem;
}

.card-seguridad .card-header h3 {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    color: #1e293b;
}

/* Contenido de la tarjeta */
.card-seguridad .card-content {
    padding: 1.25rem;
    background: #0c0c0c;
    color: #334155;
    font-size: 0.9rem;
    line-height: 1.5;
}

/* Loading state */
.loading-state {
    color: #64748b;
    font-style: italic;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.loading-state::before {
    content: "⏳";
    font-style: normal;
}

/* Lista de puertos - badges estilo como en tu imagen */
.ports-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.port-badge {
    background: #0c0c0c;
    color: #1e293b;
    padding: 0.3rem 0.8rem;
    border-radius: 2rem;
    font-size: 0.8rem;
    font-family: monospace;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

/* Vulnerabilidades - estilo warning como en tu imagen */
.vuln-item {
    background: #fef3c7;
    border-left: 3px solid #f59e0b;
    padding: 0.75rem 1rem;
    margin: 0.75rem 0;
    border-radius: 0.5rem;
    font-size: 0.85rem;
    color: #92400e;
}

.vuln-code {
    font-family: monospace;
    font-weight: bold;
    background: #fffbeb;
    padding: 0.125rem 0.375rem;
    border-radius: 0.25rem;
    display: inline-block;
    margin-bottom: 0.25rem;
    font-size: 0.8rem;
}

/* Información SSL - estilo como en tu imagen */
.ssl-info {
    background: #e6f7ec;
    padding: 1rem;
    border-radius: 0.75rem;
    margin-bottom: 1rem;
    border: 1px solid #c8e6d9;
}

.ssl-field {
    margin: 0.5rem 0;
    font-size: 0.85rem;
    line-height: 1.4;
}

.ssl-label {
    font-weight: 600;
    color: #166534;
    display: inline-block;
    min-width: 95px;
}

/* Botón de detalles (certificados adicionales) */
.details-btn {
    background: none;
    border: none;
    color: #3b82f6;
    cursor: pointer;
    font-size: 0.8rem;
    padding: 0.25rem 0.5rem;
    margin-top: 0.5rem;
    border-radius: 0.375rem;
    transition: background 0.2s;
}

.details-btn:hover {
    background: #e2e8f0;
    text-decoration: underline;
}

/* Cajas de advertencia y error */
.warning-box {
    background: #fef3c7;
    border: 1px solid #fde68a;
    border-radius: 0.75rem;
    padding: 1rem;
    color: #92400e;
    font-size: 0.85rem;
}

.error-box {
    background: #fee2e2;
    border: 1px solid #fecaca;
    border-radius: 0.75rem;
    padding: 1rem;
    color: #991b1b;
    font-size: 0.85rem;
}

/* Botón VirusTotal - estilo consistente con tu diseño */
.btn-virustotal {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #1e293b;
    color: white;
    padding: 0.5rem 1.25rem;
    border-radius: 2rem;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    transition: background 0.2s ease;
    margin: 0.5rem 0;
}

.btn-virustotal:hover {
    background: #0f172a;
    text-decoration: none;
    color: white;
}

/* Texto de ayuda */
.card-content small {
    color: #64748b;
    font-size: 0.7rem;
}

/* Listas dentro del contenido */
.card-content ul {
    margin: 0.5rem 0;
    padding-left: 1.25rem;
}

.card-content li {
    margin: 0.25rem 0;
}

/* Responsive */
@media (max-width: 768px) {
    .card-seguridad .card-header {
        padding: 0.75rem 1rem;
    }
    
    .card-seguridad .card-header h3 {
        font-size: 0.9rem;
    }
    
    .card-seguridad .card-content {
        padding: 1rem;
    }
    
    .ssl-label {
        min-width: 80px;
    }
    
    .port-badge {
        padding: 0.2rem 0.6rem;
        font-size: 0.7rem;
    }
}



/* ============================================
   ESTILOS PARA RESULTADOS DE SEGURIDAD AVANZADA
   (Mismo estilo oscuro que tu test - fondo azul degradado)
   ============================================ */

/* Contenedor principal */
#resultadosSeguridad.hidden3 {
    display: none;
}

#resultadosSeguridad {
    margin-top: 2rem;
}

/* Tarjetas con fondo oscuro degradado */
.card-seguridad3 {
    background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 100%);
    border-radius: 1rem;
    margin-bottom: 1.5rem;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card-seguridad3:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    border-color: rgba(59, 130, 246, 0.3);
}

/* Header de la tarjeta */
.card-header3 {
    background: rgba(15, 23, 42, 0.8);
    padding: 1rem 1.25rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.card-header3 .icon3 {
    font-size: 1.4rem;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
}

.card-header3 h3 {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    color: #ffffff;
    letter-spacing: -0.3px;
}

/* Contenido de la tarjeta */
.card-content3 {
    padding: 1.25rem;
    background: rgba(15, 23, 42, 0.4);
    color: #e2e8f0;
    font-size: 0.9rem;
    line-height: 1.5;
}

/* Loading state */
.loading-state3 {
    color: #94a3b8;
    font-style: italic;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.loading-state3::before {
    content: "⏳";
    font-style: normal;
}

/* Lista de puertos - badges estilo moderno */
.ports-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.port-badge {
    background: rgba(30, 41, 59, 0.8);
    color: #38bdf8;
    padding: 0.3rem 0.8rem;
    border-radius: 2rem;
    font-size: 0.8rem;
    font-family: monospace;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    border: 1px solid rgba(56, 189, 248, 0.2);
}

/* Vulnerabilidades */
.vuln-item {
    background: rgba(245, 158, 11, 0.1);
    border-left: 3px solid #f59e0b;
    padding: 0.75rem 1rem;
    margin: 0.75rem 0;
    border-radius: 0.5rem;
    font-size: 0.85rem;
    color: #fbbf24;
}

.vuln-code {
    font-family: monospace;
    font-weight: bold;
    background: rgba(0, 0, 0, 0.3);
    padding: 0.125rem 0.375rem;
    border-radius: 0.25rem;
    display: inline-block;
    margin-bottom: 0.25rem;
    font-size: 0.8rem;
    color: #fcd34d;
}

/* Información SSL */
.ssl-info {
    background: #070738;
    padding: 1rem;
    border-radius: 0.75rem;
    margin-bottom: 1rem;
    border: 1px solid rgba(34, 197, 94, 0.2);
}

.ssl-field {
    margin: 0.5rem 0;
    font-size: 0.85rem;
    line-height: 1.4;
}

.ssl-label {
    font-weight: 600;
    color: #4ade80;
    display: inline-block;
    min-width: 95px;
}

/* Botón de detalles (certificados adicionales) */
.details-btn {
    background: rgba(59, 130, 246, 0.2);
    border: none;
    color: #60a5fa;
    cursor: pointer;
    font-size: 0.8rem;
    padding: 0.35rem 0.7rem;
    margin-top: 0.5rem;
    border-radius: 1.5rem;
    transition: all 0.2s;
}

.details-btn:hover {
    background: rgba(59, 130, 246, 0.4);
    color: #93c5fd;
}

/* Cajas de advertencia y error */
.warning-box {
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.3);
    border-radius: 0.75rem;
    padding: 1rem;
    color: #fbbf24;
    font-size: 0.85rem;
}

.error-box {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 0.75rem;
    padding: 1rem;
    color: #f87171;
    font-size: 0.85rem;
}

/* Botón VirusTotal - estilo consistente */
.btn-virustotal {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    color: white;
    padding: 0.5rem 1.25rem;
    border-radius: 2rem;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.2s ease;
    margin: 0.5rem 0;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-virustotal:hover {
    background: linear-gradient(135deg, #334155 0%, #1e293b 100%);
    transform: translateY(-2px);
    text-decoration: none;
    color: white;
}

/* Texto de ayuda */
.card-content3 small {
    color: #64748b;
    font-size: 0.7rem;
}

/* Listas dentro del contenido */
.card-content3 ul {
    margin: 0.5rem 0;
    padding-left: 1.25rem;
}

.card-content3 li {
    margin: 0.25rem 0;
    color: #cbd5e1;
}

/* Enlaces dentro del contenido */
.card-content3 a {
    color: #60a5fa;
    text-decoration: none;
}

.card-content3 a:hover {
    text-decoration: underline;
    color: #93c5fd;
}

/* Responsive */
@media (max-width: 768px) {
    .card-header3 {
        padding: 0.75rem 1rem;
    }
    
    .card-header3 h3 {
        font-size: 0.9rem;
    }
    
    .card-content3 {
        padding: 1rem;
    }
    
    .ssl-label {
        min-width: 80px;
    }
    
    .port-badge {
        padding: 0.2rem 0.6rem;
        font-size: 0.7rem;
    }
}

/* Animación de entrada */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

#resultadosSeguridad {
    animation: fadeInUp 0.5s ease-out;
}



/* ============================================
   RESPONSIVE TEXT - TAMAÑOS ADAPTABLES PARA MÓVILES
   ============================================ */

/* Reset y base responsiva */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 100%; /* 16px base */
}

body {
    /* Texto fluido: mínimo 16px en móvil, máximo 18px en desktop */
    font-size: clamp(1rem, 0.9rem + 0.5vw, 1.125rem);
    line-height: 1.6;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Títulos responsivos */
h1, .hero-copy h1 {
    font-size: clamp(1.75rem, 1rem + 4vw, 3rem);
    line-height: 1.2;
    margin-bottom: 1rem;
}

h2, .panel-3 h2, .card-3 h2 {
    font-size: clamp(1.4rem, 0.8rem + 3vw, 2.2rem);
    margin-bottom: 0.75rem;
}

h3, .card-header3 h3, .service-3 h3 {
    font-size: clamp(1.1rem, 0.7rem + 2vw, 1.5rem);
}

h4, .faq-item-3 h4 {
    font-size: clamp(1rem, 0.6rem + 1.5vw, 1.25rem);
}

/* Párrafos y textos generales */
p, .hero-lead, .kpi-3 span, .card-content3 {
    font-size: clamp(0.9rem, 0.8rem + 0.5vw, 1rem);
    max-width: 70ch;
    line-height: 1.6;
}

/* Textos pequeños (chips, badges, etc.) */
.chip-3, .port-badge, .details-btn, .security-note-3, .fine-3 {
    font-size: clamp(1.75rem, 1.7rem + 1.3vw, 1.85rem);
}

/* Inputs y botones */
input, button, .btn, .btn-virustotal {
    font-size: clamp(0.9rem, 0.8rem + 0.3vw, 1rem);
    padding: 0.8rem 1.2rem;
}

/* Contenedor responsivo */
.container-modern, .container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: clamp(1rem, 3vw, 2rem);
}

/* Ajustes específicos para móviles (pantallas < 768px) */
@media (max-width: 768px) {
    body {
        font-size: 16px; /* Tamaño base fijo para móvil */
    }
    
    .hero-grid-3 {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .flex-inputs-3 {
        flex-direction: column;
        gap: 0.8rem;
    }
    
    .flex-inputs-3 input, 
    .flex-inputs-3 button {
        width: 100%;
    }
    
    .services-3, .grid-2-3, .steps-3 {
        flex-direction: column;
    }
    
    .card-3, .panel-3, .card-seguridad3 {
        padding: 1rem;
    }
    
    /* Mejorar legibilidad de textos largos */
    p, .hero-lead {
        font-size: 15px;
        line-height: 1.5;
    }
    
    /* Títulos más grandes en móvil */
    h1 {
        font-size: 28px;
    }
    
    h2 {
        font-size: 22px;
    }
}

/* Ajustes para pantallas muy pequeñas (menos de 480px) */
@media (max-width: 480px) {
    .container-modern {
        width: 95%;
        padding: 0.8rem;
    }
    
    .hero-copy h1 {
        font-size: 24px;
    }
    
    p, .hero-lead {
        font-size: 14px;
    }
    
    .chip-3 {
        font-size: 11px;
        padding: 4px 8px;
    }
}




/* Contenedor del formulario */
.flex-inputs-3 {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin: 24px 0;
}

/* Cada fila de inputs */
.input-row {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

/* Inputs y botón */
.flex-inputs-3 input,
.flex-inputs-3 button {
    flex: 1;
    min-width: 200px;
    padding: 14px 18px;
    font-size: 1rem;
   
    border-radius: 32px;
    background: white;
    transition: all 0.2s;
}

.flex-inputs-3 input:focus {
    border-color: #2563eb;
    outline: none;
    box-shadow: 0 0 0 3px rgba(37,99,235,0.2);
}

.flex-inputs-3 button {
    background: linear-gradient(135deg, #1e3a8a, #2563eb);
    color: white;
    font-weight: bold;
    cursor: pointer;
    border: none;
}

.flex-inputs-3 button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37,99,235,0.3);
}

/* Responsive para móviles */
@media (max-width: 700px) {
    .input-row {
        flex-direction: column;
    }
    .flex-inputs-3 input,
    .flex-inputs-3 button {
        width: 100%;
    }
}



/* Forzar color de texto oscuro en los inputs del formulario */
.flex-inputs-3 input,
.flex-inputs-3 input::placeholder,
#testName, #testPhone, #testUrl, #testEmail {
    color: #1e293b !important;  /* Texto oscuro */
    background-color: #ffffff !important;  /* Fondo blanco */
    
}

/* Placeholder más claro pero visible */
.flex-inputs-3 input::placeholder {
    color: #94a3b8 !important;
    opacity: 1;
}

/* Al hacer foco, mantener texto oscuro */
.flex-inputs-3 input:focus {
    color: #0f172a !important;
    background-color: #ffffff !important;
    
    outline: none;
}


.news-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.news-item {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 0.75rem;
    padding: 1rem;
    border-left: 3px solid #3b82f6;
    transition: all 0.2s;
}

.news-item:hover {
    background: rgba(255, 255, 255, 0.06);
    transform: translateX(5px);
}

.news-title {
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.news-title a {
    color: #60a5fa;
    text-decoration: none;
}

.news-title a:hover {
    text-decoration: underline;
}

.news-meta {
    font-size: 0.7rem;
    color: #94a3b8;
    display: flex;
    gap: 1rem;
    align-items: center;
    margin-top: 0.5rem;
}

.news-source {
    background: rgba(59, 130, 246, 0.2);
    padding: 0.2rem 0.5rem;
    border-radius: 1rem;
}

.news-description {
    font-size: 0.8rem;
    color: #cbd5e1;
    margin-top: 0.5rem;
    line-height: 1.4;
}