/* =========================================
   CSS Variables & Reset
   ========================================= */
:root {
    --primary-color: #0B2545;
    --primary-light: #134074;
    --primary-dark: #081C33;
    --accent-color: #00BCD4;
    --accent-hover: #0097A7;
    --secondary-color: #25D366;
    --text-main: #0B2545;
    --text-muted: #5e6c84;
    --bg-main: #ffffff;
    --bg-light: #f4f5f7;
    --card-bg: #ffffff;
    --border-color: #dfe1e6;
    --shadow-sm: 0 4px 6px rgba(9, 30, 66, 0.05);
    --shadow-md: 0 10px 20px rgba(9, 30, 66, 0.08);
    --shadow-lg: 0 20px 30px rgba(9, 30, 66, 0.12);
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

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

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-main);
    background-color: var(--bg-main);
    line-height: 1.6;
    overflow-x: hidden;
}

a { text-decoration: none; color: inherit; transition: var(--transition); }
ul { list-style: none; }
img { max-width: 100%; height: auto; display: block; }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.section { padding: 80px 0; }
.bg-light { background-color: var(--bg-light); }
.text-center { text-align: center; }

.highlight {
    color: var(--accent-color);
    position: relative;
    display: inline-block;
}
.highlight::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 30%;
    bottom: 5px;
    left: 0;
    background-color: rgba(0, 188, 212, 0.15);
    z-index: -1;
}

/* =========================================
   Typography
   ========================================= */
h1 { font-size: clamp(2.5rem, 5vw, 4rem); line-height: 1.1; font-weight: 800; margin-bottom: 24px; letter-spacing: -0.03em; }
h2 { font-size: clamp(2rem, 4vw, 2.5rem); font-weight: 700; margin-bottom: 16px; letter-spacing: -0.02em; }
h3 { font-size: 1.25rem; font-weight: 600; margin-bottom: 12px; }
p { color: var(--text-muted); font-size: 1.125rem; margin-bottom: 24px; }

/* =========================================
   Buttons
   ========================================= */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    font-size: 1rem;
}
.btn-primary {
    background-color: var(--primary-color);
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(11, 37, 69, 0.3);
    font-weight: 700;
}
.btn-primary:hover {
    background-color: var(--primary-dark);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(8, 28, 51, 0.4);
}
.btn-secondary {
    background-color: var(--primary-dark);
    color: #ffffff;
    border: 1px solid var(--primary-dark);
}
.btn-secondary:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: #ffffff;
    transform: translateY(-2px);
}
.btn-link {
    color: var(--primary-color);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.btn-link:hover { color: var(--primary-dark); gap: 8px; }

/* =========================================
   Navbar
   ========================================= */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 0;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 1000;
    transition: var(--transition);
    border-bottom: 1px solid transparent;
}
.navbar.scrolled {
    padding: 12px 0;
    background: rgba(255, 255, 255, 0.95);
    border-bottom: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}
.nav-container { display: flex; justify-content: space-between; align-items: center; }

.logo { display: flex; align-items: center; }
.logo .logo-light { display: block; height: 38px; width: auto; }
.logo .logo-dark { display: none; height: 38px; width: auto; }
html.dark-theme .logo .logo-light { display: none; }
html.dark-theme .logo .logo-dark { display: block; }

.nav-links { display: flex; align-items: center; gap: 32px; }
.nav-links a { font-weight: 500; color: var(--text-main); }
.nav-links a:hover { color: var(--accent-color); }
.nav-links a.active { color: var(--accent-color) !important; font-weight: 700; }

.nav-badge {
    background: linear-gradient(135deg, var(--secondary-color) 0%, #ff7300 100%);
    color: white;
    font-size: 0.62rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 20px;
    margin-left: 6px;
    display: inline-block;
    vertical-align: middle;
    box-shadow: 0 2px 4px rgba(255, 115, 0, 0.2);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Cursos dropdown */
.nav-dropdown { position: relative; }
.nav-dropdown > button {
    background: none;
    border: none;
    font-weight: 500;
    color: var(--text-main);
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 0;
    font-family: inherit;
    transition: var(--transition);
}
.nav-dropdown > button:hover { color: var(--accent-color); }
.nav-dropdown > button i { font-size: 0.75rem; transition: transform 0.2s; }
.nav-dropdown:hover > button i { transform: rotate(180deg); }

.dropdown-menu {
    position: absolute;
    top: calc(100% + 16px);
    left: 50%;
    transform: translateX(-50%);
    background: var(--bg-main);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    padding: 8px;
    min-width: 220px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s, visibility 0.2s, transform 0.2s;
    transform: translateX(-50%) translateY(-4px);
}
.nav-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}
.dropdown-menu a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-main);
}
.dropdown-menu a:hover { background: var(--bg-light); color: var(--accent-color); }
.dropdown-menu a i { width: 16px; color: var(--accent-color); }

.btn-primary-outline {
    border: 2px solid var(--primary-color);
    padding: 8px 20px;
    border-radius: 50px;
    color: #ffffff !important;
    background-color: var(--primary-color);
}
.btn-primary-outline:hover {
    background-color: var(--primary-dark);
    color: #ffffff !important;
    box-shadow: 0 0 15px rgba(11, 37, 69, 0.4);
}

.hamburger { display: none; font-size: 1.5rem; cursor: pointer; color: var(--text-main); position: relative; z-index: 1001; }

/* =========================================
   Hero Section
   ========================================= */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
    background: radial-gradient(circle at top right, rgba(0, 188, 212, 0.12), transparent 45%),
                radial-gradient(circle at bottom left, rgba(11, 37, 69, 0.08), transparent 45%);
}
.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}
.hero-buttons { display: flex; gap: 16px; margin-top: 32px; }

/* Trust strip — NEW */
.trust-strip {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-top: 24px;
    flex-wrap: wrap;
}
.trust-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-muted);
}
.trust-item i { color: var(--accent-color); font-size: 0.9rem; }

.hero-carousel {
    position: relative;
    border-radius: 16px;
    box-shadow: var(--shadow-lg), 0 20px 40px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    aspect-ratio: 16 / 9;
    background-color: #0c1a30;
    animation: float 6s ease-in-out infinite;
    border: 1px solid rgba(0, 82, 204, 0.15);
    display: flex;
    flex-direction: column;
}
.hero-carousel::before {
    content: '';
    display: block;
    height: 32px;
    background-color: #f4f5f7;
    border-bottom: 1px solid #dfe1e6;
    width: 100%;
    position: relative;
    z-index: 10;
    flex-shrink: 0;
}
.hero-carousel::after {
    content: '';
    position: absolute;
    top: 11px;
    left: 16px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #ff5f56;
    box-shadow: 16px 0 0 #ffbd2e, 32px 0 0 #27c93f;
    z-index: 11;
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
    100% { transform: translateY(0px); }
}

.carousel-track-container { height: calc(100% - 32px); width: 100%; position: relative; overflow: hidden; }
.carousel-track { height: 100%; width: 100%; list-style: none; padding: 0; margin: 0; }
.carousel-slide {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    opacity: 0; transition: opacity 0.8s ease-in-out;
    display: flex; flex-direction: column; justify-content: center; align-items: center; z-index: 1;
}
.carousel-slide.active { opacity: 1; z-index: 2; }
.carousel-slide img { width: 100%; height: 100%; object-fit: cover; }
.carousel-slide picture { display: block; width: 100%; height: 100%; }
.carousel-caption {
    position: absolute; bottom: 0; left: 0; width: 100%;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.85));
    color: #ffffff; padding: 20px 24px 35px 24px;
    font-size: 1.15rem; font-weight: 600; letter-spacing: 0.02em; z-index: 3;
}
.carousel-btn {
    position: absolute; top: 50%; transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.2); border: none; color: white;
    font-size: 1rem; width: 40px; height: 40px; border-radius: 50%;
    cursor: pointer; z-index: 10; display: flex; align-items: center; justify-content: center;
    backdrop-filter: blur(5px); -webkit-backdrop-filter: blur(5px); transition: var(--transition);
}
.carousel-btn:hover { background: var(--accent-color); color: var(--primary-color); box-shadow: 0 4px 10px rgba(0, 188, 212, 0.4); }
.btn-prev { left: 16px; }
.btn-next { right: 16px; }
.carousel-nav {
    display: flex; justify-content: center; gap: 8px;
    position: absolute; bottom: 12px; left: 50%; transform: translateX(-50%); z-index: 10;
}
.carousel-indicator {
    border: 0; border-radius: 50%; width: 8px; height: 8px;
    background: rgba(255, 255, 255, 0.4); cursor: pointer; transition: var(--transition);
}
.carousel-indicator.active { background: var(--accent-color); width: 20px; border-radius: 10px; }

/* =========================================
   Project Filters
   ========================================= */
.project-filters {
    margin-bottom: 40px;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
}
.filter-btn {
    padding: 10px 22px;
    border: 1px solid var(--border-color);
    background-color: var(--bg-main);
    color: var(--text-muted);
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: 30px;
    cursor: pointer;
    transition: var(--transition);
}
.filter-btn:hover { border-color: var(--accent-color); color: var(--accent-color); background-color: rgba(0, 188, 212, 0.03); }
.filter-btn.active {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
    color: var(--primary-color);
    font-weight: 700;
    box-shadow: 0 4px 10px rgba(0, 188, 212, 0.3);
}
.card { transition: transform 0.4s ease, opacity 0.4s ease, box-shadow 0.3s ease; }
.card.hidden { display: none; opacity: 0; transform: scale(0.95); }

/* =========================================
   Projects Grid
   ========================================= */
.section-header { max-width: 600px; margin: 0 auto 56px; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 32px; }

.card {
    background: var(--card-bg);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}
.card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }

.card-img-wrapper {
    position: relative;
    aspect-ratio: 16 / 9;
    width: 100%;
    overflow: hidden;
    background-color: #f4f5f7;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
}
.card-img-wrapper::before {
    content: '';
    display: block;
    height: 24px;
    background-color: #f4f5f7;
    border-bottom: 1px solid #dfe1e6;
    width: 100%;
    flex-shrink: 0;
    position: relative;
    z-index: 10;
}
.card-img-wrapper::after {
    content: '';
    position: absolute;
    top: 8px;
    left: 12px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #ff5f56;
    box-shadow: 12px 0 0 #ffbd2e, 24px 0 0 #27c93f;
    z-index: 11;
}
.card-img-wrapper img { width: 100%; height: calc(100% - 24px); object-fit: cover; transition: transform 0.5s ease; }
.card:hover .card-img-wrapper img { transform: scale(1.05); }

.badge {
    position: absolute; top: 16px; right: 16px;
    background: var(--primary-color); color: #ffffff;
    padding: 4px 12px; border-radius: 20px;
    font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; z-index: 5;
}
.card-content { padding: 24px; display: flex; flex-direction: column; flex-grow: 1; }
.card-content p { font-size: 1rem; margin-bottom: 20px; flex-grow: 1; }

/* =========================================
   Stats Section (standalone — fixed nesting)
   ========================================= */
.stats-section { padding: 60px 0; }
.stats-grid { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); text-align: center; }
.stat-item i { font-size: 2.5rem; color: var(--accent-color); margin-bottom: 16px; }
.stat-item h3 { font-size: 2.5rem; font-weight: 800; color: var(--text-main); margin-bottom: 4px; }
.stat-item p { margin-bottom: 0; font-weight: 500; }

/* =========================================
   Footer
   ========================================= */
footer {
    background-color: #081C33;
    color: #a5adba;
    padding: 80px 0 24px;
}
.footer-content { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 48px; }
.footer-contact a { white-space: nowrap; }
.footer-brand .logo { color: white; margin-bottom: 16px; }
.footer-brand p { color: #a5adba; }
footer h4 { font-size: 1.125rem; margin-bottom: 20px; color: white; }
.footer-links ul li { margin-bottom: 12px; }
.footer-links a { color: #a5adba; }
.footer-links a:hover { color: white; }
.social-icons { display: flex; gap: 16px; }
.social-icons a {
    display: flex; align-items: center; justify-content: center;
    width: 40px; height: 40px; background: rgba(255,255,255,0.1); border-radius: 50%; color: white;
}
.social-icons a:hover { background: var(--primary-color); transform: translateY(-3px); }
.footer-bottom { text-align: center; padding-top: 24px; border-top: 1px solid rgba(255,255,255,0.1); color: #a5adba; font-size: 0.875rem; }

/* =========================================
   Floating WhatsApp
   ========================================= */
.whatsapp-float {
    position: fixed; bottom: 30px; right: 30px;
    width: 60px; height: 60px;
    background-color: var(--secondary-color); color: white;
    border-radius: 50px; text-align: center; font-size: 30px;
    box-shadow: 0 4px 10px rgba(37, 211, 102, 0.4);
    z-index: 100; display: flex; align-items: center; justify-content: center;
    transition: var(--transition); animation: pulse 2s infinite;
}
.whatsapp-float:hover { background-color: #20b858; color: white; transform: scale(1.1); }
@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.5); }
    70% { box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* =========================================
   Animations
   ========================================= */
.fade-in { opacity: 0; transition: opacity 0.8s ease-out; }
.fade-in.visible { opacity: 1; }
.fade-in-up { opacity: 0; transform: translateY(30px); transition: opacity 0.8s ease-out, transform 0.8s ease-out; }
.fade-in-up.visible { opacity: 1; transform: translateY(0); }

/* =========================================
   Formation / Course Cards
   ========================================= */
.formation-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 30px; align-items: stretch; }

.course-card {
    background: var(--card-bg);
    border-radius: 16px;
    padding: 32px 24px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}
.course-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.course-card.featured {
    border: 2px solid var(--primary-color);
    background: linear-gradient(135deg, #ffffff 0%, #f0f6ff 100%);
    grid-column: span 1;
    padding: 32px;
}
.featured-grid-inner { display: flex; flex-direction: column; gap: 24px; width: 100%; }

@media (min-width: 992px) {
    .formation-grid { grid-template-columns: repeat(3, 1fr); }
    .course-card.featured { grid-column: span 3; }
    .featured-grid-inner { display: grid; grid-template-columns: 1.5fr 1fr; gap: 40px; align-items: center; }
}

.featured-text-col { display: flex; flex-direction: column; }
.featured-visual-col { display: flex !important; flex-direction: column !important; align-items: center !important; justify-content: center !important; gap: 20px !important; width: 100% !important; }
.featured-visual-col .course-cta { width: 100% !important; max-width: 280px !important; margin-top: 0 !important; }

.course-tag {
    align-self: flex-start;
    background: rgba(0, 188, 212, 0.1);
    color: #0097A7;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 20px;
}
.course-card.featured .course-tag { background: var(--accent-color); color: var(--primary-color); }

.featured-badge {
    position: absolute; top: 15px; right: -30px;
    background: var(--secondary-color); color: white;
    padding: 6px 30px; font-size: 0.75rem; font-weight: 700;
    transform: rotate(45deg); text-transform: uppercase; letter-spacing: 0.05em;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.course-card h3 { font-size: 1.4rem; font-weight: 700; color: var(--text-main); margin-bottom: 12px; line-height: 1.25; }
.course-desc { font-size: 0.95rem; color: var(--text-muted); margin-bottom: 24px; flex-grow: 1; }

.course-features { list-style: none; padding: 0; margin: 0 0 28px 0; }
.course-features li { font-size: 0.9rem; color: var(--text-main); margin-bottom: 10px; display: flex; align-items: center; gap: 10px; }
.course-features li i { color: var(--secondary-color); font-size: 0.85rem; }

/* Price teaser — NEW */
.course-price-teaser {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 20px;
    padding: 12px 16px;
    background: var(--bg-light);
    border-radius: 10px;
    border: 1px solid var(--border-color);
}
.price-from { font-size: 0.8rem; color: var(--text-muted); font-weight: 500; }
.price-amount { font-size: 1.5rem; font-weight: 800; color: var(--primary-color); }
.price-currency { font-size: 0.9rem; font-weight: 700; color: var(--text-muted); }

.course-cta { width: 100%; margin-top: auto; }

@keyframes highlightPulseAnimation {
    0% { box-shadow: 0 0 0 0 rgba(0, 82, 204, 0.4); transform: scale(1); }
    50% { box-shadow: 0 0 25px 8px rgba(0, 82, 204, 0.6); transform: scale(1.03); border-color: var(--primary-color); }
    100% { box-shadow: 0 0 0 0 rgba(0, 82, 204, 0); transform: scale(1); }
}
.course-card.highlight-pulse { animation: highlightPulseAnimation 2s ease-in-out 3; }

/* =========================================
   Modal
   ========================================= */
.modal {
    display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background-color: rgba(9, 30, 66, 0.5); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
    z-index: 2000; justify-content: center; align-items: center; padding: 20px;
}
.modal.active { display: flex; }
.modal-content {
    background-color: var(--card-bg); border-radius: 20px; max-width: 850px; width: 100%;
    max-height: 90vh; overflow-y: auto; position: relative;
    box-shadow: var(--shadow-lg); border: 1px solid var(--border-color);
    animation: modalZoomIn 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}
@keyframes modalZoomIn {
    from { opacity: 0; transform: scale(0.9) translateY(20px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}
.modal-close { position: absolute; top: 20px; right: 24px; font-size: 2rem; font-weight: 500; color: var(--text-muted); cursor: pointer; transition: var(--transition); z-index: 2010; }
.modal-close:hover { color: var(--text-main); transform: rotate(90deg); }
.modal-grid { display: grid; grid-template-columns: 1.2fr 1fr; align-items: stretch; }
.modal-image-side { background-color: #0c1a30; display: flex; align-items: center; justify-content: center; padding: 24px; overflow: hidden; }
.modal-image-side img { width: 100%; height: auto; max-height: 100%; object-fit: contain; border-radius: 8px; box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5); border: 1px solid rgba(255, 255, 255, 0.1); }
.modal-info-side { padding: 40px 32px; display: flex; flex-direction: column; justify-content: center; }
.badge-modal { align-self: flex-start; background: var(--accent-color); color: var(--primary-color); padding: 4px 12px; border-radius: 20px; font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 16px; }
.modal-info-side h2 { font-size: 1.8rem; margin-bottom: 16px; line-height: 1.2; color: var(--text-main); }
.modal-info-side p { font-size: 1rem; color: var(--text-muted); margin-bottom: 24px; }
.modal-meta { margin-bottom: 28px; }
.modal-meta h4 { font-size: 0.95rem; margin-bottom: 12px; color: var(--text-main); }
.tools-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tools-tags span { background-color: var(--bg-light); color: var(--text-main); padding: 6px 12px; border-radius: 6px; font-size: 0.85rem; font-weight: 500; border: 1px solid var(--border-color); }
.modal-cta-container { margin-top: auto; }
.modal-cta-container button { width: 100%; display: flex; align-items: center; justify-content: center; gap: 10px; }

/* =========================================
   Detail Pages
   ========================================= */
.detail-hero {
    padding: 120px 0 60px;
    background: radial-gradient(circle at top right, rgba(76, 154, 255, 0.08), transparent 30%), var(--bg-light);
    border-bottom: 1px solid var(--border-color);
}
.detail-container { max-width: 900px; margin: 0 auto; }
.btn-back { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 24px; font-weight: 600; color: var(--text-muted); transition: var(--transition); }
.btn-back:hover { color: var(--primary-color); }
.detail-header { margin-bottom: 40px; }
.detail-header h1 { font-size: clamp(2.2rem, 4.5vw, 3.2rem); margin-bottom: 16px; font-weight: 800; color: var(--text-main); letter-spacing: -0.02em; }
.detail-content { padding: 60px 0; }
.detail-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; margin-bottom: 60px; }
.detail-section-title { font-size: 1.6rem; font-weight: 700; margin-bottom: 20px; color: var(--text-main); display: flex; align-items: center; gap: 10px; }
.detail-section-title i { color: var(--primary-color); }

.syllabus-list { list-style: none; padding: 0; }
.syllabus-module { background-color: var(--bg-main); border: 1px solid var(--border-color); border-radius: 12px; padding: 20px; margin-bottom: 16px; box-shadow: var(--shadow-sm); transition: var(--transition); }
.syllabus-module:hover { box-shadow: var(--shadow-md); border-color: var(--primary-light); }
.syllabus-module h4 { font-size: 1.1rem; font-weight: 700; color: var(--primary-color); margin-bottom: 8px; }
.syllabus-module p { font-size: 0.95rem; margin-bottom: 0; color: var(--text-muted); }

.detail-image-wrapper { display: block; position: relative; border-radius: 16px; overflow: hidden; box-shadow: var(--shadow-md); border: 1px solid var(--border-color); cursor: pointer; transition: var(--transition); }
.detail-image-wrapper:hover { transform: scale(1.02); box-shadow: var(--shadow-lg); }
.detail-image-wrapper img { width: 100%; height: auto; display: block; }
.image-overlay-msg { position: absolute; bottom: 0; left: 0; width: 100%; background: rgba(9, 30, 66, 0.85); color: white; text-align: center; padding: 12px; font-size: 0.85rem; font-weight: 600; display: flex; align-items: center; justify-content: center; gap: 8px; transition: var(--transition); white-space: nowrap; box-sizing: border-box; }
.detail-image-wrapper:hover .image-overlay-msg { background: var(--primary-color); }

.tech-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.tech-tags span { background-color: rgba(0, 82, 204, 0.05); color: var(--primary-color); padding: 6px 14px; border-radius: 6px; font-size: 0.85rem; font-weight: 600; }

.course-logo { width: 60px; height: 60px; border-radius: 12px; overflow: hidden; margin-bottom: 20px; border: 1px solid var(--border-color); }
.course-tool-logo { width: 100%; height: 100%; object-fit: contain; }
.featured-tool-img { width: 100%; max-width: 280px; height: auto; border-radius: 12px; border: 1px solid var(--border-color); box-shadow: var(--shadow-sm); display: block; }

/* Sticky CTA (mobile course pages) — NEW */
.sticky-cta-bar {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--bg-main);
    border-top: 1px solid var(--border-color);
    padding: 12px 20px;
    z-index: 900;
    box-shadow: 0 -4px 20px rgba(9, 30, 66, 0.1);
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}
.sticky-cta-bar .sticky-price { font-size: 1.1rem; font-weight: 800; color: var(--primary-color); }
.sticky-cta-bar .sticky-price span { font-size: 0.8rem; font-weight: 500; color: var(--text-muted); display: block; }
@media (max-width: 768px) {
    .sticky-cta-bar { display: flex; }
    body { padding-bottom: 80px; }
}

/* =========================================
   Roadmap (zigzag path)
   ========================================= */
.roadmap-path { position: relative; display: flex; justify-content: space-between; align-items: flex-start; margin-top: 70px; padding: 0 10px 40px; counter-reset: phase; }
.roadmap-path-line { position: absolute; top: 34px; left: 5%; width: 90%; height: 90px; z-index: 0; overflow: visible; }
.roadmap-path-line path { fill: none; stroke: var(--border-color); stroke-width: 2; stroke-dasharray: 7 8; stroke-linecap: round; }
.roadmap-path-node { position: relative; z-index: 1; width: 23%; display: flex; flex-direction: column; align-items: center; text-align: center; }
.roadmap-path-node.wave-down { margin-top: 90px; }
.roadmap-path-dot { counter-increment: phase; width: 44px; height: 44px; border-radius: 50%; background: var(--primary-color); color: #fff; font-weight: 800; display: flex; align-items: center; justify-content: center; border: 4px solid var(--bg-main); box-shadow: 0 0 0 2px var(--primary-color); margin-bottom: 16px; }
.roadmap-path-dot::before { content: counter(phase); }
.roadmap-path-card h4 { font-size: 1rem; font-weight: 700; color: var(--text-main); margin-bottom: 2px; }
.roadmap-path-card .roadmap-path-sub { display: block; font-size: 0.85rem; color: var(--primary-color); font-weight: 600; margin-bottom: 2px; }
.roadmap-path-card .roadmap-path-hours { display: block; font-size: 0.75rem; color: var(--text-muted); margin-bottom: 16px; }
.roadmap-path-desc { font-size: 0.85rem; color: var(--text-muted); line-height: 1.5; }
@media (max-width: 900px) {
  .roadmap-path { flex-direction: column; align-items: flex-start; gap: 0; padding-left: 30px; }
  .roadmap-path-line { display: none; }
  .roadmap-path-node, .roadmap-path-node.wave-down { width: 100%; align-items: flex-start; text-align: left; margin-top: 0; padding-bottom: 30px; border-left: 2px dashed var(--border-color); padding-left: 24px; margin-left: 12px; }
  .roadmap-path-node:last-child { border-left-color: transparent; }
  .roadmap-path-dot { position: absolute; left: -22px; margin-bottom: 0; width: 36px; height: 36px; }
  .roadmap-path-card { margin-left: 30px; }
  .roadmap-path-desc { margin-left: 30px; }
}
html.dark-theme .roadmap-path-dot { border-color: var(--bg-main); }

/* =========================================
   Promo bar (announcement above navbar)
   ========================================= */
:root { --promo-h: 40px; }
.promo-bar { position: fixed; top: 0; left: 0; width: 100%; height: var(--promo-h); z-index: 1001; display: flex; align-items: center; justify-content: center; gap: 10px; background: linear-gradient(90deg, #ff4a4a 0%, #ff7a00 100%); color: #fff; font-size: 0.82rem; font-weight: 700; letter-spacing: 0.01em; padding: 0 16px; white-space: nowrap; overflow: hidden; transition: filter 0.2s; }
.promo-bar:hover { filter: brightness(1.06); color: #fff; }
.promo-bar strong { font-weight: 800; }
.promo-bar .promo-cta { text-decoration: underline; text-underline-offset: 3px; }
body { padding-top: var(--promo-h); }
.navbar { top: var(--promo-h); }
@media (max-width: 560px) { .promo-bar { font-size: 0.7rem; gap: 7px; } .promo-hide { display: none; } }

/* =========================================
   Preventa (presale banner + urgency)
   ========================================= */
.preventa-teaser { flex-direction: column; align-items: stretch; gap: 8px; }
.preventa-teaser-badge { align-self: flex-start; display: inline-flex; align-items: center; gap: 7px; background: #ff4a4a; color: #fff; font-weight: 800; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.03em; padding: 5px 12px; border-radius: 20px; animation: preventaPulse 1.8s ease-in-out infinite; }
.teaser-price-row { display: flex; align-items: baseline; gap: 10px; }
.teaser-price-row .price-old { font-size: 1.05rem; color: var(--text-muted); text-decoration: line-through; font-weight: 600; }
html.dark-theme .preventa-teaser .price-amount { color: var(--secondary-color); }
.preventa-teaser .price-amount { color: var(--secondary-color); }

.preventa-banner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 28px; margin-top: 28px; padding: 18px 24px; border-radius: 16px; background: linear-gradient(135deg, rgba(37, 211, 102, 0.12) 0%, rgba(0, 188, 212, 0.10) 100%); border: 1px solid var(--secondary-color); }
.preventa-left { display: flex; flex-direction: column; gap: 8px; }
.preventa-badge { align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; background: #ff4a4a; color: #fff; font-weight: 800; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.04em; padding: 7px 15px; border-radius: 30px; animation: preventaPulse 1.8s ease-in-out infinite; }
@keyframes preventaPulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(255, 74, 74, 0.5); } 50% { box-shadow: 0 0 0 9px rgba(255, 74, 74, 0); } }
.preventa-note { font-size: 0.92rem; color: var(--text-main); font-weight: 600; }
.preventa-note strong { color: var(--secondary-color); }
.preventa-price { display: flex; align-items: baseline; gap: 12px; white-space: nowrap; }
.preventa-price .old { font-size: 1.25rem; color: var(--text-muted); text-decoration: line-through; font-weight: 600; }
.preventa-price .new { font-size: 2.5rem; font-weight: 800; color: var(--secondary-color); line-height: 1; }
.preventa-price .cur { font-size: 0.9rem; font-weight: 700; color: var(--text-muted); }
.sticky-price .old { text-decoration: line-through; color: var(--text-muted); font-size: 0.85rem; font-weight: 600; margin-right: 6px; }
.sticky-price .new { color: var(--secondary-color); }
@media (max-width: 600px) {
  .preventa-banner { justify-content: center; text-align: center; }
  .preventa-left { align-items: center; }
  .preventa-badge { align-self: center; }
  .preventa-price .new { font-size: 2.1rem; }
}
html.dark-theme .preventa-banner { background: linear-gradient(135deg, rgba(37, 211, 102, 0.15) 0%, rgba(0, 188, 212, 0.12) 100%); }

/* =========================================
   FAQ
   ========================================= */
.faq-container { margin-top: 32px; }
.faq-item { border: 1px solid var(--border-color); border-radius: 12px; margin-bottom: 16px; padding: 16px 20px; transition: var(--transition); background: white; }
.faq-item summary { font-weight: 700; color: var(--text-main); font-size: 1.05rem; cursor: pointer; display: flex; justify-content: space-between; align-items: center; list-style: none; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item .faq-icon { font-size: 0.9rem; transition: transform 0.3s ease; color: var(--primary-color); }
.faq-item[open] { border-color: var(--primary-light); box-shadow: var(--shadow-sm); }
.faq-item[open] .faq-icon { transform: rotate(180deg); }
.faq-item p { margin-top: 12px; margin-bottom: 0; font-size: 0.95rem; color: var(--text-muted); line-height: 1.6; }

/* =========================================
   Landing / Catalog Tabs
   ========================================= */
.catalog-tabs-container { margin-top: 30px; width: 100%; }
.catalog-tabs-nav { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; margin-bottom: 30px; border-bottom: 2px solid var(--border-color); padding-bottom: 15px; }
.catalog-tab-btn { background: none; border: none; padding: 10px 20px; font-size: 1rem; font-weight: 600; color: var(--text-muted); cursor: pointer; border-radius: 8px; transition: var(--transition); }
.catalog-tab-btn:hover { color: var(--primary-color); background-color: var(--bg-light); }
.catalog-tab-btn.active { color: white; background-color: var(--primary-color); }
html.dark-theme .catalog-tab-btn.active { color: var(--primary-dark); background-color: var(--accent-color); }
.catalog-tab-panel { display: none; opacity: 0; transition: opacity 0.4s ease; }
.catalog-tab-panel.active { display: block; opacity: 1; }
.course-grid-catalog { display: grid; grid-template-columns: 1.5fr 1fr; gap: 30px; align-items: stretch; }

.sale-badge-pill { display: inline-block; padding: 5px 12px; font-size: 0.8rem; font-weight: 700; border-radius: 20px; margin-right: 8px; margin-bottom: 8px; text-transform: uppercase; }
.sale-badge-red { background-color: rgba(255, 74, 74, 0.1); color: #ff4a4a; border: 1px solid #ff4a4a; }
.sale-badge-blue { background-color: rgba(0, 188, 212, 0.1); color: var(--accent-color); border: 1px solid var(--accent-color); }
.sale-badge-green { background-color: rgba(37, 211, 102, 0.1); color: #25D366; border: 1px solid #25D366; }

.combos-section { margin-top: 60px; background: var(--bg-light); border-radius: 20px; padding: 40px; border: 1px solid var(--border-color); }
.combos-table-wrapper { overflow-x: auto; margin-top: 30px; }
.combos-table { width: 100%; border-collapse: collapse; text-align: left; }
.combos-table th { background-color: var(--primary-color); color: white; padding: 15px 20px; font-weight: 700; }
.combos-table td { padding: 18px 20px; border-bottom: 1px solid var(--border-color); color: var(--text-main); }
.combos-table tr:hover { background-color: rgba(0, 188, 212, 0.03); }
.combo-highlight { font-weight: 800; color: var(--primary-color); }

/* =========================================
   Theme Toggle
   ========================================= */
.theme-toggle-btn { background: none; border: none; font-size: 1.25rem; color: var(--text-main); cursor: pointer; width: 40px; height: 40px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; transition: var(--transition); margin-left: 16px; outline: none; }
.theme-toggle-btn:hover { background-color: rgba(0, 188, 212, 0.08); color: var(--accent-color); }
html.dark-theme .theme-toggle-btn:hover { background-color: rgba(255, 255, 255, 0.08); color: var(--accent-color); }
.theme-toggle-btn i { transition: transform 0.5s ease; }
.theme-toggle-btn:active i { transform: rotate(360deg) scale(0.8); }

/* =========================================
   WhatsApp button variants
   ========================================= */
.btn-whatsapp { background-color: #25D366 !important; border-color: #25D366 !important; color: white !important; }
.btn-whatsapp i.fa-whatsapp { color: white !important; }
.btn-whatsapp:hover { background-color: #20b858 !important; border-color: #20b858 !important; box-shadow: 0 4px 14px rgba(37, 211, 102, 0.4) !important; }
.btn-secondary i.fa-whatsapp { color: #25D366; transition: var(--transition); }
.btn-secondary:has(.fa-whatsapp):hover { border-color: #25D366 !important; background-color: #25D366 !important; color: white !important; box-shadow: 0 4px 14px rgba(37, 211, 102, 0.4) !important; }
.btn-secondary:has(.fa-whatsapp):hover i.fa-whatsapp { color: white !important; }

/* =========================================
   Dark Mode
   ========================================= */
html.dark-theme {
    --text-main: #f4f5f7;
    --text-muted: #a5adba;
    --bg-main: #051329;
    --bg-light: #0B2545;
    --card-bg: #0d2c52;
    --border-color: #133a6b;
    --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.2);
    --shadow-md: 0 10px 20px rgba(0, 0, 0, 0.25);
    --shadow-lg: 0 20px 30px rgba(0, 0, 0, 0.3);
}
html.dark-theme .navbar { background: rgba(5, 19, 41, 0.85); border-color: var(--border-color); }
html.dark-theme .navbar.scrolled { background: rgba(5, 19, 41, 0.95); border-bottom: 1px solid var(--border-color); }
html.dark-theme .btn-secondary { background-color: var(--card-bg); color: var(--text-main); border-color: var(--border-color); }
html.dark-theme .btn-secondary:hover { border-color: var(--accent-color); color: var(--accent-color); }
html.dark-theme .course-card.featured { border-color: var(--primary-light); background: linear-gradient(135deg, #102444 0%, #071224 100%); }
html.dark-theme .stat-item { background-color: var(--card-bg); border: 1px solid var(--border-color); }
html.dark-theme .faq-item { background-color: var(--card-bg) !important; border-color: var(--border-color) !important; }
html.dark-theme .faq-item[open] { border-color: var(--primary-light) !important; }
html.dark-theme .syllabus-module { background-color: var(--card-bg) !important; border-color: var(--border-color) !important; }
html.dark-theme .syllabus-module:hover { border-color: var(--accent-color) !important; }
html.dark-theme .syllabus-module h4 { color: #ffffff !important; font-weight: 800 !important; text-shadow: 0 1px 3px rgba(0,0,0,0.4); }
html.dark-theme .syllabus-module p { color: #c8d6e8 !important; }
html.dark-theme .detail-image-wrapper { border-color: var(--border-color); }
html.dark-theme .modal-content { background-color: var(--card-bg); border-color: var(--border-color); }
html.dark-theme .modal-image-side { background-color: #071224; }
html.dark-theme .tools-tags span { background-color: var(--bg-light); border-color: var(--border-color); color: #e0e8f4; }
html.dark-theme .hero-carousel { background-color: #071224; border-color: #1b355a; }
html.dark-theme .hero-carousel::before { background-color: #102444; border-bottom-color: #1b355a; }
html.dark-theme .card-img-wrapper { background-color: #071224; border-bottom-color: #1b355a; }
html.dark-theme .card-img-wrapper::before { background-color: #102444; border-bottom-color: #1b355a; }
html.dark-theme .card-content h3 { color: #ffffff !important; font-weight: 700; }
html.dark-theme .card-content p { color: #b8c9e0 !important; }
html.dark-theme .card-content .btn-link { color: var(--accent-color) !important; }
html.dark-theme .card-content .btn-link:hover { color: #ffffff !important; }
html.dark-theme .course-tag { background: rgba(0, 188, 212, 0.22) !important; color: #00e5f5 !important; font-weight: 700 !important; border: 1px solid rgba(0, 188, 212, 0.35); }
html.dark-theme .course-card.featured { background: linear-gradient(135deg, #102444 0%, #071224 100%) !important; border-color: var(--accent-color) !important; }
html.dark-theme .course-card h3 { color: #ffffff !important; }
html.dark-theme .course-desc { color: #b8c9e0 !important; }
html.dark-theme .course-features li { color: #dce8f5 !important; }
html.dark-theme .section-header h2 { color: #ffffff; }
html.dark-theme .section-header p { color: #a5b8cc; }
html.dark-theme .combos-table th { background-color: var(--primary-dark); color: var(--accent-color); }
html.dark-theme .combos-table tr:hover { background-color: rgba(255, 255, 255, 0.02); }
html.dark-theme .combo-highlight { color: var(--accent-color); }
html.dark-theme .btn-secondary:has(.fa-whatsapp):hover { border-color: #25D366 !important; background-color: #25D366 !important; color: white !important; box-shadow: 0 4px 14px rgba(37, 211, 102, 0.4) !important; }
html.dark-theme .btn-secondary:has(.fa-whatsapp):hover i.fa-whatsapp { color: white !important; }
html.dark-theme .course-price-teaser { background: rgba(255,255,255,0.05); border-color: var(--border-color); }
html.dark-theme .price-amount { color: var(--accent-color); }
html.dark-theme .dropdown-menu { background: var(--card-bg); border-color: var(--border-color); }
html.dark-theme .dropdown-menu a:hover { background: var(--bg-light); }
html.dark-theme .nav-dropdown > button { color: var(--text-main); }
html.dark-theme .sticky-cta-bar { background: var(--card-bg); border-top-color: var(--border-color); }
html.dark-theme .sticky-cta-bar .sticky-price { color: var(--accent-color); }

/* =========================================
   Media Queries
   ========================================= */
@media (max-width: 992px) {
    .hero-content { grid-template-columns: 1fr; text-align: center; padding-top: 40px; }
    .hero-buttons { justify-content: center; }
    .trust-strip { justify-content: center; }
    .hero-carousel { margin-top: 24px; }
    .footer-content { grid-template-columns: 1fr 1fr; }
    .course-grid-catalog { grid-template-columns: 1fr; }
    .detail-grid { grid-template-columns: 1fr; gap: 32px; }
}
@media (max-width: 768px) {
    .hamburger { display: block; }
    .nav-links { position: fixed; top: 0; right: -100%; width: 80%; max-width: 300px; height: 100vh; background: var(--bg-main); flex-direction: column; justify-content: center; align-items: flex-start; box-shadow: -5px 0 15px rgba(0,0,0,0.1); transition: right 0.3s ease; overflow-y: auto; padding: 80px 40px; gap: 24px; }
    .nav-links.active { right: 0; }
    .btn-primary-outline { border: none; padding: 0; }
    .nav-dropdown { display: flex; flex-direction: column; align-items: flex-start; width: 100%; }
    .dropdown-menu { 
        position: static !important; 
        transform: none !important; 
        opacity: 1 !important; 
        visibility: visible !important; 
        display: none !important; 
        box-shadow: none !important; 
        border: none !important; 
        background: transparent !important; 
        margin-top: 12px !important; 
        padding: 0 !important; 
        min-width: 0 !important; 
        width: 100%; 
    }
    .nav-dropdown.open .dropdown-menu { display: flex !important; flex-direction: column !important; align-items: flex-start !important; gap: 8px !important; padding-left: 16px !important; }
    .nav-dropdown.open > button i { transform: rotate(180deg); }
    .dropdown-menu a {
        justify-content: flex-start !important;
        padding: 6px 0 !important;
        font-size: 0.95rem;
        color: var(--text-muted) !important;
        background: transparent !important;
        border: none !important;
    }
    .dropdown-menu a:hover {
        color: var(--accent-color) !important;
    }
    .theme-toggle-btn { margin-left: 0; border: 1px solid var(--border-color); }
    .footer-content { grid-template-columns: 1fr; gap: 32px; text-align: center; }
    .footer-brand .logo { justify-content: center; }
    .social-icons { justify-content: center; }
    .modal-grid { grid-template-columns: 1fr; }
    .modal-image-side img { min-height: 200px; max-height: 250px; }
    .modal-info-side { padding: 28px 24px; }
}
@media (max-width: 480px) {
    .hero-buttons { flex-direction: column; width: 100%; }
    .hero-buttons .btn { width: 100%; }
    .section { padding: 60px 0; }
    .combos-section { padding: 20px; }
    .combos-table th, .combos-table td { padding: 12px 14px; white-space: nowrap; }
}
