/* Calculadora de Biorritmos — formulario de fechas, gráfica SVG de 7 ciclos
   y tarjetas de interpretación (alta/crítica/baja) por ciclo. */

.bio-page { color: #f3ead2; }
.bio-header { text-align: center; margin-bottom: 1.4rem; }
.bio-header h1 {
  font-family: 'Cinzel', 'Times New Roman', serif;
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  color: #8fd0ff;
  text-shadow: 0 0 16px rgba(143,208,255,0.4);
  margin: 0 0 .6rem;
}
.bio-intro {
  max-width: 64ch;
  margin: 0 auto;
  color: rgba(243,234,210,0.85);
  line-height: 1.55;
}

.bio-app {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
}

/* ---------- Form ---------- */
.bio-form {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  padding: 1.3rem 1.2rem;
  border-radius: 14px;
  border: 1px solid rgba(143,208,255,0.28);
  background:
    radial-gradient(120% 90% at 50% 0%, rgba(255,255,255,0.05), transparent 60%),
    linear-gradient(165deg, #182438 0%, #0e1622 100%);
}
.bio-field { display: flex; flex-direction: column; gap: .5rem; }
.bio-label {
  font-weight: 700;
  color: #cfe6ff;
  font-size: .98rem;
}
.bio-date { display: inline-flex; flex-wrap: wrap; gap: .45rem; }
.bio-sel {
  background: #fdf6e3;
  color: #1a2a40;
  border: 1px solid rgba(120,150,190,0.5);
  border-radius: 8px;
  padding: .4rem .55rem;
  font-size: 1rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  cursor: pointer;
}
.bio-sel:focus-visible { outline: 2px solid #8fd0ff; outline-offset: 1px; }
.bio-hint { font-size: .82rem; color: rgba(243,234,210,0.55); font-style: italic; }
.bio-calc { align-self: flex-start; min-width: 180px; }

/* ---------- Chart ---------- */
.bio-chart-wrap {
  width: 100%;
  border-radius: 12px;
  padding: .6rem;
  background: linear-gradient(165deg, #11304a 0%, #0a1a2a 100%);
  border: 1px solid rgba(143,208,255,0.22);
  overflow-x: auto;
}
.bio-chart { width: 100%; height: auto; display: block; min-width: 480px; }
.bio-axis        { stroke: rgba(255,255,255,0.5); stroke-width: 1.2; }
.bio-axis-faint  { stroke: rgba(255,255,255,0.14); stroke-width: 1; stroke-dasharray: 4 4; }
.bio-today       { stroke: rgba(255,224,138,0.7); stroke-width: 1.4; stroke-dasharray: 3 3; }
.bio-ylabel      { fill: rgba(243,234,210,0.7); font-size: 11px; font-family: inherit; }
.bio-today-label { fill: rgba(255,224,138,0.9); font-size: 11px; font-family: inherit; }

.bio-summary {
  text-align: center;
  color: #cfe6ff;
  font-weight: 600;
  margin: 0;
}

/* ---------- Interpretation cards ---------- */
.bio-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: .9rem;
}
.bio-card {
  border-radius: 12px;
  padding: .9rem 1rem 1rem;
  background: rgba(20,30,46,0.6);
  border: 1px solid rgba(255,255,255,0.08);
  border-left: 4px solid var(--c, #8fd0ff);
}
.bio-card-head {
  display: flex;
  align-items: center;
  gap: .5rem;
  margin-bottom: .5rem;
  flex-wrap: wrap;
}
.bio-card-dot {
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--c, #8fd0ff);
  flex: none;
  box-shadow: 0 0 8px var(--c, #8fd0ff);
}
.bio-card-name { font-weight: 700; color: #f3ead2; font-size: 1.05rem; }
.bio-card-value {
  margin-left: auto;
  font-variant-numeric: tabular-nums;
  font-weight: 800;
  color: var(--c, #8fd0ff);
}
.bio-card-badge {
  font-size: .68rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: .15rem .5rem;
  border-radius: 999px;
  font-weight: 700;
}
.bio-card--high    .bio-card-badge { background: rgba(40,180,90,0.22);  color: #8fffa8; }
.bio-card--low     .bio-card-badge { background: rgba(120,140,170,0.22); color: #c4d4e8; }
.bio-card--critical .bio-card-badge { background: rgba(255,170,60,0.22); color: #ffd28a; }
.bio-card-governs {
  font-size: .85rem;
  color: rgba(243,234,210,0.6);
  margin: 0 0 .5rem;
  font-style: italic;
}
.bio-card-interp {
  font-size: .92rem;
  line-height: 1.5;
  color: rgba(243,234,210,0.9);
  margin: 0;
}

.bio-error { text-align: center; color: #ff9999; margin: 0; }

@media (max-width: 520px) {
  .bio-calc { align-self: stretch; }
}
