/* =========================================================
   RESET
========================================================= */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

img,
svg {
  max-width: 100%;
  display: block;
}

/* =========================================================
   VARIABLES · PREMIUM MEDICAL (LIGHT ONLY)
========================================================= */
:root {
  /* Fondos */
  --bg-main: #f3f7fb;
  --bg-panel: #ffffff;
  --bg-soft: #f8fbff;

  /* Texto */
  --text-main: #0f172a;
  --text-muted: #64748b;

  /* Bordes */
  --border-light: #e2e8f0;
  --border-soft: #dbe7f1;

  /* Brand */
  --primary: #0ea5e9;
  --primary-strong: #0284c7;

  /* Estados clínicos */
  --ok: #16a34a;
  --warn: #d97706;
  --bad: #dc2626;

  /* Sombras */
  --shadow-soft: 0 6px 20px rgba(15, 23, 42, 0.05);
  --shadow-elevated: 0 14px 40px rgba(15, 23, 42, 0.08);

  /* Radius */
  --radius-lg: 22px;
  --radius-md: 14px;
  --radius-sm: 10px;
}

/* =========================================================
   BODY
========================================================= */
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial,
    sans-serif;
  background: var(--bg-main);
  color: var(--text-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* =========================================================
   LINKS + FOCUS (WCAG)
========================================================= */
a {
  color: inherit;
}

:focus-visible {
  outline: 3px solid rgba(14, 165, 233, 0.55);
  outline-offset: 2px;
  border-radius: 10px;
}

/* =========================================================
   CONTAINER
========================================================= */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 3rem 1.5rem 4rem;
}

/* =========================================================
   LANGUAGE SWITCHER
========================================================= */
.language-switcher {
  text-align: right;
  font-size: 0.85rem;
  margin-bottom: 1.2rem;
  color: var(--text-muted);
}

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

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

/* =========================================================
   BREADCRUMB
========================================================= */
.breadcrumb-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
  font-size: 0.9rem;
  margin-bottom: 2rem;
}

.breadcrumb-nav a {
  text-decoration: none;
  padding: 0.42rem 0.82rem;
  border-radius: 999px;
  background: var(--bg-soft);
  color: var(--primary-strong);
  border: 1px solid var(--border-soft);
  transition: background 0.2s ease, border-color 0.2s ease;
}

.breadcrumb-nav a:hover {
  background: rgba(14, 165, 233, 0.12);
  border-color: rgba(14, 165, 233, 0.25);
}

.breadcrumb-nav span {
  color: var(--text-muted);
}

/* =========================================================
   TITULOS
========================================================= */
h1 {
  text-align: center;
  font-size: 2rem;
  margin: 0 0 0.3rem;
  letter-spacing: -0.5px;
}

h2 {
  margin: 0 0 0.6rem;
  font-size: 1.25rem;
  font-weight: 650;
}

.note {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin: 0 0 1rem;
}

/* =========================================================
   PANEL
========================================================= */
.panel {
  background: var(--bg-panel);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  margin-bottom: 3rem;
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--border-light);
  transition: box-shadow 0.2s ease;
}

.panel:hover {
  box-shadow: var(--shadow-elevated);
}

/* =========================================================
   GRID
========================================================= */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
  margin-bottom: 1.5rem;
}

label {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* =========================================================
   INPUTS
========================================================= */
select,
input[type="number"],
input[type="text"] {
  background: var(--bg-soft);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-sm);
  padding: 0.6rem 0.75rem;
  font-size: 0.95rem;
  color: var(--text-main);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

select:focus,
input:focus {
  outline: none;
  border-color: rgba(14, 165, 233, 0.65);
  box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.15);
}

/* =========================================================
   BUTTONS
========================================================= */
.actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}

button {
  border-radius: var(--radius-md);
  padding: 0.65rem 1.4rem;
  font-size: 0.92rem;
  font-weight: 650;
  cursor: pointer;
  border: none;
}

button.primary {
  background: var(--primary-strong);
  color: #fff;
}

button.primary:hover {
  background: var(--primary);
}

button.secondary {
  background: transparent;
  border: 1px solid var(--primary-strong);
  color: var(--primary-strong);
}

button.secondary:hover {
  background: rgba(14, 165, 233, 0.1);
}

/* =========================================================
   RESULTADOS
========================================================= */
.resultado.ok { color: var(--ok); }
.resultado.warn { color: var(--warn); }
.resultado.bad { color: var(--bad); }

/* =========================================================
   FOOTER
========================================================= */
footer {
  border-top: 1px solid var(--border-light);
  padding: 3rem 1rem;
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-muted);
}


/* Bloque SEO desplegable */
.seo-panel details {
  margin-top: 2rem;
  padding: 1rem 1.2rem;
  border-radius: 14px;
  background: rgba(255,255,255,0.03);
}

.seo-panel summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 1rem;
}

.seo-panel h2,
.seo-panel h3 {
  margin-top: 1rem;
}
