:root{
  --bg:#f6f7fb;
  --card:#ffffff;
  --text:#111827;
  --muted:#6b7280;
  --line:#e5e7eb;
  --primary:#0b3b8c; /* azul institucional Tunja */
}

*{
  box-sizing:border-box;
}

body{
  margin:0;
  font-family: Arial, sans-serif;
  background:var(--bg);
  color:var(--text);
}

/* =========================
   LAYOUT GENERAL
========================= */

.container{
  max-width: 980px;
  margin: 0 auto;
  padding: 24px;
}

/* =========================
   HEADER INSTITUCIONAL
========================= */

.header{
  display:flex;
  align-items:center;
  gap:16px;
  padding:22px 24px;
  min-height:140px;

  background:
    linear-gradient(rgba(11,59,140,0.65), rgba(11,59,140,0.65)),
    url("/TunjaAC2025/assets/sistema.png");

  background-size:cover;
  background-position:center;
  color:#fff;
}

.header img{
  height:48px;
  width:auto;
  object-fit:contain;
  display:block;
}

.header .brand{
  line-height:1.2;
}

.header .brand .title{
  font-weight:700;
  font-size:18px;
  color:#fff;
}

.header .brand .subtitle{
  font-size:13px;
  color:#e5e7eb;
}

/* =========================
   TARJETAS
========================= */

.card{
  background:var(--card);
  border:1px solid var(--line);
  border-radius:14px;
  padding:18px;
  box-shadow:0 2px 10px rgba(0,0,0,.04);
}

h1,h2,h3{
  margin:0 0 12px 0;
}

/* =========================
   FORMULARIOS
========================= */

label{
  display:block;
  font-weight:700;
  margin-top:12px;
  font-size:13px;
}

select,
input,
textarea{
  width:100%;
  padding:10px 12px;
  border:1px solid var(--line);
  border-radius:10px;
  margin-top:6px;
  background:#fff;
  font-size:13px;
}

textarea{
  resize:vertical;
}

.hint{
  font-size:12px;
  color:var(--muted);
  margin-top:6px;
}

.row{
  display:flex;
  gap:12px;
  align-items:flex-end;
  margin-top:12px;
}

.row .col{
  flex:1;
}

/* =========================
   BOTONES
========================= */

button{
  padding:10px 16px;
  border:none;
  border-radius:10px;
  background:var(--primary);
  color:#fff;
  cursor:pointer;
  height:42px;
  font-weight:700;
  font-size:13px;
}

button:hover{
  opacity:.92;
}

button.secondary{
  background:#6b7280;
}

/* =========================
   MENSAJES
========================= */

.msg{
  margin-top:12px;
  padding:10px 12px;
  border-radius:10px;
  border:1px solid var(--line);
  font-size:13px;
}

.msg.err{
  background:#ffecec;
  border-color:#ffb3b3;
}

/* =========================
   TABLAS
========================= */

table{
  width:100%;
  border-collapse:collapse;
  margin-top:12px;
  border-radius:12px;
  overflow:hidden;
  border:1px solid var(--line);
  background:#fff;
}

th,td{
  padding:10px;
  border-bottom:1px solid var(--line);
  text-align:left;
  vertical-align:top;
}

th{
  background:#f3f4f6;
  font-size:13px;
  font-weight:700;
}

td{
  font-size:13px;
}

/* =========================
   FOOTER
========================= */

.footer{
  margin-top:14px;
  color:var(--muted);
  font-size:12px;
  text-align:center;
}

/* =========================
   AVISO INSTITUCIONAL
========================= */

.inst-wrap{
  max-width: 980px;
  margin: 16px auto 0;
  padding: 0 24px;

}

.inst-card{
  background:#fff;
  border:1px solid #e5e7eb;
  border-radius:14px;
  box-shadow:0 2px 10px rgba(0,0,0,.04);
  padding:18px;
}

.inst-badge{
  display:inline-flex;
  align-items:center;
  gap:8px;
  background:#eaf2ff;
  color:#0b3b8c;
  border:1px solid #cfe0ff;
  font-weight:700;
  font-size:12px;
  padding:6px 10px;
  border-radius:999px;
  margin-bottom:10px;
}

.inst-title{
  margin:0 0 8px;
  font-size:18px;
  color:#111827;
}

.inst-text{
  margin:0 0 10px;
  color:#374151;
  font-size:13.5px;
  line-height:1.45;
}

.inst-actions{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  margin-top:12px;
}

.inst-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  text-decoration:none;
  background:#0b3b8c;
  color:#fff;
  padding:10px 14px;
  border-radius:10px;
  font-weight:700;
  font-size:13px;
  border:1px solid #0b3b8c;
}

.inst-btn:hover{
  opacity:.92;
}

.inst-btn--ghost{
  background:#fff;
  color:#0b3b8c;
  border:1px solid #cfe0ff;
}

.inst-footnote{
  margin-top:12px;
  font-size:12px;
  color:#6b7280;
  border-top:1px solid #eef2f7;
  padding-top:12px;
}

/* =========================
   RESPONSIVE
========================= */

@media (max-width:640px){
  .row{
    flex-direction:column;
  }

  .header{
    flex-direction:column;
    align-items:flex-start;
    min-height:auto;
  }

  .header img{
    height:42px;
  }
}
