:root {
    --ink: #414141; --ink-soft: #8f8f8f; --line: #e3e3e3; --bg: #ffffff; --bg-soft: #f2f2f2;
    --sage: #72827f; --sage-dark: #424746; --sage-light: #d5e1df; --sage-mid: #a3b8b4;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: 'Lato', sans-serif; font-weight: 300; line-height: 1.65; }
a { color: var(--sage-dark); }
.preview-bar {
    position: sticky; top: 0; z-index: 10; background: #1f2937; color: #fff; font-family: 'Lato', sans-serif;
    font-weight: 400; font-size: .9rem; padding: .6rem 16px; display: flex; gap: .75rem; align-items: center; flex-wrap: wrap;
}
.preview-bar strong { color: #fde68a; }
.preview-bar .sp { flex: 1; }
.preview-bar a, .preview-bar button {
    color: #fff; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.25); border-radius: 6px;
    padding: .3rem .7rem; font: inherit; text-decoration: none; cursor: pointer;
}
.preview-bar a.on { background: #fff; color: #1f2937; }
.preview-bar button.pub { background: #72827f; border-color: #72827f; }
header.site { text-align: center; padding: 1.6rem 16px 1rem; border-bottom: 1px solid var(--line); }
header.site img { height: 64px; }
main { max-width: 960px; margin: 0 auto; padding: 0 16px 4rem; }
.hero { margin: 2rem 0 0; aspect-ratio: 16 / 7; background: var(--sage-light); overflow: hidden; }
.hero img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero.empty { display: flex; align-items: center; justify-content: center; color: var(--sage); font-family: 'Cormorant Garamond', serif; font-size: 1.4rem; }
h1 { font-family: 'Cormorant Garamond', serif; font-weight: 500; font-size: clamp(2rem, 5vw, 3.1rem); line-height: 1.1; margin: 2rem 0 .6rem; color: var(--sage-dark); }
.meta { display: flex; flex-wrap: wrap; gap: .4rem 1.6rem; color: var(--ink); font-size: 1rem; margin-bottom: 1.2rem; }
.meta span::before { content: ''; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--sage-mid); margin-right: .5rem; vertical-align: middle; }
.estado { display: inline-block; padding: .35rem .9rem; border: 1px solid var(--sage); color: var(--sage-dark); font-size: .85rem; letter-spacing: .04em; text-transform: uppercase; margin-bottom: 1.6rem; }
.estado.cerrado { border-color: #b0b0b0; color: var(--ink-soft); }
.cols { display: grid; grid-template-columns: 1.25fr 1fr; gap: 3rem; align-items: start; }
h2 { font-family: 'Cormorant Garamond', serif; font-weight: 500; font-size: 1.7rem; color: var(--sage-dark); margin: 0 0 .8rem; }
.desc { white-space: pre-line; font-size: 1.05rem; }
.box { background: var(--bg-soft); padding: 1.6rem; }
form.reg { display: grid; gap: .9rem; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: .9rem; }
label.f { display: grid; gap: .3rem; font-size: .82rem; letter-spacing: .03em; color: var(--ink); font-weight: 400; }
input, textarea, select {
    font: inherit; font-weight: 300; font-size: 1rem; color: var(--ink); background: #fff;
    border: 1px solid #cfcfcf; border-radius: 0; padding: .6rem .7rem; width: 100%;
}
input:disabled, textarea:disabled, button:disabled { cursor: not-allowed; }
.check { display: flex; gap: .55rem; align-items: flex-start; font-size: .9rem; }
.check input { width: auto; margin-top: .3rem; }
button.cta {
    background: var(--sage); color: #fff; border: 0; padding: .9rem 1.4rem; font: inherit; font-weight: 400;
    letter-spacing: .08em; text-transform: uppercase; font-size: .9rem; cursor: pointer;
}
button.cta:hover { background: var(--sage-dark); }
details.pol { font-size: .88rem; }
details.pol summary { cursor: pointer; color: var(--sage-dark); text-decoration: underline; }
details.pol div { white-space: pre-line; margin-top: .6rem; max-height: 320px; overflow: auto; background: #fff; padding: .9rem; border: 1px solid var(--line); }
.gracias { text-align: center; padding: 2.4rem 1.6rem; }
.gracias h2 { font-size: 2rem; }
.gracias p { white-space: pre-line; max-width: 34rem; margin: 0 auto; }
.aviso-lleno { font-size: .9rem; background: #fff; border-left: 3px solid var(--sage); padding: .6rem .8rem; }
footer.site { border-top: 1px solid var(--line); text-align: center; padding: 2rem 16px; font-size: .88rem; color: var(--ink-soft); }
footer.site a { color: var(--ink-soft); }
@media (max-width: 760px) {
    .cols { grid-template-columns: 1fr; gap: 2rem; }
    .hero { aspect-ratio: 4 / 3; margin-top: 1rem; }
    .row2 { grid-template-columns: 1fr; }
    header.site img { height: 52px; }
}

/* Formularios públicos: errores, campo trampa, selects */
.err { background: #fef2f2; border-left: 3px solid #b91c1c; color: #991b1b; padding: .6rem .8rem; font-size: .92rem; }
.trampa { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
select { appearance: auto; }
.lista-eventos { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1.6rem; margin-top: 1.6rem; }
.ev-card { text-decoration: none; color: inherit; display: block; background: var(--bg-soft); }
.ev-card img, .ev-card .ph { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; background: var(--sage-light); }
.ev-card .tx { padding: 1rem 1.1rem 1.2rem; }
.ev-card h3 { font-family: 'Cormorant Garamond', serif; font-weight: 500; font-size: 1.45rem; margin: 0 0 .3rem; color: var(--sage-dark); }
.ev-card .f { font-size: .9rem; }
.ev-card .tag { display: inline-block; margin-top: .5rem; font-size: .75rem; letter-spacing: .05em; text-transform: uppercase; color: var(--sage); }

/* ── Aviso emergente (pop-up) ─────────────────────────────────── */
.aviso-fondo {
    position: fixed; inset: 0; z-index: 100; background: rgba(40, 40, 40, .55);
    display: flex; align-items: center; justify-content: center; padding: 16px;
    animation: aviso-in .25s ease;
}
.aviso-fondo[hidden] { display: none; }
.aviso-caja {
    position: relative; background: #fff; width: min(520px, 100%); max-height: calc(100vh - 32px);
    overflow: auto; box-shadow: 0 20px 60px rgba(0, 0, 0, .25);
}
.aviso-img { width: 100%; max-height: 300px; object-fit: cover; display: block; }
.aviso-tx { padding: 26px 28px 30px; text-align: center; }
.aviso-tx h2 { font-family: 'Raleway', 'Helvetica Neue', Arial, sans-serif; font-weight: 400; font-size: 20px;
    letter-spacing: .06em; text-transform: uppercase; margin: 0 0 12px; color: #414141; }
.aviso-tx p { white-space: pre-line; margin: 0; font-size: 16px; line-height: 1.6; color: #414141; }
.aviso-btn {
    display: inline-block; margin-top: 20px; padding: 11px 24px; border-radius: 999px; background: #3f7652; color: #fff;
    text-decoration: none; font-family: 'Raleway', 'Helvetica Neue', Arial, sans-serif; font-size: 13px;
    letter-spacing: .2em; text-transform: uppercase;
}
.aviso-btn:hover { background: #325e41; }
.aviso-cerrar {
    position: absolute; top: 8px; right: 10px; width: 36px; height: 36px; border: 0; border-radius: 50%;
    background: rgba(255, 255, 255, .9); font-size: 26px; line-height: 1; cursor: pointer; color: #414141;
}
@keyframes aviso-in { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .aviso-fondo { animation: none; } }
