:root {
  --wine: #6b1838;
  --wine-deep: #3a0f22;
  --rose: #c45c78;
  --rose-soft: #e8b4c4;
  --cream: #fbf6f0;
  --gold: #c4a35a;
  --ink: #2c151c;
  --muted: #7a5a62;
  --ok: #1f7a4d;
  --err: #9b1c3a;
  --card: #fffdf9;
  --shadow: 0 18px 50px rgba(58, 15, 34, .16);
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: "DM Sans", system-ui, sans-serif;
  background:
    radial-gradient(1200px 500px at 50% -10%, rgba(196, 92, 120, .22), transparent 60%),
    linear-gradient(180deg, #3a0f22 0%, #6b1838 38%, #fbf6f0 38%);
  color: var(--ink);
  min-height: 100dvh;
}
.wrap {
  width: min(560px, calc(100% - 1.5rem));
  margin: 0 auto;
  padding: 1.25rem 0 2.5rem;
}
.hero {
  text-align: center;
  color: #fff;
  padding: .4rem 0 1.1rem;
}
.hero-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .85rem;
  margin-bottom: .85rem;
}
.hero-logos img {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,.7);
  background: #fff;
}
.kicker {
  font-size: .72rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  opacity: .85;
  margin: 0 0 .35rem;
}
.hero h1 {
  font-family: Fraunces, Georgia, serif;
  font-weight: 600;
  font-size: clamp(1.7rem, 6vw, 2.15rem);
  margin: 0 0 .2rem;
  line-height: 1.15;
}
.hero p.sub {
  margin: 0;
  opacity: .9;
  font-size: .95rem;
}
.card {
  background: var(--card);
  border-radius: 22px;
  padding: 1.35rem 1.2rem 1.5rem;
  box-shadow: var(--shadow);
  border: 1px solid rgba(196, 163, 90, .22);
}
.mascot {
  width: 168px;
  height: 168px;
  margin: -2.6rem auto 1rem;
  border-radius: 50%;
  overflow: hidden;
  border: 5px solid #fff;
  box-shadow: 0 10px 28px rgba(58,15,34,.25);
  background: #5ec8f0;
}
.mascot img { width: 100%; height: 100%; object-fit: cover; display: block; }
.lead {
  text-align: center;
  color: var(--muted);
  font-size: .98rem;
  line-height: 1.5;
  margin: 0 0 1.15rem;
}
label {
  display: block;
  font-size: .78rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 .4rem;
}
input[type=text], input[type=tel], input[type=email], input[type=password], select {
  width: 100%;
  border: 1.5px solid #ead7dc;
  background: #fff;
  border-radius: 12px;
  padding: .85rem .9rem;
  font-size: 1.05rem;
  color: var(--ink);
  outline: none;
}
input:focus, select:focus { border-color: var(--rose); box-shadow: 0 0 0 4px rgba(196,92,120,.15); }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  border: 0;
  border-radius: 14px;
  padding: 1rem 1rem;
  font-size: 1.02rem;
  font-weight: 700;
  letter-spacing: .04em;
  cursor: pointer;
  text-decoration: none;
}
.btn-main {
  background: linear-gradient(180deg, #8b2252, #6b1838);
  color: #fff;
  margin-top: 1rem;
  box-shadow: 0 10px 22px rgba(107,24,56,.28);
}
.btn-main:disabled { opacity: .55; cursor: wait; }
.btn-ghost {
  background: transparent;
  color: var(--muted);
  margin-top: .55rem;
  font-weight: 600;
}
.btn-danger {
  background: #fff;
  color: var(--err);
  border: 1.5px solid #f0c9d2;
  margin-top: .7rem;
}
.flash {
  border-radius: 12px;
  padding: .8rem .9rem;
  margin: 0 0 1rem;
  font-size: .95rem;
  line-height: 1.4;
}
.flash-err { background: #fdecef; color: var(--err); }
.flash-ok { background: #e8f6ee; color: var(--ok); }
.hidden { display: none !important; }
.dl { margin: 0 0 1.1rem; }
.dl div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: .55rem 0;
  border-bottom: 1px solid #f0e4e8;
  font-size: .95rem;
}
.dl dt { color: var(--muted); }
.dl dd { margin: 0; font-weight: 600; text-align: right; }
.meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .6rem;
  margin: 0 0 1rem;
}
.meta span {
  display: block;
  background: #f7eef1;
  border-radius: 12px;
  padding: .7rem;
  text-align: center;
  font-size: .82rem;
  color: var(--wine);
  font-weight: 600;
}
.success-mark {
  width: 76px; height: 76px; margin: .2rem auto 1rem;
  border-radius: 50%; background: #e8f6ee; color: var(--ok);
  display: grid; place-items: center; font-size: 2rem;
  animation: pop .45s ease;
}
@keyframes pop {
  0% { transform: scale(.4); opacity: 0; }
  70% { transform: scale(1.12); }
  100% { transform: scale(1); opacity: 1; }
}
h2.ola {
  font-family: Fraunces, Georgia, serif;
  font-size: 1.7rem;
  margin: .2rem 0 .35rem;
  text-align: center;
  color: var(--wine);
}
.center { text-align: center; }
.hint { font-size: .8rem; color: var(--muted); margin: .35rem 0 0; }
footer.site {
  text-align: center;
  color: var(--muted);
  font-size: .78rem;
  margin-top: 1.4rem;
}

/* Admin */
body.admin {
  background: #f6eef2;
}
.admin-top {
  background: var(--wine-deep);
  color: #fff;
  padding: 1rem 1.1rem;
}
.admin-top .inner { width: min(1100px, calc(100% - 1.5rem)); margin: 0 auto; display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.admin-top a { color: #f3d6de; text-decoration: none; font-size: .9rem; }
.admin-body { width: min(1100px, calc(100% - 1.5rem)); margin: 1rem auto 2rem; }
.cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: .7rem;
  margin-bottom: 1rem;
}
@media (min-width: 800px) {
  .cards { grid-template-columns: repeat(5, 1fr); }
}
.stat {
  background: #fff;
  border-radius: 16px;
  padding: .9rem;
  border: 1px solid #eedde3;
}
.stat b { display: block; font-size: 1.45rem; color: var(--wine); }
.stat span { font-size: .78rem; color: var(--muted); }
.filters {
  background: #fff;
  border-radius: 16px;
  padding: .9rem;
  margin-bottom: 1rem;
  display: grid;
  gap: .55rem;
  grid-template-columns: 1fr;
}
@media (min-width: 800px) {
  .filters { grid-template-columns: 2fr 1fr 1fr 1fr auto; align-items: end; }
}
.table-wrap { overflow: auto; background: #fff; border-radius: 16px; }
table.lista { width: 100%; border-collapse: collapse; font-size: .88rem; }
table.lista th, table.lista td { padding: .65rem .7rem; text-align: left; border-bottom: 1px solid #f0e4e8; white-space: nowrap; }
table.lista td:first-child { white-space: normal; min-width: 10rem; }
table.lista th:last-child, table.lista td:last-child { min-width: 8.5rem; }
table.lista th { color: var(--muted); font-weight: 600; font-size: .75rem; letter-spacing: .04em; text-transform: uppercase; }
table.lista th a { color: inherit; text-decoration: none; }
table.lista th a:hover { color: var(--wine); }
table.lista th.sorted, table.lista th.sorted a { color: var(--wine); }
.badge { display: inline-block; border-radius: 999px; padding: .15rem .55rem; font-size: .75rem; font-weight: 700; }
.badge-ok { background: #e8f6ee; color: var(--ok); }
.badge-off { background: #f4f0f1; color: var(--muted); }
.badge-x { background: #fdecef; color: var(--err); }
.group { background: #fff; border-radius: 16px; padding: 1rem; margin-bottom: .7rem; }
.pct { font-family: Fraunces, serif; font-size: 1.8rem; color: var(--wine); margin: 0; }
.actions { display: flex; gap: .5rem; flex-wrap: wrap; margin: .8rem 0; }
.actions a, .actions button {
  background: var(--wine); color: #fff; border: 0; border-radius: 10px; padding: .65rem .9rem; text-decoration: none; font-size: .85rem; cursor: pointer;
}
.tabs { display: flex; gap: .4rem; margin: 0 0 1rem; flex-wrap: wrap; }
.tabs a { padding: .45rem .8rem; border-radius: 999px; background: #fff; color: var(--wine); text-decoration: none; font-size: .85rem; border: 1px solid #eedde3; }
.tabs a.on { background: var(--wine); color: #fff; }
.login-admin { max-width: 400px; margin: 4rem auto; }
