:root {
    --bg: #f8fafc;
    --surface: #ffffff;
    --surface-soft: #f3f6fb;
    --text: #0f172a;
    --muted: #667085;
    --border: #e6ebf2;
    --accent: #facc15;
    --shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
    --radius-xl: 24px;
    --radius-lg: 18px;
    --header-desktop-height: 150px;
    --header-mobile-height: 88px;
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

html {
    scroll-behavior: smooth;
}

body.site-body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: var(--bg);
    color: var(--text);
}

.site-main,
main {
    width: min(1220px, calc(100% - 18px));
    margin: 0 auto;
    flex: 1;
    padding: 8px 0 20px;
    color: var(--text);
}

.site-main > :first-child,
main > :first-child {
    margin-top: 0 !important;
}

/* =========================
   Header
========================= */
.main-header {
    position: sticky;
    top: 0;
    z-index: 2000;
    padding: 12px 16px 0;
    background: linear-gradient(
        to bottom,
        rgba(248, 250, 252, 0.98),
        rgba(248, 250, 252, 0.90) 70%,
        rgba(248, 250, 252, 0)
    );
    backdrop-filter: blur(8px);
}

.nav-shell {
    position: relative;
    z-index: 2002;
    max-width: 1220px;
    margin: 0 auto;
    background: rgba(243, 244, 246, 0.92);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow);
    padding: 18px 24px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.desktop-header-block {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.brand {
    color: #172036;
    font-size: 36px;
    font-weight: 900;
    letter-spacing: 1px;
    text-decoration: none;
    line-height: 1;
    flex-shrink: 0;
}

.mobile-brand {
    display: none;
}

.desktop-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px 28px;
    flex-wrap: wrap;
}

.desktop-nav a,
.mobile-menu a {
    text-decoration: none;
    color: var(--text);
    font-weight: 700;
    transition: color 0.2s ease, background 0.2s ease;
}

.desktop-nav a {
    font-size: 18px;
    white-space: nowrap;
}

.desktop-nav a:hover,
.desktop-nav a.active-link,
.mobile-menu a.active-link {
    color: #d4a300 !important;
}

.menu-toggle {
    position: relative;
    z-index: 3000;
    display: none;
    width: 50px;
    height: 50px;
    border: 1px solid #d9e0ea;
    border-radius: 16px;
    background: #ffffff;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    flex-shrink: 0;
    pointer-events: auto;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

.menu-toggle span {
    width: 20px;
    height: 2px;
    background: #172036;
    border-radius: 999px;
    transition: 0.25s ease;
    pointer-events: none;
}

.menu-toggle.is-open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.menu-toggle.is-open span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.is-open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.mobile-menu {
    position: relative;
    z-index: 2001;
    display: none;
    max-width: 1220px;
    margin: 12px auto 0;
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid var(--border);
    border-radius: 22px;
    box-shadow: var(--shadow);
    padding: 14px;
    flex-direction: column;
    gap: 8px;
}

.mobile-menu.is-open {
    display: flex !important;
}

.mobile-menu a {
    display: block;
    padding: 12px 14px;
    background: var(--surface-soft);
    border-radius: 14px;
    font-size: 16px;
}

/* =========================
   Home Hero
========================= */
.hero-section {
    min-height: calc(100vh - 250px);
    display: flex;
    align-items: flex-start;
    justify-content: center;
    text-align: center;
    padding: 0 12px 12px;
}

.hero-section--home {
    min-height: calc(100vh - 300px);
    padding: 92px 12px 20px;
}


.hero-content {
    width: min(760px, 100%);
    margin: 0 auto;
}

.bit-logo {
    color: #000;
    font-size: clamp(72px, 10vw, 128px);
    font-weight: 800;
    line-height: 1;
    margin: 0 0 12px;
    letter-spacing: 4px;
    text-shadow:
        0 6px 15px rgba(0, 0, 0, 0.45),
        0 0 24px rgba(250, 204, 21, 0.30);
}

.hero-title {
    margin: 0 0 10px;
    color: #4b5563;
    font-size: clamp(24px, 3vw, 40px);
    font-weight: 700;
}

.hero-text {
    margin: 0 0 22px;
    color: var(--muted);
    font-size: clamp(15px, 1.5vw, 20px);
    line-height: 1.9;
}

.btn-start {
    display: inline-block;
    padding: 14px 34px;
    border-radius: 16px;
    background: var(--accent);
    color: #000;
    text-decoration: none;
    font-weight: 800;
    font-size: 18px;
    box-shadow: 0 16px 36px rgba(250, 204, 21, 0.26);
    transition: transform 0.2s ease, background 0.2s ease;
}

.btn-start:hover {
    background: #f0b90b;
    transform: translateY(-2px);
}

/* =========================
   Front polish
========================= */
.front-page-title {
    margin-bottom: 16px;
    padding: 18px 22px;
    border-radius: 22px;
    border: 1px solid var(--border);
    background: linear-gradient(180deg, #ffffff, #f8fafc);
    box-shadow: var(--shadow);
    text-align: center;
}

.front-page-title h1,
.front-page-title h2 {
    margin: 0;
    font-size: clamp(24px, 3vw, 34px);
    font-weight: 900;
    color: #172036;
}

.front-page-title p {
    margin: 10px auto 0;
    max-width: 900px;
    color: var(--muted);
    font-size: 16px;
    line-height: 1.9;
}

.front-page-title--amber {
    background: linear-gradient(180deg, #fffbeb, #fef3c7);
    border-color: #fde68a;
}

.front-page-title--amber h1,
.front-page-title--amber h2 {
    color: #b45309;
}

.front-page-title--blue {
    background: linear-gradient(180deg, #eff6ff, #dbeafe);
    border-color: #bfdbfe;
}

.front-page-title--blue h1,
.front-page-title--blue h2 {
    color: #1d4ed8;
}

.front-page-title--green {
    background: linear-gradient(180deg, #f0fdf4, #dcfce7);
    border-color: #bbf7d0;
}

.front-page-title--green h1,
.front-page-title--green h2 {
    color: #15803d;
}

.front-page-title--slate {
    background: linear-gradient(180deg, #f8fafc, #e2e8f0);
    border-color: #cbd5e1;
}

.front-page-title--slate h1,
.front-page-title--slate h2 {
    color: #334155;
}

.section-banner {
    margin-bottom: 16px;
    padding: 14px 18px;
    border-radius: 18px;
    font-weight: 900;
    font-size: 22px;
    text-align: center;
    border: 1px solid transparent;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
}

.section-banner--blue {
    background: linear-gradient(180deg, #eff6ff, #dbeafe);
    color: #1d4ed8;
    border-color: #bfdbfe;
}

.section-banner--amber {
    background: linear-gradient(180deg, #fffbeb, #fef3c7);
    color: #b45309;
    border-color: #fde68a;
}

.section-banner--green {
    background: linear-gradient(180deg, #f0fdf4, #dcfce7);
    color: #15803d;
    border-color: #bbf7d0;
}

.section-banner--slate {
    background: linear-gradient(180deg, #f8fafc, #e2e8f0);
    color: #334155;
    border-color: #cbd5e1;
}

.front-card {
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: 22px;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
    transition: 0.25s ease;
}

.front-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 32px rgba(15, 23, 42, 0.10);
}

.about-centered {
    text-align: center;
}

.about-centered p {
    max-width: 980px;
    margin-inline: auto;
    line-height: 2;
}

.info-card {
    text-align: center;
    background: #f8fafc;
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 16px;
}

.info-card-title {
    margin: 0 0 6px;
    font-size: 14px;
    color: #64748b;
}

.info-card-value {
    margin: 0;
    font-size: 24px;
    font-weight: 800;
    color: #0f172a;
}

.contact-actions {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-whatsapp {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 26px;
    border-radius: 16px;
    background: linear-gradient(180deg, #22c55e, #16a34a);
    color: #ffffff !important;
    font-weight: 900;
    text-decoration: none;
    box-shadow: 0 14px 28px rgba(34, 197, 94, 0.22);
}

.btn-whatsapp:hover {
    background: linear-gradient(180deg, #16a34a, #15803d);
    color: #ffffff !important;
}

.btn-form {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 26px;
    border-radius: 16px;
    background: linear-gradient(180deg, #2563eb, #1d4ed8);
    color: #ffffff !important;
    font-weight: 900;
    text-decoration: none;
    box-shadow: 0 14px 28px rgba(37, 99, 235, 0.22);
}

.btn-form:hover {
    background: linear-gradient(180deg, #1d4ed8, #1e40af);
    color: #ffffff !important;
}

/* =========================
   Helpers
========================= */
.fade-in {
    opacity: 0;
    transform: translateY(18px);
    animation: fadeUp 0.9s forwards;
}

.delay-1 {
    animation-delay: 0.2s;
}

.delay-2 {
    animation-delay: 0.4s;
}

@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.page-grid,
.cards-grid {
    display: grid;
    gap: 24px;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.card-hover {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 22px;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.05);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.card-hover:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 32px rgba(15, 23, 42, 0.1);
}

.input {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #d5dbe5;
    border-radius: 12px;
    background: #fff;
    color: #0f172a;
}

.input::placeholder {
    color: #94a3b8;
}

.btn-primary {
    display: inline-block;
    padding: 12px 22px;
    border-radius: 12px;
    background: #2563eb;
    color: #fff;
    text-decoration: none;
    border: 0;
    cursor: pointer;
}

.btn-success {
    display: inline-block;
    padding: 10px 18px;
    border-radius: 12px;
    background: #16a34a;
    color: #fff;
    text-decoration: none;
    border: 0;
    cursor: pointer;
}

/* =========================
   Readability
========================= */
.bg-white {
    background-color: #ffffff !important;
    color: #0f172a !important;
}

.site-main .bg-white,
.site-main [class*="bg-white"],
.site-main .card-hover {
    color: #0f172a !important;
}

.site-main .bg-white h1,
.site-main .bg-white h2,
.site-main .bg-white h3,
.site-main .bg-white h4,
.site-main .bg-white h5,
.site-main .bg-white h6,
.site-main [class*="bg-white"] h1,
.site-main [class*="bg-white"] h2,
.site-main [class*="bg-white"] h3,
.site-main [class*="bg-white"] h4,
.site-main [class*="bg-white"] h5,
.site-main [class*="bg-white"] h6 {
    color: #0f172a !important;
}

.site-main .bg-white p,
.site-main [class*="bg-white"] p,
.site-main .card-hover p {
    color: #475569 !important;
}

.site-main a.bg-white,
.site-main a[class*="bg-white"] {
    color: #0f172a !important;
}

.site-main .text-slate-900 {
    color: #0f172a !important;
}

.site-main .text-slate-700 {
    color: #334155 !important;
}

.site-main .text-slate-600 {
    color: #475569 !important;
}

.site-main .text-slate-500 {
    color: #64748b !important;
}

.site-main .text-gray-500 {
    color: #6b7280 !important;
}

.rounded-2xl {
    border-radius: 18px !important;
}

.rounded-3xl {
    border-radius: 24px !important;
}

.shadow,
.shadow-lg {
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.08) !important;
}

.border {
    border: 1px solid #e6ebf2 !important;
}

/* =========================
   Gradients
========================= */
.bg-gradient-to-r {
    background-image: linear-gradient(to right, var(--tw-gradient-stops)) !important;
}

[class*="from-green-"][class*="to-emerald-"] {
    --tw-gradient-stops: #16a34a, #047857;
    background-image: linear-gradient(to right, #16a34a, #047857) !important;
    color: #ffffff !important;
}

[class*="from-blue-"][class*="to-indigo-"],
[class*="from-indigo-"][class*="to-blue-"] {
    --tw-gradient-stops: #2563eb, #4338ca;
    background-image: linear-gradient(to right, #2563eb, #4338ca) !important;
    color: #ffffff !important;
}

[class*="from-slate-"][class*="to-slate-"],
[class*="from-gray-"][class*="to-gray-"],
[class*="from-blue-900"],
[class*="to-slate-900"] {
    --tw-gradient-stops: #1e293b, #020617;
    background-image: linear-gradient(to right, #1e293b, #020617) !important;
    color: #ffffff !important;
}

.site-main .text-white,
.site-main [class*="from-green"],
.site-main [class*="to-emerald"] {
    color: #ffffff;
}

.site-main [class*="from-green"] h1,
.site-main [class*="from-green"] h2,
.site-main [class*="from-green"] h3,
.site-main [class*="from-blue"] h1,
.site-main [class*="from-blue"] h2,
.site-main [class*="from-blue"] h3,
.site-main [class*="from-slate"] h1,
.site-main [class*="from-slate"] h2,
.site-main [class*="from-slate"] h3,
.site-main [class*="to-emerald"] h1,
.site-main [class*="to-emerald"] h2,
.site-main [class*="to-emerald"] h3 {
    color: #ffffff !important;
}

.site-main [class*="from-green"] p,
.site-main [class*="to-emerald"] p {
    color: #dcfce7 !important;
}

.site-main [class*="from-blue"] p,
.site-main [class*="from-slate"] p,
.site-main [class*="from-gray"] p {
    color: #e2e8f0 !important;
}

.site-main [class*="from-green"] a.bg-white,
.site-main [class*="to-emerald"] a.bg-white,
.site-main [class*="from-green"] a[class*="bg-white"],
.site-main [class*="to-emerald"] a[class*="bg-white"] {
    color: #15803d !important;
}

/* =========================
   Images / mobile fixes
========================= */
.site-main img {
    display: block !important;
    max-width: 100%;
    height: auto;
}

.site-main .front-card img,
.site-main .card-hover img,
.site-main img.object-cover {
    visibility: visible !important;
    opacity: 1 !important;
}

.site-main img.w-full.object-cover {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.site-main .w-24.h-24,
.site-main .w-20.h-20,
.site-main .w-16.h-16 {
    object-fit: cover;
    flex-shrink: 0;
}

/* =========================
   Course show page
========================= */
.course-hero {
    width: 100%;
    margin: 0 auto;
    padding: 42px 22px;
    border-radius: 28px;
    background:
        radial-gradient(circle at top right, rgba(250, 204, 21, 0.24), transparent 34%),
        linear-gradient(135deg, #111827 0%, #1e293b 52%, #2563eb 100%);
    box-shadow: 0 22px 55px rgba(15, 23, 42, 0.18);
    text-align: center;
    color: #ffffff !important;
    overflow: hidden;
}

.course-hero-content {
    max-width: 900px;
    margin: 0 auto;
}

.course-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 16px;
    padding: 8px 18px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    color: #fde68a !important;
    font-size: 16px;
    font-weight: 800;
}

.course-title {
    margin: 0;
    color: #ffffff !important;
    font-size: clamp(30px, 4vw, 52px);
    font-weight: 900;
    line-height: 1.35;
}

.course-excerpt {
    max-width: 760px;
    margin: 16px auto 0;
    color: #e2e8f0 !important;
    font-size: 18px;
    line-height: 1.9;
}

.course-register {
    border-radius: 28px;
    background: linear-gradient(135deg, #2563eb 0%, #4338ca 100%);
    padding: 26px 32px;
    color: #ffffff !important;
    box-shadow: 0 22px 55px rgba(37, 99, 235, 0.22);
}

.course-register-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.course-register h2 {
    margin: 0;
    color: #ffffff !important;
    font-size: 30px;
    font-weight: 900;
}

.course-register p {
    margin: 8px 0 0;
    color: #dbeafe !important;
    line-height: 1.8;
}

.course-register a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 170px;
    border-radius: 18px;
    background: #ffffff;
    color: #1d4ed8 !important;
    padding: 14px 28px;
    font-size: 18px;
    font-weight: 900;
    text-decoration: none;
    transition: 0.2s ease;
}

.course-register a:hover {
    background: #eff6ff;
    transform: translateY(-2px);
}

.course-register-disabled {
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.12);
    color: #dbeafe;
    padding: 14px 24px;
    font-weight: 800;
}

.course-main-image {
    width: 100% !important;
    height: 300px !important;
    object-fit: cover !important;
    display: block !important;
}

.course-main-image-fallback {
    min-height: 300px;
}

@media (min-width: 768px) {
    .course-main-image {
        height: 380px !important;
    }

    .course-main-image-fallback {
        min-height: 380px;
    }
}


/* =========================
   Footer
========================= */
.site-footer {
    margin-top: auto;
    padding: 0 16px 16px;
}

.footer-shell {
    max-width: 1220px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid var(--border);
    border-radius: 22px;
    box-shadow: var(--shadow);
    text-align: center;
    padding: 20px 16px;
}

.footer-brand {
    margin: 0 0 6px;
    font-size: 24px;
    font-weight: 800;
    color: #172036;
}

.footer-copy {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
}

/* =========================
   Mobile
========================= */
@media (max-width: 900px) {
    .desktop-header-block {
        display: none;
    }

    .mobile-brand {
        display: inline-block;
    }

    .menu-toggle {
        display: flex;
    }

    .nav-shell {
        padding: 14px 18px;
        justify-content: space-between;
    }

    .brand {
        font-size: 30px;
    }

    .desktop-nav {
        display: none;
    }
}

@media (max-width: 768px) {
    .main-header {
        padding: 12px 12px 0;
    }

    .site-main,
    main {
        width: calc(100% - 12px);
        padding: 4px 0 12px;
    }

    .nav-shell {
        border-radius: 22px;
        padding: 14px 16px;
    }

    .brand {
        font-size: 28px;
    }

    .menu-toggle {
        width: 46px;
        height: 46px;
        border-radius: 14px;
    }

   .hero-section {
    min-height: auto;
    padding: 0 6px 10px;
}

.hero-section--home {
    min-height: calc(100vh - 190px);
    padding: 42px 6px 14px;
}

    .bit-logo {
        font-size: 76px;
        letter-spacing: 3px;
    }

    .hero-title {
        font-size: 22px;
        line-height: 1.6;
    }

    .hero-text {
        font-size: 15px;
        margin-bottom: 18px;
    }

    .btn-start {
        font-size: 16px;
        padding: 12px 24px;
    }

    .front-page-title {
        padding: 16px 16px;
    }

    .front-page-title h1,
    .front-page-title h2 {
        font-size: 26px;
    }

    .section-banner {
        font-size: 20px;
        padding: 12px 14px;
    }

    .site-main img.w-full.object-cover,
    .site-main .front-card img.w-full,
    .site-main .card-hover img.w-full {
        width: 100% !important;
        height: 200px !important;
        object-fit: cover;
    }

    .site-main .w-24.h-24,
    .site-main .w-20.h-20,
    .site-main .w-16.h-16 {
        width: 96px !important;
        height: 96px !important;
        object-fit: cover;
        margin-inline: auto;
        display: block !important;
    }

    .course-hero {
        padding: 34px 18px;
        border-radius: 22px;
    }

    .course-register {
        padding: 24px 18px;
        border-radius: 22px;
    }

    .course-register-inner {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
    }

    .course-register a,
    .course-register-disabled {
        width: 100%;
    }

    .contact-actions {
        flex-direction: column;
    }

    .btn-whatsapp,
    .btn-form {
        width: 100%;
    }
}
