/* =========================================================
   CRITICAL CARE TOOLS – DRUG DOSING (LIGHT CLINICAL)
   Continuous Infusion Vancomycin
========================================================= */

:root {
  --bg-main: #F8FAFC;
  --bg-panel: #FFFFFF;
  --bg-input: #FFFFFF;
  --accent: #38BDF8;          /* Azul celeste */
  --accent-soft: #0EA5E9;     /* Azul celeste fuerte */
  --text-main: #0F172A;
  --text-soft: #64748B;
  --danger: #DC2626;
  --border: #E2E8F0;
  --radius: 14px;
  --shadow: 0 8px 30px rgba(14,165,233,0.06);
}

/* ================================
   BASE
================================ */

body {
  margin: 0;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: var(--bg-main);
  color: var(--text-main);
  line-height: 1.6;
}

.container {
  max-width: 980px;
  margin: auto;
  padding: 2.5rem 1.5rem;
}

/* ================================
   BREADCRUMB
================================ */

.breadcrumb {
  font-size: 0.85rem;
  margin-bottom: 1.8rem;
  color: var(--text-soft);
}

.breadcrumb a {
  color: var(--accent-soft);
  text-decoration: none;
  transition: 0.2s ease;
}

.breadcrumb a:hover {
  text-decoration: underline;
}

/* ================================
   HEADER
================================ */

.app-header {
  margin-bottom: 2.5rem;
}

.app-header h1 {
  margin-bottom: 0.4rem;
  font-size: 2.1rem;
  font-weight: 600;
}

.subtitle {
  color: var(--text-soft);
  font-size: 0.95rem;
}

/* ================================
   PANEL
================================ */

.panel {
  background-color: var(--bg-panel);
  padding: 2rem;
  border-radius: var(--radius);
  margin-bottom: 2.2rem;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  transition: 0.2s ease;
}

.panel:hover {
  border-color: var(--accent);
}

.panel h2 {
  margin-top: 0;
  margin-bottom: 1.2rem;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--accent-soft);
  letter-spacing: 0.3px;
}

/* ================================
   FORM GRID
================================ */

.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.3rem;
  margin-bottom: 1.6rem;
}

.field {
  display: flex;
  flex-direction: column;
}

/* ================================
   LABELS & INPUTS
================================ */

label {
  font-size: 0.8rem;
  margin-bottom: 0.35rem;
  color: var(--text-soft);
  letter-spacing: 0.3px;
}

input,
select {
  padding: 0.7rem 0.85rem;
  border-radius: 10px;
  border: 1px solid var(--border);
  background-color: var(--bg-input);
  color: var(--text-main);
  font-size: 0.95rem;
  transition: all 0.2s ease;
}

input:focus,
select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(56,189,248,0.2);
}

/* ================================
   BUTTONS
================================ */

.actions {
  margin-top: 1.8rem;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

button {
  padding: 0.75rem 1.4rem;
  border-radius: 10px;
  border: none;
  font-size: 0.9rem;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.2s ease;
}

button#btnCalcular {
  background: linear-gradient(135deg, var(--accent), var(--accent-soft));
  color: #fff;
}

button#btnCalcular:hover {
  transform: translateY(-1px);
  opacity: 0.95;
}

.btn-secondary {
  background-color: #E2E8F0;
  color: var(--text-main);
}

.btn-secondary:hover {
  background-color: #CBD5E1;
}

/* ================================
   RESULTS
================================ */

.results {
  margin-top: 2.2rem;
}

.resultado {
  margin-bottom: 0.8rem;
  padding: 0.9rem 1rem;
  background-color: #F1F5F9;
  border-left: 4px solid var(--accent-soft);
  border-radius: 10px;
  font-size: 0.95rem;
  box-shadow: 0 4px 12px rgba(14,165,233,0.05);
}

.resultado strong {
  color: var(--accent-soft);
}

.note {
  margin-top: 1.2rem;
  font-size: 0.85rem;
  color: var(--text-soft);
  line-height: 1.5;
}

/* ================================
   ERROR CALLOUT
================================ */

.callout {
  background-color: #FEF2F2;
  border-left: 4px solid var(--danger);
  padding: 1rem;
  border-radius: 10px;
  margin-top: 1.2rem;
  font-size: 0.9rem;
}

.hidden {
  display: none;
}

/* ================================
   CTA BUTTON
================================ */

.cta-nav {
  margin-top: 2.5rem;
  text-align: center;
}

.nav-primary {
  display: inline-block;
  padding: 0.85rem 1.6rem;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--accent), var(--accent-soft));
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  transition: 0.2s ease;
}

.nav-primary:hover {
  transform: translateY(-2px);
  opacity: 0.95;
}

/* ================================
   FOOTER
================================ */

footer {
  margin-top: 3.5rem;
  padding: 2.2rem 1rem;
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-soft);
  border-top: 1px solid var(--border);
  background-color: #FFFFFF;
}

.footer-nav {
  margin-bottom: 0.8rem;
}

.footer-nav a {
  color: var(--accent-soft);
  text-decoration: none;
  margin: 0 0.4rem;
  transition: 0.2s ease;
}

.footer-nav a:hover {
  text-decoration: underline;
}
