:root {
  --brand: #800000;
  --brand-dark: #660000;
  --brand-light: #990000;
  --crimson: #A0121A;
  --gold: #D4AF37;
  --paper: #FBF9F5;
  --parchment: #F4F1EA;
  --ink: #1A1A1D;
  --slate: #5A5E6B;
  --line: #E5DEC9;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, sans-serif;
  background: var(--paper);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
.serif { font-family: "Playfair Display", "Cormorant Garamond", Georgia, serif; }
.serif-alt { font-family: "Cormorant Garamond", Georgia, serif; font-style: italic; }
::selection { background: var(--brand); color: var(--paper); }
img { max-width: 100%; }
a { color: inherit; text-decoration: none; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* NAV */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 50; transition: background .4s, box-shadow .4s; }
.nav.scrolled { background: rgba(255,255,255,.88); backdrop-filter: blur(12px); box-shadow: 0 1px 30px rgba(26,26,29,.07); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 80px; }
.nav img.logo { height: 44px; }
.nav-links { display: flex; gap: 40px; }
.nav-links a { font-size: 14px; font-weight: 500; color: rgba(26,26,29,.7); transition: color .3s; }
.nav-links a:hover, .nav-links a.active { color: var(--brand); }
.btn { display: inline-flex; align-items: center; gap: 8px; background: var(--brand); color: #fff; font-size: 14px; font-weight: 600; padding: 13px 28px; border-radius: 999px; border: none; cursor: pointer; transition: background .3s, transform .2s; }
.btn:hover { background: var(--brand-dark); }
.btn-outline { background: transparent; color: var(--ink); border: 1px solid rgba(26,26,29,.2); }
.btn-outline:hover { border-color: var(--brand); color: var(--brand); background: transparent; }
.menu-toggle { display: none; background: none; border: none; font-size: 24px; cursor: pointer; color: var(--ink); }
@media (max-width: 860px) {
  .nav-links { display: none; }
  .menu-toggle { display: block; }
  .nav-links.open { display: flex; flex-direction: column; gap: 20px; position: absolute; top: 80px; left: 0; right: 0; background: rgba(255,255,255,.96); padding: 28px 24px; box-shadow: 0 20px 40px rgba(0,0,0,.08); }
  .nav .btn-desktop { display: none; }
}

/* HERO */
.hero { position: relative; min-height: 100vh; display: flex; align-items: center; overflow: hidden; padding-top: 80px; }
.hero-bg { position: absolute; inset: 0; }
.hero-bg img { width: 100%; height: 110%; object-fit: cover; filter: saturate(.85) contrast(1.05); }
.hero-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(251,249,245,.95) 15%, rgba(251,249,245,.85) 50%, rgba(251,249,245,.4)); }
.hero-content { position: relative; z-index: 2; padding: 96px 0; }
.eyebrow { font-size: 11px; text-transform: uppercase; letter-spacing: .3em; font-weight: 600; color: var(--brand); margin-bottom: 32px; animation: fadeUp 1s .2s both; }
.hero h1 { font-size: clamp(38px, 6vw, 68px); font-weight: 700; letter-spacing: -.02em; line-height: 1.06; max-width: 760px; }
.mask { display: block; overflow: hidden; }
.mask span { display: block; transform: translateY(110%); animation: rise 1s cubic-bezier(.22,1,.36,1) forwards; }
.mask:nth-child(2) span { animation-delay: .15s; }
.mask:nth-child(3) span { animation-delay: .3s; }
@keyframes rise { to { transform: translateY(0); } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
.hero p.lead { margin-top: 32px; font-size: 18px; color: var(--slate); line-height: 1.7; max-width: 560px; animation: fadeUp 1s .6s both; }
.hero .cta-row { margin-top: 40px; display: flex; flex-wrap: wrap; gap: 16px; animation: fadeUp 1s .8s both; }
.hero .scroll-hint { position: absolute; bottom: 32px; left: 50%; transform: translateX(-50%); z-index: 2; text-align: center; color: rgba(26,26,29,.4); font-size: 10px; letter-spacing: .3em; text-transform: uppercase; animation: fadeUp 1s 1.4s both; }
.hero .scroll-hint::after { content: ""; display: block; width: 1px; height: 40px; background: rgba(26,26,29,.2); margin: 8px auto 0; }

/* MARQUEE */
.marquee { overflow: hidden; background: var(--parchment); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 20px 0; user-select: none; }
.marquee-track { display: flex; width: max-content; animation: marquee 55s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee span.item { font-family: "Playfair Display", Georgia, serif; font-style: italic; font-size: 19px; color: rgba(128,0,0,.8); padding: 0 24px; white-space: nowrap; }
.marquee span.dot { width: 6px; height: 6px; transform: rotate(45deg); background: rgba(212,175,55,.7); align-self: center; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* SECTIONS */
section.pad { padding: 96px 0; }
h2.title { font-size: clamp(26px, 3.4vw, 40px); font-weight: 600; letter-spacing: -.01em; max-width: 640px; }
.reveal { opacity: 0; transform: translateY(30px); transition: opacity .8s cubic-bezier(.22,1,.36,1), transform .8s cubic-bezier(.22,1,.36,1); }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* BENTO */
.bento { display: grid; grid-template-columns: repeat(12, 1fr); gap: 20px; margin-top: 56px; }
.bento .card { position: relative; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 40px; overflow: hidden; transition: box-shadow .5s, border-color .5s, transform .5s; display: flex; flex-direction: column; justify-content: flex-end; }
.bento .card:hover { box-shadow: 0 20px 60px rgba(128,0,0,.1); border-color: rgba(128,0,0,.3); }
.bento .hero-card { grid-column: span 8; grid-row: span 2; min-height: 440px; color: #fff; }
.bento .hero-card img.bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: saturate(.85) contrast(1.05); transition: transform .7s; }
.bento .hero-card:hover img.bg { transform: scale(1.05); }
.bento .hero-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(26,26,29,.9), rgba(26,26,29,.45) 55%, rgba(26,26,29,.1)); }
.bento .hero-card > *:not(img) { position: relative; z-index: 2; }
.bento .card:not(.hero-card) { grid-column: span 4; min-height: 220px; }
.bento h3 { font-size: 22px; font-weight: 600; margin-bottom: 12px; }
.bento .hero-card h3 { font-size: 30px; }
.bento p { font-size: 14px; line-height: 1.65; color: var(--slate); }
.bento .hero-card p { color: rgba(255,255,255,.8); max-width: 420px; }
.bento .more { margin-top: 20px; font-size: 11px; text-transform: uppercase; letter-spacing: .2em; font-weight: 600; color: var(--brand); }
.bento .hero-card .more { color: var(--gold); }
@media (max-width: 900px) { .bento .card, .bento .hero-card { grid-column: span 12; min-height: 260px; } }
.icon { width: 28px; height: 28px; stroke: var(--brand); stroke-width: 1.5; fill: none; margin-bottom: 24px; }

/* DARK */
.dark { background: var(--ink); color: var(--paper); }
.dark .eyebrow { color: var(--gold); }
.dark .sub { color: rgba(251,249,245,.6); }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 56px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 64px; }
@media (max-width: 1000px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } .grid-3 { grid-template-columns: 1fr; } }
@media (max-width: 600px) { .grid-4 { grid-template-columns: 1fr; } }
.course-card { display: block; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.1); border-radius: 16px; padding: 28px; transition: background .5s, border-color .5s, transform .5s; }
.course-card:hover { background: rgba(255,255,255,.08); border-color: rgba(212,175,55,.4); transform: translateY(-4px); }
.course-card .code { font-size: 11px; font-weight: 600; letter-spacing: .2em; color: var(--gold); }
.course-card h3 { font-size: 18px; font-weight: 600; margin: 12px 0; line-height: 1.4; }
.course-card p { font-size: 12px; color: rgba(251,249,245,.5); line-height: 1.6; }
.tags { margin-top: 20px; display: flex; gap: 10px; flex-wrap: wrap; }
.tags span { font-size: 11px; color: rgba(251,249,245,.6); padding: 4px 10px; border: 1px solid rgba(255,255,255,.15); border-radius: 999px; }

/* ABOUT */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }
.split .img-wrap { position: relative; border-radius: 16px; overflow: hidden; }
.split .img-wrap::after { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse at 30% 20%, transparent 40%, rgba(26,26,29,.35)); }
.split img { width: 100%; aspect-ratio: 4/5; object-fit: cover; filter: saturate(.85) contrast(1.05); }
.split p.body { margin-top: 24px; color: var(--slate); line-height: 1.75; }
.badge { position: absolute; bottom: -24px; right: -24px; background: var(--brand); color: #fff; border-radius: 16px; padding: 24px 32px; box-shadow: 0 20px 60px rgba(128,0,0,.3); z-index: 3; }
.badge .num { font-size: 32px; font-weight: 700; }
.badge .lbl { font-size: 11px; text-transform: uppercase; letter-spacing: .2em; color: rgba(255,255,255,.7); margin-top: 4px; }

/* CTA */
.cta { background: var(--parchment); border-top: 1px solid var(--line); text-align: center; }
.cta p { margin: 20px auto 0; color: var(--slate); max-width: 480px; line-height: 1.7; }
.cta .btn { margin-top: 36px; }

/* FOOTER */
footer { background: var(--ink); color: rgba(251,249,245,.8); }
footer .cols { display: grid; grid-template-columns: 5fr 3fr 4fr; gap: 48px; padding: 80px 0; }
@media (max-width: 900px) { footer .cols { grid-template-columns: 1fr; } }
footer img.logo { height: 48px; background: #fff; padding: 6px; border-radius: 4px; }
footer p.small { margin-top: 24px; font-size: 14px; line-height: 1.7; color: rgba(251,249,245,.6); max-width: 380px; }
footer h4 { font-size: 11px; text-transform: uppercase; letter-spacing: .2em; font-weight: 600; color: var(--gold); margin-bottom: 20px; }
footer ul { list-style: none; }
footer li { margin-bottom: 12px; font-size: 14px; }
footer a:hover { color: #fff; }
footer .base { border-top: 1px solid rgba(255,255,255,.1); padding: 24px 0; font-size: 12px; color: rgba(251,249,245,.4); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; }

/* FORMS */
input, textarea, select { width: 100%; background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 13px 16px; font-size: 14px; font-family: inherit; color: var(--ink); transition: box-shadow .3s, border-color .3s; }
input:focus, textarea:focus, select:focus { outline: none; border-color: rgba(128,0,0,.4); box-shadow: 0 0 0 3px rgba(128,0,0,.15); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }
textarea { resize: vertical; }
.success-box { background: var(--parchment); border: 1px solid var(--line); border-radius: 16px; padding: 48px; text-align: center; }
.success-box h3 { font-size: 24px; margin: 16px 0 12px; }
.success-box p { color: var(--slate); font-size: 14px; line-height: 1.7; max-width: 420px; margin: 0 auto; }

/* CATALOGUE */
.filters { position: sticky; top: 80px; z-index: 30; background: rgba(251,249,245,.92); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); padding: 16px 0; }
.filters .row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.filters .row + .row { margin-top: 12px; }
.filters input[type="search"] { flex: 1; min-width: 220px; border-radius: 999px; padding: 11px 20px; }
.chip { font-size: 12px; font-weight: 600; padding: 9px 18px; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: rgba(26,26,29,.7); cursor: pointer; transition: background .3s, color .3s, border-color .3s; }
.chip:hover { border-color: rgba(128,0,0,.4); color: var(--brand); }
.chip.active-dark { background: var(--ink); color: #fff; border-color: var(--ink); }
.chip.active-brand { background: var(--brand); color: #fff; border-color: var(--brand); }
.cat-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 32px; cursor: pointer; transition: box-shadow .5s, border-color .5s, transform .5s; }
.cat-card:hover { box-shadow: 0 20px 60px rgba(128,0,0,.08); border-color: rgba(128,0,0,.3); transform: translateY(-4px); }
.cat-card .top { display: flex; justify-content: space-between; align-items: center; }
.cat-card .code { font-size: 11px; font-weight: 600; letter-spacing: .2em; color: var(--brand); }
.cat-card .pill { font-size: 10px; text-transform: uppercase; letter-spacing: .15em; font-weight: 600; padding: 5px 10px; border-radius: 999px; background: var(--parchment); color: rgba(26,26,29,.6); }
.cat-card h3 { font-size: 20px; font-weight: 600; margin: 16px 0 12px; line-height: 1.35; }
.cat-card p { font-size: 14px; color: var(--slate); line-height: 1.65; flex: 1; }
.cat-card .foot { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; font-size: 12px; color: var(--slate); }
.cat-card .foot .det { font-weight: 600; color: var(--brand); }

/* MODAL */
.modal-overlay { position: fixed; inset: 0; z-index: 100; background: rgba(26,26,29,.55); backdrop-filter: blur(6px); display: none; align-items: flex-start; justify-content: center; padding: 40px 20px; overflow-y: auto; }
.modal-overlay.open { display: flex; }
.modal { background: var(--paper); border-radius: 20px; max-width: 860px; width: 100%; padding: 48px; position: relative; animation: fadeUp .5s both; }
@media (max-width: 640px) { .modal { padding: 28px; } }
.modal .close { position: absolute; top: 20px; right: 20px; background: none; border: none; font-size: 22px; cursor: pointer; color: var(--slate); }
.modal .cols { display: grid; grid-template-columns: 7fr 5fr; gap: 40px; margin-top: 32px; }
@media (max-width: 800px) { .modal .cols { grid-template-columns: 1fr; } }
.modal h2 { font-size: clamp(26px, 3.4vw, 36px); line-height: 1.15; margin-top: 12px; }
.modal h4.sec { font-size: 20px; font-weight: 600; margin-bottom: 16px; }
.modal ul.tick { list-style: none; }
.modal ul.tick li { display: flex; gap: 12px; font-size: 14px; color: var(--slate); line-height: 1.6; margin-bottom: 14px; }
.modal ul.tick li::before { content: "✓"; color: var(--brand); font-weight: 700; }
.modal .outline-item { display: flex; gap: 16px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 14px 20px; margin-bottom: 12px; font-size: 14px; }
.modal .outline-item b { font-family: "Playfair Display", serif; color: var(--brand); font-size: 18px; }
.session { background: var(--parchment); border: 1px solid var(--line); border-radius: 12px; padding: 16px 20px; margin-bottom: 12px; font-size: 14px; }
.session .d { font-weight: 600; }
.session .v { font-size: 12px; color: var(--slate); margin-top: 4px; }
.mb8 { margin-bottom: 32px; }
.page-hero { background: var(--ink); color: var(--paper); padding: 176px 0 96px; }
.page-hero h1 { font-size: clamp(36px, 5vw, 60px); font-weight: 700; letter-spacing: -.02em; line-height: 1.06; max-width: 760px; }
.page-hero p { margin-top: 24px; color: rgba(251,249,245,.6); max-width: 560px; line-height: 1.7; }

/* WhatsApp float + language switch */
.wa-float {
  position: fixed; bottom: 24px; inset-inline-end: 24px; z-index: 50;
  width: 56px; height: 56px; border-radius: 999px; background: #25D366; color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 30px rgba(37,211,102,.4); transition: transform .3s;
}
.wa-float:hover { transform: scale(1.1); color: #fff; }
.lang-switch {
  font-size: 12px; font-weight: 700; border: 1px solid var(--line); border-radius: 999px;
  padding: 8px 14px; color: rgba(26,26,29,.7); transition: color .3s, border-color .3s; background: #fff;
}
.lang-switch:hover { color: var(--brand); border-color: rgba(128,0,0,.4); }
