/* =========================================================
   ENTERPRISE MEDICAL UI — NEUROCRITICAL CARE
   Light Mode Only
========================================================= */

/* -------------------------
   RESET
------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  transition:
    background .2s ease,
    color .2s ease,
    border-color .2s ease,
    box-shadow .2s ease;
}

html, body { height: 100%; }

body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  background: #f3f7fb; /* fondo claro fijo */
  color: #0f172a;
  line-height: 1.6;
}

/* -------------------------
   TOKENS (FORZADO LIGHT)
------------------------- */
:root{

  --bg: #f3f7fb;
  --surface: #ffffff;
  --surface-2: #f8fbff;
  --surface-3: #eef6ff;

  --text: #0f172a;
  --muted: #64748b;
  --muted-2: #94a3b8;

  --border: #e2e8f0;
  --border-2: #dbe7f1;

  --primary: #0ea5e9;
  --primary-strong: #0284c7;

  --ok: #16a34a;
  --warn: #d97706;
  --bad: #dc2626;

  --shadow-soft:
    0 1px 2px rgba(15,23,42,.05),
    0 8px 20px rgba(15,23,42,.06);

  --shadow-elev:
    0 2px 4px rgba(15,23,42,.05),
    0 20px 50px rgba(15,23,42,.12);

  --r-lg: 22px;
  --r-md: 14px;
  --r-sm: 10px;

  --max: 1100px;
}

/* -------------------------
   GLOBAL FOCUS
------------------------- */
:focus-visible{
  outline: 3px solid rgba(14,165,233,.55);
  outline-offset: 2px;
  border-radius: 8px;
}

/* -------------------------
   WRAPPER
------------------------- */
.app.container{
  max-width: var(--max);
  margin: 0 auto;
  padding: 2.75rem 1.25rem 3.75rem;
}

/* -------------------------
   TYPOGRAPHY
------------------------- */
h1,h2,h3{
  font-weight: 700;
  letter-spacing: -0.3px;
}

.subtitle{
  color: var(--muted);
  max-width: 820px;
  margin: 0 auto;
}

/* -------------------------
   PANELS
------------------------- */
.panel{
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 2.15rem;
  box-shadow: var(--shadow-soft);
}

.panel:hover{
  transform: translateY(-3px);
  box-shadow: var(--shadow-elev);
}

/* -------------------------
   CARDS
------------------------- */
.card{
  background: var(--surface-2);
  border: 1px solid var(--border-2);
  border-radius: var(--r-md);
  padding: 1.25rem;
}

.card:hover{
  border-color: rgba(14,165,233,.25);
  box-shadow: 0 10px 28px rgba(2,132,199,.08);
}

/* -------------------------
   FORM FIELDS
------------------------- */
.field{
  display: grid;
  gap: .45rem;
}

.field span{
  color: var(--muted);
  font-size: .9rem;
  font-weight: 600;
}

select,
input[type="number"]{
  width: 100%;
  background: #fff;
  border: 1px solid var(--border-2);
  border-radius: var(--r-sm);
  padding: .6rem .75rem;
  font-size: .95rem;
  color: #000;
}

select:focus,
input[type="number"]:focus{
  border-color: rgba(14,165,233,.65);
  box-shadow: 0 0 0 3px rgba(14,165,233,.18);
  background: var(--surface-3);
}

/* -------------------------
   BUTTONS
------------------------- */
.actions{
  display: flex;
  gap: .75rem;
  flex-wrap: wrap;
  margin-top: 1.15rem;
}

.btn,
.btn-secondary{
  appearance: none;
  border-radius: 999px;
  padding: .65rem 1.15rem;
  font-size: .92rem;
  font-weight: 800;
  cursor: pointer;
}

.btn{
  background: linear-gradient(180deg, var(--primary), var(--primary-strong));
  color: #fff;
  border: none;
  box-shadow: 0 10px 22px rgba(2,132,199,.18);
}

.btn:hover{
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(2,132,199,.22);
}

.btn-secondary{
  background: #fff;
  color: var(--primary-strong);
  border: 1px solid rgba(2,132,199,.35);
}

.btn-secondary:hover{
  background: rgba(14,165,233,.10);
}

/* -------------------------
   RESULTADOS
------------------------- */
.resultado{
  margin-top: 1rem;
  font-weight: 900;
  font-size: 1.15rem;
}

.resultado.ok{ color: var(--ok); }
.resultado.warn{ color: var(--warn); }
.resultado.bad{ color: var(--bad); }

/* -------------------------
   TABLES (LETRAS NEGRAS)
------------------------- */
table{
  width: 100%;
  border-collapse: collapse;
  border-radius: var(--r-md);
  border: 1px solid var(--border-2);
  background: #ffffff;
}

thead th{
  text-align: left;
  font-size: .9rem;
  color: #334155;
  background: var(--surface-3);
  padding: .85rem .9rem;
  border-bottom: 1px solid var(--border-2);
}

tbody td{
  padding: .85rem .9rem;
  border-bottom: 1px solid var(--border-2);
  font-size: .95rem;
  color: #000; /* 🔥 texto completamente negro */
}

tbody tr:hover td{
  background: rgba(14,165,233,.06);
}

/* -------------------------
   FOOTER
------------------------- */
.site-footer{
  border-top: 1px solid var(--border);
  padding: 2.75rem 1.25rem;
  text-align: center;
  color: var(--muted);
}

/* -------------------------
   RESPONSIVE
------------------------- */
@media (max-width: 900px){
  .grid-2{ grid-template-columns: 1fr; }
}

@media (max-width: 640px){
  .app.container{
    padding: 2.25rem 1rem 3.25rem;
  }

  .actions{
    flex-direction: column;
  }

  .btn,
  .btn-secondary{
    width: 100%;
  }
}

.hidden {
  display: none !important;
}


.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;
}
