/* =========================================================
   CLINICAL VARIABLES HUB – FULL CELESTE UI
   Critical Care Tools
========================================================= */

/* ================= RESET ================= */

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

/* ================= VARIABLES ================= */

:root {
  --bg: #F0F9FF;              /* Fondo celeste muy claro */
  --bg-soft: #E0F2FE;         /* Fondo secundario */
  --card: #FFFFFF;            /* Tarjetas blancas */
  --border: #BAE6FD;          /* Bordes celestes suaves */

  --accent: #38BDF8;          /* Azul celeste principal */
  --accent-strong: #0EA5E9;   /* Celeste más intenso */

  --text: #0F172A;            /* Texto oscuro profesional */
  --muted: #475569;           /* Texto secundario */

  --radius: 16px;
  --max-width: 1100px;
}

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

body {
  background: linear-gradient(
    180deg,
    #F0F9FF 0%,
    #E0F2FE 100%
  );
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: var(--text);
  line-height: 1.6;
}

/* ================= WRAPPER ================= */

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

/* ================= LANGUAGE SWITCHER ================= */

.language-switcher {
  text-align: right;
  font-size: 0.85rem;
  margin-bottom: 1.5rem;
}

.language-switcher a {
  color: var(--accent-strong);
  text-decoration: none;
  margin-left: .6rem;
  transition: 0.2s ease;
}

.language-switcher a.active,
.language-switcher a:hover {
  font-weight: 600;
}

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

.breadcrumb {
  font-size: .85rem;
  margin-bottom: 2rem;
  color: var(--muted);
}

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

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

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

header {
  margin-bottom: 3rem;
}

header h1 {
  font-size: 2.1rem;
  font-weight: 700;
  margin-bottom: .6rem;
  color: var(--accent-strong);
}

.subtitle {
  max-width: 720px;
  color: var(--muted);
  font-size: 1rem;
}

/* ================= MENU GRID ================= */

.menu {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

/* ================= CARD ================= */

.menu a {
  text-decoration: none;
  color: inherit;
  display: flex;
}

.card {
  flex: 1;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem 1.6rem;
  transition: all 0.25s ease;
  box-shadow: 0 8px 18px rgba(14,165,233,.08);
}

/* Hover elegante celeste */

.menu a:hover .card {
  transform: translateY(-6px);
  border-color: var(--accent);
  box-shadow:
    0 15px 30px rgba(14,165,233,.18);
}

/* ================= CARD CONTENT ================= */

.icon {
  font-size: 2rem;
  margin-bottom: .9rem;
  color: var(--accent);
}

.card h3 {
  font-size: 1.2rem;
  margin-bottom: .6rem;
  color: var(--accent-strong);
  font-weight: 600;
}

.card p {
  font-size: .95rem;
  color: var(--muted);
  line-height: 1.5;
}

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

footer {
  margin-top: 4rem;
  padding: 2.5rem 1rem;
  border-top: 1px solid var(--border);
  background: var(--bg-soft);
  text-align: center;
  font-size: .85rem;
  color: var(--muted);
}

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

.footer-nav a {
  color: var(--accent-strong);
  text-decoration: none;
  margin: 0 .6rem;
}

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

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

@media (max-width: 768px) {
  .app-root {
    padding: 35px 15px 50px;
  }

  header h1 {
    font-size: 1.7rem;
  }

  .menu {
    gap: 1.4rem;
  }

  .card {
    padding: 1.6rem 1.3rem;
  }
}
