:root {
  --ccce-primary: #002B5C;
  --ccce-primary-dark: #001a3d;
  --ccce-accent: #00A3E0;
  --ccce-bg: #f4f6fb;
  --ccce-surface: #ffffff;
  --ccce-text: #1a1a1a;
  --ccce-muted: #6b7280;
  --ccce-border: #e1e5eb;
  --ccce-success: #117a3d;
  --ccce-error: #b42318;
}

* { box-sizing: border-box; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  margin: 0;
  background: var(--ccce-bg);
  color: var(--ccce-text);
  line-height: 1.55;
}

.site-header {
  background: #fff;
  border-bottom: 1px solid var(--ccce-border);
  padding: 18px 24px;
}
.site-header .container {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.site-header img.logo {
  height: 48px;
  width: auto;
}
.site-header .tag {
  color: var(--ccce-muted);
  font-size: 13px;
}

.container {
  max-width: 820px;
  margin: 0 auto;
  padding: 32px 20px 60px;
}

.card {
  background: var(--ccce-surface);
  border: 1px solid var(--ccce-border);
  border-radius: 12px;
  padding: 32px;
  box-shadow: 0 4px 18px rgba(0, 43, 92, 0.06);
}

h1 {
  font-size: 26px;
  margin: 0 0 8px;
  color: var(--ccce-primary);
}
h2 { color: var(--ccce-primary); }
.lead {
  color: var(--ccce-muted);
  margin: 0 0 24px;
  font-size: 15px;
}

.intro p {
  margin: 0 0 14px;
  color: #2a2f3a;
  font-size: 15px;
}

.notice {
  background: #eaf6fb;
  border-left: 4px solid var(--ccce-accent);
  padding: 14px 16px;
  border-radius: 6px;
  margin: 22px 0;
  font-size: 14px;
  color: #0a3d5a;
}
.notice strong { color: var(--ccce-primary); }

label {
  display: block;
  font-weight: 600;
  margin: 18px 0 6px;
  font-size: 14px;
  color: #2a2f3a;
}
.help {
  display: block;
  font-size: 12px;
  color: var(--ccce-muted);
  margin-bottom: 6px;
}

textarea,
input[type="text"],
input[type="email"],
input[type="password"] {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--ccce-border);
  border-radius: 8px;
  font-size: 15px;
  font-family: inherit;
  background: #fff;
  color: var(--ccce-text);
  transition: border-color 0.15s, box-shadow 0.15s;
}
textarea:focus,
input:focus {
  outline: none;
  border-color: var(--ccce-accent);
  box-shadow: 0 0 0 3px rgba(0, 163, 224, 0.18);
}
textarea { min-height: 180px; resize: vertical; }

.check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 18px 0;
  padding: 12px 14px;
  background: #f7f9fc;
  border: 1px solid var(--ccce-border);
  border-radius: 8px;
}
.check input { margin-top: 4px; }
.check label { margin: 0; font-weight: 600; }
.check small { display: block; color: var(--ccce-muted); font-weight: 400; }

.identidad {
  border: 1px dashed var(--ccce-border);
  padding: 16px 18px;
  border-radius: 8px;
  margin-top: 8px;
}
.identidad.hidden { display: none; }

.btn {
  display: inline-block;
  background: var(--ccce-primary);
  color: #fff;
  padding: 12px 22px;
  border-radius: 8px;
  border: 0;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s;
}
.btn:hover { background: var(--ccce-primary-dark); }
.btn.secondary { background: #fff; color: var(--ccce-primary); border: 1px solid var(--ccce-primary); }
.btn.secondary:hover { background: var(--ccce-bg); }
.btn-row { margin-top: 24px; display: flex; gap: 10px; flex-wrap: wrap; }

.alert {
  padding: 12px 14px;
  border-radius: 8px;
  margin-bottom: 18px;
  font-size: 14px;
}
.alert.error { background: #fdecea; color: var(--ccce-error); border: 1px solid #f5c2bd; }
.alert.success { background: #e7f5ec; color: var(--ccce-success); border: 1px solid #b9deca; }

footer {
  text-align: center;
  color: var(--ccce-muted);
  font-size: 12px;
  padding: 20px;
}

/* Login admin */
.login-wrap {
  max-width: 420px;
  margin: 80px auto;
}

/* Tabla admin */
table.list {
  width: 100%;
  border-collapse: collapse;
  margin-top: 16px;
  background: #fff;
  border: 1px solid var(--ccce-border);
  border-radius: 8px;
  overflow: hidden;
}
table.list th,
table.list td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid var(--ccce-border);
  font-size: 14px;
  vertical-align: top;
}
table.list th { background: #f4f6fb; color: var(--ccce-primary); font-weight: 600; }
table.list tr:last-child td { border-bottom: 0; }
table.list a { color: var(--ccce-primary); text-decoration: none; font-weight: 600; }
table.list a:hover { text-decoration: underline; }

.badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
}
.badge.anon { background: #eaf6fb; color: #0a3d5a; }
.badge.id { background: #eef0f5; color: var(--ccce-primary); }

.admin-header {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 8px;
}

.detail dl { margin: 0; }
.detail dt { font-size: 12px; color: var(--ccce-muted); margin-top: 12px; }
.detail dd { margin: 4px 0 0; font-size: 15px; }
.detail .descripcion {
  white-space: pre-wrap;
  background: #f7f9fc;
  border: 1px solid var(--ccce-border);
  border-radius: 8px;
  padding: 14px 16px;
  margin-top: 6px;
}

@media (max-width: 600px) {
  .card { padding: 22px; }
  .site-header img.logo { height: 38px; }
  h1 { font-size: 22px; }
}
