*{ box-sizing:border-box; }
html, body { height:100%; }

body{
  margin:0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background:#f6f7f9;
  color:#111;
}

a{ color:inherit; text-decoration:none; }
a:hover{ text-decoration:underline; }

.wrap{ max-width:1100px; margin:24px auto; padding:0 16px; }

.topbar{
  background:#fff;
  border-bottom:1px solid #e6e6e6;
  position:sticky;
  top:0;
  z-index:50;
}

.topbar .inner{
  max-width:1100px;
  margin:auto;
  padding:14px 16px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
}

.brand{
  display:flex;
  align-items:center;
  gap:10px;
  font-weight:900;
  letter-spacing:.2px;
}

.brand img{
  height:30px;
  width:auto;
  display:block;
}

.actions{ display:flex; gap:10px; align-items:center; flex-wrap:wrap; }

.card{
  background:#fff;
  border:1px solid #e6e6e6;
  border-radius:16px;
  padding:18px;
  box-shadow: 0 10px 26px rgba(0,0,0,.06);
}

.card h1{ margin:0 0 10px; font-size:22px; }
.card h2{ margin:0 0 10px; font-size:18px; }
.hr{ height:1px; background:#eee; margin:12px 0; }

.grid-2{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:16px;
}

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

.muted{ color:#666; font-size:13px; line-height:1.4; }

/* ===== Buttons ===== */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  padding:10px 14px;
  border-radius:12px;
  border:1px solid #111;
  background:#111;
  color:#fff;
  font-weight:800;
  cursor:pointer;
  text-decoration:none;
}

.btn:hover{ filter:brightness(.95); text-decoration:none; }

.btn-outline{
  background:#fff;
  color:#111;
  border:1px solid #d6d6d6;
}

.btn-outline:hover{ background:#f3f3f3; }

.btn-danger{
  background:#ff2a2a;
  border-color:#ff2a2a;
  color:#fff;
}

/* ===== Forms ===== */
label{
  display:block;
  font-size:12px;
  color:#555;
  margin:12px 0 6px;
  font-weight:800;
  text-transform:uppercase;
  letter-spacing:.4px;
}

input[type="text"],
input[type="password"],
input[type="file"],
textarea{
  width:100%;
  border:1px solid #e3e3e3;
  border-radius:14px;
  padding:14px 14px;
  outline:none;
  background:#fff;
  font-size:15px;
  line-height:1.5;
}

input[type="text"]:focus,
input[type="password"]:focus,
textarea:focus{
  border-color:#b8c7ff;
  box-shadow:0 0 0 4px rgba(80,120,255,.12);
}

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

/* campo contenido más grande */
textarea[name="contenido"]{
  min-height:320px;
  font-size:15px;
  line-height:1.65;
}

/* resumen un poco más cómodo */
textarea[name="resumen"]{
  min-height:140px;
}

/* ===== Table ===== */
.table{
  width:100%;
  border-collapse:collapse;
  background:#fff;
  border:1px solid #e6e6e6;
  border-radius:16px;
  overflow:hidden;
}

.table th, .table td{
  padding:12px 10px;
  border-bottom:1px solid #eee;
  font-size:14px;
  vertical-align:top;
}

.table th{
  background:#fafafa;
  color:#555;
  font-weight:900;
  text-align:left;
}

.thumb{
  width:92px;
  height:60px;
  border-radius:12px;
  object-fit:cover;
  border:1px solid #eee;
  background:#fafafa;
}

.row-actions{
  display:flex;
  gap:8px;
  justify-content:flex-end;
  flex-wrap:wrap;
}

/* ===== Alerts ===== */
.notice{
  padding:10px 12px;
  border-radius:12px;
  background:#f1f5ff;
  border:1px solid #dbe7ff;
  color:#1f3b8a;
  margin-bottom:12px;
}
.error{
  padding:10px 12px;
  border-radius:12px;
  background:#fff2f2;
  border:1px solid #ffd2d2;
  color:#8a1f1f;
  margin-bottom:12px;
}
