:root {
    --red: #c8102e;
    --red-dark: #8e0b1f;
    --red-soft: #f8d7dc;
    --black: #0b0b0b;
    --ink: #161616;
    --charcoal: #222;
    --muted: #5c5c5c;
    --white: #ffffff;
    --off: #f6f4f2;
    --line: #e6e1dd;
    --gold: #c9a227;
    --shadow: 0 18px 50px rgba(0, 0, 0, .12);
    --radius: 18px;
    --max: 1180px;
    --font: "Outfit", system-ui, sans-serif;
    --display: "Playfair Display", Georgia, serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: var(--font);
    color: var(--ink);
    background: var(--white);
    line-height: 1.6;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
.container { width: min(var(--max), calc(100% - 32px)); margin-inline: auto; }

.topbar {
    background: var(--black);
    color: var(--white);
    font-size: .86rem;
}
.topbar-inner {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    padding: 8px 0;
}
.topbar a { color: var(--gold); }
.site-header {
    position: sticky;
    top: 0;
    z-index: 40;
    background: rgba(255,255,255,.96);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(10px);
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 12px 0;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand-logo { width: 58px; height: 48px; object-fit: contain; }
.brand-text strong { display: block; font-size: .92rem; letter-spacing: .08em; }
.brand-text span { display: block; font-size: .72rem; color: var(--muted); }

.nav { display: flex; align-items: center; gap: 6px; }
.nav > a, .drop > summary {
    list-style: none;
    cursor: pointer;
    padding: 8px 10px;
    font-size: .9rem;
    font-weight: 500;
    border-radius: 999px;
}
.nav > a:hover, .drop > summary:hover, .nav > a.active { color: var(--red); }
.drop { position: relative; }
.drop summary::-webkit-details-marker { display: none; }
.drop-menu {
    position: absolute;
    top: 120%;
    left: 0;
    min-width: 280px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 16px;
    box-shadow: var(--shadow);
    padding: 10px;
    display: grid;
    gap: 4px;
}
.drop-menu a { display: block; padding: 8px 10px; border-radius: 10px; font-size: .88rem; }
.drop-menu a:hover { background: var(--off); color: var(--red); }
.btn {
    display: inline-flex; align-items: center; justify-content: center;
    gap: 8px;
    border: 0;
    border-radius: 999px;
    padding: 12px 22px;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    transition: .2s transform, .2s background;
}
.btn:hover { transform: translateY(-1px); }
.btn-red { background: var(--red); color: var(--white); }
.btn-black { background: var(--black); color: var(--white); }
.btn-white { background: var(--white); color: var(--black); border: 1px solid var(--black); }
.btn-ghost { background: transparent; color: var(--white); border: 1px solid rgba(255,255,255,.4); }
.menu-toggle { display: none; background: none; border: 0; font-size: 1.4rem; }

.hero {
    background:
        linear-gradient(115deg, rgba(11,11,11,.88) 0%, rgba(200,16,46,.72) 55%, rgba(11,11,11,.9) 100%),
        radial-gradient(circle at 20% 20%, #c9a22733, transparent 40%);
    color: var(--white);
    min-height: 88vh;
    display: grid;
    align-items: center;
    position: relative;
    overflow: hidden;
}
.hero::after {
    content: "";
    position: absolute;
    inset: auto -10% -30% auto;
    width: 420px; height: 420px;
    border: 40px solid rgba(255,255,255,.08);
    border-radius: 50%;
}
.hero-kicker {
    letter-spacing: .28em;
    text-transform: uppercase;
    color: var(--gold);
    font-size: .78rem;
    font-weight: 700;
}
.hero h1 {
    font-family: var(--display);
    font-size: clamp(2.2rem, 5vw, 4.4rem);
    line-height: 1.05;
    margin: 10px 0 8px;
    max-width: 16ch;
}
.hero .lead { font-size: 1.25rem; max-width: 42ch; }
.hero-pills { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0; }
.pill {
    border: 1px solid rgba(255,255,255,.25);
    padding: 6px 12px;
    border-radius: 999px;
    font-size: .82rem;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; }

.section { padding: 80px 0; }
.section-alt { background: var(--off); }
.section-dark { background: var(--black); color: var(--white); }
.eyebrow {
    color: var(--red);
    font-weight: 700;
    letter-spacing: .18em;
    text-transform: uppercase;
    font-size: .75rem;
}
.section h2, .page-hero h1 {
    font-family: var(--display);
    font-size: clamp(1.8rem, 3vw, 2.8rem);
    line-height: 1.15;
    margin: 8px 0 16px;
}
.grid { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.card {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: 0 8px 24px rgba(0,0,0,.04);
}
.card h3 { margin: 8px 0; font-size: 1.15rem; }
.icon-dot {
    width: 44px; height: 44px;
    border-radius: 12px;
    background: var(--red);
    color: var(--white);
    display: grid; place-items: center;
    font-weight: 800;
}
.stat { text-align: center; padding: 24px; }
.stat b { display: block; font-size: 2rem; color: var(--red); font-family: var(--display); }
.page-hero {
    background: linear-gradient(135deg, var(--black), var(--red-dark));
    color: var(--white);
    padding: 70px 0 50px;
}
.page-hero p { max-width: 70ch; color: #f1f1f1; }
.notice {
    background: #fff7e6;
    border-left: 4px solid var(--gold);
    padding: 14px 16px;
    border-radius: 10px;
    margin: 18px 0;
    color: #3b2a00;
}
.list { margin: 0; padding-left: 18px; }
.list li { margin: 6px 0; }
.course-hero-meta { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; }
.course-hero-meta span { background: rgba(255,255,255,.12); padding: 6px 12px; border-radius: 999px; }
.toc { display: grid; gap: 8px; }
.toc a { padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; }
.toc a:hover { border-color: var(--red); color: var(--red); }
.form { display: grid; gap: 14px; }
label { font-weight: 600; font-size: .9rem; display: grid; gap: 6px; }
input, select, textarea {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 12px 14px;
    font: inherit;
    background: var(--white);
}
textarea { min-height: 120px; resize: vertical; }
.help { color: var(--muted); font-size: .82rem; font-weight: 400; }
.alert {
    padding: 14px 16px;
    border-radius: 12px;
    background: #e8f6ed;
    color: #14532d;
}
.errors { color: var(--red); font-size: .9rem; }
.gallery-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.chip {
    border: 1px solid var(--line);
    background: var(--white);
    border-radius: 999px;
    padding: 8px 14px;
    font: inherit;
    cursor: pointer;
}
.chip.active, .chip:hover { background: var(--black); color: var(--white); border-color: var(--black); }
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.gallery-card {
    border-radius: 16px;
    overflow: hidden;
    background: var(--black);
    color: var(--white);
    min-height: 220px;
    position: relative;
    display: grid;
    align-items: end;
}
.gallery-card .placeholder {
    position: absolute; inset: 0;
    background:
        linear-gradient(180deg, transparent, rgba(0,0,0,.75)),
        repeating-linear-gradient(45deg, #1c1c1c 0 12px, #2a2a2a 12px 24px);
}
.gallery-card img { width: 100%; height: 220px; object-fit: cover; }
.gallery-card figcaption { position: relative; padding: 16px; z-index: 1; }
.lightbox {
    display: none;
    position: fixed; inset: 0;
    background: rgba(0,0,0,.86);
    z-index: 80;
    place-items: center;
    padding: 24px;
}
.lightbox.open { display: grid; }
.lightbox img { max-height: 86vh; border-radius: 12px; }
.country-flag {
    font-size: 2.4rem;
    line-height: 1;
}
.site-footer {
    background: var(--black);
    color: #ddd;
    padding: 56px 0 20px;
}
.site-footer a:hover { color: var(--white); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 24px; }
.footer-bottom {
    border-top: 1px solid #333;
    margin-top: 32px;
    padding-top: 16px;
    font-size: .85rem;
    color: #999;
}
.whatsapp {
    position: fixed;
    right: 18px;
    bottom: 18px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #25d366;
    color: var(--white);
    padding: 12px 16px;
    border-radius: 999px;
    font-weight: 700;
    z-index: 30;
    box-shadow: var(--shadow);
}
.whatsapp img { width: 24px; height: 24px; }

.admin-shell { min-height: 100vh; display: grid; grid-template-columns: 250px 1fr; }
.admin-nav { background: var(--black); color: var(--white); padding: 24px 16px; }
.admin-nav a { display: block; padding: 10px 12px; border-radius: 10px; color: #ddd; }
.admin-nav a:hover, .admin-nav a.active { background: var(--red); color: var(--white); }
.admin-main { padding: 28px; background: var(--off); }
.table { width: 100%; border-collapse: collapse; background: var(--white); border-radius: 12px; overflow: hidden; }
.table th, .table td { padding: 12px; border-bottom: 1px solid var(--line); text-align: left; font-size: .92rem; }
.badge { display: inline-block; padding: 4px 8px; border-radius: 999px; background: var(--red-soft); color: var(--red-dark); font-size: .78rem; font-weight: 700; }
.pagination { display: flex; gap: 8px; list-style: none; padding: 0; }
.page-link { padding: 8px 12px; border: 1px solid var(--line); border-radius: 8px; display: block; background: var(--white); }
.page-item.active .page-link { background: var(--red); color: var(--white); border-color: var(--red); }

@media (max-width: 980px) {
    .grid-2, .grid-3, .grid-4, .gallery-grid, .footer-grid { grid-template-columns: 1fr; }
    .menu-toggle { display: block; }
    .nav {
        display: none;
        position: absolute;
        inset: 72px 16px auto;
        background: var(--white);
        border: 1px solid var(--line);
        border-radius: 16px;
        flex-direction: column;
        align-items: stretch;
        padding: 12px;
        box-shadow: var(--shadow);
    }
    .nav.open { display: flex; }
    .drop-menu { position: static; box-shadow: none; border: 0; padding: 0 0 0 10px; }
    .admin-shell { grid-template-columns: 1fr; }
}
