.massage-carousel{min-height:130px}.massage-step{display:none;padding:22px;border-radius:16px;background:var(--elevated);min-height:110px}.massage-step.active{display:grid;gap:9px}.carousel-controls{display:flex;justify-content:space-between;align-items:center}.tummy-donut{--progress:0deg;width:180px;height:180px;border-radius:50%;display:grid;place-items:center;margin:18px auto;background:conic-gradient(var(--breast) var(--progress),var(--elevated) 0);position:relative}.tummy-donut:after{content:"";position:absolute;inset:12px;background:var(--paper);border-radius:50%}.tummy-donut span{position:relative;z-index:1;font:28px ui-monospace,SFMono-Regular,monospace}.noise-types{display:grid;grid-template-columns:1fr 1fr}.noise-types button.selected{background:var(--ink);color:var(--paper)}.quick-med{display:flex;gap:8px}.quick-med button,.destination-buttons button{min-height:48px;padding:10px;border-radius:12px;background:var(--elevated);font-size:11px;font-weight:800}.temp-readout{display:grid;place-items:center;padding:18px;border-radius:16px;background:var(--elevated);margin-bottom:8px}.temp-readout strong{font:40px ui-monospace,SFMono-Regular,monospace}.temp-readout span{font-size:12px;color:var(--muted)}.temp-readout[data-level=green]{outline:2px solid var(--success)}.temp-readout[data-level=amber]{outline:2px solid #e7b34b}.temp-readout[data-level=red]{outline:2px solid var(--danger)}.range-buttons{display:flex;gap:8px;margin:12px 0}.range-buttons button{min-height:48px;padding:10px 14px;border-radius:12px;background:var(--elevated);color:var(--muted)}.range-buttons button.active{background:var(--ink);color:var(--paper)}.cord-checklist{display:grid;gap:6px;padding:13px;margin-top:12px;border-radius:14px;background:var(--elevated)}.cord-checklist label{min-height:44px;display:flex;align-items:center;gap:8px;font-size:13px}.formula-result{padding:15px;border-radius:14px;background:#e6f6ff;color:var(--bottle);font-weight:800;margin-top:14px;text-align:center}.stool-guide.interactive button{display:grid;grid-template-columns:34px 1fr;grid-template-rows:auto auto;column-gap:9px;align-items:center;text-align:left;padding:12px;border:0;border-radius:14px;background:var(--elevated)}.stool-guide.interactive button i{grid-row:1 / span 2}.stool-dot.olive{background:#71804d}.stool-dot.ochre{background:#b78648}.pumping-timer{text-align:center;font:32px ui-monospace,SFMono-Regular,monospace;margin:12px}.destination-buttons{display:flex;gap:8px;flex-wrap:wrap}.milk-bank-list{display:grid;gap:8px;margin-bottom:14px}.milk-bag{display:grid;grid-template-columns:1fr auto auto;gap:6px;align-items:center;padding:10px;border-radius:13px;background:var(--elevated);border:1px solid var(--line)}.milk-bag.first-out{border-color:var(--success)}.milk-bag span b,.milk-bag span small{display:block}.milk-bag span small{font-size:11px;color:var(--muted)}.milk-bag button{min-height:40px;padding:8px;border-radius:10px;background:var(--paper);font-size:10px}.full-handoff{font-size:20px;gap:14px}.full-handoff span{font-size:15px;color:var(--ink)}#handoffOverlay{position:fixed;inset:0;z-index:21;background:var(--bg);display:grid;place-items:center;padding:24px;text-align:center}#handoffOverlay>div{width:min(520px,100%);display:grid;gap:12px}#handoffOverlay h2{font:42px ui-monospace,SFMono-Regular,monospace;margin:0}#handoffOverlay p{color:var(--breast);font-weight:900;letter-spacing:.12em}.photo-preview span{color:var(--muted)}#waterToast{position:fixed;left:50%;bottom:90px;z-index:22;transform:translateX(-50%);display:flex;gap:10px;align-items:center;padding:12px 14px;border-radius:14px;background:#23272b;color:#fff;box-shadow:0 10px 30px #0005;font-size:12px}#waterToast button{min-height:40px;padding:8px 12px;border-radius:10px;background:#ffd08a;color:#242424;font-weight:800}
.sensor-card{width:100%;display:flex;align-items:center;gap:12px;text-align:left;margin:0 0 14px;padding:13px 15px;border:1px solid #2d6a4f;border-radius:18px;background:#11271e;color:var(--ink);box-shadow:var(--shadow)}.sensor-status-dot{width:12px;height:12px;flex:0 0 12px;border-radius:50%;background:#4ade80;box-shadow:0 0 0 5px #4ade8020}.sensor-copy{display:grid;gap:3px;flex:1}.sensor-kicker{font-size:9px;letter-spacing:.12em;color:#8bd8aa;font-weight:800}.sensor-copy strong{font-size:13px}.sensor-copy small{font-size:11px;color:#b8c6bf}.sensor-battery{font-size:11px;color:#8bd8aa;white-space:nowrap}.sensor-hero{display:flex;align-items:center;gap:12px;padding:16px;border-radius:16px;background:#11271e;margin:14px 0}.sensor-hero b,.sensor-hero small{display:block}.sensor-hero b{font-size:15px}.sensor-hero small{font-size:11px;color:#a5c6b4;margin-top:4px}.sensor-metrics{display:grid;grid-template-columns:1fr 1fr;gap:9px}.sensor-metrics div{padding:14px;border-radius:14px;background:var(--elevated)}.sensor-metrics b,.sensor-metrics span,.sensor-metrics small{display:block}.sensor-metrics b{font:24px ui-monospace,SFMono-Regular,monospace}.sensor-metrics span{font-size:11px}.sensor-metrics small{font-size:10px;color:var(--muted);margin-top:4px}.sensor-chart{margin-top:14px;padding:14px;border-radius:14px;background:var(--elevated)}.sensor-chart>span{font-size:11px;color:var(--muted)}.chart-bars{height:90px;display:flex;align-items:end;gap:6px;margin-top:12px}.chart-bars i{flex:1;border-radius:5px 5px 2px 2px;background:linear-gradient(to top,var(--sleep),#7ad8c4)}.sensor-note{padding:13px;margin-top:14px;border-radius:13px;background:var(--elevated);font-size:11px;color:var(--muted);line-height:1.45}

/* ==========================================================================
   HITO 9: VELADORA INTELIGENTE INMERSIVA Y LINTERNA TENUE REGULABLE
   ========================================================================== */
#lampOverlay {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: max(20px, env(safe-area-inset-top)) 20px max(24px, env(safe-area-inset-bottom)) 20px;
  touch-action: none;
  user-select: none;
  transition: background-color 0.2s ease, opacity 0.5s ease;
  overflow: hidden;
  box-sizing: border-box;
}

.lamp-top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.lamp-title-group {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.lamp-title-group b {
  font-size: 15px;
  letter-spacing: -0.01em;
  color: #fff;
  text-shadow: 0 1px 4px rgba(0,0,0,0.7);
}

.lamp-title-group small {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.8);
  text-shadow: 0 1px 3px rgba(0,0,0,0.6);
}

.lamp-close-btn {
  min-height: 44px;
  min-width: 44px;
  padding: 8px 18px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
}

.lamp-close-btn:active {
  transform: scale(0.96);
  background: rgba(0, 0, 0, 0.7);
}

.lamp-center-zone {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 14px;
  padding: 10px 0;
  pointer-events: auto;
}

.lamp-readout {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.lamp-percent-big {
  font-family: ui-monospace, SFMono-Regular, monospace;
  font-size: 58px;
  font-weight: 900;
  color: #fff;
  line-height: 1;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.6);
}

.lamp-drag-hint {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.85);
  text-shadow: 0 1px 3px rgba(0,0,0,0.7);
  display: flex;
  align-items: center;
  gap: 5px;
}

.lamp-slider-box {
  width: min(320px, 88vw);
  display: flex;
  align-items: center;
  gap: 10px;
}

.lamp-range {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 14px;
  border-radius: 7px;
  background: rgba(0, 0, 0, 0.45);
  outline: none;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.lamp-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #ffffff;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
}

.lamp-range::-moz-range-thumb {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #ffffff;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
  border: none;
}

.lamp-presets {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
}

.lamp-preset-pill {
  min-height: 40px;
  padding: 8px 14px;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.lamp-preset-pill.active {
  background: #ffffff;
  color: #111111;
  border-color: #ffffff;
}

.lamp-bottom-controls {
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 20px;
  padding: 12px 14px;
}

.lamp-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.lamp-row-label {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.75);
  white-space: nowrap;
}

.lamp-tone-buttons, .lamp-timer-buttons {
  display: flex;
  gap: 6px;
  flex: 1;
  justify-content: flex-end;
}

.lamp-pill {
  min-height: 38px;
  padding: 6px 12px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}

.lamp-pill.active {
  background: #ffffff;
  color: #111111;
  border-color: #ffffff;
}

/* ==========================================================================
   HITO 10: MÁQUINA DE ARRULLO Y REPRODUCTOR DE PAISAJES SONOROS MEGHAN
   ========================================================================== */
.sound-machine-container {
  display: flex;
  flex-direction: column;
  gap: 15px;
  padding-bottom: 24px;
}

.sound-visualizer-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px;
  border-radius: 18px;
  background: #14181d;
  border: 1px solid #27313a;
  gap: 12px;
}

.sound-viz-info {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.sound-viz-status {
  font-size: 13px;
  font-weight: 800;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 7px;
}

.sound-viz-status .status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #64748b;
  display: inline-block;
}

.sound-visualizer-card.is-playing .sound-viz-status .status-dot {
  background: #4ade80;
  box-shadow: 0 0 10px #4ade80;
  animation: pulse-dot 1.8s infinite;
}

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

.sound-viz-sub {
  font-size: 11px;
  color: #94a3b8;
}

.sound-wave-bars {
  display: flex;
  align-items: center;
  gap: 4px;
  height: 28px;
}

.sound-wave-bars i {
  width: 3px;
  height: 6px;
  border-radius: 2px;
  background: #334155;
  transition: height 0.2s ease, background 0.2s ease;
}

.sound-visualizer-card.is-playing .sound-wave-bars i {
  background: #7ad8c4;
  animation: sound-bounce 1.2s infinite ease-in-out;
}

.sound-visualizer-card.is-playing .sound-wave-bars i:nth-child(2) { animation-delay: 0.15s; }
.sound-visualizer-card.is-playing .sound-wave-bars i:nth-child(3) { animation-delay: 0.3s; }
.sound-visualizer-card.is-playing .sound-wave-bars i:nth-child(4) { animation-delay: 0.45s; }
.sound-visualizer-card.is-playing .sound-wave-bars i:nth-child(5) { animation-delay: 0.2s; }
.sound-visualizer-card.is-playing .sound-wave-bars i:nth-child(6) { animation-delay: 0.35s; }

@keyframes sound-bounce {
  0%, 100% { height: 6px; }
  50% { height: 24px; }
}

/* Cuadrícula de Paisajes Sonoros */
.sound-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.sound-card-btn {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  padding: 13px 12px;
  border-radius: 16px;
  background: #171b20;
  border: 1px solid #28313c;
  color: #fff;
  cursor: pointer;
  transition: all 0.2s ease;
  min-height: 82px;
}

.sound-card-btn:active {
  transform: scale(0.97);
}

.sound-card-btn.selected {
  background: #162a22;
  border-color: #4ade80;
  box-shadow: 0 0 12px rgba(74, 222, 128, 0.18);
}

.sound-card-icon {
  font-size: 24px;
  margin-bottom: 5px;
}

.sound-card-name {
  font-size: 13px;
  font-weight: 800;
  color: #fff;
  line-height: 1.2;
}

.sound-card-desc {
  font-size: 10px;
  color: #94a3b8;
  margin-top: 3px;
  line-height: 1.3;
}

.sound-card-btn.selected .sound-card-name {
  color: #4ade80;
}

/* Control de Volumen */
.sound-volume-control {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 14px 16px;
  border-radius: 16px;
  background: #14181d;
  border: 1px solid #27313a;
}

.sound-volume-header {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  font-weight: 800;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.sound-volume-slider-box {
  display: flex;
  align-items: center;
  gap: 12px;
}

.sound-volume-slider-box span {
  font-size: 16px;
}

.sound-volume-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 10px;
  border-radius: 5px;
  background: #232b34;
  outline: none;
}

.sound-volume-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #7ad8c4;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
}

.sound-volume-slider::-moz-range-thumb {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #7ad8c4;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
  border: none;
}

.sound-volume-note {
  font-size: 10px;
  color: #64748b;
  line-height: 1.3;
}

/* Temporizador */
.sound-timer-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sound-timer-label {
  font-size: 11px;
  font-weight: 800;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.sound-timer-pills {
  display: flex;
  gap: 6px;
}

.sound-timer-pill {
  flex: 1;
  min-height: 42px;
  padding: 8px 6px;
  border-radius: 12px;
  background: #171b20;
  border: 1px solid #28313c;
  color: #cbd5e1;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  text-align: center;
  white-space: nowrap;
}

.sound-timer-pill.active {
  background: #ffffff;
  color: #0c0d0e;
  border-color: #ffffff;
}

/* Botón Maestro */
.sound-master-btn {
  width: 100%;
  min-height: 52px;
  border-radius: 16px;
  border: none;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s ease;
}

.sound-master-btn.play {
  background: linear-gradient(135deg, #10b981, #059669);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.3);
}

.sound-master-btn.pause {
  background: #27272a;
  border: 1px solid #3f3f46;
  color: #fbbf24;
}

.sound-master-btn:active {
  transform: scale(0.98);
}

/* ==========================================================================
   HITO 11: PIZARRA DE RELEVO DE GUARDIA FAMILIAR Y ENTREGA DE TURNO
   ========================================================================== */
.handoff-container {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-bottom: 24px;
}

.handoff-hero-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 18px;
  border-radius: 20px;
  background: linear-gradient(135deg, #161c24, #0f1318);
  border: 1px solid #283340;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.handoff-hero-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.handoff-hero-time {
  font-family: ui-monospace, SFMono-Regular, monospace;
  font-size: 38px;
  font-weight: 900;
  color: #ffffff;
  line-height: 1;
  letter-spacing: -0.02em;
}

.handoff-status-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(74, 222, 128, 0.12);
  border: 1px solid rgba(74, 222, 128, 0.3);
  color: #4ade80;
  font-size: 11px;
  font-weight: 800;
}

.handoff-status-pill.awake {
  background: rgba(251, 191, 36, 0.12);
  border-color: rgba(251, 191, 36, 0.3);
  color: #fbbf24;
}

.handoff-hero-sub {
  font-size: 11px;
  color: #94a3b8;
  display: flex;
  align-items: center;
  gap: 6px;
}

.handoff-sensor-tag {
  color: #7ad8c4;
  font-weight: 700;
}

/* Grilla de 4 Tarjetas de Mando */
.handoff-metrics-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.handoff-metric-box {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 14px;
  border-radius: 16px;
  background: #14181e;
  border: 1px solid #262f3a;
}

.handoff-metric-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.handoff-metric-label {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #94a3b8;
  display: flex;
  align-items: center;
  gap: 5px;
}

.handoff-time-ago {
  font-size: 10px;
  padding: 2px 7px;
  border-radius: 6px;
  background: #232b35;
  color: #cbd5e1;
  font-weight: 700;
  white-space: nowrap;
}

.handoff-metric-main {
  font-size: 15px;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.25;
}

.handoff-metric-hint {
  font-size: 11px;
  color: #64748b;
  line-height: 1.35;
}

.handoff-metric-hint strong {
  color: #cbd5e1;
}

/* Sección de Notas del Relevo */
.handoff-note-box {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px 16px;
  border-radius: 16px;
  background: #14181e;
  border: 1px solid #262f3a;
}

.handoff-note-title {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #94a3b8;
}

.handoff-quick-chips {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.handoff-chip {
  padding: 6px 10px;
  border-radius: 10px;
  background: #1e242d;
  border: 1px solid #303a47;
  color: #cbd5e1;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.handoff-chip:active {
  transform: scale(0.96);
  background: #2c3644;
}

.handoff-note-input {
  width: 100%;
  padding: 10px 12px;
  border-radius: 12px;
  background: #0f1318;
  border: 1px solid #28323f;
  color: #ffffff;
  font-size: 12px;
  outline: none;
  box-sizing: border-box;
}

.handoff-note-input:focus {
  border-color: #7ad8c4;
}

/* Botones de Acción de Relevo */
.handoff-actions-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.handoff-btn-whatsapp {
  min-height: 48px;
  padding: 10px 14px;
  border-radius: 14px;
  background: #128c7e;
  border: none;
  color: #ffffff;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  box-shadow: 0 4px 12px rgba(18, 140, 126, 0.25);
  transition: all 0.2s ease;
}

.handoff-btn-whatsapp:active {
  transform: scale(0.97);
  background: #075e54;
}

.handoff-btn-fullscreen {
  min-height: 48px;
  padding: 10px 14px;
  border-radius: 14px;
  background: #1f2630;
  border: 1px solid #334050;
  color: #cbd5e1;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.handoff-btn-fullscreen:active {
  background: #2a3442;
}

/* Modo Pantalla Completa de Buró (Reloj de Guardia Nocturno) */
#handoffFullscreenOverlay {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: #050607;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: max(24px, env(safe-area-inset-top)) 24px max(28px, env(safe-area-inset-bottom)) 24px;
  user-select: none;
  box-sizing: border-box;
}

.handoff-fs-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.handoff-fs-title {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #94a3b8;
}

.handoff-fs-close {
  min-height: 42px;
  padding: 8px 16px;
  border-radius: 999px;
  background: #1f242c;
  border: 1px solid #333d4b;
  color: #ffffff;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.handoff-fs-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 12px;
}

.handoff-fs-clock {
  font-family: ui-monospace, SFMono-Regular, monospace;
  font-size: clamp(52px, 16vw, 76px);
  font-weight: 900;
  color: #ffffff;
  line-height: 1;
  text-shadow: 0 0 30px rgba(255, 255, 255, 0.15);
}

.handoff-fs-status {
  font-size: 16px;
  font-weight: 800;
  color: #4ade80;
  display: flex;
  align-items: center;
  gap: 8px;
}

.handoff-fs-summary {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  max-width: 440px;
  background: #10141a;
  border: 1px solid #232b36;
  border-radius: 18px;
  padding: 18px;
  text-align: left;
}

.handoff-fs-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
}

.handoff-fs-row b {
  color: #ffffff;
}

.handoff-fs-row span {
  color: #94a3b8;
}

/* ==========================================================================
   HITO 12: CRONÓMETRO DE PANCITA ABAJO (TUMMY TIME) CON GUÍA VISUAL
   ========================================================================== */
.tummy-container {
  display: flex;
  flex-direction: column;
  gap: 15px;
  padding-bottom: 24px;
}

.tummy-hero-card {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid #332738;
  background: #18111e;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.tummy-hero-img {
  width: 100%;
  height: auto;
  display: block;
  max-height: 380px;
  object-fit: contain;
  background: #120e18;
}

.tummy-interactive-section {
  display: grid;
  grid-template-columns: 1fr 140px 1fr;
  gap: 8px;
  align-items: center;
}

@media (max-width: 380px) {
  .tummy-interactive-section {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}

.tummy-mini-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 12px 8px;
  border-radius: 16px;
  background: #161520;
  border: 1px solid #2b273b;
  gap: 6px;
}

.tummy-badge-pos {
  font-size: 10px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 999px;
  background: #14532d;
  color: #4ade80;
  border: 1px solid #22c55e;
}

.tummy-badge-support {
  font-size: 10px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 999px;
  background: #3b0764;
  color: #d8b4fe;
  border: 1px solid #a855f7;
}

.tummy-mini-icon {
  font-size: 26px;
  line-height: 1;
}

.tummy-mini-desc {
  font-size: 10px;
  color: #94a3b8;
  line-height: 1.3;
}

.tummy-donut-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.tummy-circle-timer {
  --tummy-progress: 0deg;
  width: 130px;
  height: 130px;
  border-radius: 50%;
  background: conic-gradient(#ec4899 var(--tummy-progress), #261f30 0deg);
  display: grid;
  place-items: center;
  position: relative;
  box-shadow: 0 0 20px rgba(236, 72, 153, 0.2);
  transition: box-shadow 0.3s ease;
}

.tummy-circle-timer.running {
  box-shadow: 0 0 25px rgba(236, 72, 153, 0.45);
}

.tummy-circle-timer::after {
  content: "";
  position: absolute;
  inset: 10px;
  background: #120e18;
  border-radius: 50%;
}

.tummy-circle-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.tummy-circle-icon {
  font-size: 16px;
}

.tummy-circle-time {
  font-family: ui-monospace, SFMono-Regular, monospace;
  font-size: 24px;
  font-weight: 900;
  color: #ffffff;
  line-height: 1;
}

.tummy-circle-sub {
  font-size: 9px;
  color: #cbd5e1;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.tummy-targets-row {
  display: flex;
  gap: 6px;
  justify-content: center;
}

.tummy-target-pill {
  min-height: 38px;
  padding: 6px 12px;
  border-radius: 12px;
  background: #1a1622;
  border: 1px solid #30283c;
  color: #cbd5e1;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}

.tummy-target-pill.active {
  background: #ec4899;
  border-color: #ec4899;
  color: #ffffff;
  box-shadow: 0 2px 10px rgba(236, 72, 153, 0.3);
}

.tummy-btn-main {
  width: 100%;
  min-height: 54px;
  border-radius: 999px;
  border: none;
  background: linear-gradient(135deg, #f43f5e, #e11d48);
  color: #ffffff;
  font-size: 16px;
  font-weight: 900;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 4px 18px rgba(244, 63, 94, 0.35);
  transition: all 0.2s ease;
}

.tummy-btn-main:active {
  transform: scale(0.97);
}

.tummy-btn-main.running {
  background: #27272a;
  color: #fbbf24;
  border: 1px solid #3f3f46;
  box-shadow: none;
}

.tummy-benefits-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px 16px;
  border-radius: 18px;
  background: #181422;
  border: 1px solid #2f253e;
}

.tummy-benefits-title {
  font-size: 12px;
  font-weight: 800;
  color: #e9d5ff;
  display: flex;
  align-items: center;
  gap: 6px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.tummy-benefits-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.tummy-benefit-item {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  font-size: 11px;
  color: #cbd5e1;
  line-height: 1.3;
}

.tummy-benefit-item span {
  font-size: 15px;
  line-height: 1;
}

.tummy-footer-warning {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 16px;
  background: #1c1524;
  border: 1px solid #382547;
}

.tummy-footer-warning .warning-icon {
  font-size: 22px;
  flex: 0 0 24px;
}

.tummy-footer-warning-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 11px;
  color: #cbd5e1;
  line-height: 1.35;
}

.tummy-footer-warning-text b {
  color: #ffd08a;
}

/* ==========================================================================
   HITO 13: MASAJES PARA CÓLICOS & GUÍA VISUAL PEDIÁTRICA
   ========================================================================== */
.massage-container {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding-bottom: 24px;
}

.massage-tabs-scroll {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 4px 2px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.massage-tabs-scroll::-webkit-scrollbar {
  display: none;
}

.massage-tab-btn {
  flex: 0 0 auto;
  min-height: 40px;
  padding: 8px 14px;
  border-radius: 14px;
  background: #181322;
  border: 1px solid #322543;
  color: #cbd5e1;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.massage-tab-btn:active {
  transform: scale(0.96);
}

.massage-tab-btn.active {
  background: #8b5cf6;
  border-color: #a78bfa;
  color: #ffffff;
  box-shadow: 0 2px 12px rgba(139, 92, 246, 0.4);
}

.massage-hero-card {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid #372a4c;
  background: #14101e;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.45);
}

.massage-hero-img {
  width: 100%;
  height: auto;
  display: block;
  max-height: 380px;
  object-fit: contain;
  background: #120e1a;
}

.massage-meta-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 14px;
  background: #191424;
  border: 1px solid #302444;
  border-radius: 14px;
  font-size: 11px;
}

.massage-meta-bar .badge-duration {
  font-weight: 800;
  color: #c4b5fd;
  display: flex;
  align-items: center;
  gap: 5px;
}

.massage-meta-bar .badge-app {
  color: #94a3b8;
}

.massage-interactive-section {
  display: grid;
  grid-template-columns: 1fr 140px 1fr;
  gap: 8px;
  align-items: center;
}

@media (max-width: 380px) {
  .massage-interactive-section {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}

.massage-mini-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 12px 8px;
  border-radius: 16px;
  background: #161220;
  border: 1px solid #2e243e;
  gap: 6px;
}

.massage-badge-pos {
  font-size: 10px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 999px;
  background: #1e1b4b;
  color: #a5b4fc;
  border: 1px solid #6366f1;
}

.massage-badge-action {
  font-size: 10px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 999px;
  background: #3b0764;
  color: #e9d5ff;
  border: 1px solid #a855f7;
}

.massage-mini-icon {
  font-size: 24px;
  line-height: 1;
}

.massage-mini-desc {
  font-size: 10px;
  color: #94a3b8;
  line-height: 1.3;
}

.massage-donut-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.massage-circle-timer {
  --massage-progress: 0deg;
  width: 130px;
  height: 130px;
  border-radius: 50%;
  background: conic-gradient(#8b5cf6 var(--massage-progress), #261f30 0deg);
  display: grid;
  place-items: center;
  position: relative;
  box-shadow: 0 0 20px rgba(139, 92, 246, 0.2);
  transition: box-shadow 0.3s ease;
}

.massage-circle-timer.running {
  box-shadow: 0 0 25px rgba(139, 92, 246, 0.5);
}

.massage-circle-timer::after {
  content: "";
  position: absolute;
  inset: 10px;
  background: #130f1c;
  border-radius: 50%;
}

.massage-circle-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.massage-circle-icon {
  font-size: 16px;
}

.massage-circle-time {
  font-family: ui-monospace, SFMono-Regular, monospace;
  font-size: 24px;
  font-weight: 900;
  color: #ffffff;
  line-height: 1;
}

.massage-circle-sub {
  font-size: 9px;
  color: #cbd5e1;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  text-align: center;
}

.massage-targets-row {
  display: flex;
  gap: 6px;
  justify-content: center;
  flex-wrap: wrap;
}

.massage-target-pill {
  min-height: 38px;
  padding: 6px 12px;
  border-radius: 12px;
  background: #1a1622;
  border: 1px solid #30283c;
  color: #cbd5e1;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}

.massage-target-pill.active {
  background: #8b5cf6;
  border-color: #8b5cf6;
  color: #ffffff;
  box-shadow: 0 2px 10px rgba(139, 92, 246, 0.3);
}

.massage-btn-main {
  width: 100%;
  min-height: 54px;
  border-radius: 999px;
  border: none;
  background: linear-gradient(135deg, #8b5cf6, #7c3aed);
  color: #ffffff;
  font-size: 16px;
  font-weight: 900;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 4px 18px rgba(139, 92, 246, 0.38);
  transition: all 0.2s ease;
}

.massage-btn-main:active {
  transform: scale(0.97);
}

.massage-btn-main.running {
  background: #27272a;
  color: #fbbf24;
  border: 1px solid #3f3f46;
  box-shadow: none;
}

.massage-alert-toast {
  padding: 10px 14px;
  border-radius: 14px;
  background: #3b0764;
  border: 1px solid #a855f7;
  color: #e9d5ff;
  font-size: 12px;
  font-weight: 800;
  text-align: center;
}

.massage-steps-box {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 14px;
  border-radius: 18px;
  background: #181422;
  border: 1px solid #2f253e;
}

.massage-steps-title {
  font-size: 12px;
  font-weight: 800;
  color: #e9d5ff;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: flex;
  align-items: center;
  gap: 6px;
}

.massage-step-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 12px;
  background: #14101d;
  border: 1px solid #271f33;
}

.massage-step-num {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #7c3aed;
  color: #ffffff;
  font-size: 11px;
  font-weight: 900;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.massage-step-content {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 11px;
  color: #cbd5e1;
  line-height: 1.35;
}

.massage-step-content b {
  color: #f3e8ff;
  font-size: 12px;
}

.massage-benefits-box {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 14px;
  border-radius: 18px;
  background: #161220;
  border: 1px solid #2c223a;
}

.massage-benefits-title {
  font-size: 12px;
  font-weight: 800;
  color: #a7f3d0;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: flex;
  align-items: center;
  gap: 6px;
}

.massage-benefits-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.massage-benefit-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  color: #cbd5e1;
}

.massage-benefit-row span {
  color: #10b981;
  font-weight: 900;
}

.massage-safety-card {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 16px;
  background: #1c1524;
  border: 1px solid #382547;
}

.massage-safety-card .shield-icon {
  font-size: 22px;
  line-height: 1;
}

.massage-safety-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 11px;
  color: #cbd5e1;
  line-height: 1.35;
}

.massage-safety-text b {
  color: #ffd08a;
}

/* ==========================================================================
   HITO 14: ALTO CONTRASTE VISUAL (TARJETAS FÍSICAS & VISOR DIGITAL OLED)
   ========================================================================== */
.contrast-container {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding-bottom: 24px;
}

.contrast-tabs-scroll {
  display: flex;
  gap: 8px;
  padding: 4px 2px;
}

.contrast-tab-btn {
  flex: 1;
  min-height: 42px;
  padding: 8px 12px;
  border-radius: 14px;
  background: #191418;
  border: 1px solid #36222b;
  color: #cbd5e1;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
  text-align: center;
}

.contrast-tab-btn:active {
  transform: scale(0.96);
}

.contrast-tab-btn.active {
  background: #ef4444;
  border-color: #f87171;
  color: #ffffff;
  box-shadow: 0 2px 12px rgba(239, 68, 68, 0.4);
}

.contrast-view-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* Modo Tarjetas Físicas */
.contrast-hero-guide {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid #38242a;
  background: linear-gradient(135deg, #181216, #24141d);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.contrast-guide-header {
  display: flex;
  align-items: center;
  gap: 10px;
}

.contrast-guide-header span {
  font-size: 26px;
  line-height: 1;
}

.contrast-guide-title {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.contrast-guide-title b {
  color: #ffffff;
  font-size: 14px;
  font-weight: 800;
}

.contrast-guide-title small {
  color: #fca5a5;
  font-size: 11px;
}

.contrast-guide-diagram {
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 12px 8px;
  background: #110d10;
  border-radius: 14px;
  border: 1px dashed #4a2835;
}

.contrast-diagram-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  text-align: center;
  font-size: 10px;
  color: #cbd5e1;
}

.contrast-diagram-item b {
  color: #f87171;
  font-size: 13px;
}

.contrast-circle-timer {
  --contrast-progress: 0deg;
  width: 130px;
  height: 130px;
  border-radius: 50%;
  background: conic-gradient(#ef4444 var(--contrast-progress), #2b171e 0deg);
  display: grid;
  place-items: center;
  position: relative;
  box-shadow: 0 0 20px rgba(239, 68, 68, 0.2);
  transition: box-shadow 0.3s ease;
}

.contrast-circle-timer.running {
  box-shadow: 0 0 25px rgba(239, 68, 68, 0.5);
}

.contrast-circle-timer::after {
  content: "";
  position: absolute;
  inset: 10px;
  background: #140d11;
  border-radius: 50%;
}

.contrast-btn-main {
  width: 100%;
  min-height: 54px;
  border-radius: 999px;
  border: none;
  background: linear-gradient(135deg, #ef4444, #dc2626);
  color: #ffffff;
  font-size: 16px;
  font-weight: 900;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 4px 18px rgba(239, 68, 68, 0.38);
  transition: all 0.2s ease;
}

.contrast-btn-main:active {
  transform: scale(0.97);
}

.contrast-btn-main.running {
  background: #27272a;
  color: #fbbf24;
  border: 1px solid #3f3f46;
  box-shadow: none;
}

/* Modo Visor Digital en Pantalla */
.contrast-preview-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px;
  border-radius: 20px;
  background: #000000;
  border: 2px solid #332027;
  position: relative;
  overflow: hidden;
  min-height: 250px;
}

.contrast-svg-holder {
  width: 200px;
  height: 200px;
  display: grid;
  place-items: center;
}

.contrast-svg-holder svg {
  width: 100%;
  height: 100%;
  border-radius: 16px;
  box-shadow: 0 0 30px rgba(255, 255, 255, 0.15);
}

.contrast-figure-name {
  margin-top: 10px;
  font-size: 13px;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.contrast-thumbs-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 6px;
}

.contrast-thumb-btn {
  aspect-ratio: 1;
  padding: 4px;
  border-radius: 12px;
  background: #140d12;
  border: 2px solid #2b1820;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: all 0.2s ease;
}

.contrast-thumb-btn svg {
  width: 100%;
  height: 100%;
  border-radius: 8px;
}

.contrast-thumb-btn.active {
  border-color: #ef4444;
  box-shadow: 0 0 10px rgba(239, 68, 68, 0.5);
  transform: scale(1.05);
}

.contrast-speed-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  border-radius: 14px;
  background: #191216;
  border: 1px solid #321c25;
  font-size: 11px;
}

.contrast-speed-pills {
  display: flex;
  gap: 6px;
}

.contrast-speed-pill {
  padding: 5px 10px;
  border-radius: 10px;
  background: #26161f;
  border: 1px solid #442432;
  color: #cbd5e1;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}

.contrast-speed-pill.active {
  background: #ffffff;
  color: #000000;
  border-color: #ffffff;
}

/* Pantalla Completa Inmersiva OLED */
.contrast-fs-overlay {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: #000000;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  padding: 24px 16px env(safe-area-inset-bottom, 20px) 16px;
  touch-action: none;
}

.contrast-fs-topbar {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 10;
}

.contrast-fs-close {
  min-height: 40px;
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #ffffff;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  backdrop-filter: blur(10px);
}

.contrast-fs-lock {
  min-height: 40px;
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #ffffff;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  backdrop-filter: blur(10px);
}

.contrast-fs-lock.locked {
  background: #ef4444;
  border-color: #f87171;
}

.contrast-fs-center {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 100%;
  max-width: 420px;
}

.contrast-fs-svg-container {
  width: 82vw;
  max-width: 340px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
}

.contrast-fs-svg-container svg {
  width: 100%;
  height: 100%;
  border-radius: 20px;
  box-shadow: 0 0 50px rgba(255, 255, 255, 0.2);
}

.contrast-fs-bottombar {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 360px;
  z-index: 10;
}

.contrast-fs-nav-btn {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #ffffff;
  font-size: 20px;
  font-weight: 900;
  cursor: pointer;
  display: grid;
  place-items: center;
  backdrop-filter: blur(8px);
}

.contrast-fs-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  color: #94a3b8;
  font-size: 11px;
}

.contrast-fs-info b {
  color: #ffffff;
  font-size: 13px;
}

/* ==========================================================================
   HITO 15: JUEGO DIARIO & ESTIMULACIÓN TEMPRANA (20 ACTIVIDADES / 4 PILARES)
   ========================================================================== */
.games-container {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding-bottom: 24px;
}

.games-mission-hero {
  border-radius: 20px;
  background: linear-gradient(135deg, #271a35, #1b1326);
  border: 1px solid #482f64;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.games-mission-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.games-mission-tag {
  font-size: 10px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 999px;
  background: #fbbf24;
  color: #171100;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.games-mission-reroll {
  background: #38244e;
  border: 1px solid #58397a;
  color: #e9d5ff;
  border-radius: 10px;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}

.games-mission-title {
  font-size: 15px;
  font-weight: 900;
  color: #ffffff;
}

.games-mission-desc {
  font-size: 11px;
  color: #cbd5e1;
  line-height: 1.4;
}

.games-mission-btn {
  min-height: 44px;
  border-radius: 999px;
  border: none;
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  color: #1a1202;
  font-size: 13px;
  font-weight: 900;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  box-shadow: 0 3px 12px rgba(245, 158, 11, 0.35);
  transition: all 0.2s ease;
}

.games-mission-btn:active {
  transform: scale(0.97);
}

.games-tabs-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  width: 100%;
  padding: 2px 0;
}

@media (min-width: 600px) {
  .games-tabs-row {
    grid-template-columns: repeat(4, 1fr);
  }
}

.games-tab-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 44px;
  padding: 8px 10px;
  border-radius: 14px;
  background: #181322;
  border: 1px solid #322543;
  color: #cbd5e1;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  white-space: normal;
  text-align: center;
  line-height: 1.25;
  transition: all 0.2s ease;
}

.games-tab-btn:hover {
  background: #231b32;
  border-color: #4b3666;
}

.games-tab-btn:active {
  transform: scale(0.97);
}

.games-tab-btn.active {
  background: #a855f7;
  border-color: #c084fc;
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(168, 85, 247, 0.4);
}

.games-tab-btn.active[data-pillar="motor"] {
  background: linear-gradient(135deg, #be185d, #ec4899);
  border-color: #f472b6;
  box-shadow: 0 4px 14px rgba(236, 72, 153, 0.4);
}

.games-tab-btn.active[data-pillar="sensory"] {
  background: linear-gradient(135deg, #047857, #10b981);
  border-color: #34d399;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.4);
}

.games-tab-btn.active[data-pillar="language"] {
  background: linear-gradient(135deg, #0e7490, #06b6d4);
  border-color: #22d3ee;
  box-shadow: 0 4px 14px rgba(6, 182, 212, 0.4);
}

.games-tab-btn.active[data-pillar="visual"] {
  background: linear-gradient(135deg, #6d28d9, #8b5cf6);
  border-color: #a78bfa;
  box-shadow: 0 4px 14px rgba(139, 92, 246, 0.4);
}

.games-hero-card {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid #372a4c;
  background: #14101e;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.45);
}

.games-hero-img {
  width: 100%;
  height: auto;
  display: block;
  max-height: 380px;
  object-fit: contain;
  background: #120e1a;
}

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

.game-item-card {
  border-radius: 16px;
  background: #171322;
  border: 1px solid #2f2541;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.game-item-card:active {
  transform: scale(0.98);
}

.game-item-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.game-item-badge {
  font-size: 10px;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 999px;
  background: #2b1b3d;
  color: #d8b4fe;
  border: 1px solid #58377f;
}

.game-item-time {
  font-size: 11px;
  color: #94a3b8;
  font-weight: 700;
}

.game-item-title {
  font-size: 14px;
  font-weight: 800;
  color: #ffffff;
}

.game-item-desc {
  font-size: 11px;
  color: #94a3b8;
  line-height: 1.35;
}

.game-item-expand {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 6px;
  padding-top: 10px;
  border-top: 1px dashed #3a2c4e;
}

.game-item-steps {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.game-step-row {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 11px;
  color: #cbd5e1;
  line-height: 1.35;
}

.game-step-num {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #a855f7;
  color: #ffffff;
  font-size: 10px;
  font-weight: 900;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.game-item-benefits {
  font-size: 11px;
  color: #a7f3d0;
  background: #0d231b;
  border: 1px solid #134e38;
  padding: 8px 10px;
  border-radius: 10px;
  line-height: 1.3;
}

.game-item-actions {
  display: flex;
  gap: 8px;
}

.game-btn-start {
  flex: 1;
  min-height: 42px;
  border-radius: 12px;
  border: none;
  background: linear-gradient(135deg, #10b981, #059669);
  color: #ffffff;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.game-btn-timer {
  min-height: 42px;
  padding: 0 14px;
  border-radius: 12px;
  background: #231b32;
  border: 1px solid #44325c;
  color: #e9d5ff;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

/* ==========================================================================
   CIRCUITO GUIADO SORPRESA DE ESTIMULACIÓN (MODO ALEATORIO)
   ========================================================================== */
.games-hero-selector {
  display: flex;
  background: #140e1e;
  padding: 4px;
  border-radius: 12px;
  border: 1px solid #36224c;
  gap: 4px;
}

.games-mode-btn {
  flex: 1;
  min-height: 36px;
  padding: 6px 10px;
  border-radius: 9px;
  border: none;
  background: transparent;
  color: #94a3b8;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.games-mode-btn.active {
  background: #fbbf24;
  color: #171100;
  box-shadow: 0 2px 8px rgba(251, 191, 36, 0.3);
}

.circuit-preview-box {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.circuit-badge-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.circuit-tag {
  font-size: 10px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 999px;
  background: linear-gradient(135deg, #a855f7, #6366f1);
  color: #ffffff;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.circuit-shuffle-btn {
  background: #38244e;
  border: 1px solid #58397a;
  color: #e9d5ff;
  border-radius: 10px;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}

.circuit-desc-text {
  font-size: 11px;
  color: #cbd5e1;
  line-height: 1.35;
}

.circuit-steps-preview {
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: #150f22;
  border: 1px solid #33234b;
  border-radius: 14px;
  padding: 10px;
}

.circuit-step-preview-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
}

.circuit-step-badge {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 900;
  color: #ffffff;
  flex-shrink: 0;
}

.circuit-step-preview-name {
  flex: 1;
  font-weight: 700;
  color: #ffffff;
}

.circuit-step-preview-tag {
  font-size: 10px;
  color: #94a3b8;
  padding: 2px 6px;
  border-radius: 6px;
  background: #231934;
}

.circuit-start-btn {
  min-height: 44px;
  border-radius: 999px;
  border: none;
  background: linear-gradient(135deg, #10b981, #059669);
  color: #ffffff;
  font-size: 13px;
  font-weight: 900;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.4);
  transition: all 0.2s ease;
}

.circuit-start-btn:active {
  transform: scale(0.97);
}

/* Reproductor activo del circuito */
.circuit-player {
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: #140d21;
  border: 1px solid #4a2c72;
  border-radius: 16px;
  padding: 14px;
}

.circuit-player-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.circuit-stage-pill {
  font-size: 11px;
  font-weight: 900;
  padding: 3px 10px;
  border-radius: 999px;
  background: #a855f7;
  color: #ffffff;
}

.circuit-cancel-btn {
  background: transparent;
  border: none;
  color: #94a3b8;
  font-size: 12px;
  cursor: pointer;
  padding: 4px;
}

.circuit-player-title {
  font-size: 16px;
  font-weight: 900;
  color: #ffffff;
  line-height: 1.25;
}

.circuit-player-timer-box {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 6px;
  padding: 10px 0;
  background: #0d0818;
  border-radius: 12px;
  border: 1px solid #28193f;
}

.circuit-player-timer {
  font-size: 34px;
  font-weight: 900;
  color: #38bdf8;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
}

.circuit-player-timer-label {
  font-size: 11px;
  color: #94a3b8;
  font-weight: 700;
}

.circuit-instructions-box {
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: #1c142d;
  padding: 10px;
  border-radius: 12px;
}

.circuit-step-inst {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 11px;
  color: #cbd5e1;
  line-height: 1.35;
}

.circuit-step-inst-num {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #a855f7;
  color: #ffffff;
  font-size: 9px;
  font-weight: 900;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  margin-top: 1px;
}

.circuit-player-actions {
  display: flex;
  gap: 8px;
}

.circuit-btn-pause {
  flex: 1;
  min-height: 40px;
  border-radius: 10px;
  background: #251b37;
  border: 1px solid #483366;
  color: #e9d5ff;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.circuit-btn-next {
  flex: 1.3;
  min-height: 40px;
  border-radius: 10px;
  background: linear-gradient(135deg, #a855f7, #7c3aed);
  border: none;
  color: #ffffff;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

/* Pantalla de celebración final */
.circuit-completed-box {
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-align: center;
  padding: 14px;
  background: linear-gradient(135deg, #1b3527, #13261d);
  border: 1px solid #286445;
  border-radius: 16px;
}

.circuit-completed-title {
  font-size: 16px;
  font-weight: 900;
  color: #34d399;
}

.circuit-completed-summary {
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-align: left;
  background: #0e2017;
  padding: 10px;
  border-radius: 10px;
  border: 1px solid #1c4d34;
  font-size: 11px;
  color: #a7f3d0;
}

/* ==========================================================================
   GOTAS Y MEDICAMENTOS INTERACTIVO (SEGURIDAD NEONATAL & HORARIOS)
   ========================================================================== */
.meds-container {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.meds-hero-card {
  border-radius: 20px;
  background: linear-gradient(135deg, #1b263b, #0f172a);
  border: 1px solid #334155;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.meds-hero-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.meds-hero-tag {
  font-size: 10px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 999px;
  background: #38bdf8;
  color: #082f49;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.meds-caregiver-switch {
  display: flex;
  align-items: center;
  gap: 6px;
  background: #0b1120;
  padding: 3px;
  border-radius: 999px;
  border: 1px solid #1e293b;
}

.meds-caregiver-btn {
  padding: 4px 10px;
  border-radius: 999px;
  border: none;
  background: transparent;
  color: #94a3b8;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.2s ease;
}

.meds-caregiver-btn.active {
  background: #38bdf8;
  color: #082f49;
}

.meds-hero-summary {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: #cbd5e1;
}

.meds-hero-summary-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #10b981;
  flex-shrink: 0;
  box-shadow: 0 0 8px #10b981;
}

.meds-section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  font-weight: 800;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0 4px;
}

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

.med-card {
  border-radius: 16px;
  background: #141a29;
  border: 1px solid #28354b;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: all 0.2s ease;
}

.med-card.given-today {
  border-color: #1e3a34;
  background: #0f191a;
}

.med-card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
}

.med-card-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.med-card-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-size: 18px;
  background: #1e293b;
  flex-shrink: 0;
}

.med-card-name {
  font-size: 14px;
  font-weight: 800;
  color: #ffffff;
}

.med-card-dose {
  font-size: 11px;
  font-weight: 700;
  color: #38bdf8;
}

.med-card-badge {
  font-size: 10px;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 999px;
  white-space: nowrap;
}

.med-card-status-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 10px;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 700;
}

.med-status-green {
  background: #09261a;
  color: #34d399;
  border: 1px solid #134e38;
}

.med-status-amber {
  background: #2b1f0c;
  color: #fbbf24;
  border: 1px solid #573e13;
}

.med-status-blue {
  background: #082136;
  color: #38bdf8;
  border: 1px solid #13456b;
}

.med-status-red {
  background: #2f1214;
  color: #f87171;
  border: 1px solid #632328;
}

.med-card-desc {
  font-size: 11px;
  color: #94a3b8;
  line-height: 1.35;
}

.med-card-actions {
  display: flex;
  gap: 8px;
}

.med-btn-give {
  flex: 1;
  min-height: 42px;
  border-radius: 12px;
  border: none;
  background: linear-gradient(135deg, #0284c7, #0369a1);
  color: #ffffff;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.med-btn-give:active {
  transform: scale(0.97);
}

.med-btn-given {
  flex: 1;
  min-height: 42px;
  border-radius: 12px;
  border: 1px solid #1e3a34;
  background: #0c1a17;
  color: #34d399;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.med-btn-repeat {
  min-height: 42px;
  padding: 0 12px;
  border-radius: 12px;
  border: 1px solid #334155;
  background: #1e293b;
  color: #cbd5e1;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}

.med-collapsible-info {
  background: #0b1120;
  border: 1px solid #1e293b;
  border-radius: 10px;
  padding: 8px 10px;
  font-size: 10.5px;
  color: #94a3b8;
  line-height: 1.35;
}

.med-add-form-card {
  border-radius: 16px;
  background: #0f172a;
  border: 1px dashed #334155;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.med-history-drawer {
  border-radius: 16px;
  background: #0b1120;
  border: 1px solid #1e293b;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.med-history-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  padding: 6px 0;
  border-bottom: 1px solid #1e293b;
}

.med-history-row:last-child {
  border-bottom: none;
}

.med-history-name {
  font-weight: 700;
  color: #ffffff;
}

.med-history-meta {
  color: #94a3b8;
}


/* ==========================================================================
   DASHBOARD MÉDICO IMPRIMIBLE PARA EL PEDIATRA (VISIT DASHBOARD)
   ========================================================================== */
.visit-container {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.visit-controls-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.visit-range-pills {
  display: flex;
  background: #141a29;
  padding: 3px;
  border-radius: 999px;
  border: 1px solid #28354b;
  gap: 4px;
}

.visit-range-btn {
  padding: 6px 12px;
  border-radius: 999px;
  border: none;
  background: transparent;
  color: #94a3b8;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.2s ease;
}

.visit-range-btn.active {
  background: #38bdf8;
  color: #082f49;
  box-shadow: 0 2px 8px rgba(56, 189, 248, 0.3);
}

.visit-actions-group {
  display: flex;
  gap: 8px;
}

.visit-btn-action {
  min-height: 36px;
  padding: 0 12px;
  border-radius: 10px;
  border: 1px solid #334155;
  background: #1e293b;
  color: #f1f5f9;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.visit-btn-action:active {
  transform: scale(0.97);
}

.visit-btn-print {
  background: linear-gradient(135deg, #0284c7, #0369a1);
  border: none;
  color: #ffffff;
}

/* Documento clínico imprimible */
.visit-report-paper {
  border-radius: 18px;
  background: #0f172a;
  border: 1px solid #334155;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.visit-header-banner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding-bottom: 12px;
  border-bottom: 1px solid #334155;
  gap: 10px;
}

.visit-patient-title {
  font-size: 16px;
  font-weight: 900;
  color: #ffffff;
}

.visit-patient-meta {
  font-size: 11px;
  color: #94a3b8;
  margin-top: 2px;
}

.visit-period-badge {
  font-size: 10px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 999px;
  background: #0284c7;
  color: #ffffff;
  white-space: nowrap;
}

/* KPIs principales */
.visit-kpi-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  width: 100%;
  box-sizing: border-box;
}

.visit-kpi-tile {
  background: #1e293b;
  border: 1px solid #334155;
  border-radius: 12px;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
  box-sizing: border-box;
  overflow: hidden;
}

.visit-kpi-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.visit-kpi-title {
  font-size: 10px;
  color: #94a3b8;
  font-weight: 800;
  letter-spacing: 0.3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.visit-kpi-badge {
  font-size: 9.5px;
  font-weight: 700;
  color: #93c5fd;
  background: #0b1528;
  border: 1px solid #1e3a8a;
  padding: 1px 6px;
  border-radius: 4px;
  white-space: nowrap;
  flex-shrink: 0;
}

.visit-kpi-val {
  font-size: 18px;
  font-weight: 900;
  color: #ffffff;
  line-height: 1.1;
  margin-top: 2px;
}

.visit-kpi-sub {
  font-size: 10.5px;
  color: #cbd5e1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.visit-kpi-tag {
  font-size: 9.5px;
  font-weight: 800;
  color: #34d399;
  background: #06281e;
  border: 1px solid #065f46;
  padding: 2px 6px;
  border-radius: 4px;
  align-self: flex-start;
  margin-top: 2px;
  line-height: 1.25;
  max-width: 100%;
  box-sizing: border-box;
}

/* Gráfica SVG */
.visit-chart-box {
  background: #141f33;
  border: 1px solid #29384e;
  border-radius: 14px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.visit-chart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  font-weight: 800;
  color: #cbd5e1;
}

.visit-chart-svg {
  width: 100%;
  height: 120px;
  overflow: visible;
}

/* Tabla Matriz Desglosada */
.visit-matrix-wrapper {
  overflow-x: auto;
  border-radius: 12px;
  border: 1px solid #334155;
}

.visit-matrix-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 11px;
  text-align: center;
  min-width: 480px;
}

.visit-matrix-table th {
  background: #1e293b;
  color: #94a3b8;
  padding: 8px 6px;
  font-weight: 800;
  border-bottom: 1px solid #334155;
  white-space: nowrap;
}

.visit-matrix-table td {
  padding: 8px 6px;
  border-bottom: 1px solid #233044;
  color: #cbd5e1;
}

.visit-matrix-table tr:nth-child(even) {
  background: #141c2e;
}

.visit-matrix-table tr.total-row {
  background: #1e293b;
  font-weight: 900;
  color: #ffffff;
  border-top: 2px solid #38bdf8;
}

/* Dudas y Firma Pediátrica */
.visit-notes-section {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.visit-doubts-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.visit-doubt-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #1e293b;
  border: 1px solid #334155;
  padding: 6px 10px;
  border-radius: 8px;
  font-size: 11px;
  color: #f1f5f9;
}

.visit-doubt-delete {
  background: transparent;
  border: none;
  color: #94a3b8;
  cursor: pointer;
  padding: 2px 6px;
  font-size: 12px;
}

.visit-prescription-box {
  border: 1px dashed #475569;
  border-radius: 12px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: #0b1120;
}

.visit-prescription-line {
  height: 20px;
  border-bottom: 1px dashed #334155;
}

/* ==========================================================================
   ESTILOS DE IMPRESIÓN LIMPIA (PDF BLANCO Y NEGRO / COLOR PROFESIONAL)
   ========================================================================== */
@media print {
  body, #root, .main-layout {
    background: #ffffff !important;
    color: #111827 !important;
    padding: 0 !important;
    margin: 0 !important;
  }
  .bottom-nav, #topBar, #backIdeas, .visit-controls-bar, .modal-backdrop-blur, #modalBackdrop {
    display: none !important;
  }
  .idea-detail, .sheet, #sheetContent {
    background: #ffffff !important;
    color: #111827 !important;
    box-shadow: none !important;
    border: none !important;
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
  }
  .visit-report-paper {
    background: #ffffff !important;
    color: #111827 !important;
    border: 1px solid #94a3b8 !important;
    box-shadow: none !important;
    padding: 16px !important;
  }
  .visit-patient-title {
    color: #0f172a !important;
  }
  .visit-patient-meta {
    color: #475569 !important;
  }
  .visit-period-badge {
    background: #0284c7 !important;
    color: #ffffff !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
  .visit-kpi-grid {
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 10px !important;
  }
  .visit-kpi-tile {
    background: #f8fafc !important;
    border: 1px solid #cbd5e1 !important;
    color: #0f172a !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
  .visit-kpi-title {
    color: #475569 !important;
  }
  .visit-kpi-badge {
    background: #e0f2fe !important;
    border-color: #bae6fd !important;
    color: #0369a1 !important;
  }
  .visit-kpi-val {
    color: #0f172a !important;
  }
  .visit-kpi-sub {
    color: #334155 !important;
  }
  .visit-chart-box {
    background: #f8fafc !important;
    border: 1px solid #cbd5e1 !important;
  }
  .visit-chart-header {
    color: #0f172a !important;
  }
  .visit-matrix-table th {
    background: #f1f5f9 !important;
    color: #0f172a !important;
    border: 1px solid #cbd5e1 !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
  .visit-matrix-table td {
    border: 1px solid #e2e8f0 !important;
    color: #1e293b !important;
  }
  .visit-matrix-table tr:nth-child(even) {
    background: #f8fafc !important;
  }
  .visit-matrix-table tr.total-row {
    background: #e2e8f0 !important;
    color: #0f172a !important;
    border-top: 2px solid #0f172a !important;
  }
  .visit-prescription-box {
    background: #f8fafc !important;
    border: 1px solid #cbd5e1 !important;
  }
  .visit-doubt-row {
    background: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
    color: #0f172a !important;
  }
  .visit-doubt-delete {
    display: none !important;
  }
  .visit-svg-bar {
    fill: #0284c7 !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
}

/* ==========================================================================
   CARTILLA INMUNOLÓGICA DE VIDA Y PASAPORTE DIGITAL (VACCINE PASSPORT)
   ========================================================================== */
.vax-container {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.vax-hero {
  background: linear-gradient(135deg, #064e3b 0%, #0f172a 100%);
  border: 1px solid #059669;
  border-radius: 16px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-shadow: 0 4px 18px rgba(5, 150, 105, 0.2);
}

.vax-hero-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.vax-hero-title {
  font-size: 13px;
  font-weight: 800;
  color: #a7f3d0;
  display: flex;
  align-items: center;
  gap: 6px;
}

.vax-hero-badge {
  background: #022c22;
  border: 1px solid #10b981;
  color: #6ee7b7;
  font-size: 11px;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 999px;
}

.vax-meter-track {
  width: 100%;
  height: 8px;
  background: #06281e;
  border-radius: 999px;
  overflow: hidden;
  border: 1px solid #064e3b;
}

.vax-meter-fill {
  height: 100%;
  background: linear-gradient(90deg, #10b981, #34d399);
  border-radius: 999px;
  transition: width 0.3s ease;
}

.vax-hero-stats {
  display: flex;
  justify-content: space-between;
  font-size: 10.5px;
  color: #cbd5e1;
}

/* Toolbar de acciones */
.vax-toolbar {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.vax-btn-tool {
  flex: 1;
  min-width: 100px;
  min-height: 38px;
  padding: 0 10px;
  border-radius: 10px;
  border: 1px solid #334155;
  background: #1e293b;
  color: #f1f5f9;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.vax-btn-tool:active {
  transform: scale(0.97);
}

.vax-btn-add {
  background: linear-gradient(135deg, #047857, #065f46);
  border-color: #10b981;
  color: #ffffff;
}

.vax-btn-whatsapp {
  background: #141f33;
  border-color: #25d366;
  color: #4ade80;
}

.vax-btn-print {
  background: #141f33;
  border-color: #38bdf8;
  color: #38bdf8;
}

/* Pestañas por etapas de vida */
.vax-stage-tabs {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: none;
}

.vax-stage-tabs::-webkit-scrollbar {
  display: none;
}

.vax-stage-pill {
  flex-shrink: 0;
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid #334155;
  background: #141f33;
  color: #94a3b8;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.2s ease;
}

.vax-stage-pill.active {
  background: #0284c7;
  border-color: #38bdf8;
  color: #ffffff;
  box-shadow: 0 2px 10px rgba(2, 132, 199, 0.35);
}

/* Lista y Tarjetas de Vacunas */
.vax-cards-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.vax-card {
  background: #1e293b;
  border: 1px solid #334155;
  border-radius: 14px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: all 0.2s ease;
}

.vax-card.is-applied {
  background: #0a1f18;
  border-color: #059669;
}

.vax-card-top {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.vax-status-indicator {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  flex-shrink: 0;
  background: #0f172a;
  border: 1px solid #334155;
  color: #64748b;
}

.vax-card.is-applied .vax-status-indicator {
  background: #064e3b;
  border-color: #10b981;
  color: #34d399;
}

.vax-card-header-info {
  flex: 1;
  min-width: 0;
}

.vax-name-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}

.vax-title {
  font-size: 13px;
  font-weight: 800;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.vax-age-pill {
  font-size: 9.5px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 4px;
  background: #0f172a;
  border: 1px solid #334155;
  color: #94a3b8;
  white-space: nowrap;
  flex-shrink: 0;
}

.vax-desc {
  font-size: 10.5px;
  color: #94a3b8;
  margin-top: 2px;
  line-height: 1.3;
}

/* Ficha de datos aplicados */
.vax-applied-drawer {
  background: #06281e;
  border: 1px solid #065f46;
  border-radius: 10px;
  padding: 8px 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.vax-applied-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
  font-size: 10.5px;
}

.vax-applied-item {
  color: #cbd5e1;
  display: flex;
  align-items: center;
  gap: 4px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.vax-applied-item b {
  color: #34d399;
  font-weight: 700;
}

.vax-photo-thumb-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
}

.vax-photo-thumb {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  object-fit: cover;
  border: 1px solid #10b981;
  cursor: pointer;
  transition: transform 0.15s ease;
}

.vax-photo-thumb:hover {
  transform: scale(1.05);
}

.vax-card-actions {
  display: flex;
  gap: 8px;
  margin-top: 2px;
}

.vax-action-btn {
  flex: 1;
  min-height: 32px;
  padding: 0 10px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  transition: all 0.15s ease;
}

.vax-btn-apply-fast {
  background: #059669;
  border: none;
  color: #ffffff;
}

.vax-btn-apply-fast:active {
  background: #047857;
}

.vax-btn-edit {
  background: #141f33;
  border: 1px solid #334155;
  color: #cbd5e1;
}

.vax-btn-unapply {
  background: transparent;
  border: 1px solid #475569;
  color: #94a3b8;
  max-width: 85px;
}

/* Modal Emergente para Registro / Edición de Vacunas */
.vax-modal-layer {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  backdrop-filter: blur(4px);
}

.vax-modal-box {
  background: #0f172a;
  border: 1px solid #334155;
  border-radius: 18px;
  width: 100%;
  max-width: 420px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
}

.vax-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #1e293b;
  padding-bottom: 8px;
}

.vax-modal-title {
  font-size: 14px;
  font-weight: 800;
  color: #ffffff;
}

.vax-modal-close {
  background: transparent;
  border: none;
  color: #94a3b8;
  font-size: 18px;
  cursor: pointer;
  padding: 4px;
}

.vax-form-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.vax-form-label {
  font-size: 10.5px;
  font-weight: 700;
  color: #94a3b8;
  text-transform: uppercase;
}

.vax-form-input {
  background: #1e293b;
  border: 1px solid #334155;
  border-radius: 8px;
  padding: 8px 10px;
  color: #ffffff;
  font-size: 12px;
  box-sizing: border-box;
  width: 100%;
}

.vax-form-input:focus {
  outline: none;
  border-color: #38bdf8;
}

.vax-site-chips {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}

.vax-site-chip {
  padding: 4px 8px;
  border-radius: 6px;
  border: 1px solid #334155;
  background: #1e293b;
  color: #cbd5e1;
  font-size: 10px;
  font-weight: 700;
  cursor: pointer;
}

.vax-site-chip.selected {
  background: #0284c7;
  border-color: #38bdf8;
  color: #ffffff;
}

.vax-photo-uploader-box {
  border: 2px dashed #334155;
  border-radius: 10px;
  padding: 12px;
  text-align: center;
  background: #141f33;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

/* Visor de imagen grande */
.vax-img-viewer {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.9);
  z-index: 10000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.vax-img-viewer img {
  max-width: 95%;
  max-height: 80vh;
  border-radius: 12px;
  border: 2px solid #334155;
}

.vax-img-viewer-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: #1e293b;
  border: 1px solid #334155;
  color: #ffffff;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  font-size: 20px;
  cursor: pointer;
}

/* Modo de impresión / Guardar en PDF */
@media print {
  .vax-toolbar, .vax-stage-tabs, .vax-card-actions, .vax-btn-tool, #backIdeas, .vax-modal-layer, .vax-img-viewer {
    display: none !important;
  }
  .vax-hero {
    background: #ffffff !important;
    border: 1px solid #94a3b8 !important;
    box-shadow: none !important;
    color: #0f172a !important;
  }
  .vax-hero-title, .vax-hero-badge {
    color: #0f172a !important;
    background: #e2e8f0 !important;
    border-color: #94a3b8 !important;
  }
  .vax-card {
    background: #ffffff !important;
    border: 1px solid #94a3b8 !important;
    color: #0f172a !important;
    page-break-inside: avoid;
  }
  .vax-title, .vax-applied-item b {
    color: #0f172a !important;
  }
  .vax-applied-drawer {
    background: #f8fafc !important;
    border: 1px solid #cbd5e1 !important;
  }
}

/* ==========================================================================
   CRECIMIENTO Y GRUPOS OMS (GROWTH MODULE & OMS PERCENTILES)
   ========================================================================== */
.growth-container {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* Banner de la Guía Ilustrada */
.growth-guide-card {
  background: #141f33;
  border: 1px solid #28354b;
  border-radius: 14px;
  overflow: hidden;
  transition: all 0.2s ease;
}

.growth-guide-trigger {
  width: 100%;
  padding: 10px 14px;
  background: transparent;
  border: none;
  color: #38bdf8;
  font-size: 11.5px;
  font-weight: 800;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}

.growth-guide-img {
  width: 100%;
  display: block;
  border-top: 1px solid #28354b;
  cursor: zoom-in;
}

/* Hero de Estado de Meghan (Tarjeta tipo Mockup) */
.growth-hero-phone {
  background: #0f172a;
  border: 1.5px solid #1e293b;
  border-radius: 18px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.growth-hero-profile-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.growth-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #1e293b;
  border: 1.5px solid #38bdf8;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

.growth-profile-info {
  display: flex;
  flex-direction: column;
}

.growth-baby-name {
  font-size: 14px;
  font-weight: 800;
  color: #ffffff;
}

.growth-baby-age {
  font-size: 11px;
  color: #94a3b8;
}

/* Insignia de Grupo OMS */
.growth-group-card {
  border-radius: 12px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  transition: all 0.2s ease;
}

.growth-group-header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 800;
}

.growth-group-desc {
  font-size: 11px;
  color: #cbd5e1;
  line-height: 1.35;
}

/* Insignia de Ganancia en Gramos */
.growth-gain-card {
  background: #14281f;
  border: 1px solid #065f46;
  border-radius: 12px;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.growth-gain-val {
  font-size: 13px;
  font-weight: 800;
  color: #facc15;
  display: flex;
  align-items: center;
  gap: 6px;
}

.growth-gain-sub {
  font-size: 10.5px;
  color: #34d399;
}

/* Tacómetros / Barras de Percentil */
.growth-tach-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.growth-tach-row {
  background: #1e293b;
  border: 1px solid #334155;
  border-radius: 12px;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.growth-tach-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.growth-tach-title {
  font-size: 12px;
  font-weight: 800;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 6px;
}

.growth-tach-badge {
  font-size: 10px;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 999px;
  background: #022c22;
  border: 1px solid #10b981;
  color: #34d399;
}

.growth-bar-track {
  width: 100%;
  height: 8px;
  background: #0b1324;
  border-radius: 999px;
  position: relative;
  overflow: visible;
  border: 1px solid #334155;
}

.growth-bar-pin {
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #ffffff;
  border: 3px solid #38bdf8;
  box-shadow: 0 0 8px rgba(56, 189, 248, 0.6);
  transition: left 0.3s ease;
}

.growth-bar-labels {
  display: flex;
  justify-content: space-between;
  font-size: 9px;
  font-weight: 700;
  color: #64748b;
}

/* Explicador de Grupos OMS (de la infografía) */
.growth-oms-explainer {
  background: #141a29;
  border: 1px solid #28354b;
  border-radius: 14px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.growth-oms-explainer-title {
  font-size: 11.5px;
  font-weight: 800;
  color: #e2e8f0;
  text-align: center;
}

.growth-groups-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
}

.growth-group-box {
  border-radius: 8px;
  padding: 6px 8px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.growth-group-box-label {
  font-size: 9.5px;
  font-weight: 800;
}

.growth-group-box-desc {
  font-size: 8.5px;
  color: #cbd5e1;
  line-height: 1.25;
}

/* Formulario de Nueva Medición */
.growth-form-card {
  background: #141f33;
  border: 1px solid #28354b;
  border-radius: 14px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.growth-form-title {
  font-size: 12px;
  font-weight: 800;
  color: #ffffff;
}

.growth-inputs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.growth-input-block {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.growth-input-block label {
  font-size: 10px;
  font-weight: 700;
  color: #94a3b8;
}

.growth-input-block input {
  background: #0f172a;
  border: 1px solid #334155;
  border-radius: 8px;
  padding: 8px;
  color: #ffffff;
  font-size: 13px;
  font-weight: 800;
  text-align: center;
  box-sizing: border-box;
  width: 100%;
}

.growth-quick-adjusts {
  display: flex;
  gap: 4px;
  justify-content: center;
}

.growth-adj-btn {
  background: #1e293b;
  border: 1px solid #334155;
  color: #94a3b8;
  font-size: 9px;
  font-weight: 800;
  padding: 3px 6px;
  border-radius: 4px;
  cursor: pointer;
}

/* Historial de Mediciones */
.growth-history-box {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.growth-history-item {
  background: #1e293b;
  border: 1px solid #334155;
  border-radius: 10px;
  padding: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.growth-history-data {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.growth-history-date {
  font-size: 11.5px;
  font-weight: 800;
  color: #ffffff;
}

.growth-history-metrics {
  font-size: 10.5px;
  color: #94a3b8;
}

.growth-del-btn {
  background: transparent;
  border: none;
  color: #ef4444;
  cursor: pointer;
  padding: 4px 8px;
  font-size: 14px;
}


/* ==========================================================================
   HITO 21: BAÑO SEGURO Y CUIDADO DEL CORDÓN (MEGHAN)
   ========================================================================== */

.bath-container {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-bottom: 24px;
}

/* Tarjeta Hero Guía Ilustrada */
.bath-hero-card {
  background: #111827;
  border: 1px solid #1e293b;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
}

.bath-hero-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 14px;
  background: #1e293b;
}

.bath-hero-badge {
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.12);
  padding: 3px 8px;
  border-radius: 6px;
  border: 1px solid rgba(56, 189, 248, 0.25);
}

.bath-zoom-btn {
  background: transparent;
  border: 1px solid #334155;
  color: #f1f5f9;
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s;
}

.bath-zoom-btn:hover {
  background: #334155;
  color: #38bdf8;
}

.bath-hero-banner {
  position: relative;
  width: 100%;
  max-height: 200px;
  overflow: hidden;
  cursor: pointer;
  background: #0f172a;
}

.bath-hero-img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.3s ease;
}

.bath-hero-banner:hover .bath-hero-img {
  transform: scale(1.02);
}

.bath-hero-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 12px 14px;
  background: linear-gradient(to top, rgba(15, 23, 42, 0.95) 0%, rgba(15, 23, 42, 0.6) 60%, transparent 100%);
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.bath-hero-overlay-tag {
  font-size: 11.5px;
  font-weight: 800;
  color: #38bdf8;
}

.bath-hero-overlay-tap {
  font-size: 10px;
  color: #94a3b8;
}

/* Regla de Oro de Seguridad */
.bath-safety-callout {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 14px;
  background: rgba(239, 68, 68, 0.1);
  border-top: 1px solid rgba(239, 68, 68, 0.25);
}

.bath-safety-icon {
  font-size: 18px;
  line-height: 1;
}

.bath-safety-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.bath-safety-text strong {
  font-size: 11px;
  font-weight: 800;
  color: #ef4444;
  letter-spacing: 0.3px;
}

.bath-safety-text span {
  font-size: 11px;
  color: #fca5a5;
  line-height: 1.35;
}

/* Navegación por Pestañas */
.bath-tabs-nav {
  display: flex;
  gap: 8px;
  background: #0f172a;
  padding: 4px;
  border-radius: 10px;
  border: 1px solid #1e293b;
}

.bath-tab-btn {
  flex: 1;
  padding: 8px 12px;
  background: transparent;
  border: none;
  border-radius: 8px;
  color: #94a3b8;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.bath-tab-btn.active {
  background: #1e293b;
  color: #38bdf8;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

.bath-tab-panel {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.bath-tab-panel.hidden {
  display: none !important;
}

/* Opción 3: Rastreador Semanal */
.bath-weekly-card {
  background: #111827;
  border: 1px solid #1e293b;
  border-radius: 12px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.bath-weekly-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.bath-weekly-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 800;
  color: #f1f5f9;
}

.bath-weekly-badge {
  font-size: 9.5px;
  font-weight: 700;
  background: rgba(16, 185, 129, 0.15);
  color: #10b981;
  padding: 2px 6px;
  border-radius: 4px;
  border: 1px solid rgba(16, 185, 129, 0.25);
}

.bath-weekly-count {
  font-size: 12px;
  font-weight: 800;
  color: #38bdf8;
}

.bath-weekly-progress-bar {
  width: 100%;
  height: 6px;
  background: #1e293b;
  border-radius: 4px;
  overflow: hidden;
}

.bath-weekly-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #38bdf8, #10b981);
  transition: width 0.3s ease;
}

.bath-weekly-dots {
  display: flex;
  justify-content: space-around;
  padding: 4px 0;
}

.bath-weekly-dot-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.bath-weekly-dot-circle {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid #334155;
  background: #0f172a;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  color: #64748b;
  font-weight: 800;
}

.bath-weekly-dot-circle.completed {
  border-color: #10b981;
  background: #10b981;
  color: #ffffff;
}

.bath-weekly-dot-label {
  font-size: 9px;
  color: #94a3b8;
  font-weight: 600;
}

.bath-weekly-hint {
  font-size: 10.5px;
  color: #94a3b8;
  line-height: 1.4;
  margin: 0;
  background: #0f172a;
  padding: 8px 10px;
  border-radius: 8px;
  border-left: 3px solid #38bdf8;
}

/* Selector de Técnica */
.bath-technique-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.bath-label {
  font-size: 11px;
  font-weight: 800;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.bath-technique-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.bath-tech-pill {
  background: #111827;
  border: 1px solid #1e293b;
  border-radius: 10px;
  padding: 10px 8px;
  color: #cbd5e1;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.bath-tech-pill.active {
  background: rgba(56, 189, 248, 0.12);
  border-color: #38bdf8;
  color: #38bdf8;
}

/* Opción 1: Asistente en Vivo & Temporizador */
.bath-timer-card {
  background: #111827;
  border: 1px solid #1e293b;
  border-radius: 14px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: center;
}

.bath-timer-header {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.bath-timer-header span {
  font-size: 12px;
  font-weight: 800;
  color: #f1f5f9;
}

.bath-timer-targets {
  display: flex;
  gap: 4px;
}

.bath-timer-target {
  background: #1e293b;
  border: 1px solid #334155;
  border-radius: 6px;
  color: #94a3b8;
  font-size: 10px;
  font-weight: 700;
  padding: 4px 8px;
  cursor: pointer;
}

.bath-timer-target.active {
  background: #38bdf8;
  border-color: #38bdf8;
  color: #0f172a;
}

.bath-timer-display-box {
  display: flex;
  justify-content: center;
  padding: 8px 0;
}

.bath-timer-circle {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: radial-gradient(circle, #1e293b 40%, #0f172a 100%);
  border: 4px solid #38bdf8;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  box-shadow: 0 0 20px rgba(56, 189, 248, 0.2);
  transition: all 0.3s ease;
}

.bath-timer-circle.cold-warning {
  border-color: #f59e0b;
  box-shadow: 0 0 25px rgba(245, 158, 11, 0.4);
  animation: pulse-bath-amber 1.5s infinite;
}

.bath-timer-circle.finished {
  border-color: #ef4444;
  box-shadow: 0 0 25px rgba(239, 68, 68, 0.4);
}

@keyframes pulse-bath-amber {
  0% { transform: scale(1); }
  50% { transform: scale(1.02); }
  100% { transform: scale(1); }
}

.bath-timer-icon {
  font-size: 22px;
}

.bath-timer-digits {
  font-family: monospace, monospace;
  font-size: 26px;
  font-weight: 900;
  color: #ffffff;
  letter-spacing: 1px;
}

.bath-timer-status {
  font-size: 10px;
  font-weight: 700;
  color: #38bdf8;
}

/* Barra de Enfriamiento */
.bath-temp-track {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.bath-temp-fill {
  width: 100%;
  height: 6px;
  border-radius: 3px;
  background: linear-gradient(90deg, #f59e0b 0%, #38bdf8 50%, #60a5fa 100%);
  transition: width 1s linear;
}

.bath-temp-labels {
  display: flex;
  justify-content: space-between;
  font-size: 9.5px;
  color: #94a3b8;
}

/* Alerta de Agua Fría */
.bath-cold-alert {
  width: 100%;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.35);
  border-radius: 10px;
  padding: 10px 12px;
  box-sizing: border-box;
}

.bath-cold-alert.hidden {
  display: none !important;
}

.bath-cold-icon {
  font-size: 20px;
  line-height: 1;
}

.bath-cold-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.bath-cold-info strong {
  font-size: 11px;
  font-weight: 800;
  color: #fbbf24;
}

.bath-cold-info span {
  font-size: 10.5px;
  color: #fde68a;
  line-height: 1.35;
}

/* Acciones Temporizador */
.bath-timer-actions {
  width: 100%;
  display: flex;
  gap: 8px;
}

.bath-btn-play {
  flex: 2;
  padding: 10px;
  border-radius: 10px;
  border: none;
  background: #38bdf8;
  color: #0f172a;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.2s ease;
}

.bath-btn-play:hover {
  background: #7dd3fc;
}

.bath-btn-play.running {
  background: #f59e0b;
  color: #0f172a;
}

.bath-btn-reset {
  flex: 1;
  padding: 10px;
  border-radius: 10px;
  border: 1px solid #334155;
  background: #1e293b;
  color: #f1f5f9;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.bath-btn-reset.hidden {
  display: none !important;
}

/* Acordeón de 8 Pasos */
.bath-steps-accordion {
  background: #111827;
  border: 1px solid #1e293b;
  border-radius: 12px;
  overflow: hidden;
}

.bath-accordion-toggle {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 14px;
  background: #1e293b;
  border: none;
  color: #f1f5f9;
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
}

.bath-acc-arrow {
  font-size: 10px;
  transition: transform 0.2s ease;
}

.bath-steps-content {
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: #0f172a;
}

.bath-steps-content.hidden {
  display: none !important;
}

.bath-step-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 11px;
  color: #cbd5e1;
  line-height: 1.4;
}

.bath-step-num {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #38bdf8;
  color: #0f172a;
  font-weight: 800;
  font-size: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.bath-step-item b {
  color: #ffffff;
}

/* Checklist Pre-Baño & Pliegues */
.bath-checklist-card {
  background: #111827;
  border: 1px solid #1e293b;
  border-radius: 12px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.bath-check-title {
  font-size: 11.5px;
  font-weight: 800;
  color: #f1f5f9;
}

.bath-check-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.bath-check-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  color: #cbd5e1;
  cursor: pointer;
}

.bath-checkbox {
  width: 16px;
  height: 16px;
  accent-color: #38bdf8;
  cursor: pointer;
}

/* PESTAÑA 2: CORDÓN Y OMBLIGO */
.bath-cord-stage-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.bath-cord-stages {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.bath-cord-stage {
  background: #111827;
  border: 1px solid #1e293b;
  border-radius: 10px;
  padding: 10px 8px;
  color: #cbd5e1;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  text-align: center;
}

.bath-cord-stage.active {
  background: rgba(16, 185, 129, 0.12);
  border-color: #10b981;
  color: #10b981;
}

/* Tarjeta Hito Cordón */
.bath-milestone-cord-card {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.15) 0%, rgba(217, 119, 6, 0.08) 100%);
  border: 1px solid rgba(245, 158, 11, 0.35);
  border-radius: 12px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.bath-milestone-content {
  display: flex;
  align-items: center;
  gap: 10px;
}

.bath-milestone-icon {
  font-size: 24px;
}

.bath-milestone-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.bath-milestone-info strong {
  font-size: 11.5px;
  font-weight: 800;
  color: #fbbf24;
}

.bath-milestone-info span {
  font-size: 10.5px;
  color: #fde68a;
}

.bath-milestone-btn {
  width: 100%;
  padding: 9px;
  background: #f59e0b;
  border: none;
  border-radius: 8px;
  color: #0f172a;
  font-size: 11.5px;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.2s ease;
}

.bath-milestone-btn:hover {
  background: #fbbf24;
}

/* Opción 5: Onfalitis & Semáforo */
.bath-onfalitis-card {
  background: #111827;
  border: 1px solid #1e293b;
  border-radius: 14px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.bath-onfalitis-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.bath-onfalitis-title {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.bath-onfalitis-title span {
  font-size: 12px;
  font-weight: 800;
  color: #f1f5f9;
}

.bath-onfalitis-title small {
  font-size: 9.5px;
  color: #94a3b8;
}

.bath-status-pill {
  font-size: 10px;
  font-weight: 800;
  padding: 4px 8px;
  border-radius: 6px;
}

.bath-status-pill.green {
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.35);
  color: #10b981;
}

.bath-status-pill.red {
  background: rgba(239, 68, 68, 0.2);
  border: 1px solid #ef4444;
  color: #ef4444;
  animation: pulse-bath-red 1.2s infinite;
}

@keyframes pulse-bath-red {
  0% { transform: scale(1); }
  50% { transform: scale(1.04); }
  100% { transform: scale(1); }
}

.bath-onfalitis-desc {
  font-size: 11px;
  color: #cbd5e1;
  margin: 0;
  line-height: 1.35;
}

.bath-red-flags-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: #0f172a;
  padding: 10px;
  border-radius: 10px;
  border: 1px solid #1e293b;
}

.bath-red-flag-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  color: #fca5a5;
  cursor: pointer;
}

.bath-red-flag-label strong {
  color: #ef4444;
}

.bath-flag-chk {
  width: 16px;
  height: 16px;
  accent-color: #ef4444;
}

/* Semáforo Reactivo */
.bath-semaphore-box {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px;
  border-radius: 10px;
  transition: all 0.3s ease;
}

.bath-semaphore-box.normal {
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.25);
}

.bath-semaphore-box.alert {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.45);
}

.bath-sem-icon {
  font-size: 20px;
  line-height: 1;
}

.bath-sem-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.bath-sem-text strong {
  font-size: 11.5px;
  font-weight: 800;
  color: #10b981;
}

.bath-semaphore-box.alert .bath-sem-text strong {
  color: #ef4444;
}

.bath-sem-text span {
  font-size: 10.5px;
  color: #94a3b8;
  line-height: 1.4;
}

.bath-semaphore-box.alert .bath-sem-text span {
  color: #fca5a5;
}

/* Consejos Pediátricos de Curación */
.bath-cord-care-tips {
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: #0f172a;
  padding: 10px;
  border-radius: 10px;
}

.bath-care-tip-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 10.5px;
  color: #94a3b8;
  line-height: 1.35;
}

.bath-care-tip-item b {
  color: #e2e8f0;
}

/* Registro Fotográfico Local */
.bath-photo-card {
  background: #111827;
  border: 1px solid #1e293b;
  border-radius: 12px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.bath-photo-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.bath-photo-header span {
  font-size: 11.5px;
  font-weight: 800;
  color: #f1f5f9;
}

.bath-photo-header small {
  font-size: 9.5px;
  color: #38bdf8;
}

.bath-photo-desc {
  font-size: 10.5px;
  color: #94a3b8;
  margin: 0;
  line-height: 1.35;
}

.bath-photo-preview-area {
  width: 100%;
  height: 140px;
  border: 1px dashed #334155;
  border-radius: 10px;
  background: #0f172a;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.bath-photo-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  color: #64748b;
  font-size: 11px;
}

.bath-photo-empty span:first-child {
  font-size: 24px;
}

.bath-photo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.bath-photo-img.hidden {
  display: none !important;
}

.bath-photo-actions {
  display: flex;
  gap: 8px;
}

.bath-photo-btn {
  flex: 1;
  padding: 8px;
  background: #1e293b;
  border: 1px solid #334155;
  border-radius: 8px;
  color: #f1f5f9;
  font-size: 11px;
  font-weight: 700;
  text-align: center;
  cursor: pointer;
  display: block;
}

.bath-photo-btn:hover {
  background: #334155;
}

.bath-photo-del-btn {
  padding: 8px 12px;
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.35);
  border-radius: 8px;
  color: #ef4444;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}

.bath-photo-del-btn.hidden {
  display: none !important;
}

/* Cajas de Guardar y Botones */
.bath-save-box {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.bath-action-buttons-row {
  display: flex;
  gap: 8px;
}

.bath-action-buttons-row .primary-button {
  flex: 2;
}

.bath-action-buttons-row .secondary-button {
  flex: 1;
  font-size: 11px;
}

/* Historial Reciente */
.bath-history-section {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 10px;
}

.bath-history-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.bath-history-header span {
  font-size: 11.5px;
  font-weight: 800;
  color: #f1f5f9;
}

.bath-history-tag {
  font-size: 9.5px;
  color: #94a3b8;
}

.bath-history-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.bath-history-item {
  background: #111827;
  border: 1px solid #1e293b;
  border-radius: 10px;
  padding: 10px 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.bath-history-data {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.bath-history-date {
  font-size: 11px;
  font-weight: 800;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 6px;
}

.bath-history-details {
  font-size: 10px;
  color: #94a3b8;
}

.bath-del-btn {
  background: transparent;
  border: none;
  color: #ef4444;
  cursor: pointer;
  padding: 4px 6px;
  font-size: 13px;
}

/* Modal Visor Zoom */
.bath-modal-zoom {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.95);
  z-index: 99999;
  display: flex;
  flex-direction: column;
}

.bath-modal-zoom.hidden {
  display: none !important;
}

.bath-modal-zoom-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  background: #0f172a;
  border-bottom: 1px solid #1e293b;
  color: #f1f5f9;
  font-size: 13px;
  font-weight: 800;
}

.bath-modal-zoom-close {
  background: #1e293b;
  border: 1px solid #334155;
  color: #f1f5f9;
  border-radius: 6px;
  padding: 6px 12px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}

.bath-modal-zoom-body {
  flex: 1;
  overflow: auto;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 10px;
}

.bath-modal-zoom-img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 8px;
}


/* ==========================================================================
   HITO 22: SEMÁFORO DE PAÑALES E HIDRATACIÓN (MEGHAN) - PROPUESTAS 1, 2 Y 3
   ========================================================================== */

.hydration-container {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-bottom: 24px;
}

/* Tarjeta Hero Guía Ilustrada Oficial */
.hydration-hero-card {
  background: #111827;
  border: 1px solid #1e293b;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
}

.hydration-hero-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 14px;
  background: #1e293b;
}

.hydration-hero-badge {
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.12);
  padding: 3px 8px;
  border-radius: 6px;
  border: 1px solid rgba(56, 189, 248, 0.25);
}

.hydration-zoom-btn {
  background: transparent;
  border: 1px solid #334155;
  color: #f1f5f9;
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s;
}

.hydration-zoom-btn:hover {
  background: #334155;
  color: #38bdf8;
}

.hydration-hero-banner {
  position: relative;
  width: 100%;
  max-height: 210px;
  overflow: hidden;
  cursor: pointer;
  background: #0f172a;
}

.hydration-hero-img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.3s ease;
}

.hydration-hero-banner:hover .hydration-hero-img {
  transform: scale(1.02);
}

.hydration-hero-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 12px 14px;
  background: linear-gradient(to top, rgba(15, 23, 42, 0.95) 0%, rgba(15, 23, 42, 0.6) 60%, transparent 100%);
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.hydration-hero-overlay-tag {
  font-size: 11.5px;
  font-weight: 800;
  color: #38bdf8;
}

.hydration-hero-overlay-tap {
  font-size: 10px;
  color: #94a3b8;
}

/* Regla de Oro Pediátrica */
.hydration-safety-callout {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 14px;
  background: rgba(56, 189, 248, 0.08);
  border-top: 1px solid rgba(56, 189, 248, 0.2);
}

.hydration-safety-icon {
  font-size: 18px;
  line-height: 1;
}

.hydration-safety-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.hydration-safety-text strong {
  font-size: 11px;
  font-weight: 800;
  color: #38bdf8;
  letter-spacing: 0.3px;
}

.hydration-safety-text span {
  font-size: 10.5px;
  color: #cbd5e1;
  line-height: 1.35;
}

/* Pestañas de Navegación */
.hydration-tabs-nav {
  display: flex;
  gap: 8px;
  background: #0f172a;
  padding: 4px;
  border-radius: 10px;
  border: 1px solid #1e293b;
}

.hydration-tab-btn {
  flex: 1;
  padding: 8px 12px;
  background: transparent;
  border: none;
  border-radius: 8px;
  color: #94a3b8;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.hydration-tab-btn.active {
  background: #1e293b;
  color: #38bdf8;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

.hydration-tab-panel {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.hydration-tab-panel.hidden {
  display: none !important;
}

/* Tacómetro y Semáforo Principal */
.hydration-gauge-card {
  background: #111827;
  border: 1px solid #1e293b;
  border-radius: 14px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
}

.hydration-gauge-header {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.hydration-gauge-header span {
  font-size: 11.5px;
  font-weight: 800;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.hydration-status-badge {
  font-size: 10px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 6px;
}

.hydration-status-badge.green {
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.35);
  color: #10b981;
}

.hydration-status-badge.amber {
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.35);
  color: #f59e0b;
}

.hydration-status-badge.red {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.35);
  color: #ef4444;
}

.hydration-gauge-display {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 4px;
}

.hydration-count-big {
  font-family: monospace, monospace;
  font-size: 42px;
  font-weight: 900;
  color: #ffffff;
  line-height: 1;
}

.hydration-count-total {
  font-size: 18px;
  font-weight: 700;
  color: #64748b;
}

.hydration-count-sub {
  font-size: 11px;
  color: #94a3b8;
  font-weight: 600;
}

/* Barra de Progreso del Semáforo */
.hydration-progress-box {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.hydration-progress-bar {
  width: 100%;
  height: 8px;
  background: #1e293b;
  border-radius: 4px;
  overflow: hidden;
}

.hydration-progress-fill {
  height: 100%;
  border-radius: 4px;
  background: linear-gradient(90deg, #f59e0b 0%, #38bdf8 60%, #10b981 100%);
  transition: width 0.3s ease;
}

.hydration-progress-labels {
  display: flex;
  justify-content: space-between;
  font-size: 9.5px;
  color: #64748b;
}

/* Mensaje del Semáforo */
.hydration-message-box {
  width: 100%;
  background: #0f172a;
  border-radius: 10px;
  padding: 10px 12px;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  text-align: left;
}

.hydration-msg-icon {
  font-size: 18px;
  line-height: 1;
}

.hydration-msg-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.hydration-msg-text strong {
  font-size: 11px;
  font-weight: 800;
  color: #f1f5f9;
}

.hydration-msg-text span {
  font-size: 10.5px;
  color: #94a3b8;
  line-height: 1.35;
}

/* Cronómetro de Intervalo (Horas sin pipí) */
.hydration-interval-card {
  background: #111827;
  border: 1px solid #1e293b;
  border-radius: 12px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.hydration-interval-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.hydration-interval-label {
  font-size: 10px;
  font-weight: 800;
  color: #94a3b8;
  text-transform: uppercase;
}

.hydration-interval-value {
  font-size: 14px;
  font-weight: 800;
  color: #38bdf8;
  display: flex;
  align-items: center;
  gap: 6px;
}

.hydration-interval-status {
  font-size: 10px;
  color: #64748b;
}

.hydration-interval-badge {
  font-size: 10px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
  background: rgba(16, 185, 129, 0.12);
  color: #10b981;
}

.hydration-interval-badge.alert {
  background: rgba(245, 158, 11, 0.2);
  color: #f59e0b;
  border: 1px solid rgba(245, 158, 11, 0.4);
}

/* Alerta de Retención (> 6 horas) */
.hydration-warning-banner {
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.35);
  border-radius: 10px;
  padding: 10px 12px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.hydration-warning-banner.hidden {
  display: none !important;
}

.hydration-warn-icon {
  font-size: 18px;
}

.hydration-warn-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.hydration-warn-text strong {
  font-size: 11px;
  font-weight: 800;
  color: #fbbf24;
}

.hydration-warn-text span {
  font-size: 10.5px;
  color: #fde68a;
  line-height: 1.35;
}

/* Registro Express de Pañal Mojado */
.hydration-express-card {
  background: #111827;
  border: 1px solid #1e293b;
  border-radius: 14px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.hydration-express-title {
  font-size: 11.5px;
  font-weight: 800;
  color: #f1f5f9;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Colorímetro Pediátrico Táctil */
.hydration-color-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.hydration-color-label {
  font-size: 10.5px;
  font-weight: 700;
  color: #94a3b8;
}

.hydration-color-options {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
}

.hydration-color-btn {
  background: #0f172a;
  border: 1px solid #1e293b;
  border-radius: 8px;
  padding: 8px 4px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.hydration-color-btn:hover {
  background: #1e293b;
}

.hydration-color-btn.active {
  border-color: #38bdf8;
  background: rgba(56, 189, 248, 0.12);
}

.hydration-drop-icon {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  display: inline-block;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.drop-trans { background: #e0f2fe; }
.drop-pale { background: #fef08a; }
.drop-yellow { background: #eab308; }
.drop-amber { background: #f97316; }

.hydration-color-btn span {
  font-size: 9.5px;
  font-weight: 700;
  color: #cbd5e1;
  text-align: center;
}

/* Selector de Peso / Sensación del Pañal */
.hydration-weight-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.hydration-weight-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.hydration-weight-btn {
  background: #0f172a;
  border: 1px solid #1e293b;
  border-radius: 8px;
  padding: 8px;
  color: #cbd5e1;
  font-size: 10.5px;
  font-weight: 700;
  cursor: pointer;
  text-align: center;
  transition: all 0.2s ease;
}

.hydration-weight-btn.active {
  background: rgba(16, 185, 129, 0.12);
  border-color: #10b981;
  color: #10b981;
}

/* Casilla Cristales de Urato */
.hydration-urato-label {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(245, 158, 11, 0.08);
  border: 1px solid rgba(245, 158, 11, 0.25);
  border-radius: 8px;
  padding: 8px 10px;
  cursor: pointer;
}

.hydration-urato-chk {
  width: 16px;
  height: 16px;
  accent-color: #f59e0b;
}

.hydration-urato-text {
  font-size: 10.5px;
  color: #fde68a;
  line-height: 1.35;
}

.hydration-urato-text strong {
  color: #fbbf24;
}

.hydration-btn-save {
  padding: 10px;
  border-radius: 8px;
  border: none;
  background: #38bdf8;
  color: #0f172a;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.2s ease;
}

.hydration-btn-save:hover {
  background: #7dd3fc;
}

/* Línea de Tiempo de 24 Horas */
.hydration-timeline-card {
  background: #111827;
  border: 1px solid #1e293b;
  border-radius: 12px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.hydration-timeline-title {
  font-size: 11px;
  font-weight: 800;
  color: #94a3b8;
  text-transform: uppercase;
}

.hydration-timeline-strip {
  display: flex;
  gap: 2px;
  height: 28px;
  background: #0f172a;
  border-radius: 6px;
  padding: 4px;
  overflow: hidden;
  align-items: center;
}

.hydration-timeline-slot {
  flex: 1;
  height: 100%;
  border-radius: 2px;
  background: #1e293b;
  position: relative;
  transition: background 0.2s;
}

.hydration-timeline-slot.wet {
  background: #38bdf8;
  box-shadow: 0 0 6px rgba(56, 189, 248, 0.4);
}

.hydration-timeline-labels {
  display: flex;
  justify-content: space-between;
  font-size: 9px;
  color: #64748b;
}

/* PESTAÑA 2: CORRELACIÓN & PEDIATRA */
.hydration-correl-card {
  background: #111827;
  border: 1px solid #1e293b;
  border-radius: 14px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.hydration-correl-title {
  font-size: 11.5px;
  font-weight: 800;
  color: #f1f5f9;
}

.hydration-correl-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.hydration-correl-box {
  background: #0f172a;
  border: 1px solid #1e293b;
  border-radius: 10px;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  align-items: center;
  text-align: center;
}

.hydration-correl-box span:first-child {
  font-size: 10px;
  font-weight: 700;
  color: #94a3b8;
  text-transform: uppercase;
}

.hydration-correl-val {
  font-family: monospace, monospace;
  font-size: 20px;
  font-weight: 900;
  color: #ffffff;
}

.hydration-correl-sub {
  font-size: 9.5px;
  color: #64748b;
}

.hydration-correl-summary {
  font-size: 10.5px;
  color: #cbd5e1;
  line-height: 1.4;
  background: #0f172a;
  padding: 8px 10px;
  border-radius: 8px;
  border-left: 3px solid #10b981;
}

/* Gráfico de Barras Semanal (Últimos 7 Días) */
.hydration-weekly-chart-card {
  background: #111827;
  border: 1px solid #1e293b;
  border-radius: 14px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.hydration-weekly-chart-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.hydration-weekly-chart-title span {
  font-size: 11.5px;
  font-weight: 800;
  color: #f1f5f9;
}

.hydration-weekly-chart-title small {
  font-size: 10px;
  color: #10b981;
  font-weight: 700;
}

.hydration-chart-bars {
  display: flex;
  justify-content: space-around;
  align-items: flex-end;
  height: 90px;
  padding: 10px 0 4px 0;
  border-bottom: 1px solid #1e293b;
  position: relative;
}

.hydration-chart-ref-line {
  position: absolute;
  left: 0;
  right: 0;
  top: 30px;
  border-top: 1px dashed rgba(16, 185, 129, 0.4);
  pointer-events: none;
}

.hydration-chart-ref-tag {
  position: absolute;
  right: 4px;
  top: 18px;
  font-size: 8px;
  color: #10b981;
  font-weight: 800;
}

.hydration-bar-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  width: 28px;
}

.hydration-bar-fill {
  width: 14px;
  border-radius: 4px 4px 0 0;
  background: #38bdf8;
  transition: height 0.3s ease;
  min-height: 4px;
}

.hydration-bar-fill.target-met {
  background: #10b981;
}

.hydration-bar-fill.alert-low {
  background: #f59e0b;
}

.hydration-bar-day {
  font-size: 9px;
  color: #94a3b8;
  font-weight: 700;
}

.hydration-bar-num {
  font-size: 9.5px;
  color: #ffffff;
  font-weight: 800;
}

/* Checklist de Signos Físicos de Hidratación */
.hydration-signs-card {
  background: #111827;
  border: 1px solid #1e293b;
  border-radius: 12px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.hydration-signs-title {
  font-size: 11.5px;
  font-weight: 800;
  color: #f1f5f9;
}

.hydration-signs-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.hydration-sign-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 10.5px;
  color: #cbd5e1;
  cursor: pointer;
}

.hydration-sign-chk {
  width: 16px;
  height: 16px;
  accent-color: #10b981;
}

/* Botón Compartir Pediatra */
.hydration-share-btn {
  width: 100%;
  padding: 10px;
  background: #1e293b;
  border: 1px solid #334155;
  border-radius: 8px;
  color: #f1f5f9;
  font-size: 11.5px;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.hydration-share-btn:hover {
  background: #334155;
  color: #38bdf8;
}

/* Historial Reciente */
.hydration-history-card {
  background: #111827;
  border: 1px solid #1e293b;
  border-radius: 12px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.hydration-history-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.hydration-history-header span {
  font-size: 11px;
  font-weight: 800;
  color: #f1f5f9;
}

.hydration-history-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.hydration-history-item {
  background: #0f172a;
  border: 1px solid #1e293b;
  border-radius: 8px;
  padding: 8px 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.hydration-history-data {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.hydration-history-time {
  font-size: 10.5px;
  font-weight: 800;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 6px;
}

.hydration-history-meta {
  font-size: 9.5px;
  color: #94a3b8;
}

.hydration-del-btn {
  background: transparent;
  border: none;
  color: #ef4444;
  cursor: pointer;
  padding: 4px;
  font-size: 13px;
}

/* Modal Visor Zoom */
.hydration-modal-zoom {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.95);
  z-index: 99999;
  display: flex;
  flex-direction: column;
}

.hydration-modal-zoom.hidden {
  display: none !important;
}

.hydration-modal-zoom-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  background: #0f172a;
  border-bottom: 1px solid #1e293b;
  color: #f1f5f9;
  font-size: 13px;
  font-weight: 800;
}

.hydration-modal-zoom-close {
  background: #1e293b;
  border: 1px solid #334155;
  color: #f1f5f9;
  border-radius: 6px;
  padding: 6px 12px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}

.hydration-modal-zoom-body {
  flex: 1;
  overflow: auto;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 10px;
}

.hydration-modal-zoom-img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 8px;
}


/* ==========================================================================
   HITO 23: COLOR DE POPÓ Y TEXTURA BRISTOL (MEGHAN) - PROPUESTAS 1 Y 2
   ========================================================================== */

.stool-container {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-bottom: 24px;
}

/* Tarjeta Hero Informativa */
.stool-hero-card {
  background: #111827;
  border: 1px solid #1e293b;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
}

.stool-hero-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 14px;
  background: #1e293b;
}

.stool-hero-badge {
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #fbbf24;
  background: rgba(245, 158, 11, 0.12);
  padding: 3px 8px;
  border-radius: 6px;
  border: 1px solid rgba(245, 158, 11, 0.25);
}

.stool-hero-info {
  font-size: 10.5px;
  color: #94a3b8;
}

.stool-hero-content {
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: #0f172a;
}

.stool-hero-title {
  font-size: 12px;
  font-weight: 800;
  color: #f1f5f9;
}

.stool-hero-desc {
  font-size: 11px;
  color: #cbd5e1;
  line-height: 1.4;
  margin: 0;
}

/* Pestañas de Navegación */
.stool-tabs-nav {
  display: flex;
  gap: 8px;
  background: #0f172a;
  padding: 4px;
  border-radius: 10px;
  border: 1px solid #1e293b;
}

.stool-tab-btn {
  flex: 1;
  padding: 8px 12px;
  background: transparent;
  border: none;
  border-radius: 8px;
  color: #94a3b8;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.stool-tab-btn.active {
  background: #1e293b;
  color: #fbbf24;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

.stool-tab-panel {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.stool-tab-panel.hidden {
  display: none !important;
}

/* Paleta de Color en 3 Zonas */
.stool-palette-card {
  background: #111827;
  border: 1px solid #1e293b;
  border-radius: 14px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.stool-section-title {
  font-size: 11px;
  font-weight: 800;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.stool-zone-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.stool-zone-tag {
  font-size: 10px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 4px;
  display: inline-block;
  width: fit-content;
}

.stool-zone-tag.green {
  background: rgba(16, 185, 129, 0.15);
  color: #10b981;
}

.stool-zone-tag.amber {
  background: rgba(245, 158, 11, 0.15);
  color: #f59e0b;
}

.stool-zone-tag.red {
  background: rgba(239, 68, 68, 0.2);
  color: #ef4444;
}

.stool-color-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px;
}

.stool-color-btn {
  background: #0f172a;
  border: 1px solid #1e293b;
  border-radius: 10px;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: left;
}

.stool-color-btn:hover {
  background: #1e293b;
}

.stool-color-btn.active {
  border-color: #fbbf24;
  background: rgba(245, 158, 11, 0.12);
}

.stool-color-btn.active.is-red-flag {
  border-color: #ef4444;
  background: rgba(239, 68, 68, 0.15);
}

.stool-color-chip {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.25);
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}

/* Colores clínicos exactos */
.chip-mustard { background: #d97706; }
.chip-ochre { background: #78350f; }
.chip-spinach { background: #15803d; }
.chip-olive { background: #4d7c0f; }
.chip-mucus { background: #64748b; border-style: dashed; }
.chip-white { background: #f8fafc; border-color: #ef4444; }
.chip-red { background: #b91c1c; border-color: #ef4444; }
.chip-black { background: #020617; border-color: #ef4444; }

.stool-color-texts {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.stool-color-name {
  font-size: 11.5px;
  font-weight: 800;
  color: #f1f5f9;
}

.stool-color-desc {
  font-size: 10px;
  color: #94a3b8;
  line-height: 1.3;
}

/* Tarjeta Alerta Roja Urgente */
.stool-red-alert-card {
  background: rgba(239, 68, 68, 0.15);
  border: 2px solid #ef4444;
  border-radius: 12px;
  padding: 12px 14px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  animation: pulse-stool-red 1.5s infinite;
}

.stool-red-alert-card.hidden {
  display: none !important;
}

@keyframes pulse-stool-red {
  0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.4); }
  50% { transform: scale(1.01); box-shadow: 0 0 16px rgba(239, 68, 68, 0.4); }
  100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.4); }
}

.stool-red-icon {
  font-size: 24px;
  line-height: 1;
}

.stool-red-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.stool-red-info strong {
  font-size: 11.5px;
  font-weight: 800;
  color: #ef4444;
}

.stool-red-info span {
  font-size: 10.5px;
  color: #fca5a5;
  line-height: 1.4;
}

.stool-red-protocol {
  background: #0f172a;
  border-radius: 6px;
  padding: 6px 8px;
  font-size: 10px;
  color: #fde68a;
  border-left: 3px solid #f59e0b;
}

/* Selector de Textura Bristol Neonatal */
.stool-texture-card {
  background: #111827;
  border: 1px solid #1e293b;
  border-radius: 14px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.stool-texture-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px;
}

.stool-texture-btn {
  background: #0f172a;
  border: 1px solid #1e293b;
  border-radius: 10px;
  padding: 9px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  transition: all 0.2s ease;
  color: #cbd5e1;
}

.stool-texture-btn:hover {
  background: #1e293b;
}

.stool-texture-btn.active {
  border-color: #fbbf24;
  background: rgba(245, 158, 11, 0.12);
  color: #f1f5f9;
}

.stool-tex-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.stool-tex-icon {
  font-size: 16px;
}

.stool-tex-name {
  font-size: 11px;
  font-weight: 800;
}

.stool-tex-sub {
  font-size: 9.5px;
  color: #94a3b8;
}

/* Foto Opcional de la Muestra */
.stool-photo-box {
  background: #0f172a;
  border: 1px dashed #334155;
  border-radius: 10px;
  padding: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.stool-photo-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  color: #cbd5e1;
  font-weight: 700;
  cursor: pointer;
}

.stool-photo-preview {
  width: 44px;
  height: 44px;
  border-radius: 6px;
  object-fit: cover;
  border: 1px solid #38bdf8;
}

.stool-photo-preview.hidden {
  display: none !important;
}

/* Botón Guardar Evacuación */
.stool-btn-save {
  padding: 11px;
  border-radius: 10px;
  border: none;
  background: #fbbf24;
  color: #0f172a;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.2s ease;
}

.stool-btn-save:hover {
  background: #f59e0b;
}

/* PESTAÑA 2: TEXTURAS BRISTOL & DISQUECIA */
.stool-bristol-card {
  background: #111827;
  border: 1px solid #1e293b;
  border-radius: 14px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.stool-bristol-item {
  background: #0f172a;
  border: 1px solid #1e293b;
  border-radius: 10px;
  padding: 10px 12px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.stool-bristol-icon {
  font-size: 20px;
  line-height: 1;
}

.stool-bristol-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.stool-bristol-info strong {
  font-size: 11.5px;
  color: #fbbf24;
}

.stool-bristol-info span {
  font-size: 10.5px;
  color: #cbd5e1;
  line-height: 1.35;
}

/* Tarjeta Didáctica Disquecia del Lactante */
.stool-disquecia-card {
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.12) 0%, rgba(14, 165, 233, 0.05) 100%);
  border: 1px solid rgba(56, 189, 248, 0.3);
  border-radius: 14px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.stool-disquecia-header {
  display: flex;
  align-items: center;
  gap: 8px;
}

.stool-disquecia-icon {
  font-size: 22px;
}

.stool-disquecia-header strong {
  font-size: 12px;
  color: #38bdf8;
}

.stool-disquecia-body {
  font-size: 11px;
  color: #cbd5e1;
  line-height: 1.45;
}

.stool-disquecia-golden-rule {
  background: #0f172a;
  border-radius: 8px;
  padding: 10px;
  border-left: 3px solid #10b981;
  font-size: 10.5px;
  color: #f1f5f9;
  line-height: 1.4;
}

.stool-disquecia-golden-rule strong {
  color: #10b981;
}

/* Historial Reciente */
.stool-history-card {
  background: #111827;
  border: 1px solid #1e293b;
  border-radius: 12px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.stool-history-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.stool-history-header span {
  font-size: 11px;
  font-weight: 800;
  color: #f1f5f9;
}

.stool-history-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.stool-history-item {
  background: #0f172a;
  border: 1px solid #1e293b;
  border-radius: 8px;
  padding: 8px 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.stool-history-data {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.stool-history-title {
  font-size: 11px;
  font-weight: 800;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 6px;
}

.stool-history-details {
  font-size: 9.5px;
  color: #94a3b8;
}

.stool-del-btn {
  background: transparent;
  border: none;
  color: #ef4444;
  cursor: pointer;
  padding: 4px;
  font-size: 13px;
}

.stool-share-btn {
  width: 100%;
  padding: 10px;
  background: #1e293b;
  border: 1px solid #334155;
  border-radius: 8px;
  color: #f1f5f9;
  font-size: 11.5px;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.stool-share-btn:hover {
  background: #334155;
  color: #fbbf24;
}


/* Zoom Button & Banner for Stool Guide */
.stool-zoom-btn {
  background: transparent;
  border: 1px solid #334155;
  color: #f1f5f9;
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s;
}

.stool-zoom-btn:hover {
  background: #334155;
  color: #fbbf24;
}

.stool-hero-banner {
  position: relative;
  width: 100%;
  max-height: 220px;
  overflow: hidden;
  cursor: pointer;
  background: #0f172a;
}

.stool-hero-img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.3s ease;
}

.stool-hero-banner:hover .stool-hero-img {
  transform: scale(1.02);
}

.stool-hero-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 12px 14px;
  background: linear-gradient(to top, rgba(15, 23, 42, 0.95) 0%, rgba(15, 23, 42, 0.6) 60%, transparent 100%);
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.stool-hero-overlay-tag {
  font-size: 11.5px;
  font-weight: 800;
  color: #fbbf24;
}

.stool-hero-overlay-tap {
  font-size: 10px;
  color: #94a3b8;
}

/* Modal Visor Zoom Stool */
.stool-modal-zoom {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.95);
  z-index: 99999;
  display: flex;
  flex-direction: column;
}

.stool-modal-zoom.hidden {
  display: none !important;
}

.stool-modal-zoom-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  background: #0f172a;
  border-bottom: 1px solid #1e293b;
  color: #f1f5f9;
  font-size: 13px;
  font-weight: 800;
}

.stool-modal-zoom-close {
  background: #1e293b;
  border: 1px solid #334155;
  color: #f1f5f9;
  border-radius: 6px;
  padding: 6px 12px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}

.stool-modal-zoom-body {
  flex: 1;
  overflow: auto;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 10px;
}

.stool-modal-zoom-img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 8px;
}


/* ==========================================================================
   HITO 24: PREPARACIÓN SEGURA DE BIBERÓN (MEGHAN) - 3 PILARES EJECUTADOS
   ========================================================================== */

.formula-container {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-bottom: 24px;
}

/* Tarjeta Hero Informativa */
.formula-hero-card {
  background: #111827;
  border: 1px solid #1e293b;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
}

.formula-hero-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 14px;
  background: #1e293b;
}

.formula-hero-badge {
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.12);
  padding: 3px 8px;
  border-radius: 6px;
  border: 1px solid rgba(56, 189, 248, 0.25);
}

.formula-hero-sub {
  font-size: 10.5px;
  color: #94a3b8;
}

.formula-golden-rule {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  background: rgba(245, 158, 11, 0.1);
  border-top: 1px solid rgba(245, 158, 11, 0.25);
}

.formula-rule-icon {
  font-size: 20px;
  line-height: 1;
}

.formula-rule-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.formula-rule-text strong {
  font-size: 11px;
  font-weight: 800;
  color: #fbbf24;
  letter-spacing: 0.3px;
}

.formula-rule-text span {
  font-size: 10.5px;
  color: #fde68a;
  line-height: 1.35;
}

/* Pestañas de Navegación */
.formula-tabs-nav {
  display: flex;
  gap: 8px;
  background: #0f172a;
  padding: 4px;
  border-radius: 10px;
  border: 1px solid #1e293b;
}

.formula-tab-btn {
  flex: 1;
  padding: 8px 10px;
  background: transparent;
  border: none;
  border-radius: 8px;
  color: #94a3b8;
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.formula-tab-btn.active {
  background: #1e293b;
  color: #38bdf8;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

.formula-tab-panel {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.formula-tab-panel.hidden {
  display: none !important;
}

/* Pilar 1: Calculadora Express & Dosificación */
.formula-calc-card {
  background: #111827;
  border: 1px solid #1e293b;
  border-radius: 14px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.formula-calc-title {
  font-size: 11px;
  font-weight: 800;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Botones rápidos de volumen */
.formula-quick-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
}

.formula-quick-btn {
  background: #0f172a;
  border: 1px solid #1e293b;
  border-radius: 8px;
  padding: 8px 4px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.formula-quick-btn:hover {
  background: #1e293b;
}

.formula-quick-btn.active {
  border-color: #38bdf8;
  background: rgba(56, 189, 248, 0.12);
}

.formula-quick-ml {
  font-size: 12px;
  font-weight: 800;
  color: #ffffff;
}

.formula-quick-scoops {
  font-size: 9.5px;
  color: #38bdf8;
  font-weight: 700;
}

/* Resultado visual del cálculo */
.formula-result-card {
  background: #0f172a;
  border: 1px solid #1e293b;
  border-radius: 12px;
  padding: 12px;
  display: flex;
  align-items: center;
  justify-content: space-around;
  text-align: center;
}

.formula-result-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.formula-result-item span:first-child {
  font-size: 10px;
  color: #94a3b8;
  font-weight: 700;
  text-transform: uppercase;
}

.formula-result-num {
  font-family: monospace, monospace;
  font-size: 24px;
  font-weight: 900;
  color: #38bdf8;
}

.formula-result-unit {
  font-size: 10.5px;
  color: #cbd5e1;
}

.formula-result-divider {
  font-size: 20px;
  color: #64748b;
  font-weight: 300;
}

/* Registro de Ingesta Neta (Preparé vs Tomó) */
.formula-net-card {
  background: #111827;
  border: 1px solid #1e293b;
  border-radius: 14px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.formula-net-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.formula-net-header span {
  font-size: 11px;
  font-weight: 800;
  color: #f1f5f9;
}

.formula-leftovers-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
}

.formula-leftover-btn {
  background: #0f172a;
  border: 1px solid #1e293b;
  border-radius: 8px;
  padding: 6px 4px;
  font-size: 10px;
  font-weight: 700;
  color: #cbd5e1;
  cursor: pointer;
  text-align: center;
  transition: all 0.2s ease;
}

.formula-leftover-btn.active {
  border-color: #f59e0b;
  background: rgba(245, 158, 11, 0.12);
  color: #fbbf24;
}

.formula-net-summary {
  font-size: 11px;
  color: #cbd5e1;
  background: #0f172a;
  padding: 8px 10px;
  border-radius: 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.formula-net-summary strong {
  color: #10b981;
  font-size: 12px;
}

.formula-btn-save {
  padding: 11px;
  border-radius: 10px;
  border: none;
  background: #38bdf8;
  color: #0f172a;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.2s ease;
}

.formula-btn-save:hover {
  background: #7dd3fc;
}

/* Pilar 2: Pasos Seguros & Técnica Anti-Cólicos */
.formula-steps-card {
  background: #111827;
  border: 1px solid #1e293b;
  border-radius: 14px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.formula-step-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: #0f172a;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid #1e293b;
}

.formula-step-num {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #38bdf8;
  color: #0f172a;
  font-weight: 800;
  font-size: 10.5px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.formula-step-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.formula-step-text strong {
  font-size: 11px;
  color: #ffffff;
}

.formula-step-text span {
  font-size: 10.5px;
  color: #94a3b8;
  line-height: 1.35;
}

/* Tarjeta Destacada Técnica del Rodillo Anti-Cólicos */
.formula-anticolic-box {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.12) 0%, rgba(5, 150, 105, 0.05) 100%);
  border: 1px solid rgba(16, 185, 129, 0.35);
  border-radius: 12px;
  padding: 12px 14px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.formula-anticolic-icon {
  font-size: 22px;
  line-height: 1;
}

.formula-anticolic-text {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.formula-anticolic-text strong {
  font-size: 11.5px;
  color: #10b981;
}

.formula-anticolic-text span {
  font-size: 10.5px;
  color: #cbd5e1;
  line-height: 1.4;
}

/* Pilar 3: Cronómetro de Caducidad de 60 Minutos */
.formula-timer-card {
  background: #111827;
  border: 1px solid #1e293b;
  border-radius: 14px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
}

.formula-timer-header {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.formula-timer-header span {
  font-size: 11.5px;
  font-weight: 800;
  color: #f1f5f9;
}

.formula-timer-badge {
  font-size: 9.5px;
  font-weight: 700;
  background: rgba(245, 158, 11, 0.15);
  color: #f59e0b;
  padding: 2px 6px;
  border-radius: 4px;
  border: 1px solid rgba(245, 158, 11, 0.25);
}

.formula-timer-circle {
  width: 130px;
  height: 130px;
  border-radius: 50%;
  background: radial-gradient(circle, #1e293b 40%, #0f172a 100%);
  border: 4px solid #38bdf8;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  box-shadow: 0 0 20px rgba(56, 189, 248, 0.2);
  transition: all 0.3s ease;
}

.formula-timer-circle.warning {
  border-color: #f59e0b;
  box-shadow: 0 0 20px rgba(245, 158, 11, 0.4);
  animation: pulse-formula-amber 1.5s infinite;
}

.formula-timer-circle.expired {
  border-color: #ef4444;
  box-shadow: 0 0 20px rgba(239, 68, 68, 0.4);
}

@keyframes pulse-formula-amber {
  0% { transform: scale(1); }
  50% { transform: scale(1.02); }
  100% { transform: scale(1); }
}

.formula-timer-digits {
  font-family: monospace, monospace;
  font-size: 26px;
  font-weight: 900;
  color: #ffffff;
}

.formula-timer-status {
  font-size: 10px;
  color: #38bdf8;
  font-weight: 700;
}

.formula-timer-desc {
  font-size: 10.5px;
  color: #94a3b8;
  line-height: 1.35;
  margin: 0;
  background: #0f172a;
  padding: 8px 10px;
  border-radius: 8px;
}

.formula-timer-actions {
  width: 100%;
  display: flex;
  gap: 8px;
}

.formula-btn-play {
  flex: 2;
  padding: 10px;
  border-radius: 10px;
  border: none;
  background: #38bdf8;
  color: #0f172a;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.2s ease;
}

.formula-btn-play:hover {
  background: #7dd3fc;
}

.formula-btn-play.running {
  background: #f59e0b;
  color: #0f172a;
}

.formula-btn-reset {
  flex: 1;
  padding: 10px;
  border-radius: 10px;
  border: 1px solid #334155;
  background: #1e293b;
  color: #f1f5f9;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.formula-btn-reset.hidden {
  display: none !important;
}

/* Historial Reciente */
.formula-history-card {
  background: #111827;
  border: 1px solid #1e293b;
  border-radius: 12px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.formula-history-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.formula-history-header span {
  font-size: 11px;
  font-weight: 800;
  color: #f1f5f9;
}

.formula-history-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.formula-history-item {
  background: #0f172a;
  border: 1px solid #1e293b;
  border-radius: 8px;
  padding: 8px 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.formula-history-data {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.formula-history-title {
  font-size: 11px;
  font-weight: 800;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 6px;
}

.formula-history-details {
  font-size: 9.5px;
  color: #94a3b8;
}

.formula-del-btn {
  background: transparent;
  border: none;
  color: #ef4444;
  cursor: pointer;
  padding: 4px;
  font-size: 13px;
}


/* ==========================================================================
   HITO 25: EXTRACCIÓN DE LECHE MATERNA (MEGHAN) - 3 PILARES EJECUTADOS
   ========================================================================== */

.pumping-container {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-bottom: 24px;
}

/* Tarjeta Hero Informativa */
.pumping-hero-card {
  background: #111827;
  border: 1px solid #1e293b;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
}

.pumping-hero-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 14px;
  background: #1e293b;
}

.pumping-hero-badge {
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.12);
  padding: 3px 8px;
  border-radius: 6px;
  border: 1px solid rgba(56, 189, 248, 0.25);
}

.pumping-hero-sub {
  font-size: 10.5px;
  color: #94a3b8;
}

.pumping-rule-callout {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  background: rgba(56, 189, 248, 0.08);
  border-top: 1px solid rgba(56, 189, 248, 0.2);
}

.pumping-rule-icon {
  font-size: 20px;
  line-height: 1;
}

.pumping-rule-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.pumping-rule-text strong {
  font-size: 11px;
  font-weight: 800;
  color: #38bdf8;
  letter-spacing: 0.3px;
}

.pumping-rule-text span {
  font-size: 10.5px;
  color: #cbd5e1;
  line-height: 1.35;
}

/* Pestañas de Navegación */
.pumping-tabs-nav {
  display: flex;
  gap: 8px;
  background: #0f172a;
  padding: 4px;
  border-radius: 10px;
  border: 1px solid #1e293b;
}

.pumping-tab-btn {
  flex: 1;
  padding: 8px 8px;
  background: transparent;
  border: none;
  border-radius: 8px;
  color: #94a3b8;
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.pumping-tab-btn.active {
  background: #1e293b;
  color: #38bdf8;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

.pumping-tab-panel {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.pumping-tab-panel.hidden {
  display: none !important;
}

/* Pilar 1: Cronómetro Dual & Desglose por Pecho */
.pumping-timer-card {
  background: #111827;
  border: 1px solid #1e293b;
  border-radius: 14px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  text-align: center;
}

.pumping-sides-selector {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 6px;
}

.pumping-side-btn {
  background: #0f172a;
  border: 1px solid #1e293b;
  border-radius: 8px;
  padding: 8px 4px;
  font-size: 11px;
  font-weight: 700;
  color: #cbd5e1;
  cursor: pointer;
  transition: all 0.2s ease;
}

.pumping-side-btn:hover {
  background: #1e293b;
}

.pumping-side-btn.active {
  background: rgba(56, 189, 248, 0.15);
  border-color: #38bdf8;
  color: #38bdf8;
}

.pumping-circle-box {
  display: flex;
  justify-content: center;
  padding: 4px 0;
}

.pumping-timer-circle {
  width: 130px;
  height: 130px;
  border-radius: 50%;
  background: radial-gradient(circle, #1e293b 40%, #0f172a 100%);
  border: 4px solid #38bdf8;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  box-shadow: 0 0 20px rgba(56, 189, 248, 0.2);
  transition: all 0.3s ease;
}

.pumping-timer-circle.active {
  border-color: #10b981;
  box-shadow: 0 0 25px rgba(16, 185, 129, 0.35);
  animation: pulse-pump-green 1.8s infinite;
}

@keyframes pulse-pump-green {
  0% { transform: scale(1); }
  50% { transform: scale(1.02); }
  100% { transform: scale(1); }
}

.pumping-timer-digits {
  font-family: monospace, monospace;
  font-size: 26px;
  font-weight: 900;
  color: #ffffff;
}

.pumping-timer-status {
  font-size: 10px;
  color: #38bdf8;
  font-weight: 700;
}

.pumping-timer-actions {
  width: 100%;
  display: flex;
  gap: 8px;
}

.pumping-btn-play {
  flex: 2;
  padding: 10px;
  border-radius: 10px;
  border: none;
  background: #38bdf8;
  color: #0f172a;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.2s ease;
}

.pumping-btn-play:hover {
  background: #7dd3fc;
}

.pumping-btn-play.running {
  background: #f59e0b;
  color: #0f172a;
}

.pumping-btn-reset {
  flex: 1;
  padding: 10px;
  border-radius: 10px;
  border: 1px solid #334155;
  background: #1e293b;
  color: #f1f5f9;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.pumping-btn-reset.hidden {
  display: none !important;
}

/* Volumen por Pecho */
.pumping-volume-card {
  background: #111827;
  border: 1px solid #1e293b;
  border-radius: 14px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.pumping-vol-title {
  font-size: 11px;
  font-weight: 800;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.pumping-vol-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.pumping-vol-col {
  background: #0f172a;
  border: 1px solid #1e293b;
  border-radius: 10px;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.pumping-vol-label {
  font-size: 11px;
  font-weight: 800;
  color: #cbd5e1;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.pumping-vol-input {
  width: 100%;
  background: #1e293b;
  border: 1px solid #334155;
  border-radius: 6px;
  padding: 6px 8px;
  color: #ffffff;
  font-size: 14px;
  font-weight: 800;
  font-family: monospace, monospace;
  box-sizing: border-box;
}

.pumping-quick-chips {
  display: flex;
  gap: 4px;
}

.pumping-quick-chip {
  flex: 1;
  background: #1e293b;
  border: 1px solid #334155;
  border-radius: 4px;
  color: #94a3b8;
  font-size: 9.5px;
  font-weight: 700;
  padding: 3px 0;
  cursor: pointer;
}

.pumping-quick-chip:hover {
  background: #334155;
  color: #38bdf8;
}

.pumping-total-banner {
  background: #0f172a;
  border-radius: 8px;
  padding: 10px 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  color: #cbd5e1;
}

.pumping-total-banner strong {
  font-size: 15px;
  color: #10b981;
  font-family: monospace, monospace;
}

/* Destino & Sincronización con Banquito de Leche */
.pumping-dest-card {
  background: #111827;
  border: 1px solid #1e293b;
  border-radius: 14px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.pumping-dest-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 6px;
}

.pumping-dest-btn {
  background: #0f172a;
  border: 1px solid #1e293b;
  border-radius: 8px;
  padding: 8px 4px;
  font-size: 10px;
  font-weight: 700;
  color: #cbd5e1;
  cursor: pointer;
  text-align: center;
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.pumping-dest-btn:hover {
  background: #1e293b;
}

.pumping-dest-btn.active {
  border-color: #38bdf8;
  background: rgba(56, 189, 248, 0.12);
  color: #38bdf8;
}

.pumping-dest-rule-hint {
  font-size: 10px;
  color: #fbbf24;
  background: rgba(245, 158, 11, 0.08);
  padding: 6px 8px;
  border-radius: 6px;
  border-left: 2px solid #f59e0b;
}

.pumping-btn-save {
  padding: 11px;
  border-radius: 10px;
  border: none;
  background: #38bdf8;
  color: #0f172a;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.2s ease;
}

.pumping-btn-save:hover {
  background: #7dd3fc;
}

/* Pilar 2: Semáforo de Conservación 4-4-6 */
.pumping-conservation-card {
  background: #111827;
  border: 1px solid #1e293b;
  border-radius: 14px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.pumping-rule-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: #0f172a;
  border: 1px solid #1e293b;
  border-radius: 10px;
  padding: 10px;
}

.pumping-rule-badge {
  font-size: 10px;
  font-weight: 800;
  padding: 3px 6px;
  border-radius: 4px;
  flex-shrink: 0;
}

.pumping-rule-badge.green {
  background: rgba(16, 185, 129, 0.15);
  color: #10b981;
}

.pumping-rule-badge.blue {
  background: rgba(56, 189, 248, 0.15);
  color: #38bdf8;
}

.pumping-rule-badge.purple {
  background: rgba(168, 85, 247, 0.15);
  color: #c084fc;
}

.pumping-rule-badge.red {
  background: rgba(239, 68, 68, 0.15);
  color: #ef4444;
}

.pumping-rule-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.pumping-rule-info strong {
  font-size: 11px;
  color: #ffffff;
}

.pumping-rule-info span {
  font-size: 10px;
  color: #94a3b8;
  line-height: 1.35;
}

/* Pilar 3: Oxitocina & Descongelación */
.pumping-oxytocin-card {
  background: linear-gradient(135deg, rgba(236, 72, 153, 0.12) 0%, rgba(219, 39, 119, 0.04) 100%);
  border: 1px solid rgba(236, 72, 153, 0.3);
  border-radius: 14px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.pumping-oxytocin-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11.5px;
  font-weight: 800;
  color: #f472b6;
}

.pumping-oxytocin-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.pumping-oxytocin-item {
  background: #0f172a;
  border-radius: 8px;
  padding: 8px 10px;
  display: flex;
  align-items: flex-start;
  gap: 6px;
  font-size: 10.5px;
  color: #cbd5e1;
  line-height: 1.35;
}

.pumping-oxytocin-item b {
  color: #ffffff;
}

.pumping-defrost-card {
  background: #111827;
  border: 1px solid #1e293b;
  border-radius: 14px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Historial Reciente */
.pumping-history-card {
  background: #111827;
  border: 1px solid #1e293b;
  border-radius: 12px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.pumping-history-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.pumping-history-header span {
  font-size: 11px;
  font-weight: 800;
  color: #f1f5f9;
}

.pumping-history-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.pumping-history-item {
  background: #0f172a;
  border: 1px solid #1e293b;
  border-radius: 8px;
  padding: 8px 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.pumping-history-data {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.pumping-history-title {
  font-size: 11px;
  font-weight: 800;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 6px;
}

.pumping-history-details {
  font-size: 9.5px;
  color: #94a3b8;
}

.pumping-del-btn {
  background: transparent;
  border: none;
  color: #ef4444;
  cursor: pointer;
  padding: 4px;
  font-size: 13px;
}


/* =========================================================================
   HITO 26: BANQUITO DE LECHE & RESERVAS PEPS (MEGHAN)
   ========================================================================= */

.milkbank-container {
  display: flex;
  flex-direction: column;
  gap: 16px;
  font-family: inherit;
  color: #f1f5f9;
  padding-bottom: 24px;
}

/* 1. KPIs de Autonomía y Stock */
.milkbank-kpi-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.milkbank-kpi-card {
  background: #1e293b;
  border: 1px solid #334155;
  border-radius: 14px;
  padding: 12px 8px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.milkbank-kpi-val {
  font-family: ui-monospace, SFMono-Regular, monospace;
  font-size: 20px;
  font-weight: 800;
  color: #38bdf8;
  line-height: 1.1;
}

.milkbank-kpi-val.accent {
  color: #f59e0b;
}

.milkbank-kpi-val.green {
  color: #10b981;
}

.milkbank-kpi-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  color: #94a3b8;
  margin-top: 4px;
  letter-spacing: 0.04em;
}

.milkbank-kpi-sub {
  font-size: 9px;
  color: #64748b;
  margin-top: 2px;
}

/* 2. Tarjeta Destacada "Usar Primero (PEPS)" */
.milkbank-peps-hero {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.15), rgba(30, 41, 59, 0.95));
  border: 1.5px solid #f59e0b;
  border-radius: 16px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  box-shadow: 0 4px 16px rgba(245, 158, 11, 0.15);
}

.milkbank-peps-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.milkbank-peps-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 800;
  color: #fbbf24;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.milkbank-peps-badge {
  background: #f59e0b;
  color: #0f172a;
  font-size: 10px;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 20px;
  text-transform: uppercase;
}

.milkbank-peps-body {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.milkbank-peps-info {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.milkbank-peps-vol {
  font-family: ui-monospace, SFMono-Regular, monospace;
  font-size: 26px;
  font-weight: 800;
  color: #ffffff;
}

.milkbank-peps-desc {
  font-size: 11px;
  color: #cbd5e1;
}

.milkbank-peps-action-btn {
  background: #f59e0b;
  color: #0f172a;
  border: none;
  border-radius: 12px;
  padding: 10px 14px;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.1s, background 0.2s;
  display: flex;
  align-items: center;
  gap: 6px;
}

.milkbank-peps-action-btn:active {
  transform: scale(0.96);
  background: #d97706;
}

/* 3. Navegación por pestañas */
.milkbank-tabs-nav {
  display: flex;
  background: #0f172a;
  padding: 4px;
  border-radius: 12px;
  border: 1px solid #1e293b;
  gap: 4px;
}

.milkbank-tab-btn {
  flex: 1;
  background: transparent;
  border: none;
  color: #94a3b8;
  padding: 8px 6px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  text-align: center;
}

.milkbank-tab-btn.active {
  background: #38bdf8;
  color: #0f172a;
  box-shadow: 0 2px 8px rgba(56, 189, 248, 0.3);
}

/* 4. Filtro por Ubicaciones */
.milkbank-filter-row {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 2px;
}

.milkbank-filter-chip {
  background: #1e293b;
  border: 1px solid #334155;
  color: #cbd5e1;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 10.5px;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 5px;
}

.milkbank-filter-chip.active {
  background: #0284c7;
  border-color: #38bdf8;
  color: #ffffff;
}

/* 5. Lista de Bolsas */
.milkbank-bags-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 380px;
  overflow-y: auto;
  padding-right: 2px;
}

.milkbank-bag-item {
  background: #1e293b;
  border: 1px solid #334155;
  border-radius: 14px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: border-color 0.2s;
}

.milkbank-bag-item.is-first {
  border-color: #f59e0b;
  background: rgba(245, 158, 11, 0.05);
}

.milkbank-bag-item.is-thawed {
  border-color: #38bdf8;
  background: rgba(56, 189, 248, 0.06);
}

.milkbank-bag-item.is-warning {
  border-color: #ef4444;
  background: rgba(239, 68, 68, 0.06);
}

.milkbank-bag-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.milkbank-bag-title-box {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.milkbank-bag-vol {
  font-family: ui-monospace, SFMono-Regular, monospace;
  font-size: 20px;
  font-weight: 800;
  color: #ffffff;
}

.milkbank-bag-loc {
  font-size: 11px;
  font-weight: 700;
  color: #94a3b8;
  display: flex;
  align-items: center;
  gap: 4px;
}

.milkbank-badge {
  font-size: 9.5px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 12px;
  text-transform: uppercase;
}

.milkbank-badge.refri {
  background: #0284c7;
  color: #ffffff;
}

.milkbank-badge.freezer {
  background: #475569;
  color: #e2e8f0;
}

.milkbank-badge.thawed {
  background: #0ea5e9;
  color: #0f172a;
}

.milkbank-badge.warning {
  background: #dc2626;
  color: #ffffff;
}

.milkbank-bag-meta {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  color: #94a3b8;
}

.milkbank-bag-actions {
  display: flex;
  gap: 6px;
  margin-top: 4px;
}

.milkbank-bag-btn {
  flex: 1;
  border: none;
  border-radius: 8px;
  padding: 7px 4px;
  font-size: 10px;
  font-weight: 700;
  cursor: pointer;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.milkbank-bag-btn.consume {
  background: #10b981;
  color: #0f172a;
}

.milkbank-bag-btn.thaw {
  background: #38bdf8;
  color: #0f172a;
}

.milkbank-bag-btn.discard {
  background: #334155;
  color: #cbd5e1;
}

.milkbank-bag-btn.discard:hover {
  background: #ef4444;
  color: #ffffff;
}

/* 6. Formulario de Registro Express */
.milkbank-form-card {
  background: #1e293b;
  border: 1px solid #334155;
  border-radius: 16px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.milkbank-form-title {
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  color: #38bdf8;
  letter-spacing: 0.05em;
  display: flex;
  align-items: center;
  gap: 6px;
}

.milkbank-chips-label {
  font-size: 10px;
  font-weight: 700;
  color: #94a3b8;
  text-transform: uppercase;
}

.milkbank-chips-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
}

.milkbank-chip-btn {
  background: #0f172a;
  border: 1px solid #334155;
  border-radius: 10px;
  color: #e2e8f0;
  padding: 8px 4px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  text-align: center;
  transition: all 0.15s;
}

.milkbank-chip-btn.active {
  background: #38bdf8;
  border-color: #38bdf8;
  color: #0f172a;
  font-weight: 800;
}

.milkbank-dest-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.milkbank-dest-card {
  background: #0f172a;
  border: 1.5px solid #334155;
  border-radius: 12px;
  padding: 10px;
  cursor: pointer;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 3px;
  transition: all 0.15s;
}

.milkbank-dest-card.active {
  background: rgba(56, 189, 248, 0.1);
  border-color: #38bdf8;
}

.milkbank-dest-title {
  font-size: 11px;
  font-weight: 800;
  color: #ffffff;
}

.milkbank-dest-sub {
  font-size: 9px;
  color: #94a3b8;
}

/* 7. Pestaña de Descongelación & Reloj 24h */
.milkbank-thaw-banner {
  background: #0f172a;
  border: 1.5px solid #38bdf8;
  border-radius: 14px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.milkbank-thaw-timer-box {
  background: rgba(56, 189, 248, 0.12);
  border-radius: 12px;
  padding: 12px;
  text-align: center;
}

.milkbank-thaw-time-val {
  font-family: ui-monospace, SFMono-Regular, monospace;
  font-size: 28px;
  font-weight: 800;
  color: #38bdf8;
  line-height: 1;
}

.milkbank-thaw-label {
  font-size: 10px;
  font-weight: 700;
  color: #cbd5e1;
  margin-top: 4px;
}

/* Alerta de Caducidad / Regla de Oro */
.milkbank-golden-rule {
  background: rgba(239, 68, 68, 0.1);
  border: 1.5px solid #ef4444;
  border-radius: 12px;
  padding: 12px;
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.milkbank-golden-icon {
  font-size: 20px;
}

.milkbank-golden-text {
  font-size: 11px;
  color: #fecaca;
  line-height: 1.4;
}

.milkbank-golden-text b {
  color: #ef4444;
  font-weight: 800;
}

/* Guía de Descongelado Seguro */
.milkbank-guide-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.milkbank-guide-card {
  background: #1e293b;
  border: 1px solid #334155;
  border-radius: 12px;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.milkbank-guide-card.prohibited {
  border-color: #ef4444;
  background: rgba(239, 68, 68, 0.05);
}

.milkbank-guide-card.allowed {
  border-color: #10b981;
  background: rgba(16, 185, 129, 0.05);
}

.milkbank-guide-title {
  font-size: 11px;
  font-weight: 800;
}

.milkbank-guide-title.no {
  color: #ef4444;
}

.milkbank-guide-title.yes {
  color: #10b981;
}

.milkbank-guide-desc {
  font-size: 10px;
  color: #cbd5e1;
  line-height: 1.3;
}

/* Botón de Compartir WhatsApp */
.milkbank-whatsapp-btn {
  background: #16a34a;
  color: #ffffff;
  border: none;
  border-radius: 12px;
  padding: 12px;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 4px 12px rgba(22, 163, 74, 0.25);
  transition: transform 0.1s;
}

.milkbank-whatsapp-btn:active {
  transform: scale(0.97);
}



/* =========================================================================
   HITO 27: PRIMEROS LOGROS & HITOS DEL NEURODESARROLLO (MEGHAN)
   ========================================================================= */

.milestones-container {
  display: flex;
  flex-direction: column;
  gap: 16px;
  font-family: inherit;
  color: #f1f5f9;
  padding-bottom: 24px;
}

/* KPIs de Logros */
.milestones-kpi-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.milestones-kpi-card {
  background: #1e293b;
  border: 1px solid #334155;
  border-radius: 14px;
  padding: 12px 6px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.milestones-kpi-val {
  font-family: ui-monospace, SFMono-Regular, monospace;
  font-size: 20px;
  font-weight: 800;
  color: #fbbf24;
  line-height: 1.1;
}

.milestones-kpi-val.accent {
  color: #38bdf8;
}

.milestones-kpi-val.pink {
  color: #f472b6;
}

.milestones-kpi-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  color: #94a3b8;
  margin-top: 4px;
  letter-spacing: 0.04em;
}

.milestones-kpi-sub {
  font-size: 9px;
  color: #64748b;
  margin-top: 2px;
}

/* Tarjeta Hero del Último Logro Desbloqueado */
.milestones-hero-card {
  background: linear-gradient(135deg, rgba(251, 191, 36, 0.15), rgba(30, 41, 59, 0.95));
  border: 1.5px solid #fbbf24;
  border-radius: 16px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  box-shadow: 0 6px 20px rgba(251, 191, 36, 0.15);
}

.milestones-hero-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.milestones-hero-badge {
  background: #fbbf24;
  color: #0f172a;
  font-size: 10px;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 20px;
  text-transform: uppercase;
}

.milestones-hero-date {
  font-size: 11px;
  color: #94a3b8;
}

.milestones-hero-body {
  display: flex;
  gap: 12px;
  align-items: center;
}

.milestones-hero-icon {
  font-size: 32px;
  filter: drop-shadow(0 2px 8px rgba(251,191,36,0.3));
}

.milestones-hero-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
}

.milestones-hero-title {
  font-size: 15px;
  font-weight: 800;
  color: #ffffff;
}

.milestones-hero-age {
  font-size: 11px;
  font-weight: 700;
  color: #fbbf24;
}

.milestones-hero-note {
  font-size: 11px;
  color: #cbd5e1;
  font-style: italic;
  margin-top: 4px;
  background: rgba(15, 23, 42, 0.5);
  padding: 6px 10px;
  border-radius: 8px;
  border-left: 3px solid #fbbf24;
}

.milestones-hero-witness {
  font-size: 10px;
  color: #94a3b8;
  margin-top: 2px;
}

/* Navegación por pestañas */
.milestones-tabs-nav {
  display: flex;
  background: #0f172a;
  padding: 4px;
  border-radius: 12px;
  border: 1px solid #1e293b;
  gap: 4px;
}

.milestones-tab-btn {
  flex: 1;
  background: transparent;
  border: none;
  color: #94a3b8;
  padding: 8px 6px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  text-align: center;
}

.milestones-tab-btn.active {
  background: #fbbf24;
  color: #0f172a;
  box-shadow: 0 2px 8px rgba(251, 191, 36, 0.3);
}

/* Filtros por Categoría */
.milestones-filter-row {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 2px;
}

.milestones-filter-chip {
  background: #1e293b;
  border: 1px solid #334155;
  color: #cbd5e1;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 10.5px;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 5px;
}

.milestones-filter-chip.active {
  background: #d97706;
  border-color: #fbbf24;
  color: #ffffff;
}

/* Lista de Logros */
.milestones-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 420px;
  overflow-y: auto;
  padding-right: 2px;
}

.milestones-item {
  background: #1e293b;
  border: 1px solid #334155;
  border-radius: 14px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  transition: all 0.2s;
}

.milestones-item.unlocked {
  border-color: #fbbf24;
  background: rgba(251, 191, 36, 0.05);
}

.milestones-item-left {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
}

.milestones-item-icon {
  font-size: 24px;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: #0f172a;
  border: 1px solid #334155;
  display: grid;
  place-items: center;
}

.milestones-item.unlocked .milestones-item-icon {
  border-color: #fbbf24;
  background: rgba(251, 191, 36, 0.15);
}

.milestones-item-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.milestones-item-title {
  font-size: 13px;
  font-weight: 800;
  color: #ffffff;
}

.milestones-item-sub {
  font-size: 10px;
  color: #94a3b8;
  display: flex;
  align-items: center;
  gap: 6px;
}

.milestones-item-age-tag {
  color: #fbbf24;
  font-weight: 700;
}

.milestones-item-note {
  font-size: 10.5px;
  color: #cbd5e1;
  font-style: italic;
  margin-top: 3px;
}

.milestones-unlock-btn {
  background: #334155;
  color: #e2e8f0;
  border: none;
  border-radius: 10px;
  padding: 8px 12px;
  font-size: 10.5px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s;
}

.milestones-unlock-btn:hover {
  background: #fbbf24;
  color: #0f172a;
}

.milestones-unlocked-badge {
  color: #fbbf24;
  font-size: 18px;
}

/* Formulario de Registro / Personalizado */
.milestones-form-card {
  background: #1e293b;
  border: 1px solid #334155;
  border-radius: 16px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.milestones-form-title {
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  color: #fbbf24;
  letter-spacing: 0.05em;
  display: flex;
  align-items: center;
  gap: 6px;
}

.milestones-emoji-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
}

.milestones-emoji-btn {
  background: #0f172a;
  border: 1.5px solid #334155;
  border-radius: 10px;
  padding: 8px 0;
  font-size: 20px;
  cursor: pointer;
  text-align: center;
  transition: all 0.15s;
}

.milestones-emoji-btn.active {
  border-color: #fbbf24;
  background: rgba(251, 191, 36, 0.15);
  transform: scale(1.05);
}

.milestones-witness-row {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.milestones-witness-chip {
  background: #0f172a;
  border: 1px solid #334155;
  border-radius: 20px;
  padding: 6px 12px;
  font-size: 11px;
  font-weight: 700;
  color: #cbd5e1;
  cursor: pointer;
  transition: all 0.15s;
}

.milestones-witness-chip.active {
  background: #fbbf24;
  color: #0f172a;
  border-color: #fbbf24;
}

/* Guía Pediátrica */
.milestones-guide-card {
  background: #1e293b;
  border: 1px solid #334155;
  border-radius: 14px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.milestones-guide-title {
  font-size: 12px;
  font-weight: 800;
  color: #38bdf8;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 6px;
}

.milestones-golden-note {
  background: rgba(251, 191, 36, 0.1);
  border: 1.5px solid #fbbf24;
  border-radius: 12px;
  padding: 12px;
  font-size: 11px;
  color: #fef3c7;
  line-height: 1.4;
}

.milestones-share-btn {
  background: #16a34a;
  color: #ffffff;
  border: none;
  border-radius: 12px;
  padding: 12px;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 4px 12px rgba(22, 163, 74, 0.25);
  transition: transform 0.1s;
}

.milestones-share-btn:active {
  transform: scale(0.97);
}



/* =========================================================================
   HITO 28: AGENDA DE CUIDADOS & TRATAMIENTOS PRESCRITOS (MEGHAN)
   ========================================================================= */

.agenda-container {
  display: flex;
  flex-direction: column;
  gap: 16px;
  font-family: inherit;
  color: #f1f5f9;
  padding-bottom: 24px;
}

/* 1. KPIs de Agenda */
.agenda-kpi-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.agenda-kpi-card {
  background: #1e293b;
  border: 1px solid #334155;
  border-radius: 14px;
  padding: 12px 6px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.agenda-kpi-val {
  font-family: ui-monospace, SFMono-Regular, monospace;
  font-size: 20px;
  font-weight: 800;
  color: #38bdf8;
  line-height: 1.1;
}

.agenda-kpi-val.accent {
  color: #fbbf24;
}

.agenda-kpi-val.green {
  color: #10b981;
}

.agenda-kpi-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  color: #94a3b8;
  margin-top: 4px;
  letter-spacing: 0.04em;
}

.agenda-kpi-sub {
  font-size: 9px;
  color: #64748b;
  margin-top: 2px;
}

/* 2. Navegación por pestañas */
.agenda-tabs-nav {
  display: flex;
  background: #0f172a;
  padding: 4px;
  border-radius: 12px;
  border: 1px solid #1e293b;
  gap: 4px;
}

.agenda-tab-btn {
  flex: 1;
  background: transparent;
  border: none;
  color: #94a3b8;
  padding: 8px 6px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  text-align: center;
}

.agenda-tab-btn.active {
  background: #38bdf8;
  color: #0f172a;
  box-shadow: 0 2px 8px rgba(56, 189, 248, 0.3);
}

/* 3. Tarjetas de Tratamiento Activo */
.agenda-treatments-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.agenda-treatment-card {
  background: #1e293b;
  border: 1.5px solid #334155;
  border-radius: 16px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

.agenda-treatment-card.is-active {
  border-color: #38bdf8;
}

.agenda-treatment-card.is-completed {
  border-color: #10b981;
  background: rgba(16, 185, 129, 0.05);
}

.agenda-treatment-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.agenda-treatment-title-box {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.agenda-treatment-name {
  font-size: 14px;
  font-weight: 800;
  color: #ffffff;
}

.agenda-treatment-dose {
  font-size: 11px;
  color: #38bdf8;
  font-weight: 700;
}

.agenda-treatment-badge {
  font-size: 9.5px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 12px;
  text-transform: uppercase;
}

.agenda-treatment-badge.active {
  background: rgba(56, 189, 248, 0.2);
  color: #38bdf8;
}

.agenda-treatment-badge.completed {
  background: rgba(16, 185, 129, 0.2);
  color: #10b981;
}

/* Barra de progreso de dosis */
.agenda-progress-bar-box {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.agenda-progress-label {
  display: flex;
  justify-content: space-between;
  font-size: 10.5px;
  color: #94a3b8;
}

.agenda-progress-track {
  height: 6px;
  background: #0f172a;
  border-radius: 4px;
  overflow: hidden;
}

.agenda-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #38bdf8, #10b981);
  border-radius: 4px;
  transition: width 0.3s ease;
}

/* Próxima Dosis Banner */
.agenda-next-dose-banner {
  background: #0f172a;
  border: 1px solid #334155;
  border-radius: 12px;
  padding: 10px 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.agenda-next-dose-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.agenda-next-dose-time {
  font-family: ui-monospace, SFMono-Regular, monospace;
  font-size: 14px;
  font-weight: 800;
  color: #fbbf24;
}

.agenda-next-dose-sub {
  font-size: 10px;
  color: #94a3b8;
}

.agenda-treatment-actions {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 6px;
}

/* 4. Formulario de Creación de Tratamiento */
.agenda-form-card {
  background: #1e293b;
  border: 1px solid #334155;
  border-radius: 16px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.agenda-freq-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
}

.agenda-freq-btn {
  background: #0f172a;
  border: 1px solid #334155;
  border-radius: 10px;
  padding: 8px 2px;
  font-size: 11px;
  font-weight: 700;
  color: #cbd5e1;
  text-align: center;
  cursor: pointer;
  transition: all 0.15s;
}

.agenda-freq-btn.active {
  background: #38bdf8;
  color: #0f172a;
  border-color: #38bdf8;
  font-weight: 800;
}

/* Banners Médicos FDA y AAP */
.agenda-fda-banner {
  background: rgba(56, 189, 248, 0.08);
  border: 1.5px solid #38bdf8;
  border-radius: 12px;
  padding: 12px;
  font-size: 11px;
  color: #e0f2fe;
  line-height: 1.4;
}

.agenda-fda-banner b {
  color: #38bdf8;
}

.agenda-golden-rule {
  background: rgba(239, 68, 68, 0.08);
  border: 1.5px solid #ef4444;
  border-radius: 12px;
  padding: 12px;
  font-size: 11px;
  color: #fecaca;
  line-height: 1.4;
}

.agenda-golden-rule b {
  color: #ef4444;
}



/* =========================================================================
   BLINDAJE RESPONSIVO UNIVERSAL PARA TODOS LOS MÓDULOS DE BABYCARE
   ========================================================================= */

/* Prevención de desbordamiento horizontal */
.sheetContent,
.idea-detail,
.sound-machine-container,
.tummy-container,
.contrast-container,
.games-hub,
.meds-container,
.visit-container,
.growth-container,
.vax-container,
.bath-container,
.formula-container,
.hydration-container,
.stool-container,
.pumping-container,
.milkbank-container,
.milestones-container,
.agenda-container {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow-x: hidden;
}

/* Grids adaptables en pantallas estrechas (<= 380px) */
@media (max-width: 380px) {
  .agenda-kpi-grid,
  .milkbank-kpi-grid,
  .milestones-kpi-grid,
  .growth-kpi-grid,
  .hydration-kpi-grid,
  .sensor-metrics {
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 4px !important;
  }

  .agenda-kpi-card,
  .milkbank-kpi-card,
  .milestones-kpi-card,
  .growth-kpi-card,
  .hydration-kpi-card {
    padding: 8px 3px !important;
  }

  .agenda-kpi-val,
  .milkbank-kpi-val,
  .milestones-kpi-val {
    font-size: 16px !important;
  }

  .agenda-kpi-label,
  .milkbank-kpi-label,
  .milestones-kpi-label {
    font-size: 8.5px !important;
  }

  .agenda-kpi-sub,
  .milkbank-kpi-sub,
  .milestones-kpi-sub {
    font-size: 7.5px !important;
  }

  /* Acciones de tratamiento */
  .agenda-treatment-actions {
    grid-template-columns: 1fr !important;
    gap: 6px !important;
  }

  /* Destinos y guías */
  .milkbank-dest-grid,
  .milkbank-guide-grid {
    grid-template-columns: 1fr !important;
    gap: 6px !important;
  }

  /* Hero cards */
  .milkbank-peps-body,
  .milestones-hero-body {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 8px !important;
  }

  .milkbank-peps-action-btn,
  .milestones-share-btn {
    width: 100% !important;
    justify-content: center !important;
  }
}

/* Grids flexibles para botones y selectores */
.agenda-freq-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(50px, 1fr)) !important;
  gap: 5px !important;
}

.milkbank-chips-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(60px, 1fr)) !important;
  gap: 5px !important;
}

.milestones-emoji-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(36px, 1fr)) !important;
  gap: 4px !important;
}

.milestones-witness-row,
.agenda-treatment-actions {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 6px !important;
}

/* Scroll horizontal suave y sin barra visible en filtros y tabs */
.agenda-tabs-nav,
.milkbank-tabs-nav,
.milestones-tabs-nav,
.milkbank-filter-row,
.milestones-filter-row,
.history-filters,
.calendar-strip {
  display: flex !important;
  overflow-x: auto !important;
  -webkit-overflow-scrolling: touch !important;
  scrollbar-width: none !important;
}

.agenda-tabs-nav::-webkit-scrollbar,
.milkbank-tabs-nav::-webkit-scrollbar,
.milestones-tabs-nav::-webkit-scrollbar,
.milkbank-filter-row::-webkit-scrollbar,
.milestones-filter-row::-webkit-scrollbar,
.history-filters::-webkit-scrollbar,
.calendar-strip::-webkit-scrollbar {
  display: none !important;
}

/* Tabla de matriz desglosada protegida con scroll táctil */
.visit-matrix-wrapper {
  width: 100% !important;
  max-width: 100% !important;
  overflow-x: auto !important;
  -webkit-overflow-scrolling: touch !important;
}

