/* ══════════════════════════════════════
   DAMIDU — hoja de estilos compartida
   Mismo sistema de diseño que index.html
   (colores, tipografía Inter, header y
   footer) aplicado a todas las páginas
   de /users y /users/admin.
══════════════════════════════════════ */

:root {
  --blue:      #0693e3;
  --blue-dark: #0573b5;
  --blue-mid:  #e8f4fd;
  --dark:      #32373c;
  --text:      #2d2d2d;
  --muted:     #6b7280;
  --border:    #e5e7eb;
  --white:     #ffffff;
  --bg:        #f9fafb;
  --radius:    .5rem;
  --shadow:    0 2px 16px rgba(0,0,0,.08);
  --max:       900px;

  --red:   #b91c1c;
  --green: #15803d;
  --amber: #92400e;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: 'Inter', -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

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

/* ── HEADER / NAV ── */
.site-header {
  background: var(--white);
  border-bottom: 2px solid var(--blue);
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 100;
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding: .9rem 1.25rem;
}

.site-header__logo {
  color: var(--blue);
  font-weight: 800;
  font-size: 1.6rem;
  letter-spacing: -.03em;
  text-decoration: none;
}

.site-header__nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.site-header__nav a {
  color: var(--dark);
  text-decoration: none;
  font-weight: 500;
  font-size: .9rem;
  transition: color .2s;
}

.site-header__nav a:hover { color: var(--blue); }

.site-header__nav a.nav-btn {
  background: var(--blue);
  color: var(--white);
  padding: .55rem 1.3rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: .85rem;
  transition: background .2s;
}
.site-header__nav a.nav-btn:hover { background: var(--blue-dark); color: var(--white); }

/* ── MAIN ── */
.site-main {
  flex: 1;
  padding: 2.5rem 1.25rem 4rem;
}

h1 { font-size: clamp(1.5rem, 3.5vw, 2.1rem); font-weight: 800; letter-spacing: -.02em; color: var(--dark); margin-top: 0; margin-bottom: 1.5rem; }
h2 { font-size: 1.15rem; font-weight: 700; color: var(--dark); margin-top: 2rem; margin-bottom: .8rem; }

/* ── CARDS ── */
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.8rem;
  margin-bottom: 1.5rem;
}
.card h2:first-child { margin-top: 0; }

/* ── FORMS ── */
.field { margin-bottom: 1.1rem; }

.field label {
  display: block;
  font-weight: 600;
  margin-bottom: .4rem;
  font-size: .9rem;
  color: var(--dark);
}

.field .hint {
  font-weight: 400;
  font-size: .82rem;
  color: var(--muted);
}
.hint { color: var(--muted); font-size: .88rem; }

input[type=text], input[type=email], input[type=password],
input[type=number], input[type=date], input[type=time],
select, textarea {
  width: 100%;
  padding: .65rem .9rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: .9rem;
  font-family: inherit;
  color: var(--text);
  background: var(--white);
  outline: none;
  transition: border-color .2s, box-shadow .2s;
}
input[type=text]:focus, input[type=email]:focus, input[type=password]:focus,
input[type=number]:focus, input[type=date]:focus, input[type=time]:focus,
select:focus, textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(6,147,227,.12);
}

textarea { resize: vertical; min-height: 90px; }

.radio-options label,
.check-options label {
  font-weight: 400;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-right: 16px;
  margin-bottom: 6px;
}

.likert {
  display: flex;
  justify-content: space-between;
  gap: 4px;
  flex-wrap: wrap;
}

.likert__option {
  flex: 1 1 auto;
  text-align: center;
  font-size: .8rem;
  font-weight: 600;
  color: var(--muted);
}

.likert__option input { display: block; margin: 0 auto 4px; }

.likert__ends {
  display: flex;
  justify-content: space-between;
  font-size: .78rem;
  color: var(--muted);
  margin-bottom: 6px;
}

button, .button {
  display: inline-block;
  background: var(--blue);
  color: var(--white);
  border: none;
  padding: .75rem 1.8rem;
  border-radius: var(--radius);
  font-size: .9rem;
  font-family: inherit;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  transition: background .2s;
}

button:hover, .button:hover { background: var(--blue-dark); }

.button--secondary {
  background: transparent;
  color: var(--blue);
  border: 2px solid var(--blue);
  padding: .65rem 1.6rem;
}

.button--secondary:hover { background: var(--blue-mid); color: var(--blue-dark); }

/* ── ALERTS ── */
.alert {
  padding: .85rem 1.1rem;
  border-radius: var(--radius);
  margin-bottom: 1.2rem;
  font-size: .9rem;
  font-weight: 500;
}

.alert--error   { background: #fee2e2; color: var(--red);   border: 1px solid #fecaca; }
.alert--success { background: var(--blue-mid); color: var(--blue-dark); border: 1px solid #bfe4fa; }
.alert--info    { background: var(--blue-mid); color: var(--blue-dark); border: 1px solid #bfe4fa; }

/* ── TABLES ── */
table { width: 100%; border-collapse: collapse; font-size: .88rem; }
th, td { padding: .65rem .8rem; border-bottom: 1px solid var(--border); text-align: left; }
th {
  background: var(--blue-mid);
  color: var(--blue-dark);
  font-weight: 700;
}
tr:last-child td { border-bottom: none; }

/* ── BADGES ── */
.badge {
  display: inline-block;
  padding: .3rem .85rem;
  border-radius: 999px;
  font-size: .75rem;
  font-weight: 700;
}
.badge--experimental { background: var(--blue-mid); color: var(--blue-dark); }
.badge--control       { background: #fdf3e3; color: var(--amber); }
.badge--pending       { background: #fee2e2; color: var(--red); }
.badge--done          { background: #dcfce7; color: var(--green); }

.actions { display: flex; gap: 10px; margin-top: 20px; flex-wrap: wrap; }

.simple-list { list-style: none; padding: 0; margin: 0; }
.simple-list li { padding: 10px 0; border-bottom: 1px solid var(--border); }

/* ── FOOTER ── */
.site-footer {
  background: var(--dark);
  color: rgba(255,255,255,.75);
  margin-top: auto;
}
.site-footer__inner { padding: 2.2rem 1.25rem; text-align: center; }
.site-footer__brand {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--white);
  letter-spacing: -.03em;
  margin-bottom: .6rem;
}
.site-footer p {
  font-size: .85rem;
  line-height: 1.7;
  max-width: 560px;
  margin: 0 auto;
}
.site-footer__legal {
  margin-top: 1.2rem !important;
  font-size: .78rem !important;
  opacity: .65;
}

/* ── RESPONSIVE ── */
@media (max-width: 600px) {
  .site-header__inner { padding: .8rem 1rem; }
  .site-main { padding: 2rem 1rem 3rem; }
  .card { padding: 1.3rem; }
}
