:root {
    /* Paleta "Deep Trust" consistente */
    --primary: #1A1F3A;
    --primary-light: #2A3654;
    --accent: #E8AA42;
    --accent-dark: #D89A2F;
    --accent-light: #F4C470;
    --secondary: #2D5F6D;
    --text-dark: #1E293B;
    --text-body: #475569;
    --text-light: #64748B;
    --bg-light: #F8F9FA;
    --bg-white: #FFFFFF;
    --border: #E5E7EB;
    
    --font-display: 'Sora', sans-serif;
    --font-body: 'DM Sans', sans-serif;
    
    --section-padding: clamp(4rem, 8vw, 8rem);
    --container-padding: clamp(1.5rem, 5vw, 2rem);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--text-body);
    line-height: 1.7;
    background: var(--bg-white);
}

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

/* Header - Mismo diseño que landing principal */
header {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    z-index: 1000;
    transition: all 0.3s ease;
}

header.scrolled {
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem var(--container-padding);
    max-width: 1280px;
    margin: 0 auto;
}

.logo {
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--primary);
    text-decoration: none;
    letter-spacing: -0.02em;
}

.logo span {
    color: var(--accent);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 2.5rem;
    list-style: none;
}

.nav-menu li a {
    color: var(--text-body);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.3s ease;
    position: relative;
}

.nav-menu li a:hover,
.nav-menu li a.active {
    color: var(--primary);
}

.nav-menu li a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width 0.3s ease;
}

.nav-menu li a:hover::after,
.nav-menu li a.active::after {
    width: 100%;
}

.cta-button {
    display: inline-block;
    padding: 0.875rem 2rem;
    background: var(--accent);
    color: var(--primary);
    font-weight: 700;
    font-size: 0.95rem;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid var(--accent);
}

.cta-button:hover {
    background: var(--accent-dark);
    border-color: var(--accent-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(232, 170, 66, 0.35);
}

/* Hero OTEC */
.hero-otec {
    margin-top: 80px;
    background: linear-gradient(135deg, var(--primary) 0%, #0F1729 100%);
    color: white;
    padding: var(--section-padding) 0;
    position: relative;
    overflow: hidden;
}

.hero-otec::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 60%;
    height: 100%;
    background: radial-gradient(circle at 80% 50%, rgba(232, 170, 66, 0.1) 0%, transparent 60%);
    pointer-events: none;
}

.hero-content h1 {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -0.03em;
}

.hero-content h1 .highlight {
    color: var(--accent);
}

.hero-content .subtitle {
    font-size: 1.35rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2.5rem;
    font-weight: 400;
    max-width: 720px;
}

.hero-badges {
    display: flex;
    gap: 2rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.badge {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 1rem 1.5rem;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.badge-icon {
    font-size: 1.5rem;
}

.badge-text {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.9);
}

/* Courses Section */
.courses-section {
    padding: var(--section-padding) 0;
    background: var(--bg-light);
}

/* Custom Development Section */
.custom-development {
    padding: var(--section-padding) 0;
    background: radial-gradient(circle at 20% 20%, rgba(232, 170, 66, 0.08), transparent 35%),
                radial-gradient(circle at 80% 10%, rgba(45, 95, 109, 0.1), transparent 30%),
                linear-gradient(120deg, #0F152B 0%, #0B1226 60%, #0A0F20 100%);
    color: white;
}

.custom-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: clamp(2rem, 4vw, 3.5rem);
    align-items: center;
}

.custom-text h2 {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    line-height: 1.2;
    margin: 1rem 0 1.25rem;
    letter-spacing: -0.02em;
}

.custom-text p {
    color: rgba(255, 255, 255, 0.82);
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 1.75rem;
}

.section-pill {
    display: inline-block;
    padding: 0.45rem 1.1rem;
    border-radius: 50px;
    background: rgba(232, 170, 66, 0.18);
    color: var(--accent-light);
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-size: 0.8rem;
}

.custom-features {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-bottom: 2rem;
}

.feature-item {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 1rem;
    align-items: start;
    padding: 1rem;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.feature-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: rgba(232, 170, 66, 0.15);
    display: grid;
    place-items: center;
    font-size: 1.25rem;
}

.feature-item h3 {
    color: white;
    font-family: var(--font-display);
    font-size: 1.05rem;
    margin-bottom: 0.25rem;
}

.feature-item p {
    margin: 0;
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.98rem;
}

.custom-card {
    background: linear-gradient(180deg, #f7f9fc 0%, #ffffff 100%);
    border: 1px solid #e5eaf3;
    border-radius: 18px;
    padding: 1.5rem;
    box-shadow: 0 25px 70px rgba(10, 17, 32, 0.25);
    color: var(--text-dark);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.25rem;
    padding: 0.75rem 1rem;
    background: linear-gradient(90deg, #4bc7a0, #2c5e73);
    border-radius: 14px;
    box-shadow: 0 12px 20px rgba(43, 124, 112, 0.25);
}

.card-pill {
    padding: 0.4rem 0.9rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.15);
    color: #f2f7ff;
    font-weight: 800;
    font-size: 0.9rem;
    letter-spacing: 0.02em;
}

.card-steps {
    display: flex;
    gap: 0.35rem;
}

.card-steps .step {
    width: 12px;
    height: 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.4);
    transition: all 0.3s ease;
}

.card-steps .step.active {
    background: #f7c35f;
    box-shadow: 0 0 0 6px rgba(255, 255, 255, 0.2);
}

.card-modules {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.module {
    background: #ffffff;
    padding: 1rem;
    border-radius: 14px;
    border: 1px solid #e6eaf4;
    box-shadow: 0 12px 25px rgba(18, 36, 71, 0.08);
}

.module-header {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.65rem;
}

.module-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    font-weight: 800;
    font-size: 0.95rem;
}

.module-title {
    color: var(--text-dark);
    font-weight: 800;
    margin: 0;
}

.module-progress {
    position: relative;
    width: 100%;
    height: 8px;
    background: #eef2fb;
    border-radius: 999px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #5ed2a8, #ffc265);
    border-radius: 999px;
}

.module-status {
    display: inline-block;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 800;
    white-space: nowrap;
}

.module-status.completed { background: rgba(30, 181, 122, 0.12); color: #1e7c57; }
.module-status.in-progress { background: rgba(255, 194, 101, 0.18); color: #c17a1d; }
.module-status.pending { background: rgba(93, 114, 158, 0.12); color: #4a5671; }

.module-icon.completed { background: rgba(30, 181, 122, 0.15); color: #1e7c57; }
.module-icon.in-progress { background: rgba(255, 194, 101, 0.22); color: #c17a1d; }
.module-icon.pending { background: #eef2fb; color: #4a5671; }

.card-footer {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    padding: 1.1rem;
    border-radius: 12px;
    background: #eef3fb;
    border: 1px solid #dfe6f3;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.stat-label {
    color: #6c748d;
    font-size: 0.85rem;
    font-weight: 700;
}

.stat-value {
    color: #1b243a;
    font-family: var(--font-display);
    font-size: 1.35rem;
    font-weight: 800;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-tag {
    display: inline-block;
    padding: 0.5rem 1.25rem;
    background: rgba(45, 95, 109, 0.1);
    color: var(--secondary);
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    border-radius: 50px;
    margin-bottom: 1.25rem;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    color: var(--text-dark);
    line-height: 1.2;
    margin-bottom: 1.25rem;
    letter-spacing: -0.02em;
}

.section-subtitle {
    font-size: 1.25rem;
    color: var(--text-light);
    max-width: 720px;
    margin: 0 auto;
    line-height: 1.7;
}

/* Course Grid */
.courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.course-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    border: 2px solid var(--border);
    transition: all 0.3s ease;
    cursor: pointer;
}

.course-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
    border-color: var(--accent);
}

.course-image {
    width: 100%;
    height: 180px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 1.5rem;
    position: relative;
}

.course-duration {
    display: inline-block;
    padding: 0.35rem 0.875rem;
    background: rgba(232, 170, 66, 0.3);
    color: var(--accent-light);
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: 50px;
    margin-bottom: 1rem;
}

.course-title {
    font-family: var(--font-display);
    font-size: 1.25rem;
    color: white;
    margin: 0;
    font-weight: 700;
    line-height: 1.3;
    text-align: center;
}

.course-content {
    padding: 1.5rem;
}

.course-intro {
    color: var(--text-body);
    line-height: 1.6;
    margin-bottom: 1.25rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: 0.95rem;
}

.course-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1.25rem;
    border-top: 1px solid var(--border);
}

.course-dates {
    font-size: 0.85rem;
    color: var(--text-light);
}

.course-link {
    color: var(--accent-dark);
    font-weight: 700;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: gap 0.3s;
    font-size: 0.9rem;
}

.course-link:hover {
    gap: 0.75rem;
}

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

.page-btn {
    padding: 0.75rem 1.25rem;
    background: white;
    border: 2px solid var(--border);
    border-radius: 8px;
    color: var(--text-body);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.page-btn:hover {
    border-color: var(--accent);
    color: var(--primary);
}

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

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

/* Empty State */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
}

.empty-state-icon {
    font-size: 4rem;
    color: var(--text-light);
    margin-bottom: 1rem;
}

.empty-state h3 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.empty-state p {
    color: var(--text-light);
}

/* Admin Button */
.admin-btn {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    padding: 1rem 1.5rem;
    background: var(--secondary);
    color: white;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    box-shadow: 0 8px 20px rgba(45, 95, 109, 0.3);
    transition: all 0.3s;
    z-index: 100;
}

.admin-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(45, 95, 109, 0.4);
}

/* Footer */
footer {
    background: var(--primary);
    color: white;
    padding: 3rem 0 2rem;
}

.footer-content {
    text-align: center;
}

.footer-content p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 1rem;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 1.5rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s;
}

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

/* Responsive */
@media (max-width: 968px) {
    .courses-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
        gap: 1.5rem;
    }
    
    .hero-badges {
        flex-direction: column;
        gap: 1rem;
    }
}

@media (max-width: 640px) {
    .courses-grid {
        grid-template-columns: 1fr;
    }
    
    .admin-btn {
        bottom: 1rem;
        right: 1rem;
    }
}
