:root {
    --ines-green: #0B6E4F;
    --ines-green-dark: #073d2b;
    --ines-green-deep: #05291d;
    --ines-mint: #A1D99B;
    --ines-gold: #F6C200;
    --ines-gold-hover: #e0b000;
    --ink: #0f172a;
    --muted: #64748b;
    --line: #e2e8f0;
    --bg: #f4f7f5;
    --card: #ffffff;
    --radius: 18px;
    --shadow: 0 10px 30px rgba(7, 61, 43, 0.08);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
    background: var(--bg);
    color: var(--ink);
    margin: 0;
}

.navbar {
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(15, 23, 42, 0.06);
}

.navbar-brand strong { color: var(--ines-green-dark); letter-spacing: -0.02em; }

.brand-mark {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: var(--ines-green);
    color: var(--ines-gold);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.06em;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.btn-admin {
    border: 1.5px solid var(--ines-green);
    color: var(--ines-green);
    font-weight: 700;
    border-radius: 999px;
    padding: 0.4rem 0.95rem;
}

.btn-admin:hover {
    background: var(--ines-green);
    color: #fff;
    border-color: var(--ines-green);
}

.hero {
    position: relative;
    overflow: hidden;
    color: #fff;
    padding: 76px 0 88px;
    background:
        radial-gradient(ellipse at 12% -10%, rgba(246, 194, 0, 0.22), transparent 46%),
        radial-gradient(ellipse at 90% 120%, rgba(161, 217, 155, 0.18), transparent 50%),
        linear-gradient(155deg, #05291d 0%, #0B6E4F 58%, #0a523c 100%);
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
    background-size: 42px 42px;
    mask-image: radial-gradient(ellipse at center, #000 35%, transparent 80%);
    pointer-events: none;
}

.hero-inner { position: relative; z-index: 1; }

.hero-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.16);
    color: #fff;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 6px 12px;
    border-radius: 999px;
    margin-bottom: 16px;
}

.hero-kicker-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--ines-gold);
    box-shadow: 0 0 0 4px rgba(246, 194, 0, 0.22);
}

.hero h1 {
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.12;
    max-width: 18ch;
    margin-left: auto;
    margin-right: auto;
}

.hero .lead {
    color: rgba(255,255,255,0.82);
    max-width: 46rem;
    margin: 0 auto;
}

.hero-next {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 22px;
    padding: 10px 16px;
    border-radius: 999px;
    background: rgba(7, 61, 43, 0.35);
    border: 1px solid rgba(255,255,255,0.14);
    color: #fff;
    font-size: 0.9rem;
}

.kpi {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 20px 20px 18px;
    height: 100%;
    box-shadow: var(--shadow);
}

.kpi-label {
    color: var(--muted);
    font-size: 0.8rem;
    font-weight: 600;
    margin: 0 0 6px;
}

.kpi h3 {
    font-weight: 800;
    letter-spacing: -0.03em;
    margin: 0;
    color: var(--ines-green-dark);
}

.kpi p { margin: 0; }

.search-card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.srch-hint { font-size: .86rem; color: var(--muted); }

.btn-filter {
    background: var(--ines-green);
    border-color: var(--ines-green);
    color: #fff;
    font-weight: 700;
    border-radius: 12px;
    padding: 0.62rem 1rem;
}

.btn-filter:hover {
    background: var(--ines-green-dark);
    border-color: var(--ines-green-dark);
    color: #fff;
}

.section-title {
    font-weight: 800;
    letter-spacing: -0.03em;
}

.event-card {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--card);
    box-shadow: var(--shadow);
    transition: transform .2s ease, box-shadow .2s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.event-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 18px 40px rgba(7, 61, 43, 0.12);
}

.event-banner {
    height: 176px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.event-banner-fallback {
    background:
        radial-gradient(circle at 80% 20%, rgba(246,194,0,0.28), transparent 40%),
        linear-gradient(135deg, #0B6E4F, #073d2b);
}

.event-date {
    position: absolute;
    left: 14px;
    bottom: 14px;
    background: #fff;
    color: var(--ines-green-dark);
    min-width: 58px;
    padding: 8px 10px 7px;
    border-radius: 12px;
    text-align: center;
    font-weight: 800;
    box-shadow: 0 8px 18px rgba(0,0,0,0.12);
}

.event-date .day {
    display: block;
    font-size: 1.45rem;
    line-height: 1;
}

.event-date .month {
    display: block;
    font-size: 0.68rem;
    letter-spacing: 0.08em;
    color: var(--muted);
}

.btn-register {
    background: var(--ines-gold);
    border-color: var(--ines-gold);
    color: #1f2937;
    font-weight: 800;
    border-radius: 999px;
    padding: 0.4rem 0.95rem;
}

.btn-register:hover {
    background: var(--ines-gold-hover);
    border-color: var(--ines-gold-hover);
    color: #1f2937;
}

.btn-share {
    border-radius: 999px;
    font-weight: 600;
}

.badge-type-open         { background:#dcfce7; color:#15803d; }
.badge-type-approved     { background:#fef3c7; color:#b45309; }
.badge-type-hybrid       { background:#dbeafe; color:#1d4ed8; }
.badge-type-invite       { background:#f3e8ff; color:#7e22ce; }

.capacity-bar {
    height: 5px;
    border-radius: 99px;
    background: #e5e7eb;
    overflow: hidden;
    margin-top: 4px;
}
.capacity-bar-fill {
    height: 100%;
    border-radius: 99px;
    background: var(--ines-green);
    transition: width .4s;
}
.capacity-bar-fill.near-full { background: #f59e0b; }
.capacity-bar-fill.full      { background: #ef4444; }

.footer {
    background: var(--ines-green-deep);
    color: rgba(255,255,255,0.72);
    padding: 40px 0 28px;
    margin-top: 24px;
}

.footer a { color: var(--ines-mint); text-decoration: none; }
.footer a:hover { color: #fff; }

.empty-state {
    background: #fff;
    border: 1px dashed var(--line);
    border-radius: var(--radius);
    padding: 40px 24px;
    text-align: center;
    color: var(--muted);
}

@media (max-width: 767px) {
    .hero { padding: 56px 0 64px; }
    .hero h1 { max-width: none; }
}

.share-modal {
    position: fixed;
    inset: 0;
    z-index: 80;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}
.hidden { display: none !important; }
.share-modal.hidden { display: none !important; }
.share-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(7, 61, 43, 0.45);
}
.share-sheet {
    position: relative;
    width: min(520px, 100%);
    background: #fff;
    border-radius: 22px 22px 0 0;
    padding: 0 20px 22px;
    box-shadow: 0 -16px 40px rgba(0,0,0,0.18);
    max-height: 92vh;
    overflow: auto;
}
.share-close {
    position: absolute;
    top: 10px;
    right: 12px;
    z-index: 2;
    border: 0;
    background: rgba(255,255,255,0.9);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-size: 20px;
    line-height: 1;
    color: #334155;
}
.share-banner {
    height: 150px;
    margin: 0 -20px 16px;
    background: #0B6E4F center/cover no-repeat;
    border-radius: 22px 22px 0 0;
}
.share-heading {
    font-size: 1.1rem;
    font-weight: 800;
    margin: 0 0 4px;
}
.share-meta { color: var(--muted); font-size: 0.86rem; margin-bottom: 14px; }
.share-qr-wrap {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px;
    background: #f4f7f5;
    border-radius: 14px;
    margin-bottom: 14px;
}
.share-qr-label { font-size: 0.85rem; font-weight: 600; margin: 0 0 8px; }
#share-qr { background: #fff; padding: 6px; border-radius: 10px; }
.share-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}
.share-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    border: 0;
    border-radius: 12px;
    padding: 10px 12px;
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    color: #fff;
}
.share-wa { background: #16a34a; }
.share-fb { background: #1877f2; }
.share-x { background: #111827; }
.share-li { background: #0a66c2; }
.share-tg { background: #229ed9; }
.share-mail { background: #0B6E4F; }
.share-copy, .share-native {
    background: #fff;
    color: #0f172a;
    border: 1px solid #e2e8f0;
}
@media (min-width: 768px) {
    .share-modal { align-items: center; }
    .share-sheet { border-radius: 22px; }
    .share-banner { border-radius: 22px 22px 0 0; }
}
