/* Agenda pública y páginas compartibles de eventos */
.public-events {
  padding: clamp(54px, 7vw, 92px) 0;
  background: #fffdf7;
  border-top: 1px solid rgba(17,17,17,.07);
  border-bottom: 1px solid rgba(17,17,17,.07);
}
.public-events .section-heading { max-width: 760px; margin: 0 auto 28px; }
.public-events .section-heading h2 { font-size: clamp(2rem, 4.7vw, 3.6rem); line-height: 1.06; letter-spacing: -.045em; margin: 8px 0 12px; }
.public-events .section-heading p:not(.eyebrow) { color: var(--muted); max-width: 650px; }
.public-event-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 22px; margin-top: 24px; }
.public-event-card { min-width: 0; background: white; border: 1px solid rgba(17,17,17,.12); border-radius: 18px; overflow: hidden; box-shadow: 0 8px 24px rgba(17,17,17,.045); display: flex; flex-direction: column; }
.public-event-image { width: 100%; aspect-ratio: 16/10; display: block; object-fit: cover; background: #ece8dc; }
.public-event-placeholder { display: grid; place-items: center; aspect-ratio: 16/10; background: linear-gradient(135deg,#ffe36b,#fff5c6); font-size: 3.5rem; }
.public-event-card-body { padding: 22px; display: flex; flex: 1; flex-direction: column; align-items: flex-start; }
.public-event-date { color: #756000; font-size: .83rem; font-weight: 850; text-transform: capitalize; }
.public-event-card h3 { margin: 9px 0 8px; font-size: 1.42rem; line-height: 1.2; }
.public-event-place { font-weight: 750; margin-bottom: 8px; }
.public-event-card-body > p:not(.public-event-place) { color: #615f59; line-height: 1.65; margin-bottom: 20px; }
.public-event-link { margin-top: auto; display: inline-flex; align-items: center; gap: 10px; padding: 11px 15px; border-radius: 10px; background: var(--yellow); color: var(--black); font-weight: 900; }
.public-event-link:hover { background: var(--black); color: white; }
.public-events-footer { display: flex; justify-content: center; margin-top: 28px; }
.public-events-all { display: inline-flex; align-items: center; justify-content: center; padding: 12px 18px; border: 2px solid var(--black); border-radius: 999px; font-weight: 850; }
.public-events-all:hover { background: var(--black); color: white; }
.public-events-loading,.public-events-message { grid-column: 1/-1; padding: 24px; background: #f6f4ee; border-radius: 14px; color: var(--muted); }
.public-events-message strong { display: block; color: var(--text); font-size: 1.15rem; margin-bottom: 5px; }
.events-page-header { display:flex; align-items:center; justify-content:space-between; gap:24px; padding:20px max(24px,calc((100% - 1120px)/2)); border-bottom:3px solid var(--yellow); background:#f6f4ee; }
.events-brand { display:flex; flex-direction:column; font-weight:950; font-size:1.2rem; line-height:1.2; }
.events-brand span { font-size:.82rem; color:var(--muted); font-weight:650; margin-top:4px; }
.events-page-header nav { display:flex; align-items:center; flex-wrap:wrap; gap:10px; }
.events-page-header nav a { padding:8px 13px; border:1px solid var(--border); border-radius:999px; background:white; font-weight:750; }
.events-page-header nav a:hover { background:var(--yellow); }
.events-page-main,.events-detail-main { width:min(calc(100% - 40px),1120px); margin:0 auto; padding:36px 0 80px; }
.events-back { display:inline-flex; margin-bottom:24px; font-weight:850; text-decoration:underline; text-underline-offset:4px; }
.events-hero { max-width:780px; padding:30px 0 24px; }
.events-hero h1 { margin:8px 0 14px; font-size:clamp(2.5rem,6vw,4.8rem); line-height:.98; letter-spacing:-.055em; }
.events-hero > p:last-child { max-width:650px; color:var(--muted); font-size:1.1rem; }
.events-section-heading { margin:20px 0 14px; }
.events-section-heading h2 { font-size:clamp(1.7rem,3.5vw,2.5rem); letter-spacing:-.035em; }
.events-archive { margin-top:70px; padding-top:35px; border-top:2px solid var(--yellow); }
.public-event-empty { grid-column:1/-1; padding:34px; border-radius:16px; background:#f6f4ee; }
.public-event-empty span { font-size:2rem; }
.public-event-empty h2 { margin:8px 0; }
.public-event-empty p { color:var(--muted); margin-bottom:12px; }
.public-event-empty a { font-weight:850; text-decoration:underline; }
.event-detail-card { background:white; border:1px solid var(--border); border-radius:22px; overflow:hidden; box-shadow:0 12px 36px rgba(0,0,0,.06); }
.event-detail-poster { width:100%; max-height:620px; object-fit:contain; background:#f0eee6; }
.event-detail-placeholder { display:grid; place-items:center; min-height:240px; background:linear-gradient(135deg,#ffe36b,#fff5c6); font-size:4rem; }
.event-detail-body { max-width:850px; margin:0 auto; padding:clamp(24px,5vw,54px); }
.event-detail-body h1 { font-size:clamp(2.2rem,6vw,4.2rem); letter-spacing:-.05em; line-height:1.02; margin:8px 0 20px; }
.event-detail-meta { display:flex; flex-wrap:wrap; gap:12px 22px; font-weight:800; margin-bottom:22px; }
.event-detail-description { line-height:1.8; font-size:1.08rem; }
.event-detail-actions { display:flex; flex-wrap:wrap; gap:10px; margin-top:28px; }
.event-action-primary,.event-action-secondary { display:inline-flex; align-items:center; justify-content:center; border:2px solid var(--black); padding:11px 15px; border-radius:10px; font:inherit; font-weight:850; cursor:pointer; text-decoration:none; }
.event-action-primary { background:var(--yellow); }
.event-action-secondary { background:white; color:var(--black); }
.event-action-primary:hover,.event-action-secondary:hover { background:var(--black); color:white; }
.events-footer { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:15px; padding:26px max(24px,calc((100% - 1120px)/2)); background:#111; color:white; }
.events-footer span { color:rgba(255,255,255,.7); }
.events-footer a { color:var(--yellow); font-weight:800; }
.event-publish-field { grid-column:1/-1; }
.event-publish-control { display:flex; align-items:center; gap:10px; color:var(--text)!important; font-size:14px; }
.event-publish-control input { width:18px!important; min-width:18px!important; height:18px; accent-color:var(--yellow); }
.event-publish-help,.event-poster-current,.event-publish-status { grid-column:1/-1; font-size:13px; color:var(--muted); }
.event-publish-status a { color:var(--text); font-weight:850; text-decoration:underline; }
.event-poster-field { grid-column:1/-1; }
@media(max-width:800px) { .public-event-grid { grid-template-columns:repeat(2,minmax(0,1fr)); } .events-page-header { align-items:flex-start; flex-direction:column; } }
@media(max-width:560px) { .public-event-grid { grid-template-columns:1fr; } .public-event-card-body { padding:18px; } .events-page-main,.events-detail-main { width:calc(100% - 32px); } .events-page-header { padding:16px; } .events-footer { align-items:flex-start; flex-direction:column; padding:24px 16px; } .event-detail-meta { flex-direction:column; gap:8px; } }
