/* ============================================================
   PRIMEROS-AUXILIOS.CSS — Estilos para la página de emergencia
   ============================================================ */

/* ── TEST DE AUTOEVALUACIÓN ── */
.pa-test {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 32px 36px;
  margin: 24px 0 32px;
}

.pa-test h3 {
  font-size: 18px;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 8px;
}

.pa-test .sub {
  font-size: 14px;
  color: #64748b;
  margin-bottom: 20px;
}

.pa-test-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 12px 16px;
  border-bottom: 1px solid #e2e8f0;
}

.pa-test-item:last-child {
  border-bottom: none;
}

.pa-test-item .q {
  font-weight: 600;
  color: #0f172a;
  font-size: 15px;
}

.pa-test-item .options {
  display: flex;
  gap: 16px;
  margin-top: 4px;
  flex-wrap: wrap;
}

.pa-test-item .options label {
  font-size: 14px;
  color: #475569;
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}

.pa-test-item .options input[type="radio"] {
  accent-color: #dc2626;
  width: 16px;
  height: 16px;
}

/* ── KIT DE EMERGENCIA (5 PÍLDORAS) ── */
.pa-kit {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  margin: 24px 0 32px;
}

@media (max-width: 1024px) {
  .pa-kit {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 640px) {
  .pa-kit {
    grid-template-columns: 1fr;
  }
}

.pa-kit-step {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 24px 20px;
  text-align: center;
  transition: all 0.2s;
  position: relative;
  overflow: hidden;
}

.pa-kit-step:hover {
  border-color: #dc2626;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.06);
}

.pa-kit-step .pa-kit-badge {
  position: absolute;
  top: 6px;
  right: 14px;
  font-family: monospace;
  font-size: 40px;
  font-weight: 900;
  color: #dc2626;
  opacity: 0.08;
  line-height: 1;
  pointer-events: none;
}

.pa-kit-step .icon {
  margin-bottom: 12px;
}

.pa-kit-step h4 {
  font-size: 15px;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 6px;
}

.pa-kit-step p {
  font-size: 13px;
  color: #475569;
  line-height: 1.5;
  margin: 0;
}

/* ── BOTÓN "CÓMO HACERLO" ── */
.btn-step {
  display: inline-block;
  margin-top: 10px;
  font-size: 13px;
  font-weight: 600;
  color: #dc2626;
  text-decoration: none;
  border-bottom: 1px solid #dc2626;
  cursor: pointer;
  background: none;
  border-top: none;
  border-left: none;
  border-right: none;
  padding: 0 0 2px 0;
  font-family: inherit;
  transition: color 0.2s, border-color 0.2s;
}

.btn-step:hover {
  color: #b91c1c;
  border-color: #b91c1c;
}

/* ── POPUP (MODAL) ── */
.pa-modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(4px);
  z-index: 9999;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

.pa-modal-overlay.visible {
  display: flex;
}

.pa-modal {
  background: #ffffff;
  border-radius: 16px;
  max-width: 560px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  padding: 32px 36px 28px;
  box-shadow: 0 24px 48px rgba(0,0,0,0.2);
  position: relative;
  animation: paModalIn 0.25s ease-out;
}

@keyframes paModalIn {
  from {
    opacity: 0;
    transform: scale(0.92) translateY(20px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.pa-modal-close {
  position: absolute;
  top: 14px;
  right: 18px;
  background: none;
  border: none;
  font-size: 28px;
  font-weight: 300;
  color: #94a3b8;
  cursor: pointer;
  line-height: 1;
  transition: color 0.2s;
  padding: 4px 8px;
}

.pa-modal-close:hover {
  color: #dc2626;
}

.pa-modal h3 {
  font-size: 20px;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 6px;
  padding-right: 32px;
}

.pa-modal .sub {
  font-size: 14px;
  color: #64748b;
  margin: 0 0 18px;
}

.pa-modal .contenido {
  font-size: 15px;
  line-height: 1.7;
  color: #334155;
}

.pa-modal .contenido ol,
.pa-modal .contenido ul {
  padding-left: 20px;
  margin: 8px 0 0 0;
}

.pa-modal .contenido li {
  margin-bottom: 6px;
}

.pa-modal .contenido strong {
  color: #0f172a;
}

.pa-modal .btn-modal-accion {
  display: inline-block;
  margin-top: 20px;
  background: #dc2626;
  color: #ffffff !important;
  font-weight: 700;
  font-size: 14px;
  padding: 8px 24px;
  border-radius: 30px;
  text-decoration: none;
  transition: background 0.2s ease;
  border: none;
  cursor: pointer;
}

.pa-modal .btn-modal-accion:hover {
  background: #b91c1c;
}

/* ── MATRIZ DE FRAUDES ── */
.pa-matriz {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 16px 0 32px;
}

@media (max-width: 640px) {
  .pa-matriz {
    grid-template-columns: 1fr;
  }
}

.pa-matriz-item {
  display: flex;
  align-items: center;
  gap: 16px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 16px 20px;
  transition: all 0.2s;
  text-decoration: none;
  color: inherit;
}

.pa-matriz-item:hover {
  border-color: #dc2626;
  transform: translateX(4px);
}

.pa-matriz-item .icono {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  background: #fef2f2;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pa-matriz-item .info h4 {
  font-size: 15px;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 2px;
}

.pa-matriz-item .info p {
  font-size: 13px;
  color: #64748b;
  margin: 0;
}

/* ── CONTACTOS DE EMERGENCIA ── */
.pa-contactos {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin: 16px 0 32px;
}

@media (max-width: 1024px) {
  .pa-contactos {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .pa-contactos {
    grid-template-columns: 1fr;
  }
}

.pa-contacto {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 20px;
  text-align: center;
  transition: all 0.2s;
}

.pa-contacto:hover {
  border-color: #dc2626;
}

.pa-contacto .numero {
  font-family: monospace;
  font-size: 24px;
  font-weight: 800;
  color: #dc2626;
  margin: 4px 0;
}

.pa-contacto .nombre {
  font-size: 14px;
  font-weight: 600;
  color: #0f172a;
  margin: 0;
}

.pa-contacto .desc {
  font-size: 12px;
  color: #94a3b8;
  margin: 2px 0 0;
}

/* ── LO QUE NO DEBES HACER ── */
.pa-no-hacer {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 12px 0 24px;
}

@media (max-width: 640px) {
  .pa-no-hacer {
    grid-template-columns: 1fr;
  }
}

.pa-no-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: #fef2f2;
  border-radius: 8px;
  border-left: 4px solid #dc2626;
}

.pa-no-item .icono {
  font-size: 20px;
  flex-shrink: 0;
}

.pa-no-item .texto {
  font-size: 14px;
  color: #334155;
}

.pa-no-item .texto strong {
  color: #0f172a;
}

/* ── CTA ── */
.guia-cta {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 32px 40px;
  text-align: center;
  margin: 40px 0 24px;
}

.guia-cta h3 {
  font-size: 20px;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 8px;
}

.guia-cta p {
  font-size: 15px;
  color: #475569;
  margin: 0 0 16px;
}

/* ── RESPONSIVE ── */
@media (max-width: 640px) {
  .pa-test {
    padding: 20px;
  }
  .pa-modal {
    padding: 24px 20px 20px;
  }
  .pa-modal h3 {
    font-size: 18px;
  }
  .pa-modal .contenido {
    font-size: 14px;
  }
  .guia-cta {
    padding: 24px 20px;
  }
}