@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Outfit:wght@400;500;600;700;800&display=swap');

/* -------------------------------------------------------------
   CORE DESIGN SYSTEM & VARIABLES
   ------------------------------------------------------------- */
:root {
    --bg-darker: #090d16;
    --bg-dark: #0f172a;
    --bg-card: rgba(30, 41, 59, 0.4);
    --border-color: rgba(255, 255, 255, 0.08);
    --border-glow: rgba(99, 102, 241, 0.2);
    
    /* Harmonious Gradients */
    --accent-indigo: #6366f1;
    --accent-purple: #8b5cf6;
    --accent-pink: #ec4899;
    --gradient-primary: linear-gradient(135deg, var(--accent-indigo), var(--accent-purple));
    --gradient-glow: linear-gradient(135deg, var(--accent-indigo), var(--accent-pink));
    
    /* Typography */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    /* Colors */
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --text-highlight: #38bdf8;
    
    /* Animation Transitions */
    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    overflow-x: hidden;
    width: 100%;
    max-width: 100%;
}

body {
    background-color: var(--bg-darker);
    color: var(--text-main);
    font-family: var(--font-body);
    overflow-x: hidden;
    width: 100%;
    max-width: 100%;
    line-height: 1.6;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-darker);
}
::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--gradient-primary);
}

/* -------------------------------------------------------------
   LAYOUT & CONTAINERS
   ------------------------------------------------------------- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

section {
    padding: 8rem 0;
    position: relative;
    overflow: hidden;
    width: 100%;
    max-width: 100%;
}

/* -------------------------------------------------------------
   BACKGROUND GLOW ELEMENTS
   ------------------------------------------------------------- */
.glow-bg {
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.15) 0%, rgba(0,0,0,0) 70%);
    top: -10%;
    left: -10%;
    z-index: 0;
    pointer-events: none;
}
.glow-bg-right {
    position: absolute;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(236, 72, 153, 0.1) 0%, rgba(0,0,0,0) 70%);
    bottom: 10%;
    right: -10%;
    z-index: 0;
    pointer-events: none;
}

/* -------------------------------------------------------------
   NAVIGATION BAR
   ------------------------------------------------------------- */
header {
    background: rgba(9, 13, 22, 0.7);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-color);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
}
.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}
.logo {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    background: var(--gradient-glow);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    white-space: nowrap;
}
.nav-menu {
    display: flex;
    list-style: none;
    gap: 1.5rem;
    align-items: center;
}
.nav-item a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    transition: var(--transition-smooth);
    white-space: nowrap;
}
.nav-item a:hover {
    color: var(--text-main);
}
.nav-btn {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
    border-radius: 50px;
    font-weight: 600;
    font-family: var(--font-heading);
    cursor: pointer;
    white-space: nowrap;
    transition: var(--transition-smooth);
}
#btn-admin-login.nav-btn {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
    border: 1px solid var(--border-color);
}
#btn-admin-login.nav-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}
.btn-login.nav-btn {
    background: var(--gradient-primary);
    color: var(--text-main) !important;
    border: none;
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.3);
}
.btn-login.nav-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(99, 102, 241, 0.5);
}

/* Hamburger Menu Button */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 4px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 4px;
    z-index: 101;
}
.hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text-main);
    border-radius: 2px;
    transition: var(--transition-smooth);
}
.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(4px, 4px);
}
.hamburger.active span:nth-child(2) {
    opacity: 0;
}
.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(4px, -4px);
}

/* Mobile Overlay */
.nav-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(9, 13, 22, 0.85);
    backdrop-filter: blur(8px);
    z-index: 98;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}
.nav-overlay.active {
    display: block;
    opacity: 1;
    pointer-events: all;
}

/* -------------------------------------------------------------
   HERO SECTION
   ------------------------------------------------------------- */
.hero {
    display: flex;
    align-items: center;
    min-height: 100vh;
    padding-top: 120px;
}
.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}
.hero-badge {
    background: rgba(99, 102, 241, 0.1);
    color: var(--text-highlight);
    border: 1px solid rgba(99, 102, 241, 0.2);
    padding: 0.5rem 1.2rem;
    border-radius: 50px;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}
.hero-content h1 {
    font-family: var(--font-heading);
    font-size: 4rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -1px;
}
.hero-content h1 span {
    background: var(--gradient-glow);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.hero-content p {
    color: var(--text-muted);
    font-size: 1.15rem;
    margin-bottom: 2.5rem;
}
.hero-actions {
    display: flex;
    gap: 1.2rem;
}
.btn-primary {
    background: var(--gradient-glow);
    color: var(--text-main);
    border: none;
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(236, 72, 153, 0.2);
    transition: var(--transition-smooth);
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(236, 72, 153, 0.4);
}
.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-main);
    border: 1px solid var(--border-color);
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition-smooth);
}
.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
}
.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
}
.hero-circle {
    width: 380px;
    height: 380px;
    border-radius: 50%;
    background: var(--gradient-glow);
    filter: blur(80px);
    position: absolute;
    opacity: 0.4;
    animation: pulse 6s infinite alternate;
}
.hero-card, .hero-card-3d {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-glow);
    border-radius: 24px;
    padding: 2.5rem;
    width: 100%;
    max-width: 420px;
    z-index: 1;
    box-shadow: 0 20px 50px rgba(99, 102, 241, 0.15);
    transition: transform 0.15s ease-out, box-shadow 0.3s ease;
    transform-style: preserve-3d;
    position: relative;
    overflow: hidden;
    cursor: pointer;
}
.hero-card-3d:hover {
    box-shadow: 0 30px 60px rgba(99, 102, 241, 0.35);
}
.hero-card-3d .pop-out {
    transform: translateZ(50px);
    transition: transform 0.3s ease;
}
.hero-card-3d .pop-out-deep {
    transform: translateZ(80px);
    transition: transform 0.3s ease;
}
.hero-card-3d::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(255,255,255,0.12) 0%, rgba(255,255,255,0) 60%);
    pointer-events: none;
    z-index: 2;
}

/* Category Grid & Cards */
.search-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}
.search-input {
    flex: 1;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    padding: 1rem 1.5rem;
    border-radius: 50px;
    font-size: 1rem;
    transition: var(--transition-smooth);
}
.search-input:focus {
    outline: none;
    border-color: var(--accent-indigo);
    box-shadow: 0 0 15px rgba(99, 102, 241, 0.2);
}
.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}
.category-card {
    background: linear-gradient(180deg, var(--bg-card) 0%, rgba(15, 23, 42, 0.9) 100%);
    border: 1px solid rgba(255, 255, 255, 0.03);
    border-radius: 20px;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    transition: var(--transition-smooth);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}
.category-card:hover {
    transform: translateY(-8px);
    border-color: rgba(236, 72, 153, 0.4);
    box-shadow: 0 20px 40px rgba(236, 72, 153, 0.15), 0 0 20px rgba(99, 102, 241, 0.1);
}
.category-card:hover .category-course-img {
    transform: scale(1.08) !important;
}
.category-icon {
    font-size: 2rem;
    transition: var(--transition-smooth);
}
.category-card:hover .category-icon {
    transform: scale(1.2) rotate(10deg);
}
.category-info {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}
.category-info h5 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 0.2rem;
    line-height: 1.3;
}
.category-info span {
    font-size: 0.75rem;
    color: var(--text-muted);
}
.category-badge-locked {
    position: absolute;
    top: 0.8rem;
    right: 0.8rem;
    font-size: 0.7rem;
    color: var(--accent-pink);
    opacity: 0.6;
}

/* Video Section styling */
.video-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 4rem;
    align-items: center;
}
.video-wrapper-youtube {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    aspect-ratio: 16/9;
    box-shadow: 0 15px 40px rgba(99,102,241,0.25);
    border: 1px solid var(--border-glow);
    background: #000;
}
.video-wrapper-youtube iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* -------------------------------------------------------------
   STATS SECTION
   ------------------------------------------------------------- */
.stats {
    background: rgba(15, 23, 42, 0.5);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    padding: 4rem 0;
}
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    text-align: center;
}
.stat-card h3 {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 800;
    background: var(--gradient-glow);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.5rem;
}
.stat-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* -------------------------------------------------------------
   MISSION & VISION SECTION
   ------------------------------------------------------------- */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}
.about-card {
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 3rem;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}
.about-card:hover {
    transform: translateY(-5px);
    border-color: var(--border-glow);
    box-shadow: 0 15px 30px rgba(99, 102, 241, 0.1);
}
.about-icon {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    background: var(--gradient-glow);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}
.about-card h3 {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
}
.about-card p {
    color: var(--text-muted);
    font-size: 1.05rem;
}

/* -------------------------------------------------------------
   WHY CHOOSE US SECTION
   ------------------------------------------------------------- */
.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 5rem;
}
.section-header h2 {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1.2rem;
}
.section-header h2 span {
    background: var(--gradient-glow);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.section-header p {
    color: var(--text-muted);
    font-size: 1.1rem;
}
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
}
.feature-card {
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2.5rem;
    transition: var(--transition-smooth);
}
.feature-card:hover {
    transform: translateY(-5px);
    border-color: var(--border-glow);
}
.feature-icon-wrapper {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    background: rgba(99, 102, 241, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: var(--accent-indigo);
    margin-bottom: 1.5rem;
}
.feature-card h4 {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 0.8rem;
}
.feature-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* -------------------------------------------------------------
   COURSES CATALOG
   ------------------------------------------------------------- */
.courses-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
}
.course-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    overflow: hidden;
    transition: var(--transition-smooth);
}
.course-card:hover {
    transform: translateY(-5px);
    border-color: var(--border-glow);
}
.course-image {
    height: 200px;
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.8), rgba(9, 13, 22, 0.9));
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}
.course-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(9, 13, 22, 0.8);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,0.1);
    padding: 0.4rem 0.8rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}
.course-badge.locked {
    color: var(--accent-pink);
}
.course-badge.unlocked {
    color: #10b981;
}
.course-image-title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    text-align: center;
    padding: 0 1rem;
    background: var(--gradient-glow);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.course-content {
    padding: 2rem;
}
.course-content h4 {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 0.8rem;
}
.course-content p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}
.course-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: var(--text-muted);
    border-top: 1px solid var(--border-color);
    padding-top: 1rem;
}

/* -------------------------------------------------------------
   STUDENT PORTAL MODAL / SECTION
   ------------------------------------------------------------- */
.portal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(9, 13, 22, 0.9);
    backdrop-filter: blur(20px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition-smooth);
}
.portal-overlay.active {
    opacity: 1;
    pointer-events: all;
}
.portal-modal {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 3rem;
    width: 100%;
    max-width: 480px;
    box-shadow: 0 25px 50px rgba(0,0,0,0.5);
    position: relative;
}
.btn-close-modal {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition-smooth);
}
.btn-close-modal:hover {
    color: var(--text-main);
}
.modal-header {
    text-align: center;
    margin-bottom: 2.5rem;
}
.modal-header h3 {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
}
.modal-header p {
    color: var(--text-muted);
    font-size: 0.95rem;
}
.form-group {
    margin-bottom: 1.8rem;
}
.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 0.6rem;
    letter-spacing: 0.5px;
}
.input-code {
    width: 100%;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid var(--border-color);
    padding: 1rem 1.2rem;
    font-size: 1.2rem;
    font-family: var(--font-heading);
    font-weight: 600;
    letter-spacing: 2px;
    color: var(--text-main);
    border-radius: 8px;
    text-align: center;
    transition: var(--transition-smooth);
}
.input-code:focus {
    outline: none;
    border-color: var(--accent-indigo);
    box-shadow: 0 0 15px rgba(99, 102, 241, 0.2);
}
.btn-submit-code {
    width: 100%;
    background: var(--gradient-primary);
    color: var(--text-main);
    border: none;
    padding: 1.1rem;
    font-size: 1.05rem;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.3);
    transition: var(--transition-smooth);
}
.btn-submit-code:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(99, 102, 241, 0.5);
}
.modal-footer {
    text-align: center;
    margin-top: 1.5rem;
    font-size: 0.85rem;
    color: var(--text-muted);
}
.modal-footer code {
    background: rgba(255,255,255,0.05);
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    color: var(--text-highlight);
    font-weight: bold;
}

/* -------------------------------------------------------------
   STUDENT PLATFORM VIEW (CLASSROOM)
   ------------------------------------------------------------- */
.classroom-container {
    display: none;
    min-height: 100vh;
    padding-top: 80px;
    background: var(--bg-darker);
}
.classroom-grid {
    display: grid;
    grid-template-columns: 320px 1fr;
    height: calc(100vh - 80px);
}
.classroom-sidebar {
    background: rgba(15, 23, 42, 0.4);
    border-right: 1px solid var(--border-color);
    padding: 2rem 1.5rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}
.classroom-welcome {
    margin-bottom: 2rem;
}
.classroom-welcome h4 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.2rem;
}
.classroom-welcome p {
    font-size: 0.85rem;
    color: var(--text-muted);
}
.module-list {
    list-style: none;
}
.module-title {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--text-muted);
    letter-spacing: 1px;
    margin: 1.5rem 0 0.8rem;
}
.lesson-item {
    padding: 0.8rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    color: var(--text-muted);
    transition: var(--transition-smooth);
    margin-bottom: 0.3rem;
}
.lesson-item:hover {
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-main);
}
.lesson-item.active {
    background: rgba(99, 102, 241, 0.1);
    color: var(--text-highlight);
    font-weight: 600;
    border-left: 3px solid var(--accent-indigo);
}
.classroom-content {
    padding: 2.5rem;
    overflow-y: auto;
}
.classroom-player-wrapper {
    background: #000;
    border-radius: 16px;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    width: 100%;
    margin-bottom: 2rem;
    box-shadow: 0 15px 30px rgba(0,0,0,0.5);
    border: 1px solid var(--border-color);
}
.classroom-player-wrapper iframe, .classroom-player-wrapper video {
    width: 100%;
    height: 100%;
    border: none;
}
.lesson-details h2 {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 0.8rem;
}
.lesson-details p {
    color: var(--text-muted);
    font-size: 1.05rem;
    margin-bottom: 2rem;
}
.resources-section {
    border-top: 1px solid var(--border-color);
    padding-top: 2rem;
}
.resources-section h5 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 1rem;
}
.resources-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1.2rem;
}
.resource-btn {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--border-color);
    padding: 1rem 1.2rem;
    border-radius: 8px;
    text-decoration: none;
    color: var(--text-main);
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition-smooth);
}
.resource-btn:hover {
    background: rgba(255,255,255,0.08);
    border-color: var(--border-glow);
}
.resource-icon {
    font-size: 1.4rem;
}

/* -------------------------------------------------------------
   STUDENT COURSE DASHBOARD
   ------------------------------------------------------------- */
.course-dashboard {
    padding-top: 80px;
    min-height: 100vh;
    background: var(--bg-darker);
}
.course-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}
.dash-card {
    background: linear-gradient(145deg, rgba(30,41,59,0.8), rgba(15,23,42,0.9));
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 16px;
    padding: 1.5rem;
    cursor: pointer;
    transition: all .3s cubic-bezier(.25,.8,.25,1.2);
    position: relative;
    overflow: hidden;
}
.dash-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 3px;
    background: linear-gradient(90deg, #6366f1, #ec4899);
    opacity: 0;
    transition: opacity .3s;
}
.dash-card:hover {
    transform: translateY(-6px);
    border-color: rgba(99,102,241,0.3);
    box-shadow: 0 15px 40px rgba(0,0,0,0.4);
}
.dash-card:hover::before { opacity: 1; }
.dash-card h3 { font-size: 1rem; font-weight: 700; margin-bottom: .4rem; }
.dash-card .course-category { font-size: .75rem; color: var(--text-muted); margin-bottom: 1rem; }
.dash-card .course-stats { font-size: .78rem; color: var(--text-muted); margin-bottom: .8rem; }
.progress-bar-wrap {
    width: 100%;
    height: 6px;
    background: rgba(255,255,255,0.06);
    border-radius: 100px;
    overflow: hidden;
    margin-bottom: .8rem;
}
.progress-bar-fill {
    height: 100%;
    border-radius: 100px;
    background: linear-gradient(90deg, #6366f1, #ec4899);
    transition: width .6s ease;
}
.dash-card .btn-continue {
    display: block;
    width: 100%;
    padding: .6rem;
    background: rgba(99,102,241,0.12);
    border: 1px solid rgba(99,102,241,0.2);
    border-radius: 8px;
    color: #a5b4fc;
    font-size: .82rem;
    font-weight: 600;
    text-align: center;
    transition: all .2s;
}
.dash-card .btn-continue:hover { background: rgba(99,102,241,0.2); }

/* Sidebar header */
.sidebar-header { margin-bottom: 1.5rem; }
.btn-back {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 8px;
    color: var(--text-muted);
    cursor: pointer;
    padding: .4rem .8rem;
    font-size: .78rem;
    transition: all .2s;
}
.btn-back:hover { background: rgba(255,255,255,0.06); color: var(--text-main); }

/* Lesson item progress dot */
.lesson-item .lesson-status {
    width: 8px; height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
    margin-left: auto;
}
.lesson-item .lesson-status.completed { background: #22c55e; box-shadow: 0 0 6px rgba(34,197,94,0.4); }
.lesson-item .lesson-status.in-progress { background: #f59e0b; box-shadow: 0 0 6px rgba(245,158,11,0.4); }
.lesson-item .lesson-status.pending { background: rgba(255,255,255,0.1); }

/* Header nav-right */
.classroom-container header {
    position: fixed;
    top: 0; left: 0; width: 100%;
    background: rgba(15,23,42,0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    z-index: 99;
}
.classroom-container header .nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}
.nav-right { display: flex; align-items: center; gap: .5rem; }

/* Classroom container spacing */
.classroom-container { padding-top: 64px; }
.classroom-grid { height: calc(100vh - 64px); }

/* -------------------------------------------------------------
   VIDEO PLAYLIST TABS
   ------------------------------------------------------------- */
.video-playlist {
    display: flex;
    gap: .5rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}
.video-tab {
    padding: .5rem 1rem;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 8px;
    color: var(--text-muted);
    font-size: .8rem;
    cursor: pointer;
    transition: all .2s;
}
.video-tab:hover { background: rgba(99,102,241,0.1); border-color: rgba(99,102,241,0.3); }
.video-tab.active {
    background: rgba(99,102,241,0.15);
    border-color: rgba(99,102,241,0.5);
    color: #a5b4fc;
    font-weight: 600;
}

/* -------------------------------------------------------------
   CHECKOUT MODAL
   ------------------------------------------------------------- */
.checkout-modal {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.75); backdrop-filter: blur(8px);
    z-index: 9999; display: none; align-items: center; justify-content: center;
}
.checkout-card {
    background: linear-gradient(145deg, #1e293b, #0f172a);
    border: 1px solid rgba(34,197,94,0.2);
    border-radius: 24px; padding: 2.5rem 2rem;
    max-width: 500px; width: 95%; max-height: 90vh;
    overflow-y: auto; box-shadow: 0 40px 80px rgba(0,0,0,0.8), 0 0 40px rgba(34,197,94,0.08);
    animation: slideUp .4s ease;
}
.checkout-header { text-align: center; margin-bottom: 2rem; }
.checkout-icon { font-size: 3rem; display: block; margin-bottom: .5rem; }
.checkout-header h3 { font-size: 1.4rem; font-weight: 800; color: #fff; margin-bottom: .3rem; }
.checkout-header p { font-size: .85rem; color: #94a3b8; }
.form-group { margin-bottom: 1.5rem; }
.form-label {
    display: block; font-size: .7rem; text-transform: uppercase;
    color: #94a3b8; font-weight: 600; margin-bottom: .6rem; letter-spacing: .5px;
}
.plan-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: .6rem; }
.plan-option {
    cursor: pointer; background: rgba(255,255,255,0.03);
    border: 2px solid rgba(255,255,255,0.06); border-radius: 12px;
    padding: 1rem .5rem; text-align: center; transition: all .25s;
}
.plan-option:hover { border-color: rgba(99,102,241,0.3); transform: translateY(-2px); }
.plan-option:has(input:checked) { border-color: rgba(99,102,241,0.5); background: rgba(99,102,241,0.08); }
.plan-name { font-weight: 700; color: #f3f4f6; font-size: .85rem; margin-bottom: .3rem; }
.plan-price { font-weight: 800; font-size: 1.5rem; margin: .3rem 0; }
.plan-price.green { color: #22c55e; }
.plan-price.indigo { color: #818cf8; }
.plan-price.pink { color: #f472b6; }
.plan-period { color: #64748b; font-size: .7rem; }
.checkout-input {
    width: 100%; padding: .7rem .8rem; background: rgba(10,13,20,0.8);
    border: 1px solid #374151; border-radius: 10px; color: #f3f4f6;
    font-size: .9rem; margin-bottom: .6rem; transition: border-color .2s;
}
.checkout-input:focus { outline: none; border-color: #6366f1; }
.payment-grid { display: grid; gap: .5rem; }
.payment-option {
    display: flex; align-items: center; gap: .8rem;
    background: rgba(255,255,255,0.02); border: 1px solid #374151;
    border-radius: 10px; padding: .8rem 1rem; cursor: pointer;
    transition: all .2s;
}
.payment-option:hover { background: rgba(255,255,255,0.04); border-color: rgba(99,102,241,0.3); }
.payment-option:has(input:checked) { border-color: #6366f1; background: rgba(99,102,241,0.08); }
.payment-icon { font-size: 1.3rem; flex-shrink: 0; }
.payment-name { font-weight: 600; color: #f3f4f6; font-size: .82rem; flex: 1; }
.payment-desc { font-size: .7rem; color: #6b7280; }
.btn-pay {
    width: 100%; padding: .85rem; background: linear-gradient(135deg, #22c55e, #16a34a);
    border: none; border-radius: 12px; color: #fff; font-size: .95rem;
    font-weight: 700; cursor: pointer; box-shadow: 0 6px 25px rgba(34,197,94,0.4);
    transition: all .25s;
}
.btn-pay:hover { transform: translateY(-1px); box-shadow: 0 8px 30px rgba(34,197,94,0.5); }
.btn-cancel {
    width: 100%; padding: .65rem; background: transparent;
    border: 1px solid #374151; border-radius: 10px; color: #94a3b8;
    font-size: .8rem; cursor: pointer; margin-top: .5rem; transition: color .2s;
}
.btn-cancel:hover { color: #f3f4f6; }
.resumen-box { background: rgba(10,13,20,0.8); border: 1px solid #374151; border-radius: 12px; padding: 1.25rem; margin-bottom: 1rem; }
.resumen-label { font-size: .7rem; color: #94a3b8; text-transform: uppercase; margin-bottom: .5rem; }
.resumen-content { font-size: .85rem; line-height: 1.8; color: #d1d5db; }
.payment-info-box { font-size: .85rem; color: #9ca3af; margin-bottom: 1rem; }
.payment-info-box strong { color: #f3f4f6; }
.payment-details { background: rgba(10,13,20,0.8); border: 1px solid #374151; border-radius: 8px; padding: 1rem; line-height: 1.8; margin-top: .5rem; }
.payment-hint { font-size: .8rem; color: #6b7280; text-align: center; margin-bottom: 1rem; }

/* -------------------------------------------------------------
   CERTIFICATE
   ------------------------------------------------------------- */
.certificate-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.8); backdrop-filter: blur(12px);
    z-index: 99999; display: flex; align-items: center; justify-content: center;
    padding: 1rem;
}
.certificate-modal {
    background: linear-gradient(145deg, #1e293b, #0f172a);
    border: 1px solid rgba(99,102,241,0.2); border-radius: 24px;
    max-width: 700px; width: 100%; padding: 3rem 2rem;
    position: relative; text-align: center;
    box-shadow: 0 40px 80px rgba(0,0,0,0.6), 0 0 60px rgba(99,102,241,0.05);
}
.cert-close {
    position: absolute; top: 1rem; right: 1.2rem;
    background: none; border: none; color: #6b7280;
    font-size: 1.8rem; cursor: pointer;
}
.cert-close:hover { color: #f3f4f6; }
.certificate-content { max-width: 500px; margin: 0 auto; }
.cert-badge { font-size: 4rem; margin-bottom: 1rem; }
.certificate-content h2 { font-size: 1.2rem; font-weight: 700; color: #818cf8; margin-bottom: .3rem; }
.cert-subtitle { font-size: .85rem; color: #9ca3af; margin-bottom: 1.5rem; }
.cert-name { font-size: 2rem; font-weight: 800; color: #f3f4f6; margin-bottom: .5rem; font-family: serif; }
.cert-text { font-size: .85rem; color: #94a3b8; margin-bottom: .3rem; }
.cert-module { font-size: 1.3rem; font-weight: 700; color: #22c55e; margin-bottom: 1rem; }
.cert-detail { font-size: .8rem; color: #6b7280; margin-bottom: .3rem; }
.cert-id { font-size: .7rem; color: #4b5563; margin-bottom: 1.5rem; font-family: monospace; }
.btn-certificate {
    width: 100%; padding: .6rem; background: linear-gradient(135deg, #f59e0b, #d97706);
    border: none; border-radius: 8px; color: #fff; font-size: .78rem; font-weight: 600;
    cursor: pointer; transition: all .2s; display: flex; align-items: center; justify-content: center; gap: .4rem;
}
.btn-certificate:hover { transform: translateY(-1px); box-shadow: 0 4px 15px rgba(245,158,11,0.3); }

/* -------------------------------------------------------------
   RESPONSIVE DESIGN
   ------------------------------------------------------------- */
@media (max-width: 768px) {
    .nav-container { flex-wrap: wrap; gap: .5rem; }
    .nav-container .logo { font-size: .9rem; }
    .hero-section { padding: 4rem 0; }
    .hero-section h1 { font-size: 2rem; }
    .hero-section p { font-size: 1rem; }
    .courses-grid { grid-template-columns: 1fr; gap: 1rem; }
    .about-grid { grid-template-columns: 1fr; }
    .plans-grid, .plans-options { grid-template-columns: 1fr; }
    .category-card { min-height: 350px; }
    .section-header h2 { font-size: 1.5rem; }
    .container { padding: 0 1rem; }
    #ver-todos-overlay { padding: 1rem !important; }
    #ver-todos-overlay > div > div { grid-template-columns: 1fr !important; }
    .checkout-card { padding: 1.5rem 1rem; }
    .plan-grid { grid-template-columns: 1fr; }
    .certificate-modal { padding: 2rem 1rem; }
    .cert-name { font-size: 1.4rem; }

    /* Classroom responsive */
    .classroom-grid {
        grid-template-columns: 1fr;
        height: auto;
    }
    .classroom-sidebar {
        max-height: 50vh;
        border-right: none;
        border-bottom: 1px solid var(--border-color);
        padding: 1rem;
    }
    .classroom-content { padding: 1rem; }
    .classroom-player-wrapper { aspect-ratio: 16/9; }
    .lesson-details h2 { font-size: 1.4rem; }
    .course-cards-grid { grid-template-columns: 1fr; }
    .resources-grid { grid-template-columns: 1fr; }
    .course-dashboard { padding-top: 60px; }
    .classroom-container { padding-top: 60px; }
    .classroom-container header .nav-container { height: 56px; }
    .video-playlist { justify-content: center; }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .courses-grid { grid-template-columns: repeat(2, 1fr); }
    .classroom-grid { grid-template-columns: 280px 1fr; }
    .classroom-sidebar { padding: 1.5rem 1rem; }
    .course-cards-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
    .hero-section h1 { font-size: 1.5rem; }
    .hero-section p { font-size: .9rem; }
    .btn-login { font-size: .75rem; padding: .4rem .8rem; }
    .section-header h2 { font-size: 1.3rem; }
    .nav-right { gap: .3rem; }
    .nav-right .btn-login { padding: .3rem .6rem; font-size: .7rem; }
    #classroom-user-badge { display: none; }
}

/* -------------------------------------------------------------
   ANIMATION KEYFRAMES
   ------------------------------------------------------------- */
@keyframes pulse {
    0% {
        transform: scale(1) translate(0, 0);
        opacity: 0.3;
    }
    100% {
        transform: scale(1.1) translate(10px, -10px);
        opacity: 0.55;
    }
}

/* -------------------------------------------------------------
   RESPONSIVE DESIGN
   ------------------------------------------------------------- */
@media (max-width: 1024px) {
    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 3rem;
    }
    .hero-visual {
        order: -1;
    }
    .hero-actions {
        justify-content: center;
    }
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .about-grid {
        grid-template-columns: 1fr;
    }
    .features-grid {
        grid-template-columns: 1fr;
    }
    .courses-grid {
        grid-template-columns: 1fr;
    }
    .classroom-grid {
        grid-template-columns: 1fr;
        height: auto;
    }
    .classroom-sidebar {
        height: 300px;
    }
}

/* -------------------------------------------------------------
   COOKIES & POLICIES STYLING
   ------------------------------------------------------------- */
.cookie-banner {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    opacity: 0; visibility: hidden; transform: translateX(-50%) translateY(20px);
    width: calc(100% - 4rem);
    max-width: 650px;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-glow);
    border-radius: 16px;
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
    z-index: 2000;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.cookie-banner.active {
    opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0);
}
.cookie-banner p {
    font-size: 0.85rem;
    color: var(--text-muted);
}
.cookie-banner p a {
    color: var(--text-highlight);
    text-decoration: underline;
}

/* Legal Modals Content Styling */
.legal-modal-content {
    max-height: 400px;
    overflow-y: auto;
    font-size: 0.9rem;
    color: var(--text-muted);
    padding-right: 0.5rem;
    margin-top: 1rem;
    text-align: left;
}
.legal-modal-content h4 {
    color: var(--text-main);
    margin: 1.5rem 0 0.5rem;
    font-family: var(--font-heading);
    font-size: 1.1rem;
}
.legal-modal-content p {
    margin-bottom: 1rem;
}

/* -------------------------------------------------------------
   ADMIN DASHBOARD CONTAINER
   ------------------------------------------------------------- */
.admin-container {
    display: none;
    min-height: 100vh;
    padding-top: 80px;
    background: var(--bg-darker);
}
.admin-grid {
    display: grid;
    grid-template-columns: 280px 1fr;
    height: calc(100vh - 80px);
}
.admin-sidebar {
    background: rgba(15, 23, 42, 0.4);
    border-right: 1px solid var(--border-color);
    padding: 2rem 1.5rem;
    display: flex;
    flex-direction: column;
}
.admin-menu {
    list-style: none;
}
.admin-menu-item {
    padding: 0.8rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    color: var(--text-muted);
    transition: var(--transition-smooth);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}
.admin-menu-item:hover, .admin-menu-item.active {
    background: rgba(99, 102, 241, 0.1);
    color: var(--text-main);
    font-weight: 600;
}
.admin-content-area {
    padding: 2.5rem;
    overflow-y: auto;
    height: calc(100vh - 80px);
}
.admin-content-section {
    display: none;
}
.admin-content-section.active {
    display: block;
}
.admin-form {
    max-width: 750px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 2.5rem;
    border-radius: 16px;
}
.admin-input-group {
    margin-bottom: 1.5rem;
}
.admin-input-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-muted);
    text-transform: uppercase;
}
.admin-input, .admin-textarea, .admin-select {
    width: 100%;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    padding: 0.8rem 1rem;
    border-radius: 8px;
    font-size: 0.95rem;
    transition: var(--transition-smooth);
}
.admin-input:focus, .admin-textarea:focus, .admin-select:focus {
    outline: none;
    border-color: var(--accent-indigo);
    box-shadow: 0 0 10px rgba(99, 102, 241, 0.1);
}
.admin-textarea {
    resize: vertical;
    height: 120px;
}
.admin-table-container {
    overflow-x: auto;
    margin-top: 1.5rem;
}
.admin-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
}
.admin-table th, .admin-table td {
    padding: 1rem 1.2rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}
.admin-table th {
    background: rgba(255,255,255,0.02);
    font-weight: 600;
    color: var(--text-muted);
    font-size: 0.85rem;
    text-transform: uppercase;
}
.admin-table tr:last-child td {
    border-bottom: none;
}
.admin-badge {
    padding: 0.3rem 0.6rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    display: inline-block;
}
.admin-badge.active {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
}
.btn-delete {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.2);
    padding: 0.4rem 0.8rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: 600;
    transition: var(--transition-smooth);
}
.btn-delete:hover {
    background: #ef4444;
    color: var(--text-main);
}
.btn-generate {
    background: var(--gradient-primary);
    color: var(--text-main);
    border: none;
    padding: 0.8rem 1.5rem;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.2);
    transition: var(--transition-smooth);
}
.btn-generate:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.4);
}
.admin-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}
.admin-panel-header h2 {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 800;
}


/* =========================================================
   CUSTOM HERO BANNER (ESTUDIANTES)
   ========================================================= */
.custom-hero-banner {
    position: relative;
    width: 100%;
    height: 600px;
    overflow: hidden;
    background-color: var(--bg-dark);
    display: flex;
    align-items: center;
    margin-top: 80px;
    margin-bottom: 2rem;
}

.custom-hero-banner img.bg-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    z-index: 1;
    transition: transform 0.8s ease;
}

.custom-hero-banner::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(15, 23, 42, 0.95) 0%, rgba(15, 23, 42, 0.6) 50%, rgba(15, 23, 42, 0.1) 100%);
    z-index: 2;
}

.custom-banner-content {
    position: relative;
    z-index: 3;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.custom-text-section {
    max-width: 55%;
    color: var(--text-main);
    cursor: pointer;
}

.custom-text-section h1 {
    font-size: 3.5rem;
    font-family: var(--font-heading);
    font-weight: 800;
    margin: 0 0 1rem 0;
    line-height: 1.1;
}

.custom-text-section h1 span {
    color: var(--text-highlight);
}

.custom-text-section p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: var(--text-muted);
}

.custom-hover-text-container {
    height: 0;
    overflow: hidden;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.custom-text-section:hover .custom-hover-text-container {
    height: auto;
    opacity: 1;
    transform: translateY(0);
    padding-top: 1rem;
    border-top: 2px solid var(--text-highlight);
}

.custom-hover-text-container h3 {
    color: var(--accent-pink);
    margin: 0 0 0.5rem 0;
    font-size: 1.8rem;
    font-family: var(--font-heading);
}

.custom-hover-text-container p {
    font-size: 1.1rem;
    color: var(--text-main);
}

.custom-text-section:hover ~ img.bg-image {
    transform: scale(1.05);
}

.custom-animated-side {
    position: relative;
    width: 300px;
    height: 300px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.custom-circle-anim {
    position: absolute;
    border-radius: 50%;
    border: 2px dashed var(--text-highlight);
    animation: customSpin 15s linear infinite;
}

.custom-circle-1 {
    width: 280px;
    height: 280px;
    animation-duration: 25s;
    border-color: rgba(56, 189, 248, 0.4);
}

.custom-circle-2 {
    width: 200px;
    height: 200px;
    animation-direction: reverse;
    animation-duration: 18s;
    border-color: rgba(236, 72, 153, 0.6);
}

.custom-circle-3 {
    width: 120px;
    height: 120px;
    animation-duration: 10s;
    border-color: var(--text-main);
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(8px);
    display: flex;
    justify-content: center;
    align-items: center;
}

.custom-circle-3::after {
    content: "�Estudia Ahora!";
    font-weight: bold;
    font-size: 1rem;
    color: var(--text-main);
    text-align: center;
    animation: customPulse 2s infinite;
}

@keyframes customSpin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes customPulse {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.1); opacity: 0.8; }
    100% { transform: scale(1); opacity: 1; }
}

/* Helper utilities for responsive text visibility */
.mobile-only {
    display: none !important;
}
.desktop-only {
    display: block !important;
}

@media (max-width: 768px) {
    /* Responsive visibility toggles */
    .mobile-only {
        display: block !important;
    }
    .desktop-only {
        display: none !important;
    }

    .custom-hero-banner {
        height: auto;
        min-height: 100vh;
        padding: 100px 0 50px;
        margin-top: 0;
        display: flex;
        align-items: center;
    }
    .custom-banner-content {
        flex-direction: column;
        justify-content: center;
        text-align: center;
        padding: 0 1.2rem;
        gap: 1.5rem;
    }
    .custom-hero-banner::after {
        background: radial-gradient(circle at center, rgba(15, 23, 42, 0.85) 0%, rgba(9, 13, 22, 0.98) 100%);
    }
    .custom-text-section {
        max-width: 100%;
        margin-bottom: 0;
    }
    .custom-text-section h1 {
        font-size: 2.3rem;
    }
    .custom-text-section p {
        font-size: 1rem;
        margin-bottom: 0;
        color: var(--text-muted);
        line-height: 1.5;
    }
    /* Disable interactive hover expansion on mobile to maintain structural height stability */
    .custom-hover-text-container {
        display: none !important;
        height: 0 !important;
        opacity: 0 !important;
    }
    .custom-text-section:hover .custom-hover-text-container {
        display: none !important;
        height: 0 !important;
        opacity: 0 !important;
    }

    /* Restore and scale down the 3D card container on mobile to keep it elegant and non-blocking */
    .custom-animated-side {
        display: flex !important;
        width: 100%;
        max-width: 320px;
        height: auto;
        margin: 1.5rem auto 0;
        perspective: 1000px;
    }
    .hero-card-3d {
        padding: 1.2rem !important; /* compact padding */
        border-radius: 16px;
        box-shadow: 0 15px 35px rgba(99, 102, 241, 0.25);
    }
    .hero-card-3d h3 {
        font-size: 1.3rem !important;
        margin-bottom: 0.6rem !important;
    }
    .hero-card-3d p {
        font-size: 0.85rem !important;
        margin-bottom: 1.2rem !important;
        line-height: 1.5 !important;
    }
    .hero-card-3d .pop-out-deep svg {
        width: 36px !important;
        height: 36px !important;
    }
    .hero-card-3d .btn-login {
        padding: 0.75rem !important;
        font-size: 0.9rem !important;
        border-radius: 6px !important;
    }
    .hero-card-3d .btn-login svg {
        width: 16px !important;
        height: 16px !important;
    }
}


@media (max-width: 1024px) {
    .nav-item a {
        font-size: 0.78rem;
    }
    .nav-btn {
        padding: 0.4rem 0.6rem;
        font-size: 0.75rem;
    }
    .nav-btn-text {
        display: none;
    }
}

@media (max-width: 768px) {
    .nav-container {
        height: 60px;
    }
    .logo {
        font-size: 1.1rem;
    }
    .logo svg {
        width: 22px;
        height: 22px;
    }
    .hamburger {
        display: flex;
    }
    .nav-menu {
        position: fixed;
        top: 0;
        right: 0;
        width: 260px;
        height: 100vh;
        height: 100dvh;
        background: rgba(9, 13, 22, 0.97);
        backdrop-filter: blur(24px);
        flex-direction: column;
        padding: 4.5rem 1.5rem 2rem;
        gap: 0.5rem;
        transform: translateX(100%);
        transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
        z-index: 99;
        align-items: stretch;
    }
    .nav-menu.active {
        transform: translateX(0);
    }
    .nav-item {
        width: 100%;
    }
    .nav-item a {
        font-size: 1rem;
        display: block;
        padding: 0.7rem 0.8rem;
        border-radius: 8px;
    }
    .nav-item a:hover {
        background: rgba(255,255,255,0.05);
    }
    .nav-btn {
        width: 100%;
        justify-content: center;
        padding: 0.7rem 1rem;
        font-size: 0.9rem;
        margin-top: 0.3rem;
    }
    .nav-btn-text {
        display: inline;
    }

    .cookie-banner {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
        padding: 1.5rem;
        bottom: 1rem;
        width: calc(100% - 2rem);
    }
    .cookie-banner p {
        font-size: 0.9rem;
    }
    #btn-accept-cookies {
        width: 100%;
        justify-content: center;
        padding: 0.8rem;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .nav-container {
        padding: 0 1rem;
    }
    .nav-menu {
        width: 100%;
    }
    .logo {
        font-size: 1rem;
    }
    .logo svg {
        width: 20px;
        height: 20px;
    }
}

/* -------------------------------------------------------------
   PREMIUM CUSTOM INTERFACE BUTTONS
   ------------------------------------------------------------- */
.btn-short-desc {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    background: rgba(236, 72, 153, 0.1);
    color: var(--accent-pink);
    border: 1px solid rgba(236, 72, 153, 0.3);
    padding: 0.35rem 0.75rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    margin-top: 0.5rem;
    transition: all 0.3s ease;
    width: fit-content;
}
.btn-short-desc:hover {
    background: var(--gradient-glow);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 0 10px rgba(236, 72, 153, 0.4);
    transform: translateY(-1px);
}
.btn-short-desc svg {
    flex-shrink: 0;
}

.btn-admin-back {
    background: var(--gradient-glow) !important;
    color: var(--text-main) !important;
    border: none !important;
    box-shadow: 0 4px 20px rgba(236, 72, 153, 0.4) !important;
    padding: 0.6rem 1.4rem !important;
    font-size: 0.85rem !important;
    border-radius: 50px !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 0.5rem !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
}
.btn-admin-back:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 25px rgba(236, 72, 153, 0.7) !important;
    filter: brightness(1.1) !important;
}

/* -------------------------------------------------------------
 * ANALYTICS DASHBOARD PREMIUM STYLES
 * ------------------------------------------------------------- */
.analytics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}
.neon-card {
    background: linear-gradient(135deg, rgba(15,23,42,0.9) 0%, rgba(30,41,59,0.9) 100%);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.neon-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(16,185,129,0.15), 0 0 15px rgba(16,185,129,0.05);
    border-color: rgba(16,185,129,0.3);
}
.neon-card.highlight {
    background: linear-gradient(135deg, rgba(99,102,241,0.15) 0%, rgba(236,72,153,0.15) 100%);
    border-color: rgba(236,72,153,0.3);
}
.neon-card.highlight:hover {
    box-shadow: 0 15px 35px rgba(236,72,153,0.25), 0 0 20px rgba(236,72,153,0.2);
}
.neon-card h4 {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 600;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.neon-card h3 {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--text-main);
    margin: 0;
    font-family: var(--font-heading);
}
.neon-card .stat-subtitle {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 0.5rem;
    padding-top: 0.5rem;
    border-top: 1px solid rgba(255,255,255,0.05);
}
.glass-panel {
    background: rgba(15,23,42,0.6);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 20px;
    padding: 1.5rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}
.glass-panel h3 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: var(--text-main);
    font-weight: 700;
}
.stat-countries-list li {
    padding: 0.8rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.stat-countries-list li:last-child {
    border-bottom: none;
}
.country-bar-container {
    width: 100%;
    height: 6px;
    background: rgba(255,255,255,0.1);
    border-radius: 10px;
    margin-top: 5px;
    overflow: hidden;
}
.country-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent-indigo) 0%, var(--accent-pink) 100%);
    border-radius: 10px;
}

/* -------------------------------------------------------------
   AI CHAT WIDGET
   ------------------------------------------------------------- */
.chat-toggle {
    position: fixed;
    bottom: 28px;
    right: 24px;
    padding: 14px 22px 14px 18px;
    border-radius: 60px;
    background: var(--gradient-glow);
    border: none;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 6px 30px rgba(99,102,241,0.5);
    z-index: 10000;
    transition: transform .3s ease, box-shadow .3s ease;
    animation: chatPulse 2s ease-in-out infinite;
}
@keyframes chatPulse {
    0%, 100% { box-shadow: 0 6px 30px rgba(99,102,241,0.5); }
    50% { box-shadow: 0 6px 40px rgba(99,102,241,0.8), 0 0 60px rgba(99,102,241,0.2); }
}
.chat-toggle:hover {
    transform: scale(1.04);
    box-shadow: 0 8px 40px rgba(99,102,241,0.7);
    animation: none;
}
.chat-toggle-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255,255,255,0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.chat-toggle-text {
    display: flex;
    flex-direction: column;
    text-align: left;
    line-height: 1.2;
}
.chat-toggle-text strong {
    font-size: .85rem;
    font-weight: 700;
    font-family: var(--font-heading);
}
.chat-toggle-text span {
    font-size: .7rem;
    opacity: .85;
    white-space: nowrap;
}
.chat-toggle-badge {
    position: absolute;
    top: -6px;
    right: -4px;
    color: #22c55e;
    font-size: 22px;
    display: flex;
    filter: drop-shadow(0 0 6px rgba(34,197,94,0.6));
    animation: onlineBlink 2s ease-in-out infinite;
}
@keyframes onlineBlink {
    0%, 100% { opacity: 1; }
    50% { opacity: .4; }
}

.chat-overlay {
    position: fixed;
    bottom: 0;
    right: 0;
    width: 380px;
    max-width: 100vw;
    max-height: 600px;
    height: 100vh;
    z-index: 9999;
    display: none;
    pointer-events: none;
}
.chat-overlay.active {
    display: block;
    pointer-events: auto;
}

.chat-modal {
    position: absolute;
    bottom: 96px;
    right: 24px;
    width: 380px;
    max-width: calc(100vw - 48px);
    height: 560px;
    max-height: calc(100vh - 140px);
    background: #0f172a;
    border: 1px solid rgba(99,102,241,0.2);
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 60px rgba(0,0,0,0.6), 0 0 40px rgba(99,102,241,0.1);
    overflow: hidden;
    animation: chatSlideIn .35s ease;
}
@keyframes chatSlideIn {
    from { opacity: 0; transform: translateY(20px) scale(.95); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.chat-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    background: linear-gradient(135deg, rgba(99,102,241,0.15), rgba(236,72,153,0.1));
    border-bottom: 1px solid rgba(99,102,241,0.15);
}
.chat-header-info {
    display: flex;
    align-items: center;
    gap: 12px;
}
.chat-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--gradient-glow);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
}
.chat-header-title {
    font-weight: 700;
    font-size: .95rem;
    color: var(--text-main);
}
.chat-header-status {
    font-size: .75rem;
    color: #22c55e;
    display: flex;
    align-items: center;
    gap: 4px;
}
.chat-header-status::before {
    content: '';
    width: 6px;
    height: 6px;
    background: #22c55e;
    border-radius: 50%;
    display: inline-block;
}
.chat-close {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 28px;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    transition: color .2s;
}
.chat-close:hover { color: #fff; }

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 16px 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.chat-messages::-webkit-scrollbar { width: 4px; }
.chat-messages::-webkit-scrollbar-track { background: transparent; }
.chat-messages::-webkit-scrollbar-thumb { background: rgba(99,102,241,0.3); border-radius: 4px; }

.chat-msg {
    display: flex;
    flex-direction: column;
    max-width: 88%;
}
.chat-msg.chat-msg-bot { align-self: flex-start; }
.chat-msg.chat-msg-user { align-self: flex-end; }
.chat-msg-bubble {
    padding: 12px 16px;
    border-radius: 16px;
    font-size: .9rem;
    line-height: 1.5;
    word-wrap: break-word;
    white-space: pre-wrap;
}
.chat-msg-bot .chat-msg-bubble {
    background: rgba(30,41,59,0.9);
    color: var(--text-main);
    border-bottom-left-radius: 4px;
    border: 1px solid rgba(255,255,255,0.05);
}
.chat-msg-user .chat-msg-bubble {
    background: var(--gradient-glow);
    color: #fff;
    border-bottom-right-radius: 4px;
}
.chat-msg-time {
    font-size: .68rem;
    color: var(--text-muted);
    margin-top: 4px;
    padding: 0 4px;
}

.chat-quick-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 0 20px 8px;
}
.chat-quick-btn {
    background: rgba(99,102,241,0.1);
    border: 1px solid rgba(99,102,241,0.25);
    color: var(--text-main);
    padding: 8px 14px;
    border-radius: 50px;
    font-size: .8rem;
    cursor: pointer;
    transition: all .25s ease;
    white-space: nowrap;
}
.chat-quick-btn:hover {
    background: var(--gradient-glow);
    border-color: transparent;
    color: #fff;
    transform: translateY(-1px);
}

.chat-typing {
    padding: 8px 20px;
    display: flex;
    gap: 4px;
    align-items: center;
}
.chat-typing span {
    width: 8px;
    height: 8px;
    background: var(--accent-indigo);
    border-radius: 50%;
    animation: typingBounce 1.2s infinite;
}
.chat-typing span:nth-child(2) { animation-delay: .2s; }
.chat-typing span:nth-child(3) { animation-delay: .4s; }
@keyframes typingBounce {
    0%, 60%, 100% { transform: translateY(0); opacity: .4; }
    30% { transform: translateY(-6px); opacity: 1; }
}

.chat-input-area {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    border-top: 1px solid rgba(255,255,255,0.06);
    gap: 8px;
    background: rgba(0,0,0,0.2);
}
.chat-input {
    flex: 1;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 25px;
    padding: 10px 16px;
    color: var(--text-main);
    font-size: .9rem;
    outline: none;
    transition: border-color .2s;
}
.chat-input:focus { border-color: var(--accent-indigo); }
.chat-input::placeholder { color: var(--text-muted); }
.chat-send-btn {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--gradient-glow);
    border: none;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: transform .2s, box-shadow .2s;
}
.chat-send-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(99,102,241,0.4);
}

@media (max-width: 480px) {
    .chat-modal {
        right: 0;
        bottom: 0;
        width: 100vw;
        max-width: 100vw;
        max-height: 100dvh;
        height: 100dvh;
        border-radius: 0;
        border: none;
    }
    .chat-toggle {
        bottom: 16px;
        right: 16px;
        padding: 10px 16px 10px 12px;
    }
    .chat-toggle-icon { width: 36px; height: 36px; }
    .chat-toggle-icon svg { width: 26px; height: 26px; }
    .chat-toggle-text span { font-size: .65rem; }
    .chat-toggle-text strong { font-size: .75rem; }
}
