/* Breadcrumbs */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 2rem;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.breadcrumb a {
    color: var(--text-muted);
    text-decoration: none;
    transition: var(--transition);
}

.breadcrumb a:hover {
    color: var(--primary);
}

.breadcrumb .separator {
    opacity: 0.5;
}

.breadcrumb .current {
    color: var(--text-main);
    font-weight: 600;
}

/* Cursos Satélite Core Design System */
:root {
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --primary-light: #eef2ff;
    --secondary: #06b6d4;
    --accent: #f43f5e;
    --bg-main: #f8fafc;
    --bg-card: #ffffff;
    --text-main: #1e293b;
    --text-muted: #64748b;
    --border: #e2e8f0;
    --radius: 16px;
    --radius-sm: 8px;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --container-max: 1200px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset & Global */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--bg-main);
    color: var(--text-main);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main {
    flex: 1;
}

img,
svg {
    display: block;
    max-width: 100%;
}

button,
input,
select {
    font: inherit;
}

.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 1.5rem;
}

@media (min-width: 1500px) {
    .container {
        max-width: 1400px;
    }
}

/* Header & Nav */
.site-header {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 1000;
    height: 80px;
    display: flex;
    align-items: center;
    transition: var(--transition);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    gap: 2rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-main);
    text-decoration: none;
    letter-spacing: -0.025em;
}

.logo svg {
    color: var(--primary);
}

.search-bar {
    flex: 1;
    max-width: 480px;
    position: relative;
}

.search-input {
    width: 100%;
    height: 48px;
    padding-left: 3rem;
    padding-right: 1rem;
    background: #f1f5f9;
    border: 1px solid transparent;
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    transition: var(--transition);
}

.search-input:focus {
    background: white;
    border-color: var(--primary);
    outline: none;
    box-shadow: 0 0 0 4px var(--primary-light);
}

.search-icon {
    position: absolute;
    left: 1.1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
}

.nav-desktop {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: var(--text-main);
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition);
    padding: 0.6rem 1.25rem;
    border-radius: var(--radius-sm);
    background: #f8fafc;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.nav-link:hover {
    color: var(--primary);
    background: #f1f5f9;
}

.nav-link.active {
    background: var(--primary-dark);
    color: white !important;
    font-weight: 600;
    cursor: default;
    pointer-events: none;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--primary);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-sm);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

/* Hero Section */
.hero {
    padding: 1.5rem 0 0 0;
    text-align: center;
}

.hero-title {
    font-size: clamp(2.5rem, 8vw, 4rem);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 0.5rem;
    color: var(--text-main);
    letter-spacing: -0.05em;
}

.hero-title span {
    color: var(--primary);
}

.hero-slogan {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    margin-top: -0.5rem;
    margin-bottom: 1rem;
}

/* Home fact strip */
.home-fact-area {
    margin-top: 2rem;
    padding: 0;
    background: var(--primary-dark);
    color: white;
}

.home-fact-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2rem;
}

.home-fact-card {
    display: flex;
    align-items: center;
    gap: 1.35rem;
    min-height: 96px;
}

.home-fact-icon {
    display: block;
    flex: 0 0 52px;
    width: 52px;
    height: 52px;
    margin-top: 0.1rem;
    color: white;
}

.icon-svg {
    display: inline-block;
    background-color: currentColor;
    mask-repeat: no-repeat;
    -webkit-mask-repeat: no-repeat;
    mask-position: center;
    -webkit-mask-position: center;
    mask-size: contain;
    -webkit-mask-size: contain;
}

.icon-bullseye {
    mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 496 512'><path d='M248 8C111 8 0 119 0 256s111 248 248 248 248-111 248-248S385 8 248 8zm0 448c-110.3 0-200-89.7-200-200S137.7 56 248 56s200 89.7 200 200-89.7 200-200 200zm0-352c-84 0-152 68-152 152s68 152 152 152 152-68 152-152S332 104 248 104zm0 256c-57.3 0-104-46.7-104-104s46.7-104 104-104 104 46.7 104 104-46.7 104-104 104zm0-160c-30.9 0-56 25.1-56 56s25.1 56 56 56 56-25.1 56-56-25.1-56-56-56z'/></svg>");
    -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 496 512'><path d='M248 8C111 8 0 119 0 256s111 248 248 248 248-111 248-248S385 8 248 8zm0 448c-110.3 0-200-89.7-200-200S137.7 56 248 56s200 89.7 200 200-89.7 200-200 200zm0-352c-84 0-152 68-152 152s68 152 152 152 152-68 152-152S332 104 248 104zm0 256c-57.3 0-104-46.7-104-104s46.7-104 104-104 104 46.7 104 104-46.7 104-104 104zm0-160c-30.9 0-56 25.1-56 56s25.1 56 56 56 56-25.1 56-56-25.1-56-56-56z'/></svg>");
}

.icon-check {
    mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512'><path d='M173.898 439.404l-166.4-166.4c-9.373-9.373-9.373-24.569 0-33.941l33.941-33.941c9.373-9.373 24.569-9.373 33.941 0L192 312.69 436.62 68.069c9.373-9.373 24.569-9.373 33.941 0l33.941 33.941c9.373 9.373 9.373 24.569 0 33.941L207.84 439.404c-9.372 9.373-24.568 9.373-33.941 0z'/></svg>");
    -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512'><path d='M173.898 439.404l-166.4-166.4c-9.373-9.373-9.373-24.569 0-33.941l33.941-33.941c9.373-9.373 24.569-9.373 33.941 0L192 312.69 436.62 68.069c9.373-9.373 24.569-9.373 33.941 0l33.941 33.941c9.373 9.373 9.373 24.569 0 33.941L207.84 439.404c-9.372 9.373-24.568 9.373-33.941 0z'/></svg>");
}

.icon-clock {
    mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512'><path d='M256 8C119.043 8 8 119.083 8 256c0 136.997 111.043 248 248 248s248-111.003 248-248C504 119.083 392.957 8 256 8zm92.49 313l-20.89 25.89c-4.69 5.81-13.2 6.74-19.02 2.05l-78.4-63.35A15.99 15.99 0 0 1 224 273V116c0-8.84 7.16-16 16-16h32c8.84 0 16 7.16 16 16v133.41l58.44 47.2c5.82 4.7 6.74 13.22 2.05 19.03z'/></svg>");
    -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512'><path d='M256 8C119.043 8 8 119.083 8 256c0 136.997 111.043 248 248 248s248-111.003 248-248C504 119.083 392.957 8 256 8zm92.49 313l-20.89 25.89c-4.69 5.81-13.2 6.74-19.02 2.05l-78.4-63.35A15.99 15.99 0 0 1 224 273V116c0-8.84 7.16-16 16-16h32c8.84 0 16 7.16 16 16v133.41l58.44 47.2c5.82 4.7 6.74 13.22 2.05 19.03z'/></svg>");
}

.home-fact-icon.icon-svg {
    display: block;
    width: 52px;
    height: 52px;
}

.home-fact-copy h2 {
    margin: 0 0 0.35rem;
    font-size: 1.05rem;
    line-height: 1.25;
    letter-spacing: -0.02em;
    color: white;
}

.home-fact-copy p {
    margin: 0;
    color: rgb(255 255 255 / 0.82);
    font-size: 0.95rem;
    line-height: 1.5;
}

@media (max-width: 980px) {
    .home-fact-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

@media (max-width: 640px) {
    .home-fact-area {
        margin-top: 1.5rem;
        padding: 0;
    }

    .home-fact-card {
        min-height: auto;
    }

    .home-fact-icon {
        flex-basis: 46px;
        width: 46px;
        height: 46px;
    }

    .home-fact-icon svg {
        width: 46px;
        height: 46px;
    }
}

/* Grid Layout */
.main-wrapper {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    padding-bottom: 5rem;
}

@media (min-width: 1024px) {
    .main-wrapper {
        display: block;
    }
}

/* Course Cards */
.course-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 1.5rem;
}

@media (min-width: 640px) {
    .course-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .course-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Course List View (Categorias) - Estilo Profesional */
.course-grid-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.course-card-list {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 0;
    overflow: hidden;
    background: white;
    border-radius: 4px;
    border: 1px solid #e2e8f0;
    transition: all 0.2s ease;
    position: relative;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.course-card-list:hover {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    border-color: #cbd5e1;
}

.course-card-list .course-thumb {
    height: 100%;
    min-height: 120px;
}

.course-card-list .course-content {
    padding: 1.5rem 2rem;
    display: flex;
    flex-direction: column;
    position: relative;
}

.course-card-list .course-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.5rem;
}

.course-card-list .course-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0;
    line-height: 1.3;
}

.course-card-list .top-badge {
    background: #fbbf24;
    color: #451a03;
    padding: 4px 10px;
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    border-top-right-radius: 4px;
    border-bottom-left-radius: 4px;
    line-height: 1.4;
}

.course-meta {
    display: flex;
    gap: 1.25rem;
    margin-bottom: 1rem;
    color: #64748b;
    font-size: 0.85rem;
}

.course-meta-item {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.course-description {
    color: #475569;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.course-rating-block {
    position: absolute;
    bottom: 1.5rem;
    right: 2rem;
    text-align: right;
}

.stars {
    color: #fbbf24;
    display: flex;
    gap: 2px;
    justify-content: flex-end;
    margin-bottom: 0.25rem;
}

.rating-text {
    font-size: 0.8rem;
    color: #475569;
}

@media (max-width: 900px) {
    .course-card-list {
        grid-template-columns: 1fr;
    }

    .course-card-list .course-thumb {
        height: 200px;
    }

    .course-rating-block {
        position: static;
        text-align: left;
        margin-top: 1rem;
    }

    .stars {
        justify-content: flex-start;
    }
}

.course-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    overflow: hidden;
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.course-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-light);
}

.course-thumb {
    width: 100%;
    aspect-ratio: 16/10;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    font-weight: 800;
}

.course-grid .course-thumb {
    aspect-ratio: auto;
    height: auto;
    overflow: visible;
    background: none;
    align-items: stretch;
}

.course-grid .course-thumb img {
    width: 100%;
    height: auto !important;
    object-fit: contain !important;
}

.course-content {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.course-tag {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--primary);
    margin-bottom: 0.75rem;
}

.course-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-main);
    line-height: 1.3;
}



/* Footer */
.site-footer {
    background: white;
    border-top: 1px solid var(--border);
    padding: 3rem 0;
    margin-top: 2rem;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

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

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

/* Accessibility & Utils */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin-top: 4rem;
}

.page-btn {
    min-width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border);
    background: white;
    border-radius: var(--radius-sm);
    color: var(--text-main);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    cursor: pointer;
}

.page-btn:hover:not(.disabled) {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--primary-light);
}

.page-btn.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.page-btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Laravel pagination */
nav.pagination {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    margin-top: 2rem;
}

.pagination-info {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.pagination-nav {
    display: flex;
    gap: 0.35rem;
    flex-wrap: wrap;
    justify-content: center;
}

.pagination-nav a,
.pagination-nav span {
    min-width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border);
    background: white;
    border-radius: var(--radius-sm);
    color: var(--text-main);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--transition);
}

.pagination-nav a:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--primary-light);
}

.pagination-nav span[aria-current="page"] span {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    border: none;
}

.category-chip {
    padding: 0.5rem 1rem;
    background: white;
    border: 1px solid var(--border);
    border-radius: 99px;
    font-size: 0.9rem;
    color: var(--text-muted);
    text-decoration: none;
    transition: var(--transition);
    white-space: nowrap;
}

.category-chip:hover,
.category-chip.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.filter-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.mobile-nav {
    display: none;
    position: fixed;
    top: 80px;
    left: 0;
    width: 100%;
    height: calc(100vh - 80px);
    background: white;
    z-index: 999;
    padding: 2rem;
    overflow-y: auto;
}

.mobile-nav.is-active {
    display: block;
}

.mobile-nav-content {
    padding: 2rem;
}

.mobile-search-wrapper {
    margin-bottom: 2rem;
}

.mobile-search-input {
    display: block;
    width: 100%;
}

.mobile-nav-links {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

@media (max-width: 1023px) {
    .nav-desktop {
        display: none;
    }

    .search-bar {
        display: none;
    }

    .mobile-menu-btn {
        min-width: 44px;
        min-height: 44px;
        display: flex !important;
        align-items: center;
        justify-content: center;
        background: none;
        border: none;
        cursor: pointer;
    }
}

@media (min-width: 1024px) {
    .mobile-menu-btn {
        display: none !important;
    }

    .mobile-nav {
        display: none !important;
    }
}

/* Nuevo Widget de Filtrado (Sidebar) */
.filter-widget {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 2rem;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.filter-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.25rem;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
}

.filter-header h2 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #334155;
    margin: 0;
}

.filter-header svg {
    color: #64748b;
}

.filter-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.filter-item {
    display: flex;
    align-items: center;
    padding: 0.7rem 1.25rem;
    text-decoration: none;
    color: #0369a1;
    /* Azul de la referencia */
    transition: all 0.2s ease;
    font-size: 0.95rem;
}

.filter-item:hover {
    background: #f1f5f9;
}

.filter-item .indicator {
    width: 20px;
    height: 20px;
    border: 1px solid #cbd5e1;
    border-radius: 50%;
    margin-right: 0.85rem;
    flex-shrink: 0;
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.filter-item.active {
    font-weight: 600;
}

.filter-item.active .indicator {
    border-color: var(--primary);
}

.filter-item.active .indicator::after {
    content: '';
    width: 12px;
    height: 12px;
    background: var(--primary);
    border-radius: 50%;
}

.filter-item .cat-label {
    flex: 1;
}

.filter-item .count {
    font-size: 0.75rem;
    color: #475569;
    background: #f1f5f9;
    padding: 2px 8px;
    border-radius: 99px;
    margin-left: 0.5rem;
}

.filter-item.active .count {
    background: var(--primary-light);
    color: var(--primary);
}

.filter-item.active .cat-label {
    color: var(--primary);
}

/* Course Detail Premium Styles */
.course-detail-page {
    position: relative;
    background-color: var(--bg-main);
}

@media (max-width: 1024px) {
    .course-detail-page {
        background: #f8fafc;
    }
}

.page-wrapper .container {
    max-width: 1180px;
}

.course-hero-v2 {
    background: #111827;
    /* El fondo oscuro está en el Hero */
    color: white;
    padding: 3rem 0;
    position: relative;
}

/* Course Hero Content Refactor */
.hero-text-area .container {
    padding-top: 2rem;
}

.hero-text-area h1 {
    color: #ffffff;
    font-size: clamp(1.75rem, 4vw, 2.25rem);
    font-weight: 800;
    line-height: 1.2;
    margin: 0 0 1rem 0;
}

.hero-text-area .subtitle {
    color: #f1f5f9;
    font-size: 1.35rem;
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

.hero-text-area .meta {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.hero-text-area .meta .stars {
    color: #fbbf24;
}

.hero-text-area .meta .updated {
    color: #e2e8f0;
    font-size: 0.9rem;
}

.hero-text-area .breadcrumb {
    margin-bottom: 3rem;
    color: #e2e8f0;
}

.hero-text-area .breadcrumb a {
    color: #f1f5f9;
    font-size: 0.85rem;
}

.hero-text-area .breadcrumb .separator {
    color: #cbd5e1;
    font-size: 0.85rem;
    margin: 0 0.5rem;
}

.hero-text-area .breadcrumb .current {
    color: #fff;
    font-size: 0.85rem;
}

/* Course Objectives Refactor */
.course-objectives {
    margin-top: 1.5rem;
}

.course-objectives h2 {
    font-size: 1.6rem;
    color: #1e293b;
    margin-bottom: 1.25rem;
}

.course-objectives>p {
    color: #475569;
    line-height: 1.6;
    margin-bottom: 2rem;
}

.course-objectives>p:last-of-type {
    margin-bottom: 0;
}

.course-objectives .grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem 3rem;
}

.course-objectives .item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.course-objectives .item svg {
    color: #94a3b8;
    flex-shrink: 0;
    margin-top: 4px;
}

.course-objectives .item p {
    color: #475569;
    font-size: 0.95rem;
    line-height: 1.5;
    margin: 0;
}

.course-objectives ul {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1rem 3rem;
    list-style: none;
    padding: 0;
    margin: 0;
}

.course-objectives ul li {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
    color: #475569;
    font-size: 0.95rem;
    line-height: 1.5;
}

.course-objectives ul li::before {
    content: "";
    display: inline-block;
    width: 1.1rem;
    height: 1.1rem;
    flex-shrink: 0;
    margin-top: 2px;
    background-color: #94a3b8;
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512'%3E%3Cpath d='M173.898 439.404l-166.4-166.4c-9.997-9.997-9.997-26.206 0-36.204l36.203-36.204c9.997-9.998 26.207-9.998 36.204 0L192 312.69 432.095 72.596c9.997-9.997 26.207-9.997 36.204 0l36.203 36.204c9.997 9.997 9.997 26.206 0 36.204l-294.4 294.401c-9.998 9.997-26.207 9.997-36.204-.001z'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512'%3E%3Cpath d='M173.898 439.404l-166.4-166.4c-9.997-9.997-9.997-26.206 0-36.204l36.203-36.204c9.997-9.998 26.207-9.998 36.204 0L192 312.69 432.095 72.596c9.997-9.997 26.207-9.997 36.204 0l36.203 36.204c9.997 9.997 9.997 26.206 0 36.204l-294.4 294.401c-9.998 9.997-26.207 9.997-36.204-.001z'/%3E%3C/svg%3E");
    -webkit-mask-size: contain;
    mask-size: contain;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
}

/* Accordion Tweaks */
.accordion-content p {
    color: #334155;
    padding-left: 3rem;
}

/* Footer Flex Refactor */
.site-footer .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
}

.site-footer .logo {
    margin-bottom: 0;
    color: var(--text-muted);
}

.site-footer .logo svg {
    color: var(--text-muted);
}

.site-footer .footer-links {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    margin-bottom: 0;
}

.course-detail-page .site-header {
    background: #ffffff !important;
}

.sticky-course-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: #374151;
    color: white;
    padding: 0.85rem 0;
    z-index: 1010;
    transform: translateY(-101%);
    transition: transform 0.3s ease;
}

.sticky-course-header.is-visible {
    transform: translateY(0);
}

.sticky-header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.sticky-header-info h2 {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0;
    color: white;
}

.sticky-header-actions {
    display: none;
    /* Oculto en desktop */
    align-items: center;
}

.sticky-meta {
    display: flex;
    gap: 1rem;
    align-items: center;
    margin-top: 2px;
}

.sticky-stars {
    color: #fbbf24;
    font-size: 0.9rem;
}

.sticky-updated {
    color: white;
    opacity: 0.8;
    font-size: 0.8rem;
}

@media (max-width: 1024px) {
    .sticky-meta {
        display: none;
        /* Oculto en móvil/tablet */
    }

    .sticky-header-actions {
        display: flex;
        /* Visible en móvil/tablet */
    }
}

.enroll-button {
    background: var(--primary);
    color: white;
    border: none;
    padding: 0.75rem 2rem;
    border-radius: 4px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.2s ease;
    font-family: inherit;
}

.enroll-button:hover {
    background: var(--primary-dark);
}

/* Sidebar Card Refined Design */
.enroll-card-v2 {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    /* Sombra mucho más sutil y pegada */
    overflow: hidden;
    position: sticky;
    top: 100px;
    z-index: 100;
    width: 100%;
}

.enroll-card-v2.is-floating {
    position: fixed;
    margin-top: -80px;
    z-index: 9999;
    width: auto;
}

.enroll-card-v2.is-floating .card-img {
    display: none;
}

.enroll-card-v2 .card-img {
    width: 100%;
    height: auto;
    display: block;
}

.enroll-card-v2 .card-body {
    padding: 1.5rem 1.25rem;
    /* Padding reducido */
}

.card-promo-text {
    text-align: center;
    font-size: 0.95rem;
    /* Más pequeño */
    color: #64748b;
    /* Gris más suave */
    margin-bottom: 1.25rem;
    line-height: 1.4;
    font-family: inherit;
}

.card-promo-text strong {
    color: #1e293b;
    font-weight: 700;
    display: block;
    margin-top: 0.25rem;
    font-size: 1.1rem;
    /* Más comedido */
}

.btn-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    background: var(--primary-light);
    color: var(--primary-dark);
    border: 1px solid var(--primary-dark);
    text-align: center;
    padding: 0.9rem;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1rem;
    transition: background 0.2s ease;
    cursor: pointer;
    margin-bottom: 1.5rem;
    font-family: inherit;
    text-transform: none;
}

.btn-cta:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary-dark);
}

.features-list {
    list-style: none;
    padding: 0;
    margin: 0 0 1.75rem 0;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.85rem;
    /* Fuentes compactas */
    color: #475569;
    margin-bottom: 0.25rem;
}

.feature-icon {
    color: #64748b;
    flex-shrink: 0;
    width: 16px;
    height: 16px;
}

.download-pdf {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    color: var(--primary-dark);
    /* Verde oscuro del enlace PDF */
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    /* Proporcionalmente más pequeño */
    margin-top: 0.5rem;
    transition: opacity 0.2s;
}

.download-pdf:hover {
    opacity: 0.8;
}

.download-pdf svg {
    width: 24px;
    height: 24px;
}


/* Tutor section */
.tutor-section {
    margin-top: 2rem;
    margin-bottom: 2rem;
}

.tutor-rating-box {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
    padding: 1.5rem;
    text-align: center;
    width: 35%;
}

.tutor-rating-box .rating-number {
    font-size: 4rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
}

.tutor-rating-box .rating-label {
    font-size: 0.8rem;
    color: #64748b;
    line-height: 1.3;
}

.tutor-info {
    flex: 1;
    min-width: 200px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.tutor-info img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #e2e8f0;
    margin-bottom: 0.75rem;
}

.tutor-info .tutor-name {
    font-size: 1.6rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 0.25rem;
    text-align: center;
}

.tutor-info .tutor-role {
    font-size: 0.9rem;
    color: var(--primary);
    margin-bottom: 0.75rem;
    text-align: center;
}

.tutor-info .tutor-bio {
    font-size: 0.9rem;
    color: #475569;
    line-height: 1.6;
}

.tutor-inner {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
    flex-wrap: wrap;
}

/* Related courses */
.related-courses-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.related-course-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border);
    gap: 1rem;
}

.related-course-item a {
    color: #1e293b;
    text-decoration: none;
    font-weight: 600;
    flex: 1;
}

.related-course-item .course-hours {
    color: var(--text-muted);
    font-size: 0.9rem;
    white-space: nowrap;
}

/* Subcontenidos temario */
.subcontenidos {
    margin-top: 10px;
    padding-left: 15px;
}

/* Content Blocks */
.objectives-box {
    background: #fdfdfd;
    border: 1px solid #e5e7eb;
    padding: 2rem;
    margin-bottom: 2rem;
    border-radius: 4px;
}

.objectives-box h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 1rem;
}

.info-banner-green, .info-banner {
    background: var(--primary-light);
    border: 1px solid var(--primary-dark);
    color: var(--primary-dark);
    padding: 1rem;
    text-align: center;
    font-weight: 700;
    border-radius: 4px;
    margin-bottom: 2.5rem;
    font-size: 1rem;
}

.main-content-layout {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 4rem;
    position: relative;
    /* Aseguramos que el h1 y la tarjeta empiecen aquí */
    padding-top: 1rem;
}

/* Curriculum/Temario Accordion Refined */
.curriculum-section {
    margin-top: 4rem;
}

.curriculum-title-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.curriculum-title-bar h2 {
    font-size: 1.75rem;
    font-weight: 800;
    color: #1e293b;
}

.curriculum-meta-info {
    display: flex;
    gap: 2rem;
    color: #475569;
    font-size: 0.95rem;
}

.accordion {
    border: 1px solid #e2e8f0;
    border-radius: 4px;
    overflow: hidden;
}

.accordion-item {
    border-bottom: 1px solid #e2e8f0;
}

.accordion-item:last-child {
    border-bottom: none;
}

.accordion-header {
    width: 100%;
    padding: 1.25rem 1.5rem;
    background: #f8fafc;
    display: flex;
    align-items: center;
    cursor: pointer;
    transition: background 0.2s;
    user-select: none;
}

.accordion-header:hover {
    background: #f1f5f9;
}

.accordion-icon {
    font-family: monospace;
    font-weight: 800;
    font-size: 1.2rem;
    color: #0369a1;
    /* Azul de la imagen */
    margin-right: 1rem;
    width: 20px;
}

.module-badge {
    background: var(--secondary);
    color: white;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
    margin-right: 0.75rem;
}

.module-title {
    font-weight: 700;
    color: #475569;
    flex: 1;
}

.units-count {
    font-size: 0.9rem;
    color: #64748b;
}

.accordion-content {
    display: none;
    padding: 2rem 3rem;
    background: #ffffff;
    border-top: 1px solid #e2e8f0;
}

.accordion-item.active .accordion-content {
    display: block;
}

.accordion-item.active .accordion-header {
    background: #f8fafc;
}

/* Lista anidada del temario */
.topic-list {
    list-style: none;
    padding: 0;
}

.topic-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.topic-play-icon {
    width: 16px;
    height: 16px;
    color: #cbd5e1;
    margin-top: 4px;
}

.topic-title {
    color: #64748b;
    font-size: 1rem;
    line-height: 1.5;
}

.subtopic-list {
    list-style: none;
    padding-left: 2rem;
    margin-top: 1rem;
}

.subtopic-item {
    color: #475569;
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
    display: flex;
    gap: 0.5rem;
}

@media (max-width: 1024px) {
    .main-content-layout {
        grid-template-columns: 1fr;
    }
}

/* Why Section Styles */
.why-section {
    margin-bottom: 4rem;
    display: flow-root;
    /* Clearfix moderno */
}

.why-section h2 {
    font-size: 1.75rem;
    font-weight: 800;
    color: #1e293b;
    margin-bottom: 1.5rem;
    margin-top: 0;
}

.why-section .image-col {
    float: right;
    width: 300px;
    margin-left: 2.5rem;
    margin-bottom: 1rem;
}

.why-section img {
    width: 100%;
    border-radius: 4px;
    border: 1px solid #e2e8f0;
    padding: 4px;
    background: white;
}

.why-content {
    display: block;
}

.why-content p {
    color: #475569;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.why-content p:last-child {
    margin-bottom: 0;
}

.why-content ul, .why-content ol {
    color: #475569;
    line-height: 1.7;
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

.why-content ul li, .why-content ol li {
    margin-bottom: 0.4rem;
}

@media (max-width: 768px) {
    .why-section .image-col {
        float: none;
        width: 100%;
        max-width: 400px;
        margin: 0 auto 1.5rem auto;
    }
}

@media (max-width: 1024px) {
    .enroll-card-v2 {
        margin-top: 2rem;
        position: static;
        max-width: 350px;
        margin-left: auto;
        margin-right: auto;
    }
}
