/* ==========================================
   Hemodynamic Monitoring - EN
   Light Blue Clinical Theme
   No Dark Background
========================================== */

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

:root {
  --bg: #f4f9ff;           /* Fondo general celeste muy claro */
  --panel: #ffffff;        /* Panel blanco limpio */
  --panel-soft: #eaf4ff;   /* Celeste suave */
  
  --accent: #38bdf8;       /* Celeste principal */
  --accent-strong: #0ea5e9; /* Celeste más fuerte */
  --accent-soft: rgba(56,189,248,.15);

  --text: #1e293b;
  --muted: #5b6b7f;
  --border: #cfe5ff;

  --radius: 14px;
  --maxw: 1000px;
}

/* ================= BODY ================= */

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

/* ================= LAYOUT ================= */

.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 50px 20px 70px;
}

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

.breadcrumb {
  margin-bottom: 25px;
  font-size: 0.9rem;
  color: var(--muted);
}

.breadcrumb a {
  color: var(--accent);
  text-decoration: none;
}

.breadcrumb a:hover {
  color: var(--accent-strong);
}

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

.app-header {
  margin-bottom: 35px;
}

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

/* ================= PANELS ================= */

.panel {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  margin-bottom: 35px;
  box-shadow: 0 6px 18px rgba(56,189,248,.08);
  transition: .25s ease;
}

.panel:hover {
  border-color: var(--accent);
  box-shadow: 0 8px 22px rgba(56,189,248,.15);
}

.panel h2 {
  margin-bottom: 18px;
  font-size: 1.25rem;
  color: var(--accent);
}

/* ================= FIELDSETS ================= */

fieldset {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 18px;
  margin-bottom: 25px;
  background: var(--panel-soft);
}

legend {
  padding: 0 8px;
  color: var(--accent);
  font-weight: 600;
  font-size: 0.9rem;
}

/* ================= FORMS ================= */

label {
  display: block;
  margin-top: 14px;
  font-size: 0.9rem;
  color: var(--text);
}

input {
  width: 100%;
  padding: 10px 12px;
  margin-top: 6px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--panel-soft);
  color: var(--text);
  font-size: 0.95rem;
  transition: .2s ease;
}

input:focus {
  outline: none;
  border-color: var(--accent);
  background: #ffffff;
  box-shadow: 0 0 0 2px var(--accent-soft);
}

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

button {
  margin-top: 18px;
  padding: 12px 22px;
  border-radius: 10px;
  border: none;
  background: linear-gradient(
    135deg,
    var(--accent),
    var(--accent-strong)
  );
  color: white;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: .3px;
  cursor: pointer;
  transition: .25s ease;
  box-shadow: 0 4px 14px rgba(56,189,248,.25);
}

button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(56,189,248,.35);
}

button:active {
  transform: translateY(0);
}

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

.result {
  margin-top: 18px;
  padding: 16px;
  border-radius: 12px;
  background: #e3f2ff;
  border: 1px solid var(--accent);
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.5;
}

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

.note {
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.9rem;
}

/* ================= GRIDS ================= */

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

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

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

footer {
  margin-top: 60px;
  text-align: center;
  border-top: 1px solid var(--border);
  padding-top: 25px;
  color: var(--muted);
  font-size: 0.85rem;
  background: #ffffff;
}

.footer-nav a {
  color: var(--accent);
  text-decoration: none;
  margin: 0 10px;
  font-weight: 500;
}

.footer-nav a:hover {
  color: var(--accent-strong);
}

/* ================= RESPONSIVE ================= */

@media (max-width: 768px) {
  .grid-2,
  .grid-3 {
    grid-template-columns: 1fr;
  }

  .panel {
    padding: 22px;
  }
}
