/* ================================================================
   COURSE DETAIL — Premium centered layout v2
   "Estructura diabólica"
   ================================================================ */

/* ── Hero Banner ─────────────────────────────────────────────────── */
.cd-hero-banner {
    position: relative;
    min-height: 520px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin: -24px -24px 0;
    padding: 64px 24px 56px;
}
@media (max-width: 767px) {
    .cd-hero-banner { min-height: 440px; padding: 52px 14px 44px; margin: -16px -16px 0; }
}
.cd-hero-bg-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    filter: saturate(0.7);
}
.cd-hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        radial-gradient(ellipse 60% 50% at 50% 40%, rgba(233,84,16,0.08) 0%, transparent 70%),
        linear-gradient(180deg,
            rgba(8,9,12,0.88) 0%,
            rgba(8,9,12,0.72) 45%,
            rgba(8,9,12,0.92) 100%
        );
}
html[data-theme="light"] .cd-hero-overlay {
    background:
        radial-gradient(ellipse 60% 50% at 50% 40%, rgba(233,84,16,0.04) 0%, transparent 70%),
        linear-gradient(180deg,
            rgba(10,12,18,0.96) 0%,
            rgba(10,12,18,0.92) 45%,
            rgba(10,12,18,0.97) 100%
        );
}
.cd-hero-dots {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    pointer-events: none;
    opacity: 0.6;
}

/* ── Glass Card ─────────────────────────────────────────────────── */
.cd-hero-content {
    position: relative;
    z-index: 3;
    max-width: 900px;
    width: 100%;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    background: rgba(255,255,255,0.03);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 28px;
    padding: 48px 56px 52px;
    box-shadow:
        0 0 0 1px rgba(255,255,255,0.04),
        0 12px 40px rgba(0,0,0,0.25),
        0 0 80px -20px rgba(233,84,16,0.08),
        inset 0 1px 0 rgba(255,255,255,0.06);
    animation: card-appear 0.7s cubic-bezier(0.23,1,0.32,1) forwards;
}
@keyframes card-appear {
    from { opacity: 0; transform: translateY(24px) scale(0.97); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}
@media (max-width: 767px) {
    .cd-hero-content { padding: 32px 20px 36px; border-radius: 20px; }
}
html[data-theme="light"] .cd-hero-content {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.15);
}

/* Subtle animated glow line at top of card */
.cd-hero-content::before {
    content: '';
    position: absolute;
    top: -1px;
    left: 15%;
    right: 15%;
    height: 1px;
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(233,84,16,0.5) 30%,
        rgba(255,150,50,0.7) 50%,
        rgba(233,84,16,0.5) 70%,
        transparent 100%
    );
    border-radius: 1px;
    animation: glow-sweep 4s ease-in-out infinite;
}
@keyframes glow-sweep {
    0%, 100% { opacity: 0.4; left: 15%; right: 15%; }
    50% { opacity: 1; left: 10%; right: 10%; }
}


/* ── Breadcrumb ─────────────────────────────────────────────────── */
.cd-hero-breadcrumb {
    position: absolute;
    top: 22px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 4;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 500;
    color: rgba(255,255,255,0.4);
    flex-wrap: wrap;
    justify-content: center;
    white-space: nowrap;
    letter-spacing: 0.02em;
}
.cd-hero-breadcrumb a {
    color: rgba(255,255,255,0.5);
    text-decoration: none;
    transition: color 0.2s;
}
.cd-hero-breadcrumb a:hover { color: rgba(255,255,255,0.9); }
.cd-hero-breadcrumb .current { color: rgba(255,255,255,0.7); }


/* ── Pills ──────────────────────────────────────────────────────── */
.cd-hero-eyebrow {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
    flex-wrap: wrap;
    justify-content: center;
}
.cd-pill-category, .cd-pill-difficulty, .cd-pill-free, .cd-pill-community {
    padding: 5px 14px;
    border-radius: 99px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}
.cd-pill-category {
    background: rgba(233,84,16,0.12);
    color: #FF8A50;
    border: 1px solid rgba(233,84,16,0.22);
    box-shadow: 0 0 12px rgba(233,84,16,0.08);
}
.cd-pill-difficulty {
    background: rgba(255,255,255,0.06);
    color: rgba(255,255,255,0.65);
    border: 1px solid rgba(255,255,255,0.1);
}
.cd-pill-free {
    background: rgba(34,197,94,0.1);
    color: #4ADE80;
    border: 1px solid rgba(34,197,94,0.2);
    box-shadow: 0 0 12px rgba(34,197,94,0.06);
}
.cd-pill-community {
    background: rgba(139,92,246,0.1);
    color: #A78BFA;
    border: 1px solid rgba(139,92,246,0.2);
}


/* ── Title ──────────────────────────────────────────────────────── */
.cd-hero-title {
    font-family: var(--font-display);
    font-size: clamp(2.2rem, 5.5vw, 3.2rem);
    font-weight: 500;
    line-height: 1.08;
    color: white;
    letter-spacing: -0.03em;
    margin-bottom: 16px;
    max-width: 720px;
    background: linear-gradient(180deg, rgba(255,255,255,1) 20%, rgba(255,255,255,0.65) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.cd-hero-subtitle {
    font-size: 16px;
    color: rgba(255,255,255,0.5);
    line-height: 1.65;
    margin-bottom: 32px;
    max-width: 480px;
    letter-spacing: 0.01em;
}


/* ── Stats ──────────────────────────────────────────────────────── */
.cd-hero-stats {
    display: flex;
    align-items: center;
    gap: 0;
    margin-bottom: 36px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 18px;
    padding: 6px;
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
    max-width: 560px;
}
.cd-stat {
    text-align: center;
    padding: 16px 0;
    position: relative;
    flex: 1;
}
.cd-stat-num {
    display: block;
    font-family: var(--font-display);
    font-size: 26px;
    font-weight: 500;
    color: white;
    letter-spacing: -0.03em;
    line-height: 1;
    margin-bottom: 5px;
}
.cd-stat-label {
    font-size: 10px;
    color: rgba(255,255,255,0.35);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 600;
}
.cd-stat-divider {
    width: 1px;
    height: 32px;
    background: linear-gradient(180deg, transparent, rgba(255,255,255,0.1), transparent);
}
@media (max-width: 480px) {
    .cd-stat-divider { display: none; }
    .cd-stat { padding: 10px 16px; }
    .cd-hero-stats { border-radius: 12px; }
}


/* ── CTA ────────────────────────────────────────────────────────── */
.cd-hero-cta { margin-bottom: 14px; }
.cta-epic {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 18px 44px;
    background: linear-gradient(135deg, #E95410 0%, #FF7A30 100%);
    color: white;
    font-weight: 700;
    font-size: 16px;
    letter-spacing: 0.02em;
    border-radius: 14px;
    transition: all 0.3s cubic-bezier(0.23,1,0.32,1);
    box-shadow:
        0 4px 16px rgba(233,84,16,0.35),
        0 0 0 1px rgba(255,255,255,0.06) inset;
    border: none;
    cursor: pointer;
    text-decoration: none;
    position: relative;
    overflow: hidden;
}
.cta-epic::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.15) 0%, transparent 50%);
    pointer-events: none;
}
.cta-epic:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow:
        0 8px 28px rgba(233,84,16,0.45),
        0 0 0 1px rgba(255,255,255,0.1) inset;
}

/* Price + guarantee */
.cd-hero-price { margin-bottom: 8px; }
.cd-price-amount {
    font-family: var(--font-display);
    font-size: 30px;
    font-weight: 500;
    color: white;
    letter-spacing: -0.02em;
}
.cd-price-detail {
    font-size: 13px;
    color: rgba(255,255,255,0.4);
    margin-left: 8px;
}
.cd-guarantee {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: rgba(255,255,255,0.45);
}
.cd-guarantee svg { color: #4ADE80; }

/* Community notice */
.cd-community-notice {
    padding: 18px 28px;
    background: rgba(139,92,246,0.08);
    border: 1px solid rgba(139,92,246,0.18);
    border-radius: 14px;
    text-align: center;
}
.cd-community-title { font-size: 14px; font-weight: 600; color: white; margin-bottom: 4px; }
.cd-community-sub { font-size: 12px; color: rgba(255,255,255,0.45); }


/* ═══════════════════════════════════════════════════════════════════
   Body — centered single column
   ═══════════════════════════════════════════════════════════════════ */
.cd-body {
    max-width: 900px;
    margin: 0 auto;
    padding: 44px 40px 64px;
}
@media (max-width: 767px) {
    .cd-body { padding: 32px 16px 48px; }
}

.cd-section { margin-bottom: 44px; }
.cd-section-title {
    font-family: var(--font-display);
    font-size: 26px;
    font-weight: 500;
    color: var(--text-primary);
    letter-spacing: -0.02em;
    margin-bottom: 18px;
}
.cd-section-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 18px;
}
.cd-section-meta {
    font-size: 12px;
    color: var(--text-tertiary);
    letter-spacing: 0.02em;
}


/* ═══════════════════════════════════════════════════════════════════
   Mentor Card — Premium
   ═══════════════════════════════════════════════════════════════════ */
.cd-mentor-card {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 22px 28px;
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: 18px;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.23,1,0.32,1);
    position: relative;
    overflow: hidden;
}
.cd-mentor-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, var(--color-primary), rgba(233,84,16,0.3));
    border-radius: 3px 0 0 3px;
    opacity: 0;
    transition: opacity 0.3s;
}
.cd-mentor-card:hover {
    border-color: rgba(233,84,16,0.15);
    box-shadow: 0 4px 20px rgba(0,0,0,0.06), 0 0 0 1px rgba(233,84,16,0.04);
    transform: translateY(-2px);
}
.cd-mentor-card:hover::before { opacity: 1; }
html[data-theme="dark"] .cd-mentor-card:hover,
html:not([data-theme="light"]) .cd-mentor-card:hover {
    box-shadow: 0 4px 20px rgba(0,0,0,0.2), 0 0 0 1px rgba(233,84,16,0.06);
}
.cd-mentor-avatar { flex-shrink: 0; }
.cd-mentor-info { flex: 1; min-width: 0; }
.cd-mentor-name {
    font-weight: 600;
    font-size: 15px;
    color: var(--text-primary);
    letter-spacing: -0.01em;
}
.cd-mentor-headline {
    font-size: 13px;
    color: var(--text-tertiary);
    margin-top: 2px;
}
.cd-mentor-meta {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 6px;
    font-size: 12px;
    color: var(--text-tertiary);
    flex-wrap: wrap;
}
.cd-mentor-meta strong { color: var(--text-secondary); font-weight: 600; }
.cd-mentor-chevron {
    color: var(--text-disabled);
    flex-shrink: 0;
    transition: all 0.3s;
}
.cd-mentor-card:hover .cd-mentor-chevron {
    color: var(--color-primary);
    transform: translateX(3px);
}


/* ═══════════════════════════════════════════════════════════════════
   Outcomes
   ═══════════════════════════════════════════════════════════════════ */
.cd-outcomes-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: 18px;
    padding: 8px 0;
    overflow: hidden;
}
.cd-outcome-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 24px;
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.5;
    transition: background 0.15s;
}
.cd-outcome-item:hover {
    background: var(--bg-hover);
}
.cd-outcome-check {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    margin-top: 1px;
    stroke: var(--color-primary);
    stroke-width: 2.5;
    fill: none;
    background: rgba(233,84,16,0.06);
    border-radius: 6px;
    padding: 3px;
}


/* ═══════════════════════════════════════════════════════════════════
   Module Rows — Premium with left accent
   ═══════════════════════════════════════════════════════════════════ */
.cd-modules-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.cd-module-row {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 18px 24px;
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: 16px;
    transition: all 0.3s cubic-bezier(0.23,1,0.32,1);
    position: relative;
    overflow: hidden;
}
.cd-module-row::before {
    content: '';
    position: absolute;
    left: 0;
    top: 20%;
    bottom: 20%;
    width: 3px;
    background: linear-gradient(180deg, var(--color-primary), rgba(233,84,16,0.2));
    border-radius: 0 3px 3px 0;
    opacity: 0;
    transition: all 0.3s;
}
.cd-module-row:hover {
    border-color: rgba(233,84,16,0.12);
    background: var(--bg-hover);
    transform: translateX(4px);
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
}
.cd-module-row:hover::before {
    opacity: 1;
    top: 15%;
    bottom: 15%;
}
html[data-theme="dark"] .cd-module-row:hover,
html:not([data-theme="light"]) .cd-module-row:hover {
    box-shadow: 0 2px 12px rgba(0,0,0,0.15);
}
.cd-module-num {
    width: 48px;
    height: 44px;
    border-radius: 12px;
    background: linear-gradient(135deg, #1C1F27, #0C0D10);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-family: var(--font-display);
    font-size: 15px;
    font-weight: 500;
    color: rgba(255,255,255,0.75);
    letter-spacing: -0.01em;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.05);
}
.cd-module-num::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 30% 60%, rgba(233,84,16,0.18), transparent 70%);
}
html[data-theme="light"] .cd-module-num {
    background: linear-gradient(135deg, #F3F4F6, #E5E7EB);
    color: var(--text-primary);
    border-color: var(--border-subtle);
}
html[data-theme="light"] .cd-module-num::after {
    background: radial-gradient(circle at 30% 60%, rgba(233,84,16,0.06), transparent 70%);
}
.cd-module-info { flex: 1; min-width: 0; }
.cd-module-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    letter-spacing: -0.01em;
}
.cd-module-meta {
    font-size: 13px;
    color: var(--text-tertiary);
    margin-top: 3px;
}
.cd-preview-tag { color: var(--success); font-weight: 600; }
.cd-preview-link {
    font-size: 11px;
    font-weight: 700;
    color: var(--success);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
    padding: 6px 12px;
    background: rgba(34,197,94,0.06);
    border: 1px solid rgba(34,197,94,0.12);
    border-radius: 8px;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    transition: all 0.2s;
}
.cd-preview-link:hover {
    background: rgba(34,197,94,0.12);
    border-color: rgba(34,197,94,0.2);
}


/* ═══════════════════════════════════════════════════════════════════
   About
   ═══════════════════════════════════════════════════════════════════ */
.cd-about-content {
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.7;
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: 20px;
    padding: 32px 36px;
}


/* ═══════════════════════════════════════════════════════════════════
   Info Cards (Requirements / Target)
   ═══════════════════════════════════════════════════════════════════ */
.cd-two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}
@media (max-width: 600px) {
    .cd-two-col { grid-template-columns: 1fr; }
}
.cd-info-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: 18px;
    padding: 24px;
}
.cd-info-card-title {
    font-size: 11px;
    font-weight: 700;
    color: var(--color-primary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.cd-info-card-title::before {
    content: '';
    width: 3px;
    height: 14px;
    background: var(--color-primary);
    border-radius: 2px;
    flex-shrink: 0;
}
.cd-info-card-body {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.65;
}


/* ═══════════════════════════════════════════════════════════════════
   Animations
   ═══════════════════════════════════════════════════════════════════ */
@keyframes fade-up {
    from { opacity: 0; transform: translateY(18px); }
    to { opacity: 1; transform: translateY(0); }
}
.animate-fade-up { animation: fade-up 0.5s cubic-bezier(0.23,1,0.32,1) forwards; }
.delay-1 { animation-delay: 0.1s; opacity: 0; }
.delay-2 { animation-delay: 0.18s; opacity: 0; }
.delay-3 { animation-delay: 0.26s; opacity: 0; }


/* ═══════════════════════════════════════════════════════════════════
   Sticky CTA Mobile
   ═══════════════════════════════════════════════════════════════════ */
.sticky-cta-mobile { display: none; }
@media (max-width: 767px) {
    .sticky-cta-mobile {
        display: flex;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        z-index: 50;
        padding: 12px 16px;
        background: var(--bg-surface);
        border-top: 1px solid var(--border-subtle);
        box-shadow: 0 -4px 20px rgba(0,0,0,0.15);
        gap: 12px;
        align-items: center;
        justify-content: center;
    }
    .sticky-cta-mobile .cta-epic {
        flex: 1;
        justify-content: center;
        padding: 14px 24px;
    }
}


/* ── Legacy compat ──────────────────────────────────────────────── */
.course-hero-bg, .course-hero-line, .course-title-giant, .course-hero,
.cd-hero, .cd-hero-cover, .cd-hero-info { display: none; }
