/* ==========================================
   Critical Care Tools - EN Light Blue Theme
   Clinical Consistent Version
========================================== */

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

:root {
  --color-primary: #0EA5E9;        /* Azul celeste institucional */
  --color-primary-dark: #0284C7;
  --color-background: #F8FAFC;
  --color-surface: #FFFFFF;
  --color-text: #0F172A;
  --color-muted: #64748B;
  --color-border: #E2E8F0;
  --max-width: 1100px;
  --radius: 14px;
}

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

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

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

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

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

header {
  text-align: center;
  padding: 3rem 1.5rem 2rem;
  background: linear-gradient(
    135deg,
    #E0F2FE 0%,
    #F8FAFC 100%
  );
  border-bottom: 1px solid var(--color-border);
}

header h1 {
  font-size: 2rem;
  font-weight: 600;
  letter-spacing: -0.4px;
  color: var(--color-text);
}

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

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

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

.language-switcher a:hover {
  color: var(--color-primary);
}

.language-switcher a.active,
.language-switcher a[aria-current="page"] {
  color: var(--color-primary);
  font-weight: 600;
}

/* =========================
   CONTAINER
========================= */

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2rem 1.5rem 3rem;
}

/* =========================
   INTRO
========================= */

.intro {
  text-align: center;
  margin-bottom: 3rem;
  max-width: 750px;
  margin-left: auto;
  margin-right: auto;
}

.intro h2 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  font-weight: 500;
}

.intro p {
  color: var(--color-muted);
}

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

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

/* =========================
   CARDS
========================= */

.menu article {
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  padding: 1.8rem;
  border-radius: var(--radius);
  transition: all 0.25s ease;
}

.menu article:hover {
  border-color: var(--color-primary);
  box-shadow: 0 8px 24px rgba(14, 165, 233, 0.12);
  transform: translateY(-4px);
}

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

.menu h2 {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 0.8rem;
  color: var(--color-text);
}

.menu p {
  font-size: 0.95rem;
  color: var(--color-muted);
  margin-bottom: 1.2rem;

  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* =========================
   CTA (EN)
========================= */

.menu a::after {
  content: "Enter →";
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--color-primary);

  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.menu article:hover a::after {
  opacity: 1;
  transform: translateY(0);
}

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

footer {
  text-align: center;
  padding: 2rem 1.5rem;
  font-size: 0.85rem;
  color: var(--color-muted);
  border-top: 1px solid var(--color-border);
  background-color: var(--color-surface);
  margin-top: 4rem;
}

footer a {
  color: var(--color-primary);
  text-decoration: none;
}

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

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

@media (max-width: 600px) {

  header h1 {
    font-size: 1.6rem;
  }

  .menu {
    gap: 1.5rem;
  }

}
