/* Hero */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 40%, #0f3460 100%);
    color: #fff;
    padding: 40px 20px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="2" fill="rgba(255,255,255,0.03)"/></svg>') repeat;
    background-size: 30px 30px;
}

.hero-content { position: relative; max-width: 800px; }

.cross-icon {
    font-size: 60px;
    margin-bottom: 20px;
    display: block;
    color: #c9a84c;
}

.hero h1 {
    font-size: 2.8rem;
    margin-bottom: 10px;
    font-weight: 700;
    letter-spacing: 1px;
}

.hero .subtitle {
    font-size: 1.6rem;
    margin-bottom: 30px;
    color: #c9a84c;
    font-weight: 500;
}

.hero .description {
    font-size: 1.15rem;
    max-width: 600px;
    margin: 0 auto 40px;
    opacity: 0.9;
    line-height: 1.8;
}

.cta-btn {
    display: inline-block;
    padding: 14px 40px;
    background: #c9a84c;
    color: #1a1a2e;
    text-decoration: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 700;
    transition: transform 0.3s, box-shadow 0.3s;
}

.cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(201, 168, 76, 0.4);
}

/* PWA Install Button */
.pwa-install-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 20px;
    padding: 12px 28px;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(12px);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    animation: pwa-fade-in 0.5s ease-out;
}

.pwa-install-btn:hover {
    background: rgba(201, 168, 76, 0.25);
    border-color: #c9a84c;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(201, 168, 76, 0.2);
}

.pwa-install-icon {
    font-size: 1.2rem;
}

@keyframes pwa-fade-in {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Sections */
section { padding: 80px 20px; }
.container { max-width: 1000px; margin: 0 auto; }

.section-title {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 50px;
    color: #1a1a2e;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: #c9a84c;
    margin: 15px auto 0;
}

/* About */
.about { background: #f8f6f0; }

.about-text {
    font-size: 1.1rem;
    text-align: center;
    max-width: 750px;
    margin: 0 auto;
    color: #444;
    line-height: 1.9;
}

/* Features */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.feature-card {
    background: #fff;
    border-radius: 12px;
    padding: 35px 25px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s;
}

.feature-card:hover { transform: translateY(-5px); }
.feature-icon { font-size: 40px; margin-bottom: 15px; display: block; }
.feature-card h3 { font-size: 1.25rem; margin-bottom: 12px; color: #1a1a2e; }
.feature-card p { color: #666; font-size: 0.95rem; }

/* Enrollment / Convocatoria */
.enrollment-section {
    background: linear-gradient(135deg, #f0fdf4 0%, #ecfdf5 100%);
}

.enrollment-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.enrollment-card {
    background: white;
    border-radius: 16px;
    padding: 30px 25px;
    text-align: center;
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
    border: 2px solid #d1fae5;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.enrollment-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(5,150,105,0.15);
    border-color: #059669;
}

.enrollment-card-icon {
    font-size: 40px;
    margin-bottom: 12px;
}

.enrollment-card h3 {
    font-size: 1.1rem;
    color: #1a1a2e;
    margin: 0 0 8px;
}

.enrollment-card-group {
    font-size: 1.15rem;
    font-weight: 700;
    color: #059669;
    margin-bottom: 8px;
}

.enrollment-card-dates {
    font-size: 0.9rem;
    color: #6b7280;
    margin-bottom: 20px;
}

.enrollment-apply-btn {
    display: inline-block;
    padding: 12px 32px;
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    color: white;
    text-decoration: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 700;
    transition: all 0.3s;
    box-shadow: 0 4px 12px rgba(5,150,105,0.3);
}

.enrollment-apply-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(5,150,105,0.4);
}

/* Location */
.location { background: #1a1a2e; color: #fff; }
.location .section-title { color: #fff; }

.location-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.location-info { font-size: 1.05rem; line-height: 2; }

.location-info .address-line {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 12px;
}

.location-info .icon { flex-shrink: 0; width: 24px; text-align: center; }

.map-container {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.map-container iframe { width: 100%; height: 350px; border: 0; }

/* Footer */
.site-footer {
    background: #111;
    color: #999;
    text-align: center;
    padding: 30px 20px;
    font-size: 0.9rem;
}

.site-footer a { color: #c9a84c; text-decoration: none; }

/* ─── Role Dashboard Sections ─── */

.dashboard-section {
    padding: 60px 20px;
    background: #f8f6f0;
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
}

.dashboard-title {
    font-size: 1.8rem;
    font-weight: 800;
    color: #1a1a2e;
    margin: 0 0 4px;
}

.dashboard-subtitle {
    color: #6b7280;
    font-size: 14px;
    margin: 0;
}

.dashboard-view-all {
    color: #c9a84c;
    font-weight: 700;
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.2s;
    white-space: nowrap;
}

.dashboard-view-all:hover {
    color: #b8963f;
}

.dashboard-empty {
    text-align: center;
    padding: 40px 20px;
    color: #6b7280;
    font-size: 15px;
}

.dashboard-empty a {
    color: #c9a84c;
    font-weight: 600;
}

/* ─── Superadmin Quick Actions ─── */

.dashboard-superadmin {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    padding: 50px 20px;
}

.dashboard-superadmin .dashboard-title {
    color: #c9a84c;
}

.quick-actions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 16px;
}

.quick-action-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 28px 20px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    text-decoration: none;
    color: rgba(255, 255, 255, 0.8);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.quick-action-card:hover {
    background: rgba(201, 168, 76, 0.15);
    border-color: rgba(201, 168, 76, 0.4);
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    color: #fff;
}

.qa-icon {
    font-size: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    background: rgba(201, 168, 76, 0.1);
    border-radius: 50%;
}

.online-dot-lg {
    width: 16px;
    height: 16px;
    background: #22c55e;
    border-radius: 50%;
    display: inline-block;
    animation: nav-pulse 2s infinite;
}

.qa-label {
    font-size: 0.9rem;
    font-weight: 700;
    text-align: center;
}

/* ─── Student Course Dashboard Cards ─── */

.dashboard-student {
    background: linear-gradient(135deg, #f0fdf4 0%, #ecfdf5 100%);
}

.dashboard-courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.dashboard-course-card {
    background: white;
    border-radius: 16px;
    padding: 24px;
    border: 2px solid #e5e7eb;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
    text-decoration: none;
    color: inherit;
    display: block;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.dashboard-course-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    border-color: #c9a84c;
}

.dc-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.dc-icon { font-size: 28px; }

.dc-badge {
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: #d1fae5;
    color: #065f46;
}

.dc-name {
    font-size: 1.1rem;
    font-weight: 800;
    color: #1a1a2e;
    margin: 0 0 8px;
    line-height: 1.3;
}

.dc-meta {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 0.85rem;
    color: #6b7280;
    margin-bottom: 12px;
}

.dc-progress-label {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    font-weight: 600;
    color: #6b7280;
    margin-bottom: 4px;
}

.dc-progress-bar {
    width: 100%;
    height: 6px;
    background: #e5e7eb;
    border-radius: 3px;
    overflow: hidden;
}

.dc-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #c9a84c, #059669);
    border-radius: 3px;
    transition: width 0.5s ease;
}

/* ─── Professor Topics Dashboard Cards ─── */

.dashboard-professor {
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
}

.dashboard-topics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.dashboard-topic-card {
    background: white;
    border-radius: 16px;
    padding: 24px;
    border: 2px solid #e5e7eb;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
    text-decoration: none;
    color: inherit;
    display: block;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.dashboard-topic-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    border-color: #c9a84c;
}

.dt-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.dt-icon { font-size: 28px; }

.dt-badge {
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.dt-status-draft { background: #fef3c7; color: #92400e; }
.dt-status-published { background: #d1fae5; color: #065f46; }
.dt-status-archived { background: #e5e7eb; color: #6b7280; }

.dt-name {
    font-size: 1.1rem;
    font-weight: 800;
    color: #1a1a2e;
    margin: 0 0 8px;
    line-height: 1.3;
}

.dt-desc {
    color: #6b7280;
    font-size: 0.85rem;
    margin: 0 0 12px;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.dt-stats {
    display: flex;
    gap: 16px;
    padding-top: 12px;
    border-top: 1px solid #e5e7eb;
    font-size: 0.8rem;
    color: #6b7280;
    font-weight: 600;
}

/* ─── Responsive ─── */

@media (max-width: 768px) {
    .hero h1 { font-size: 2rem; }
    .hero .subtitle { font-size: 1.2rem; }
    .location-content { grid-template-columns: 1fr; }

    .dashboard-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .dashboard-courses-grid,
    .dashboard-topics-grid {
        grid-template-columns: 1fr;
    }

    .quick-actions-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .dashboard-title {
        font-size: 1.4rem;
    }
}
