:root {
    --background: #f5fdf9;
    --foreground: #2b3438;
    --card: #ffffff;
    --muted: #edf9f2;
    --muted-foreground: #66757a;
    --primary: #02cb65;
    --primary-dark: #018a4b;
    --primary-bright: #3de086;
    --primary-foreground: #ffffff;
    --secondary: #e6faf0;
    --secondary-foreground: #018a4b;
    --accent: #c89a28;
    --border: #c5edd6;
    --destructive: #ef4444;
    --whatsapp: #25a244;
    --shadow: 0 4px 20px -4px rgba(2, 203, 101, 0.14);
    --shadow-hover: 0 6px 18px -4px rgba(2, 203, 101, 0.2);
    --radius-sm: 6px;
    --radius: 8px;
    --radius-pill: 999px;
    --border-width: 1px;
    --container-max: 1120px;
    --container-pad: 1rem;

    /* Tipografía */
    --font-heading: 'Montserrat', system-ui, -apple-system, sans-serif;
    --font-body: 'Inter', system-ui, -apple-system, sans-serif;
    --text-h1: clamp(1.75rem, 4.5vw, 2.25rem);
    --text-h2: clamp(1.375rem, 3vw, 1.75rem);
    --text-h3: clamp(1.125rem, 2.2vw, 1.25rem);
    --text-body: 1rem;
    --text-small: 0.875rem;
    --leading-body: 1.6;
    --leading-heading: 1.3;
}

* { box-sizing: border-box; }

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    margin: 0;
    font-family: var(--font-body);
    font-size: var(--text-body);
    font-weight: 400;
    color: var(--foreground);
    background: var(--background);
    line-height: var(--leading-body);
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

h1, h2, h3 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: var(--leading-heading);
    margin: 0 0 0.75rem;
}

h1 { font-size: var(--text-h1); }
h2 { font-size: var(--text-h2); }
h3 { font-size: var(--text-h3); margin-bottom: 0.5rem; }

h4 {
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 1rem;
    line-height: 1.4;
    margin: 0 0 0.5rem;
}

p, li {
    font-family: var(--font-body);
    font-size: var(--text-body);
    line-height: var(--leading-body);
}

p { margin: 0 0 1rem; }
p:last-child { margin-bottom: 0; }
.container {
    width: min(var(--container-max), calc(100% - 2 * var(--container-pad)));
    margin: 0 auto;
}
.narrow { width: min(760px, calc(100% - 2rem)); margin-inline: auto; }
.text-center { text-align: center; }
.text-muted { color: var(--muted-foreground); }
.text-primary { color: var(--primary-dark); }
.text-accent { color: var(--accent); }
.mt-8 { margin-top: 2rem; }
.mb-8 { margin-bottom: 2rem; }

.main-content { padding-top: 5rem; }

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-height: 2.75rem;
    padding: 0.625rem 1.125rem;
    border-radius: var(--radius-sm);
    border: var(--border-width) solid transparent;
    font-family: var(--font-body);
    font-size: 0.9375rem;
    font-weight: 600;
    line-height: 1.25;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}
.btn-primary:hover,
.btn-primary:focus-visible,
.btn-light:hover,
.btn-outline:hover,
.btn-whatsapp:hover,
.btn-danger:hover {
    box-shadow: var(--shadow-hover);
}
.btn:active {
    transform: translateY(1px);
    box-shadow: none;
}
.btn:focus-visible {
    outline: 2px solid var(--primary-bright);
    outline-offset: 2px;
}
.btn-primary {
    background: var(--primary);
    color: var(--primary-foreground);
    border-color: var(--primary-dark);
}
.btn-primary:hover,
.btn-primary:focus-visible {
    background: var(--primary-dark);
    color: var(--primary-foreground);
    border-color: var(--primary-dark);
}
.btn-light {
    background: white;
    color: var(--primary-dark);
    border-color: var(--border);
}
.btn-light:hover {
    background: var(--secondary);
    color: var(--primary-dark);
    border-color: #b8d9c4;
}
.btn-outline-light {
    border: var(--border-width) solid rgba(255, 255, 255, 0.85);
    color: white;
    background: transparent;
}
.btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: white;
    color: white;
}
.btn-outline {
    border: var(--border-width) solid var(--border);
    background: white;
    color: var(--primary-dark);
}
.btn-outline:hover {
    background: var(--secondary);
    color: var(--primary-dark);
    border-color: #b8d9c4;
}
.btn-ghost {
    background: transparent;
    border-color: transparent;
    color: var(--primary-dark);
}
.btn-ghost:hover {
    background: var(--muted);
    color: var(--primary-dark);
}
.btn-danger {
    background: #fee2e2;
    color: #b91c1c;
    border-color: #fecaca;
}
.btn-danger:hover {
    background: #fecaca;
    color: #991b1b;
    border-color: #fca5a5;
}
.btn-whatsapp {
    background: var(--whatsapp);
    color: white;
    border-color: #1e8f3f;
}
.btn-whatsapp:hover {
    background: #1e8f3f;
    color: white;
    border-color: #187a35;
}
.card .btn-whatsapp,
.btn-whatsapp.btn-block {
    width: 100%;
    white-space: normal;
}
.btn-block { width: 100%; white-space: normal; }
.btn-sm {
    min-height: 2.25rem;
    padding: 0.4rem 0.85rem;
    font-size: 0.8125rem;
}

.badge {
    display: inline-block;
    padding: 0.2rem 0.6rem;
    border-radius: var(--radius-pill);
    background: var(--secondary);
    color: var(--secondary-foreground);
    font-size: 0.75rem;
    font-weight: 700;
}
.badge-verified { background: rgba(2, 203, 101, 0.14); color: var(--primary-dark); }
.badge-info, .badge-event, .badge-alert, .badge-maintenance { border: var(--border-width) solid var(--border); }

.card {
    background: var(--card);
    border: var(--border-width) solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}
.card-body { padding: 1.25rem; }

.grid-2, .grid-3, .grid-4 {
    display: grid;
    gap: 1.5rem;
}
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }

.navbar {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 50;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--border);
}
.navbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 5rem;
    gap: 1rem;
}
.brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 0;
    flex: 1 1 auto;
}
.brand-mark {
    width: 2.75rem;
    height: 2.75rem;
    border-radius: var(--radius-pill);
    object-fit: cover;
    border: var(--border-width) solid rgba(0, 200, 104, 0.2);
    flex-shrink: 0;
}
.brand-mark--login {
    width: 4rem;
    height: 4rem;
    margin: 0 auto;
}
.brand-text {
    display: block;
    min-width: 0;
    line-height: 1.25;
}
.brand-title {
    display: block;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: clamp(0.9rem, 3.2vw, 1.05rem);
    line-height: 1.2;
}
.brand-subtitle {
    display: block;
    margin-top: 0.1rem;
    font-size: clamp(0.62rem, 2.4vw, 0.7rem);
    color: var(--muted-foreground);
    letter-spacing: -0.01em;
}
.brand-subtitle-lock {
    white-space: nowrap;
}
.name-lock {
    white-space: nowrap;
}
.nav-links { display: none; gap: 0.25rem; }
.nav-link {
    padding: 0.6rem 1rem;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-weight: 600;
    transition: background-color 0.15s ease;
}
.nav-link:hover { background: var(--muted); }
.nav-link.active { background: var(--primary); color: white; }
.menu-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.3rem;
    flex-shrink: 0;
    min-width: 2.75rem;
    min-height: 2.75rem;
    padding: 0.5rem;
    background: none;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: background-color 0.15s ease;
}
.menu-toggle:hover {
    background: var(--muted);
}
.menu-toggle span {
    width: 1.5rem;
    height: 2px;
    background: var(--foreground);
}
.nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border-bottom: 1px solid var(--border);
    padding: 1rem;
}

.page-hero {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-bright));
    color: white;
    padding: 4rem 0;
}
.page-hero h1, .hero-title { font-size: var(--text-h1); margin: 0 0 1rem; }
.page-hero p, .hero-lead {
    color: rgba(255,255,255,0.9);
    max-width: 42rem;
    margin: 0 auto;
    font-size: var(--text-body);
    line-height: var(--leading-body);
}

.hero-home {
    --hero-bridge: #8b9196;
    --hero-bridge-dark: #6f757a;
    --hero-bridge-light: #a3a8ad;
    position: relative;
    min-height: min(85vh, 52rem);
    padding: 0;
    color: white;
    overflow: hidden;
}
.hero-home-inner {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    min-height: inherit;
}
.hero-home-copy {
    position: relative;
    display: flex;
    align-items: center;
    padding-top: clamp(2.5rem, 5vw, 4.5rem);
    padding-bottom: clamp(2.5rem, 5vw, 4.5rem);
    padding-left: max(var(--container-pad), calc((100vw - var(--container-max)) / 2));
    padding-right: clamp(1.25rem, 4vw, 3rem);
    background: linear-gradient(
        90deg,
        var(--primary-dark) 0%,
        #019a4e 28%,
        #4aab75 58%,
        var(--hero-bridge) 92%,
        var(--hero-bridge) 100%
    );
}
.hero-home-copy::after {
    content: "";
    position: absolute;
    inset: 0 0 0 auto;
    width: min(18%, 5rem);
    background: linear-gradient(90deg, transparent, var(--hero-bridge));
    pointer-events: none;
}
.hero-home-content {
    position: relative;
    z-index: 1;
    width: min(100%, 34rem);
}
.hero-home .hero-lead {
    margin: 0;
    max-width: none;
}
.hero-home-media {
    position: relative;
    min-height: min(85vh, 52rem);
}
.hero-home-media::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    z-index: 1;
    width: min(36%, 11rem);
    background: linear-gradient(90deg, var(--hero-bridge) 0%, rgba(139, 145, 150, 0.45) 45%, transparent 100%);
    pointer-events: none;
}
.hero-home-media img {
    display: block;
    width: 100%;
    height: 100%;
    min-height: min(85vh, 52rem);
    object-fit: cover;
    object-position: 58% center;
}
.hero-badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-pill);
    background: rgba(255,255,255,0.15);
    margin-bottom: 1.5rem;
    font-size: var(--text-small);
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.75rem; }
.hero-actions .btn { flex: 1 1 auto; min-width: min(100%, 10rem); }

.hero-image {
    position: relative;
    min-height: 24rem;
    background-size: cover;
    background-position: center;
    color: white;
}
.hero-image-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0,200,104,0.88), rgba(0,122,61,0.92));
}
.hero-image-content { position: relative; padding: 6rem 0; }

.section { padding: 4rem 0; }
.section-muted { background: rgba(238,245,239,0.7); }
.section-title { font-size: var(--text-h2); margin: 0.5rem 0 1rem; }
.section-lead {
    font-size: var(--text-body);
    line-height: var(--leading-body);
    color: var(--muted-foreground);
}
.eyebrow {
    color: var(--primary-dark);
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}
.eyebrow.light { color: rgba(255,255,255,0.85); }

.value-card, .value-icon, .hero-icon {
    text-align: center;
}
.value-icon, .hero-icon {
    display: flex;
    justify-content: center;
    margin-bottom: 1rem;
}

.icon-bubble {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border-radius: 50%;
    background: #fff;
    color: var(--primary);
    border: 3px solid var(--primary);
    box-shadow:
        0 0 0 2px var(--muted),
        0 0 0 3px #fff,
        var(--shadow);
}
.icon-bubble--soft {
    background: var(--secondary);
}
.icon-bubble--sm {
    width: 3rem;
    height: 3rem;
}
.icon-bubble--sm .bi { font-size: 1.2rem; }
.icon-bubble--md {
    width: 4.25rem;
    height: 4.25rem;
}
.icon-bubble--md .bi { font-size: 1.65rem; }
.icon-bubble--lg {
    width: 5.5rem;
    height: 5.5rem;
}
.icon-bubble--lg .bi { font-size: 2rem; }

.activity-icon { display: flex; justify-content: center; margin-bottom: 0.75rem; }
.security-lines {
    list-style: none;
    padding: 0;
    margin: 0.75rem 0 0;
    display: grid;
    gap: 0.35rem;
}
.security-lines a {
    font-weight: 700;
    color: var(--primary);
    text-decoration: none;
}
.security-lines a:hover { text-decoration: underline; }

.filter-bar {
    position: sticky;
    top: 5rem;
    z-index: 40;
    background: white;
    border-bottom: 1px solid var(--border);
    padding: 1rem 0;
}
.filter-inner {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.search-form input,
.admin-form input:not([type="checkbox"]):not([type="radio"]),
.admin-form textarea,
.form-stack input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: var(--border-width) solid var(--border);
    border-radius: var(--radius-sm);
    font: inherit;
    background: white;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.search-form input:focus,
.admin-form input:not([type="checkbox"]):not([type="radio"]):focus,
.admin-form textarea:focus,
.form-stack input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(2, 203, 101, 0.14);
}
.category-pills { display: flex; gap: 0.5rem; overflow-x: auto; }
.pill {
    padding: 0.45rem 0.9rem;
    border-radius: var(--radius-pill);
    border: var(--border-width) solid var(--border);
    white-space: nowrap;
    font-size: 0.85rem;
    font-weight: 700;
}
.pill.active { background: var(--primary); color: white; border-color: var(--primary); }

.activity-top, .space-top, .service-top, .announcement-header {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 1rem;
}
.activity-meta { list-style: none; padding: 0; margin: 1rem 0; font-size: 0.9rem; }
.activity-meta li + li { margin-top: 0.35rem; }
.announcement-body .activity-meta {
    margin: 0.75rem 0 1rem;
    color: var(--muted-foreground);
}
.announcement-body .btn-whatsapp {
    margin-top: auto;
    align-self: flex-start;
}
.tag-list { display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 1rem 0; }
.tag {
    padding: 0.2rem 0.55rem;
    border-radius: var(--radius-pill);
    border: var(--border-width) solid var(--border);
    font-size: 0.75rem;
    background: var(--secondary);
}
.tag.tag-warning {
    background: #fef3c7;
    border-color: #fcd34d;
    color: #92400e;
}
.price-range { color: var(--primary-dark); font-weight: 800; }
.cta-box, .notice-box, .info-box {
    margin-top: 2rem;
    padding: 2rem;
    border-radius: var(--radius);
    background: white;
    box-shadow: var(--shadow);
    text-align: center;
}
.info-box { text-align: left; background: rgba(232,248,239,0.5); border: var(--border-width) solid var(--border); }
.notice-box { background: rgba(0,200,104,0.05); border: var(--border-width) solid rgba(0,200,104,0.2); }

.emergency-banner, .info-strip {
    padding: 1rem 0;
    border-bottom: 1px solid var(--border);
    background: rgba(239,68,68,0.08);
}
.info-strip { background: rgba(232,248,239,0.8); }

.accordion-card {
    background: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    margin-bottom: 1.5rem;
}
.accordion-card-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem;
    background: var(--secondary);
    border-bottom: 1px solid var(--border);
}
.accordion-icon {
    display: flex;
    align-items: center;
    justify-content: center;
}
.accordion-list { padding: 0 1.25rem 1rem; }
.accordion-item {
    border-bottom: 1px solid var(--border);
    padding: 0.75rem 0;
}
.accordion-item summary {
    cursor: pointer;
    font-weight: 700;
}
.accordion-item p { color: var(--muted-foreground); margin: 0.75rem 0 0; }

.announcements-board {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}
.announcement-card {
    overflow: hidden;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: stretch;
}
/* Flyer 9:16 — marco fijo 288×512 px (fuente ideal 576×1024 / 2×). */
.announcement-media {
    --flyer-w: 288px;
    --flyer-h: 512px;
    box-sizing: border-box;
    width: var(--flyer-w);
    height: var(--flyer-h);
    background: var(--muted);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
}
.announcement-media--icon {
    width: 7.5rem;
    height: auto;
    min-height: 7.5rem;
    align-self: stretch;
    background: var(--secondary);
}
.announcement-media--video {
    background: #111;
}
.announcement-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
}
.announcement-player {
    position: relative;
    width: 100%;
    height: 100%;
    background: #111;
}
.announcement-video {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #111;
}
.announcement-player__toggle {
    position: absolute;
    inset: auto 0.65rem 0.65rem auto;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: auto;
    height: auto;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
    color: #fff;
}
.announcement-player__toggle:focus-visible {
    outline: 2px solid var(--accent, #c4a35a);
    outline-offset: -4px;
}
.announcement-player__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3.25rem;
    height: 3.25rem;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.45);
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.2);
    transition: opacity 0.2s ease, transform 0.2s ease, background 0.2s ease;
}
.announcement-player__icon svg {
    width: 1.35rem;
    height: 1.35rem;
    fill: currentColor;
}
.announcement-player__icon--pause {
    display: none;
}
.announcement-player.is-playing .announcement-player__icon--play {
    display: none;
}
.announcement-player.is-playing .announcement-player__icon--pause {
    display: flex;
    opacity: 1;
}
.preview-video {
    display: block;
    width: min(100%, 9rem);
    aspect-ratio: 9 / 16;
    height: auto;
    margin-top: 0.5rem;
    border-radius: 0.5rem;
    object-fit: contain;
    background: #111;
}
.announcement-body {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    width: 100%;
    padding-right: 5.5rem;
}
.announcement-body > .badge {
    position: absolute;
    top: 0.85rem;
    right: 0.85rem;
    z-index: 1;
    margin: 0;
}
.announcement-body p {
    margin: 0;
    white-space: pre-line;
}
.stars .star { color: #d1d5db; }
.stars .star.filled { color: var(--accent); }
.service-icon {
    display: flex;
    align-items: center;
    justify-content: center;
}
.inline-icon {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    vertical-align: middle;
}
.inline-icon .bi { font-size: 1rem; color: var(--primary); }
.member-card h3 { margin-bottom: 0.25rem; }
.board-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
}
.board-grid .member-card {
    flex: 0 1 260px;
    width: 100%;
    max-width: 320px;
}

.footer {
    background: var(--foreground);
    color: white;
    padding: 3rem 0 0;
    margin-top: 2rem;
}
.footer-grid {
    display: grid;
    gap: 2rem;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}
.footer-brand {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    margin-bottom: 1rem;
}
.footer-title {
    display: block;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.2rem;
}
.footer-subtitle {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.8rem;
}
.committee-logo {
    display: block;
    width: auto;
    max-width: 100%;
    height: auto;
    object-fit: contain;
}
.footer-text, .footer-links, .footer-contact { color: rgba(255,255,255,0.75); font-size: 0.9rem; }
.footer-links, .footer-contact { list-style: none; padding: 0; }
.footer-links li + li, .footer-contact li + li { margin-top: 0.5rem; }
.footer-contact-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.75rem !important;
}
.footer-contact-actions .btn-whatsapp { width: auto; }
.footer-heading { font-family: var(--font-heading); font-weight: 700; }
.footer-bottom {
    margin-top: 2rem;
    padding: 1.5rem 0;
    border-top: 1px solid rgba(255,255,255,0.15);
    text-align: center;
    color: rgba(255,255,255,0.55);
    font-size: 0.85rem;
}
.empty-state { text-align: center; color: var(--muted-foreground); padding: 2rem; }

.admin-body { background: #f3f7f4; }
.admin-shell { display: grid; grid-template-columns: 1fr; min-height: 100vh; }
.admin-sidebar {
    background: white;
    border-right: 1px solid var(--border);
    padding: 1rem;
}
.admin-brand {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border);
}
.admin-brand strong {
    display: block;
    font-family: var(--font-heading);
    font-weight: 700;
}
.admin-brand span {
    display: block;
    font-size: 0.75rem;
    color: var(--muted-foreground);
}
.admin-version {
    margin: 0 0 0.75rem;
    padding: 0.55rem 0.65rem;
    border-radius: var(--radius-sm);
    background: var(--muted);
    color: var(--muted-foreground);
    font-size: 0.75rem;
    line-height: 1.35;
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.35rem 0.5rem;
}
.admin-version-number {
    color: var(--foreground);
    font-weight: 800;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 0.85rem;
}
.admin-version-env {
    opacity: 0.85;
}
.admin-version-env::before {
    content: "· ";
}
.admin-version-inline {
    margin: 0.75rem 0 0;
    font-size: 0.95rem;
}
.admin-version-inline strong {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}
.admin-nav { display: flex; flex-direction: column; gap: 0.25rem; margin: 1rem 0; }
.admin-nav-link {
    padding: 0.7rem 0.9rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
    transition: background-color 0.15s ease;
}
.admin-nav-link:hover { background: var(--muted); }
.admin-nav-link.active { background: var(--primary); color: white; }
.admin-main { padding: 1.5rem; }
.admin-header h1 { margin: 0 0 0.35rem; }
.admin-header-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
}
.admin-filter-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}
.admin-filter-tab {
    display: inline-flex;
    align-items: center;
    padding: 0.45rem 0.85rem;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: white;
    color: var(--text);
    font-weight: 600;
    text-decoration: none;
}
.admin-filter-tab.is-active {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}
.admin-table tr.row-unread td {
    font-weight: 600;
    background: rgba(2, 203, 101, 0.06);
}
.contact-intro p:last-child { margin-bottom: 0; }
.contact-urgent {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin: 0 0 0.75rem;
    text-align: center;
}
.contact-whatsapp-link {
    display: inline-flex;
    align-items: center;
    color: var(--whatsapp);
    text-decoration: none;
    line-height: 1;
}
.contact-whatsapp-link:hover { opacity: 0.85; }
.contact-whatsapp-link .bi { font-size: 1.75rem; }
.admin-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 1rem;
}
.stat-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.25rem;
    box-shadow: var(--shadow);
}
.stat-card strong { display: block; font-size: 2rem; color: var(--primary-dark); }
.admin-form, .table-wrap, .settings-list { margin-top: 1rem; }
.admin-form { padding: 1.5rem; }
.form-field legend {
    font-weight: 700;
    margin-bottom: 0.5rem;
}
.form-field fieldset {
    border: 0;
    margin: 0 0 1rem;
    padding: 0;
}
.form-field select {
    width: 100%;
    padding: 0.75rem 1rem;
    border: var(--border-width) solid var(--border);
    border-radius: var(--radius-sm);
    font: inherit;
    background: white;
}
.form-field-inline {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.form-field-inline span { margin: 0; font-weight: 600; }
.role-badge {
    display: inline-block;
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
}
.role-super_admin { background: #fef3c7; color: #92400e; }
.role-admin { background: #dcfce7; color: #166534; }
.role-user { background: #e2e8f0; color: #334155; }
.notice-inline {
    padding: 0.75rem 1rem;
    border-radius: var(--radius-sm);
    background: rgba(0, 200, 104, 0.08);
    border: 1px solid rgba(0, 200, 104, 0.2);
    margin-bottom: 1rem;
}
.setup-hint { margin-top: -0.5rem; font-size: 0.9rem; }
.permission-box {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1rem 1.25rem;
    margin-bottom: 1rem;
    background: rgba(238,245,239,0.5);
}
.permission-box legend {
    font-weight: 800;
    padding: 0 0.25rem;
}
.checkbox-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 0.5rem;
    margin-top: 0.75rem;
}
.checkbox-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
}
.ficha-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}
.admin-preview-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 60;
    background: #fef3c7;
    color: #92400e;
    border-bottom: 1px solid #fcd34d;
    padding: 0.6rem 1rem;
    text-align: center;
    font-size: 0.9rem;
    font-weight: 600;
}
.staging-banner {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 70;
    background: #dbeafe;
    color: #1e40af;
    border-bottom: 1px solid #93c5fd;
    padding: 0.55rem 1rem;
    text-align: center;
    font-size: 0.88rem;
    font-weight: 600;
}
.staging-banner a {
    margin-left: 0.5rem;
    color: #1e40af;
    text-decoration: underline;
}
body:has(.staging-banner) .navbar { top: 2.35rem; }
body:has(.staging-banner) .main-content { padding-top: 7.25rem; }
body:has(.staging-banner) .filter-bar { top: 7.25rem; }
body:has(.staging-banner) .admin-preview-bar { top: 2.35rem; }
body:has(.staging-banner):has(.admin-preview-bar) .navbar { top: 5rem; }
body:has(.staging-banner):has(.admin-preview-bar) .main-content { padding-top: 9.75rem; }
body:has(.staging-banner) .admin-shell { padding-top: 2.35rem; }
.admin-preview-bar a {
    margin-left: 0.75rem;
    color: #92400e;
    text-decoration: underline;
}
body:has(.admin-preview-bar) .navbar { top: 2.5rem; }
body:has(.admin-preview-bar) .main-content { padding-top: 7.5rem; }
body:has(.admin-preview-bar) .filter-bar { top: 7.5rem; }
.form-actions { display: flex; gap: 0.75rem; flex-wrap: wrap; }
.table-wrap { overflow-x: auto; }
.admin-table { width: 100%; border-collapse: collapse; }
.admin-table th, .admin-table td {
    padding: 0.85rem 1rem;
    border-bottom: 1px solid var(--border);
    text-align: left;
    font-size: 0.9rem;
}
.table-actions { display: flex; gap: 0.5rem; align-items: center; }
.settings-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
    background: white;
    border: 1px solid var(--border);
}
.settings-list { border-radius: var(--radius); overflow: hidden; }
.settings-list .settings-row + .settings-row { border-top: none; }
.share-image-preview {
    margin: 1rem 0 1.25rem;
    max-width: 28rem;
}
.share-image-preview img {
    width: 100%;
    height: auto;
    aspect-ratio: 1.91 / 1;
    object-fit: cover;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    background: var(--muted);
}
.switch { position: relative; display: inline-block; width: 3rem; height: 1.7rem; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch span {
    position: absolute;
    inset: 0;
    background: #cbd5e1;
    border-radius: 999px;
    cursor: pointer;
    transition: 0.2s;
}
.switch span::before {
    content: "";
    position: absolute;
    width: 1.2rem;
    height: 1.2rem;
    left: 0.25rem;
    top: 0.25rem;
    background: white;
    border-radius: 999px;
    transition: 0.2s;
}
.switch input:checked + span { background: var(--primary); }
.switch input:checked + span::before { transform: translateX(1.25rem); }

.admin-login-body {
    min-height: 100vh;
    display: grid;
    place-items: center;
    background: #f3f7f4;
    padding: 1rem;
}
.login-card {
    width: min(420px, 100%);
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 2rem;
    text-align: center;
}
.login-logo {
    display: block;
    margin-bottom: 1rem;
}
.form-stack { display: grid; gap: 1rem; text-align: left; margin-top: 1.5rem; }
.alert {
    padding: 0.75rem 1rem;
    border-radius: var(--radius-sm);
    margin-bottom: 1rem;
}
.alert-success { background: #dcfce7; color: #166534; }
.alert-error { background: #fee2e2; color: #991b1b; }
.preview-image { width: 120px; margin-top: 0.5rem; border-radius: 0.5rem; }
.contact-message-cell {
    max-width: 22rem;
}
.contact-message-body {
    font-size: 0.9rem;
    line-height: 1.45;
}

.icon-field-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
}
.icon-field-row input {
    flex: 1 1 10rem;
    min-width: 8rem;
}
.icon-field-preview {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    border-radius: var(--radius-sm);
    border: var(--border-width) solid var(--border);
    background: var(--secondary);
    flex-shrink: 0;
}
.icon-field-preview .bi {
    font-size: 1.35rem;
    color: var(--primary-dark);
}
.icon-picker-dialog {
    border: var(--border-width) solid var(--border);
    border-radius: var(--radius);
    padding: 0;
    max-width: min(40rem, calc(100vw - 2rem));
    width: 100%;
    box-shadow: var(--shadow-hover);
}
.icon-picker-dialog::backdrop {
    background: rgba(43, 52, 56, 0.45);
}
.icon-picker-panel {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding: 1rem;
    max-height: min(32rem, 80vh);
}
.icon-picker-head {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}
.icon-picker-head input {
    flex: 1;
    padding: 0.65rem 0.85rem;
    border: var(--border-width) solid var(--border);
    border-radius: var(--radius-sm);
    font: inherit;
}
.icon-picker-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(7.5rem, 1fr));
    gap: 0.4rem;
    overflow: auto;
    min-height: 12rem;
    padding-right: 0.25rem;
}
.icon-picker-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
    padding: 0.65rem 0.4rem;
    border: var(--border-width) solid var(--border);
    border-radius: var(--radius-sm);
    background: white;
    cursor: pointer;
    font: inherit;
    color: inherit;
}
.icon-picker-item:hover,
.icon-picker-item:focus-visible {
    border-color: var(--primary);
    background: var(--secondary);
    outline: none;
}
.icon-picker-item .bi {
    font-size: 1.4rem;
    color: var(--primary-dark);
}
.icon-picker-item span {
    font-size: 0.7rem;
    line-height: 1.2;
    text-align: center;
    word-break: break-word;
    color: var(--muted-foreground);
}
.icon-picker-empty {
    grid-column: 1 / -1;
    text-align: center;
    color: var(--muted-foreground);
    padding: 1.5rem 0.5rem;
}
.text-link { display: inline-block; margin-top: 1rem; color: var(--primary-dark); font-weight: 700; }
.text-sm { font-size: var(--text-small); margin-top: 0.25rem; }
.doc-citation-help {
    margin-top: 1rem;
    padding: 1.25rem;
    background: var(--surface-muted, #f8fafc);
    border: 1px solid var(--border, #e2e8f0);
}
.doc-citation-help h3 { font-size: 1rem; margin-bottom: 0.5rem; }
.doc-citation-help code { font-size: 0.85rem; }
.doc-viewer-hero {
    padding: 2.5rem 0 1.5rem;
    background: linear-gradient(180deg, #f0fdf4 0%, #fff 100%);
}
.doc-viewer-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1rem; }
.doc-viewer-body { padding: 0 0 3rem; }
.doc-viewer-frame {
    width: 100%;
    min-height: 75vh;
    border: var(--border-width) solid var(--border, #e2e8f0);
    border-radius: var(--radius-sm);
    background: #fff;
}

.page-hero-legal {
    background: linear-gradient(180deg, #f0fdf4 0%, #fff 100%);
    padding-bottom: 2rem;
}
.legal-meta {
    font-size: 0.9rem;
    color: var(--text-muted, #64748b);
    margin-top: 0.75rem;
}
.legal-prose {
    padding-top: 0;
}
.legal-prose section {
    margin-bottom: 2.5rem;
}
.legal-prose h2 {
    font-size: var(--text-h3);
    margin-bottom: 0.75rem;
    color: var(--primary-dark, #018a4b);
}
.legal-prose p,
.legal-prose li {
    line-height: 1.75;
}
.legal-prose ul {
    padding-left: 1.25rem;
    margin: 0.75rem 0;
}
.legal-prose a:not(.btn) {
    color: var(--primary);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 2px;
}
.legal-prose a:not(.btn):hover {
    color: var(--primary-dark);
}
.legal-table-wrap {
    overflow-x: auto;
    margin: 1rem 0;
}
.legal-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
}
.legal-table th,
.legal-table td {
    border: 1px solid var(--border, #e2e8f0);
    padding: 0.75rem 1rem;
    text-align: left;
    vertical-align: top;
}
.legal-table th {
    background: #f8fafc;
    font-weight: 700;
}
.legal-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border, #e2e8f0);
}
.legal-actions .btn {
    width: 100%;
}
.footer-bottom {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    text-align: center;
}
.footer-legal {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
    font-size: 0.9rem;
}
.footer-legal a {
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 2px;
}
.consent-form-intro {
    padding: 1rem 1.25rem;
    background: #f0fdf4;
    border: var(--border-width) solid #bbf7d0;
    border-radius: var(--radius-sm);
    margin-bottom: 0.5rem;
}
.consent-form-intro a {
    color: var(--primary-dark, #018a4b);
    font-weight: 600;
}
.permission-hint {
    margin: 0 0 0.75rem;
    font-size: 0.9rem;
}
.consent-form input[type="checkbox"] {
    width: 1.125rem;
    height: 1.125rem;
    margin: 0.15rem 0 0;
    flex-shrink: 0;
    accent-color: var(--primary);
    cursor: pointer;
}
.consent-option {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.85rem 1rem;
    margin-bottom: 0.5rem;
    background: white;
    border: var(--border-width) solid var(--border);
    border-radius: var(--radius-sm);
    cursor: pointer;
}
.consent-option:last-child {
    margin-bottom: 0;
}
.consent-option-text {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    flex: 1;
    min-width: 0;
    font-weight: 400;
    line-height: 1.45;
}
.consent-option-text strong {
    font-weight: 700;
    color: var(--foreground);
}
.consent-option-text small {
    color: var(--muted-foreground);
    font-size: 0.875rem;
    line-height: 1.4;
}
.consent-accept {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    margin-bottom: 1rem;
    background: #f8fafc;
    border-radius: var(--radius-sm);
    border: var(--border-width) solid var(--border, #e2e8f0);
    cursor: pointer;
}
.consent-accept .consent-option-text {
    font-size: 0.95rem;
}
.consent-accept a {
    color: var(--primary);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 2px;
}
.consent-form .btn-block {
    margin-top: 0.25rem;
}
.form-honeypot {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
}
.consent-form {
    position: relative;
}
.login-legal {
    margin-top: 1.5rem;
    font-size: 0.85rem;
    text-align: center;
    line-height: 1.5;
}
.login-legal a {
    color: var(--primary-dark, #018a4b);
    font-weight: 600;
}

@media (max-width: 767px) {
    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
    }

    .card-body {
        padding: 1rem;
    }

    .container,
    .narrow {
        width: min(1120px, calc(100% - 1.25rem));
    }

    .main-content { padding-top: 4.5rem; }

    .navbar-inner { min-height: 4.25rem; }

    .brand-mark {
        width: 2.5rem;
        height: 2.5rem;
    }

    .brand-mark--login {
        width: 3.5rem;
        height: 3.5rem;
    }

    .page-hero {
        padding: 2.5rem 0;
    }

    .hero-home {
        min-height: auto;
    }

    .hero-home-inner {
        grid-template-columns: 1fr;
    }

    .hero-home-media {
        order: -1;
        min-height: 42vh;
    }

    .hero-home-media img {
        min-height: 42vh;
        object-position: center 35%;
    }

    .hero-home-media::before {
        width: 100%;
        height: min(28%, 5rem);
        inset: auto 0 0 0;
        background: linear-gradient(0deg, var(--hero-bridge) 0%, rgba(139, 145, 150, 0.4) 50%, transparent 100%);
    }

    .hero-home-copy {
        padding: 2rem 1.25rem 2.5rem;
        background: linear-gradient(
            180deg,
            var(--hero-bridge) 0%,
            #4aab75 18%,
            var(--primary-dark) 45%,
            var(--primary-dark) 100%
        );
    }

    .hero-home-copy::after {
        display: none;
    }

    .hero-image-content {
        padding: 3rem 0;
    }

    .section {
        padding: 2.5rem 0;
    }

    .section-title {
        font-size: var(--text-h2);
    }

    .cta-box,
    .notice-box,
    .info-box {
        padding: 1.25rem;
        margin-top: 1.5rem;
    }

    .hero-actions {
        flex-direction: column;
    }

    .hero-actions .btn {
        width: 100%;
        min-width: 0;
    }

    .footer-contact-actions {
        flex-direction: column;
    }

    .footer-contact-actions .btn {
        width: 100%;
        justify-content: center;
    }

    .footer-contact-actions .btn-whatsapp {
        width: 100%;
    }

    .admin-header-row {
        flex-direction: column;
        align-items: stretch;
    }

    .admin-header-row .btn {
        width: 100%;
    }

    .form-actions {
        flex-direction: column;
    }

    .form-actions .btn {
        width: 100%;
    }

    .table-actions {
        flex-wrap: wrap;
    }

    .announcement-card {
        grid-template-columns: 1fr;
    }
    .announcement-media {
        width: min(100%, var(--flyer-w));
        height: auto;
        aspect-ratio: 9 / 16;
        max-height: var(--flyer-h);
        justify-self: center;
    }
    .announcement-media--icon {
        width: 100%;
        max-width: none;
        min-height: 5.5rem;
        aspect-ratio: auto;
        max-height: none;
    }
    .activity-top,
    .space-top,
    .service-top,
    .announcement-header {
        flex-direction: column;
        gap: 0.5rem;
    }

    .filter-bar {
        top: 4.25rem;
    }

    body:has(.admin-preview-bar) .main-content {
        padding-top: 7rem;
    }

    body:has(.admin-preview-bar) .filter-bar {
        top: 7rem;
    }
}

@media (min-width: 768px) {
    .menu-toggle { display: none; }
    .nav-links { display: flex; }
    .filter-inner { flex-direction: row; align-items: center; justify-content: space-between; }
    .admin-shell { grid-template-columns: 16rem 1fr; }
    .ficha-row { grid-template-columns: 1fr 1fr; }
    .legal-actions {
        flex-direction: row;
        flex-wrap: wrap;
    }
    .legal-actions .btn {
        width: auto;
        min-width: 12rem;
    }
}
