/* MexicoOT — tema pergamino/azul/dorado estilo sitios clásicos de Tibia */
:root {
  --parch: #efdfae;
  --parch2: #e7d193;
  --ink: #3a2c14;
  --ink-soft: #5d4a26;
  --blue1: #2f6395;
  --blue2: #1c4066;
  --gold: #c9a227;
  --gold2: #e8c85a;
  --brown-line: #8a6a24;
  --green1: #58a447;
  --green2: #35702a;
  --red1: #b6504c;
  --red2: #7e2a28;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  color: var(--ink);
  font-family: Verdana, Geneva, Tahoma, sans-serif;
  font-size: 14px;
  line-height: 1.55;
  background: #10131c url('bg.jpg') center top / cover fixed no-repeat;
  min-height: 100vh;
}
a { color: #7a4d12; text-decoration: none; font-weight: bold; }
a:hover { text-decoration: underline; }
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 12px; }

/* ---------- barra superior ---------- */
.topbar {
  background: linear-gradient(180deg, rgba(10, 14, 24, .92), rgba(10, 14, 24, .78));
  border-bottom: 2px solid var(--gold);
  box-shadow: 0 2px 14px rgba(0, 0, 0, .55);
}
.topbar-in { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 12px; flex-wrap: wrap; }
.logo {
  font-family: 'Cinzel', Georgia, serif; font-weight: 900; font-size: 34px;
  color: #f5edd6; letter-spacing: 2px; text-shadow: 0 2px 0 #000, 0 0 18px rgba(232, 200, 90, .35);
}
.logo span { color: var(--gold2); }
.logo:hover { text-decoration: none; }
.top-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.server-status {
  color: #e9e2cd; font-size: 13px; background: rgba(255, 255, 255, .07);
  border: 1px solid rgba(232, 200, 90, .45); border-radius: 20px; padding: 5px 12px;
}
.server-status .dot {
  display: inline-block; width: 9px; height: 9px; border-radius: 50%;
  background: #58c158; margin-right: 6px; box-shadow: 0 0 7px #58c158;
}

/* ---------- estructura de 3 columnas ---------- */
.page {
  display: grid; grid-template-columns: 218px minmax(0, 1fr) 248px;
  gap: 16px; align-items: start; padding-top: 18px; padding-bottom: 30px;
}
.sidebar { display: flex; flex-direction: column; gap: 14px; }
.content { min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.content > h1, .content > h2 {
  font-family: 'Cinzel', Georgia, serif; color: #fff; margin: 2px 0 0;
  text-shadow: 0 2px 6px #000, 0 0 2px #000; letter-spacing: .04em;
}
.content > h1 { font-size: 27px; border-bottom: 2px solid var(--gold2); padding-bottom: 6px; }
.content > h2 { font-size: 21px; }

/* ---------- cajas pergamino ---------- */
.box, .card {
  background: linear-gradient(180deg, #f4e7ba, var(--parch) 30%, var(--parch2));
  border: 2px solid var(--brown-line);
  outline: 1px solid #e9d88f;
  border-radius: 6px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, .5), inset 0 0 0 1px rgba(255, 250, 225, .5);
  padding: 16px 18px;
  color: var(--ink);
}
.box-head, .card > h2:first-child, .card > h3:first-child {
  font-family: 'Cinzel', Georgia, serif; font-weight: 700; text-transform: uppercase;
  letter-spacing: .06em; font-size: 15px; color: #fff;
  background: linear-gradient(180deg, var(--blue1), var(--blue2));
  border-bottom: 2px solid var(--gold);
  border-radius: 4px 4px 0 0;
  margin: -16px -18px 13px; padding: 8px 13px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, .6);
}
.card p { color: var(--ink-soft); }
.box p { color: var(--ink-soft); }

/* menú lateral */
.menu { padding: 0 0 6px; overflow: hidden; }
.menu .box-head { margin: 0 0 4px; border-radius: 4px 4px 0 0; }
.menu a {
  display: block; padding: 6px 14px; color: var(--ink); font-weight: normal;
  border-bottom: 1px dotted #b3924e; font-size: 13.5px;
}
.menu a:last-child { border-bottom: none; }
.menu a::before { content: '› '; color: #97742a; font-weight: bold; }
.menu a:hover { background: rgba(255, 248, 214, .75); text-decoration: none; }
.tag {
  float: right; font-size: 9.5px; font-weight: bold; color: #fff; border-radius: 3px;
  padding: 1px 5px; margin-top: 2px; letter-spacing: .05em;
}
.tag.hot { background: #c33; }
.tag.new { background: #4c9a3f; }

/* ---------- botones ---------- */
.btn {
  display: inline-block; text-align: center;
  background: linear-gradient(180deg, var(--gold2), var(--gold));
  color: #241a02; font-weight: bold; padding: 9px 20px; border-radius: 5px;
  border: 1px solid #7a5f10; font-size: 14px; cursor: pointer; font-family: inherit;
  box-shadow: 0 2px 5px rgba(0, 0, 0, .35); text-shadow: 0 1px 0 rgba(255, 255, 255, .35);
}
.btn:hover { text-decoration: none; filter: brightness(1.07); }
.btn.secondary { background: linear-gradient(180deg, #fdf6da, #e3cd8d); color: var(--ink); border-color: var(--brown-line); }
.btn.blue { background: linear-gradient(180deg, #3d7ab3, #20507e); color: #fff; border-color: #12365a; text-shadow: 0 1px 2px rgba(0,0,0,.5); }
.btn.green { background: linear-gradient(180deg, var(--green1), var(--green2)); color: #fff; border-color: #1e4d17; text-shadow: 0 1px 2px rgba(0,0,0,.5); }
.btn.red { background: linear-gradient(180deg, var(--red1), var(--red2)); color: #fff; border-color: #571b19; text-shadow: 0 1px 2px rgba(0,0,0,.5); }
.btn.block { display: block; width: 100%; margin-bottom: 8px; }
.btn.small { padding: 6px 13px; font-size: 13px; }

/* ---------- portada ---------- */
.hero {
  background: linear-gradient(180deg, #f4e7ba, var(--parch) 30%, var(--parch2));
  border: 2px solid var(--brown-line); outline: 1px solid #e9d88f; border-radius: 6px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, .5);
  padding: 26px 26px 22px; text-align: center;
}
.hero h1 {
  font-family: 'Cinzel', Georgia, serif; margin: 0 0 8px; font-size: 34px;
  color: #6d4c0d; text-shadow: 0 1px 0 #fff3c4;
}
.hero p { margin: 0 auto 18px; max-width: 640px; color: var(--ink-soft); font-size: 15px; }
.hero .btn { margin: 0 4px; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; }

/* ---------- tablas ---------- */
table {
  width: 100%; border-collapse: collapse; color: var(--ink);
  background: linear-gradient(180deg, #f4e7ba, var(--parch2));
  border: 2px solid var(--brown-line); box-shadow: 0 4px 14px rgba(0, 0, 0, .45);
}
th, td { padding: 8px 12px; text-align: left; border-bottom: 1px solid #c2a356; }
th {
  background: linear-gradient(180deg, var(--blue1), var(--blue2)); color: #fff;
  font-family: 'Cinzel', Georgia, serif; text-transform: uppercase; font-size: 12.5px; letter-spacing: .05em;
}
tr:last-child td { border-bottom: none; }
tbody tr:hover td, table tr:hover td { background: rgba(255, 248, 214, .55); }

/* ---------- formularios ---------- */
form .field { margin-bottom: 13px; }
label { display: block; margin-bottom: 4px; color: var(--ink-soft); font-size: 13px; font-weight: bold; }
input[type="text"], input[type="email"], input[type="password"], input[type="number"], select, textarea {
  width: 100%; padding: 9px 11px; border-radius: 4px; border: 1px solid #a8894a;
  background: #fffdf2; color: #2c2410; font-size: 14.5px; font-family: inherit;
  box-shadow: inset 0 1px 3px rgba(90, 70, 20, .25);
}
.form-box { max-width: 500px; margin: 0 auto; width: 100%; }
.alert { padding: 11px 15px; border-radius: 5px; margin-bottom: 14px; font-size: 13.5px; }
.alert.error { background: #f6d5d2; border: 1px solid #b6504c; color: #6d1f1c; }
.alert.ok { background: #dcefd2; border: 1px solid #4c8a3f; color: #274d1e; }
.muted { color: var(--ink-soft); }
.center { text-align: center; }
.badge {
  display: inline-block; font-size: 11px; font-weight: bold; padding: 2px 8px; border-radius: 10px;
  background: #fdf6da; border: 1px solid var(--brown-line); color: #7a5a10; vertical-align: middle;
}

/* boosted / laterales */
.boosted-row { text-align: center; padding: 4px 0 8px; }
.boosted-row .kind { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: #97742a; font-weight: bold; }
.boosted-row .name { font-family: 'Cinzel', Georgia, serif; font-size: 16.5px; font-weight: 700; color: var(--ink); }

.site-footer {
  color: #cfc7ab; font-size: 12px; padding: 16px 0 26px; text-align: center;
  text-shadow: 0 1px 3px #000;
}

@media (max-width: 1020px) {
  .page { grid-template-columns: 200px minmax(0, 1fr); }
  .sidebar.right { grid-column: 1 / -1; flex-direction: row; flex-wrap: wrap; }
  .sidebar.right > * { flex: 1 1 240px; }
}
@media (max-width: 680px) {
  .page { grid-template-columns: minmax(0, 1fr); }
  .sidebar.left { order: 2; }
  .content { order: 1; }
  .sidebar.right { order: 3; }
  .logo { font-size: 27px; }
}
