:root {
  --bg: #f5f5f2;
  --card: #ffffff;
  --text: #242424;
  --muted: #6d6d6d;
  --accent: #8e1f1f;
  --accent-dark: #681616;
  --border: #e2e2de;
}
* { box-sizing: border-box; }
body { margin: 0; font-family: Arial, Helvetica, sans-serif; background: var(--bg); color: var(--text); }
a { color: inherit; }
.agenda-wrap { width: min(1120px, calc(100% - 32px)); margin: 0 auto; }
.agenda-header { padding: 48px 0 24px; }
.agenda-header h1 { margin: 0 0 8px; font-size: clamp(30px, 5vw, 48px); }
.agenda-header p { color: var(--muted); margin: 0; }
.agenda-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; padding-bottom: 60px; }
.event-card { background: var(--card); border: 1px solid var(--border); border-radius: 18px; overflow: hidden; }
.event-card img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; background: #ddd; }
.event-card-body { padding: 22px; }
.event-date { display: inline-block; color: var(--accent); font-weight: 700; text-transform: uppercase; letter-spacing: .05em; font-size: 13px; margin-bottom: 8px; }
.event-card h2 { margin: 0 0 10px; font-size: 26px; }
.event-meta { color: var(--muted); font-size: 14px; margin-bottom: 14px; }
.event-card p { line-height: 1.6; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 9px; padding: 11px 15px; font-weight: 700; text-decoration: none; cursor: pointer; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dark); }
.btn-light { background: #efefec; color: #222; }
.share-row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
.btn-facebook { background: #1877f2; color: white; }
.btn-whatsapp { background: #25d366; color: #102a18; }
.event-detail { background: var(--card); border: 1px solid var(--border); border-radius: 18px; padding: clamp(20px, 4vw, 40px); margin-bottom: 60px; }
.event-detail h1 { margin-top: 6px; font-size: clamp(30px, 5vw, 52px); }
.event-lead { font-size: 19px; line-height: 1.6; }
.event-description { line-height: 1.75; }
.hero-image { width: 100%; max-height: 760px; object-fit: contain; background: #eee; border-radius: 14px; margin: 20px 0; }
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 18px; }
.gallery a { display: block; }
.gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 10px; }
.empty { background: var(--card); border: 1px solid var(--border); border-radius: 16px; padding: 32px; margin-bottom: 60px; }
.admin-top { display:flex; align-items:center; justify-content:space-between; gap:16px; padding:24px 0; }
.admin-table { width:100%; border-collapse:collapse; background:#fff; border:1px solid var(--border); }
.admin-table th,.admin-table td { padding:12px 14px; border-bottom:1px solid var(--border); text-align:left; vertical-align:top; }
.admin-table th { background:#efefec; }
.admin-actions { display:flex; gap:8px; flex-wrap:wrap; }
.form-card { background:#fff; border:1px solid var(--border); border-radius:16px; padding:24px; margin-bottom:50px; }
.form-grid { display:grid; grid-template-columns:1fr 1fr; gap:16px; }
label { display:block; font-weight:700; margin-bottom:6px; }
input[type=text],input[type=date],input[type=time],input[type=password],textarea { width:100%; border:1px solid #cfcfca; border-radius:8px; padding:11px 12px; font:inherit; background:#fff; }
textarea { min-height:130px; resize:vertical; }
.field { margin-bottom:16px; }
.full { grid-column:1 / -1; }
.notice { padding:12px 14px; border-radius:8px; background:#eef7ee; margin-bottom:16px; }
.error { padding:12px 14px; border-radius:8px; background:#ffeaea; color:#7b1111; margin-bottom:16px; }
.image-admin-grid { display:grid; grid-template-columns:repeat(4,1fr); gap:12px; }
.image-admin-item { border:1px solid var(--border); padding:10px; border-radius:10px; }
.image-admin-item img { width:100%; aspect-ratio:4/3; object-fit:cover; border-radius:7px; }
@media (max-width: 760px) {
  .agenda-grid { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .form-grid { grid-template-columns:1fr; }
  .image-admin-grid { grid-template-columns:repeat(2,1fr); }
  .admin-table thead { display:none; }
  .admin-table,.admin-table tbody,.admin-table tr,.admin-table td { display:block; width:100%; }
  .admin-table tr { border-bottom:8px solid var(--bg); }
  .admin-table td { border-bottom:1px solid var(--border); }
}
