/* CSS Design System - SourcingUp Course IA Theme (Strict #f8fafc Minimalist Edition) */
:root {
    --brand-bg: #f8fafc; /* Standard background for light sections */
    --brand-bg-soft: #f1f5f9;
    --brand-blue: #5047c2; /* SourcingUp Royal Indigo */
    --brand-blue-hover: #4338ca;
    --brand-indigo: #6355e6;
    --brand-accent: #f59e0b; /* Golden Amber Accent */
    --brand-text: #0f172a; /* Dark slate text */
    --text-muted: #475569; /* Muted slate text */
    --white: #ffffff;
    --border-color: #e2e8f0;
    --shadow-soft: 0 4px 20px -2px rgba(0, 0, 0, 0.03);
    --shadow-hover: 0 10px 30px -5px rgba(80, 71, 194, 0.08);
    --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
    --font-display: 'Inter', var(--font-sans);
}

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

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

body {
    background-color: var(--brand-bg);
    color: var(--brand-text);
    font-family: var(--font-sans);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Typography */
h1, h2, h3, h4 {
    font-family: var(--font-display);
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--brand-text);
    line-height: 1.2;
}

em {
    font-style: italic;
    color: var(--brand-blue);
    font-weight: 700;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: 12px;
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    border: none;
}

.btn-primary {
    background-color: var(--brand-blue);
    color: var(--white);
    box-shadow: 0 4px 12px rgba(80, 71, 194, 0.2);
}

.btn-primary:hover {
    background-color: var(--brand-blue-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(80, 71, 194, 0.35);
}

.btn-outline {
    background-color: transparent;
    color: var(--brand-blue);
    border: 1px solid rgba(80, 71, 194, 0.3);
}

.btn-outline:hover {
    background-color: rgba(80, 71, 194, 0.05);
    border-color: var(--brand-blue);
    transform: translateY(-2px);
}

/* Header */
#main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: transparent;
    height: 96px;
    transition: all 0.3s ease;
}

#main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.nav-links {
    display: flex;
    gap: 32px;
    list-style: none;
}

.nav-links a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: #ffffff;
}

/* Hero Section (Solid Brand Blue) */
.hero {
    position: relative;
    padding-top: 160px;
    padding-bottom: 110px;
    background: var(--brand-blue);
    color: #ffffff;
    text-align: center;
    overflow: hidden;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    padding: 8px 16px;
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, 0.2);
    margin-bottom: 24px;
}

.dot-live {
    width: 8px;
    height: 8px;
    background-color: var(--brand-accent);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--brand-accent);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(0.95); opacity: 0.5; }
    50% { transform: scale(1.1); opacity: 1; }
    100% { transform: scale(0.95); opacity: 0.5; }
}

.hero h1 {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    line-height: 1.1;
    margin-bottom: 20px;
    max-width: 950px;
    color: #ffffff;
    margin-left: auto;
    margin-right: auto;
}

.hero-sub {
    font-size: clamp(1.1rem, 2vw, 1.35rem);
    color: rgba(255, 255, 255, 0.9);
    max-width: 800px;
    margin-bottom: 40px;
    line-height: 1.5;
    margin-left: auto;
    margin-right: auto;
}

.hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 48px;
    justify-content: center;
}

.hero-actions .btn-outline {
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.3);
}

.hero-actions .btn-outline:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: #ffffff;
}

.hero-trust-row {
    display: flex;
    gap: 40px;
    flex-wrap: wrap;
    justify-content: center;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.85);
}

.trust-item i {
    color: var(--brand-accent);
}

/* Sections (Predominantly white with slate contrast) */
.section {
    padding: 100px 0;
    border-bottom: 1px solid var(--border-color);
    background-color: var(--brand-bg); /* #f8fafc — única background permitida */
}

.section-alt {
    background-color: var(--brand-bg); /* #f8fafc */
}

/* Dark themed sections */
.section-dark {
    padding: 100px 0;
    background-color: #0f172a;
    color: #f8fafc;
    border-bottom: 1px solid #1e293b;
}

.section-dark h2, .section-dark h3, .section-dark h4 {
    color: #ffffff !important;
}

.section-dark .section-header p {
    color: #94a3b8;
}

.section-dark .module-card {
    background-color: #1e293b;
    border: 1px solid #334155;
    color: #e2e8f0;
}

.section-dark .module-card p {
    color: #94a3b8;
}

/* Modalidades Dark */
.bg-gradient-pricing {
    background: #0f172a !important;
}

.section-dark .card {
    background-color: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #f8fafc;
}

.section-dark .card h3 {
    color: #ffffff !important;
}

.section-dark .card p {
    color: #94a3b8;
}

.section-dark .card .btn-outline {
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.3);
}

.section-dark .card .btn-outline:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: #ffffff;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 16px;
}

.section-header p {
    color: var(--text-muted);
    font-size: 1.15rem;
    max-width: 650px;
    margin: 0 auto;
}

/* Directory Interactive Selector (Hub) */
.directory-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    margin-bottom: 48px;
}

.directory-pill {
    background-color: var(--white);
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    padding: 12px 24px;
    border-radius: 12px;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: var(--shadow-soft);
}

.directory-pill:hover, .directory-pill.active {
    background-color: var(--brand-blue);
    color: var(--white);
    border-color: var(--brand-blue);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(80, 71, 194, 0.2);
}

.directory-pill i {
    font-size: 1.1rem;
}

.directory-panel {
    display: none;
    animation: fadeIn 0.5s ease forwards;
}

.directory-panel.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Cards Grid */
.grid {
    display: grid;
    gap: 32px;
}

.grid-3 {
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

.grid-2 {
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
}

.card {
    background-color: var(--brand-bg); /* #f8fafc */
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 40px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-soft);
}

.card:hover {
    transform: translateY(-8px);
    border-color: rgba(80, 71, 194, 0.2);
    box-shadow: var(--shadow-hover);
}

.card-icon {
    font-size: 2.2rem;
    color: var(--brand-blue);
    margin-bottom: 24px;
}

.card h3 {
    font-size: 1.5rem;
    margin-bottom: 16px;
}

.card p {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.5;
}

/* Syllabus & Modules */
.syllabus-box {
    display: grid;
    gap: 24px;
}

.module-card {
    background-color: var(--brand-bg); /* #f8fafc */
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 32px;
    box-shadow: var(--shadow-soft);
}

.module-num {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--brand-blue);
    font-weight: 700;
    margin-bottom: 8px;
}

.module-card h3 {
    font-size: 1.35rem;
    margin-bottom: 12px;
}

.module-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* FAQs - Accordion */
.faq-container {
    max-width: 800px;
    margin: 0 auto;
    display: grid;
    gap: 16px;
}

details.group {
    background-color: var(--brand-bg); /* #f8fafc */
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 24px;
    transition: all 0.3s;
    box-shadow: var(--shadow-soft);
}

details.group[open] {
    border-color: rgba(80, 71, 194, 0.25);
    box-shadow: var(--shadow-hover);
}

summary.flex {
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1.15rem;
    color: var(--brand-text);
    cursor: pointer;
}

summary.flex::-webkit-details-marker {
    display: none;
}

summary.flex i {
    transition: transform 0.3s;
    color: var(--brand-blue);
}

details.group[open] summary.flex i {
    transform: rotate(180deg);
}

.faq-answer {
    margin-top: 16px;
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.6;
}

/* Instructor Bio */
.instructor-block {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 60px;
    align-items: center;
}

.instructor-img-wrapper {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    aspect-ratio: 4 / 5;
    background: var(--brand-bg); /* #f8fafc */
    box-shadow: var(--shadow-soft);
}

.instructor-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.instructor-content h3 {
    font-size: 2.25rem;
    margin-bottom: 8px;
}

.instructor-title {
    color: var(--brand-blue);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 24px;
}

.instructor-bio {
    color: var(--text-muted);
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 32px;
}

.badge-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.tag-badge {
    background: var(--brand-bg); /* #f8fafc */
    border: 1px solid var(--border-color);
    color: var(--brand-text);
    padding: 6px 14px;
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 600;
}

/* CTA Band Section (Solid Brand Blue) */
.cta-band {
    background: var(--brand-blue);
    border-radius: 32px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 80px 40px;
    text-align: center;
    color: #ffffff;
    box-shadow: 0 20px 40px rgba(80, 71, 194, 0.15);
}

.cta-band h2 {
    color: #ffffff !important;
    font-size: clamp(2rem, 5vw, 3.5rem);
    margin-bottom: 16px;
}

.cta-band p {
    color: rgba(255, 255, 255, 0.9) !important;
    font-size: 1.25rem;
    max-width: 650px;
    margin: 0 auto 40px;
}

/* Footer (Strictly #f8fafc with Top Border, no gradients) */
#main-footer {
    padding: 80px 0 40px;
    background-color: var(--brand-bg); /* Strictly #f8fafc */
    border-top: 1px solid var(--border-color);
    color: var(--text-muted);
}

#main-footer h4, #main-footer h5 {
    color: var(--brand-text);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 60px;
}

.footer-brand h4 {
    font-size: 1.5rem;
    font-style: italic;
    font-family: var(--font-display);
    margin-bottom: 16px;
}

.footer-brand p {
    color: var(--text-muted);
    max-width: 340px;
    font-size: 0.95rem;
}

.footer-links h5 {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 24px;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--brand-text);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--border-color);
    padding-top: 40px;
    color: var(--text-muted);
    font-size: 0.9rem;
    flex-wrap: wrap;
    gap: 20px;
}

/* Floatable WhatsApp Button */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #25d366;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    text-decoration: none;
    transition: all 0.3s ease;
    animation: pulse-whatsapp 2s infinite;
}

.whatsapp-float:hover {
    transform: scale(1.1) rotate(5deg);
    background-color: #128c7e;
}

@keyframes pulse-whatsapp {
    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); }
}

/* Responsive Rules */
@media (max-width: 1024px) {
    .instructor-block { grid-template-columns: 1fr; gap: 40px; text-align: center; }
    .instructor-img-wrapper { max-width: 320px; margin: 0 auto; }
    .badge-row { justify-content: center; }
}

@media (max-width: 768px) {
    .nav-links { display: none; }
    .footer-grid { grid-template-columns: 1fr; gap: 40px; }
    .hero { padding-top: 150px; }
    .section { padding: 60px 0; }
    .cta-band { padding: 40px 20px; }
}
