/* Estilos del Termómetro de Regulación Sensorial - Fijate Tools */

:root {
  --bg-app: #080d1a;
  --bg-card: #12192b;
  --bg-card-secondary: #1a243a;
  --bg-card-hover: #22304d;
  --border-color: #25334e;
  --text-main: #f1f5f9;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  --accent-color: #10b981;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --shadow-card: 0 10px 30px -5px rgba(0, 0, 0, 0.45);
}

[data-theme="light"] {
  --bg-app: #f8fafc;
  --bg-card: #ffffff;
  --bg-card-secondary: #f1f5f9;
  --bg-card-hover: #e2e8f0;
  --border-color: #cbd5e1;
  --text-main: #0f172a;
  --text-muted: #475569;
  --text-dim: #64748b;
  --shadow-card: 0 10px 25px -5px rgba(0, 0, 0, 0.08);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  overflow-x: clip;
  width: 100%;
  max-width: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: var(--bg-app);
  color: var(--text-main);
  line-height: 1.5;
}

.tool-layout {
  max-width: 1200px;
  margin: 1.5rem auto 3rem;
  padding: 0 1rem;
}

.tool-with-sidebar {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
}

.tool-main-content {
  flex: 1;
  min-width: 0;
}

.card-main {
  max-width: 840px;
  margin: 0 auto;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  padding: 2rem;
  margin-bottom: 2rem;
}

/* Selector de la Escala de 5 Puntos (Termómetro horizontal o vertical) */
.scale-selector-container {
  display: flex;
  gap: 0.6rem;
  margin-bottom: 2rem;
}

.termometro-level-btn {
  flex: 1;
  min-height: 75px;
  background: var(--bg-card-secondary);
  border: 2px solid var(--border-color);
  border-radius: var(--radius-sm);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  cursor: pointer;
  transition: all 0.2s ease;
  color: var(--text-main);
}

.termometro-level-btn:hover {
  transform: translateY(-3px);
  border-color: var(--level-color);
}

.termometro-level-btn.active {
  background: var(--level-color);
  border-color: var(--level-color);
  color: #ffffff;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
  transform: scale(1.04);
}

.level-num-badge {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.25);
  font-family: 'JetBrains Mono', monospace;
  font-weight: 800;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.level-short-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-align: center;
}

/* Tarjeta de detalle del nivel actual */
.level-detail-card {
  background: var(--bg-card-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  margin-bottom: 1.5rem;
}

.detail-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.detail-level-title {
  font-family: 'Outfit', sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
}

.detail-pill-badge {
  padding: 0.3rem 0.85rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 700;
}

/* Bloques de señales somáticas y estrategias */
.info-sub-box {
  margin-bottom: 1.5rem;
}

.info-sub-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.4rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.info-sub-desc {
  font-size: 0.95rem;
  color: var(--text-main);
  line-height: 1.55;
}

.strategies-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.strategies-list li {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 0.75rem 1rem;
  font-size: 0.9rem;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.strategies-list li::before {
  content: "•";
  color: #10b981;
  font-weight: bold;
  font-size: 1.2rem;
}

/* Botón gigante de Tarjeta de auxilio rápido (SOS) */
.btn-sos-support {
  width: 100%;
  min-height: 52px;
  background: #f97316;
  color: #ffffff;
  border: none;
  border-radius: var(--radius-sm);
  font-family: 'Outfit', sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  box-shadow: 0 4px 15px rgba(249, 115, 22, 0.35);
  transition: all 0.15s ease;
}

.btn-sos-support:hover {
  background: #ea580c;
  transform: translateY(-2px);
}

/* Modal de Tarjeta de Apoyo / SOS a pantalla completa */
.sos-modal-card {
  width: 100%;
  max-width: 600px;
  background: #0b0f19;
  border: 2px solid #f97316;
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
  text-align: center;
  color: #ffffff;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.7);
}

.sos-pill-badge {
  display: inline-block;
  padding: 0.4rem 1.25rem;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
  color: #ffffff;
}

.sos-huge-text {
  font-family: 'Outfit', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.45;
  margin-bottom: 2rem;
  color: #ffffff;
}

.custom-modal-backdrop {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(5px);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

@media (max-width: 768px) {
  .card-main {
    padding: 1.25rem;
  }

  .scale-selector-container {
    flex-direction: column;
    gap: 0.5rem;
  }

  .termometro-level-btn {
    min-height: 48px;
    flex-direction: row;
    justify-content: flex-start;
    padding: 0.5rem 1rem;
    gap: 0.85rem;
  }

  .sos-huge-text {
    font-size: 1.25rem;
  }
}
