/**
 * OMRON Healthcare — Monitor Cardíaco & Estilos de Pulso
 */

/* Monitor Digital OMRON */
.pulse-monitor {
  background: radial-gradient(120% 120% at 50% 10%, #FFFFFF 0%, #F0F6FC 100%);
  border: 2px solid rgba(0, 94, 184, 0.15);
  border-radius: var(--radius-lg);
  padding: 36px 30px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 14px 40px rgba(0, 49, 83, 0.08);
}

.pulse-monitor-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.pulse-monitor-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--omron-blue);
  background: rgba(0, 94, 184, 0.08);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* Visor LCD de Pulso (Estilo Tensiómetro OMRON) */
.pulse-lcd {
  background: #0B192C;
  border-radius: var(--radius-md);
  padding: 24px 28px;
  color: #FFFFFF;
  margin-bottom: 28px;
  border: 1px solid rgba(0, 240, 255, 0.2);
  box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.5), 0 0 20px rgba(0, 94, 184, 0.15);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.pulse-lcd-left {
  text-align: left;
}

.pulse-lcd-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #8E9FAA;
  margin-bottom: 4px;
  display: block;
}

.pulse-lcd-number-wrap {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.pulse-lcd-number {
  font-family: 'Barlow', monospace;
  font-size: clamp(3.2rem, 7vw, 4.8rem);
  font-weight: 700;
  line-height: 1;
  color: var(--highlight-blue);
  text-shadow: 0 0 18px rgba(0, 240, 255, 0.6);
  letter-spacing: -0.02em;
}

.pulse-lcd-unit {
  font-size: 1.1rem;
  font-weight: 600;
  color: #8E9FAA;
}

/* Corazón palpitante animado */
.pulse-heart-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.pulse-heart-icon {
  width: 58px;
  height: 58px;
  color: var(--coral);
  filter: drop-shadow(0 0 12px rgba(255, 116, 116, 0.6));
  animation: heartBeat 0.85s infinite ease-in-out;
  transform-origin: center;
}

@keyframes heartBeat {
  0% { transform: scale(1); }
  14% { transform: scale(1.22); }
  28% { transform: scale(1); }
  42% { transform: scale(1.15); }
  70% { transform: scale(1); }
}

/* Onda ECG animada */
.pulse-ecg-svg {
  width: 100%;
  height: 56px;
  overflow: visible;
  margin: 12px 0 20px;
}

.pulse-ecg-path {
  fill: none;
  stroke: var(--highlight-blue);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 400;
  stroke-dashoffset: 400;
  animation: ecgDash 2s linear infinite;
  filter: drop-shadow(0 0 6px rgba(0, 240, 255, 0.8));
}

@keyframes ecgDash {
  to {
    stroke-dashoffset: 0;
  }
}

/* Semáforo de Ritmo Cardíaco */
.pulse-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.95rem;
  font-weight: 700;
  padding: 8px 18px;
  border-radius: var(--radius-full);
  margin-top: 6px;
}

.pulse-status-badge.lento {
  background: rgba(20, 206, 185, 0.12);
  color: #008778;
  border: 1px solid rgba(20, 206, 185, 0.3);
}

.pulse-status-badge.normal {
  background: rgba(0, 94, 184, 0.12);
  color: var(--omron-blue);
  border: 1px solid rgba(0, 94, 184, 0.3);
}

.pulse-status-badge.rapido {
  background: rgba(255, 116, 116, 0.14);
  color: #D32F2F;
  border: 1px solid rgba(255, 116, 116, 0.3);
}

/* Slider y Campo de Entrada de Pulso */
.pulse-input-control {
  background: #FFFFFF;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 20px;
  margin-top: 20px;
}

.pulse-slider {
  width: 100%;
  height: 8px;
  border-radius: 4px;
  background: #E2E8F0;
  outline: none;
  -webkit-appearance: none;
  margin: 14px 0 8px;
}

.pulse-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--omron-blue);
  border: 3px solid #FFFFFF;
  box-shadow: 0 2px 8px rgba(0, 49, 83, 0.3);
  cursor: pointer;
  transition: transform 0.15s ease;
}

.pulse-slider::-webkit-slider-thumb:hover {
  transform: scale(1.15);
}

.pulse-quick-buttons {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-top: 14px;
}

.pulse-quick-btn {
  background: var(--bg-clinical);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-full);
  padding: 6px 14px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition-fast);
}

.pulse-quick-btn:hover, .pulse-quick-btn.is-active {
  background: var(--omron-blue);
  color: #FFFFFF;
  border-color: var(--omron-blue);
}

/* Cuestionario Interactivo "Tu Ritmo, Tu Match" */
.omron-quiz-card {
  max-width: 680px;
  margin: 0 auto;
}

.quiz-step-indicator {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-light);
}

.quiz-progress-bar {
  flex: 1;
  height: 6px;
  background: #E2E8F0;
  border-radius: 3px;
  margin: 0 16px;
  overflow: hidden;
}

.quiz-progress-fill {
  height: 100%;
  background: var(--omron-blue);
  border-radius: 3px;
  transition: width 0.4s ease;
}

.quiz-question-title {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--dark-blue);
  margin-bottom: 24px;
  line-height: 1.3;
}

.quiz-options-grid {
  display: grid;
  gap: 14px;
  margin-bottom: 28px;
}

.quiz-option-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  border-radius: var(--radius-md);
  border: 1.5px solid var(--border-light);
  background: #FFFFFF;
  cursor: pointer;
  transition: var(--transition-fast);
  text-align: left;
}

.quiz-option-card:hover {
  border-color: var(--omron-blue);
  background: rgba(0, 94, 184, 0.02);
  transform: translateX(4px);
}

.quiz-option-card.is-selected {
  border-color: var(--omron-blue);
  background: rgba(0, 94, 184, 0.06);
  box-shadow: 0 4px 14px rgba(0, 94, 184, 0.12);
}

.quiz-option-circle {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid #CBD5E1;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: var(--transition-fast);
}

.quiz-option-card.is-selected .quiz-option-circle {
  border-color: var(--omron-blue);
  background: var(--omron-blue);
}

.quiz-option-card.is-selected .quiz-option-circle::after {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #FFFFFF;
}

.quiz-option-content h4 {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--dark-blue);
  margin-bottom: 2px;
}

.quiz-option-content p {
  font-size: 0.88rem;
  color: var(--text-muted);
}
