/* ============================================================
   SOY-PROFESOR.CSS — Neon Academy / Educator Landing
   Matches home.css design system: Fredoka + Outfit + JetBrains Mono
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Fredoka:wght@400;500;600;700&family=Outfit:wght@300;400;500;600;700;800&family=JetBrains+Mono:wght@400;700&display=swap');

:root {
    --neon-purple: #7f5af0;
    --neon-blue:   #00d4ff;
    --neon-pink:   #ff0077;
    --neon-green:  #00ff88;
    --neon-gold:   #ffd700;
    --glow-purple: rgba(127, 90, 240, 0.35);
    --glow-blue:   rgba(0, 212, 255, 0.3);
    --bg-deep:     #0a0a1a;
    --bg-card:     rgba(17, 17, 40, 0.85);
    --font-display: 'Fredoka', sans-serif;
    --font-body:    'Outfit', sans-serif;
    --font-mono:    'JetBrains Mono', monospace;
}

/* ── Reset / Base ────────────────────────────────────────── */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    line-height: 1.65;
    color: rgba(255,255,255,0.87);
    background: var(--bg-deep);
    margin-top: 90px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.profesor-page {
    min-height: 100vh;
    background: var(--bg-deep);
}

/* ── Hero Section ────────────────────────────────────────── */
.hero-section {
    padding: 60px 0 40px;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 60% at 20% 40%, rgba(127, 90, 240, 0.15) 0%, transparent 60%),
        radial-gradient(ellipse 60% 80% at 80% 60%, rgba(0, 212, 255, 0.08) 0%, transparent 60%);
    pointer-events: none;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
    z-index: 1;
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4.5vw, 3.4rem);
    font-weight: 700;
    margin-bottom: 20px;
    color: #fff;
    line-height: 1.1;
}

.hero-title em {
    font-style: normal;
    background: linear-gradient(135deg, var(--neon-purple), var(--neon-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.1rem;
    color: rgba(255,255,255,0.6);
    margin-bottom: 36px;
    line-height: 1.75;
    max-width: 520px;
}

/* Stats row */
.hero-stats {
    display: flex;
    gap: 36px;
    margin-bottom: 36px;
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-family: var(--font-mono);
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--neon-blue);
    text-shadow: 0 0 15px rgba(0, 212, 255, 0.5);
    margin-bottom: 4px;
}

.stat-label {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.4);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

/* Hero buttons */
.hero-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.btn-primary {
    padding: 14px 30px;
    background: linear-gradient(135deg, var(--neon-purple), var(--neon-blue));
    color: white;
    border: none;
    border-radius: 12px;
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(127, 90, 240, 0.45);
}

.btn-primary::after {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.18), transparent);
    transition: left 0.5s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(127, 90, 240, 0.65);
}

.btn-primary:hover::after {
    left: 100%;
}

.btn-secondary {
    padding: 14px 30px;
    background: transparent;
    color: rgba(255,255,255,0.8);
    border: 2px solid rgba(0, 212, 255, 0.4);
    border-radius: 12px;
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: rgba(0, 212, 255, 0.08);
    border-color: var(--neon-blue);
    color: var(--neon-blue);
    transform: translateY(-2px);
}

/* ── Code Window (Hero Visual) ───────────────────────────── */
.hero-visual {
    position: relative;
}

.hero-image {
    position: relative;
    z-index: 2;
}

.code-window {
    background: #060614;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid rgba(127, 90, 240, 0.25);
    box-shadow:
        0 0 50px rgba(127, 90, 240, 0.12),
        0 24px 60px rgba(0,0,0,0.6);
}

.window-header {
    background: rgba(17, 17, 40, 0.95);
    padding: 12px 18px;
    display: flex;
    align-items: center;
    gap: 8px;
    border-bottom: 1px solid rgba(127, 90, 240, 0.15);
}

.window-controls {
    display: flex;
    gap: 7px;
}

.control {
    width: 11px;
    height: 11px;
    border-radius: 50%;
}

.control.red    { background: #ff5f56; }
.control.yellow { background: #ffbd2e; }
.control.green  { background: #27ca3f; }

.window-title {
    font-family: var(--font-mono);
    color: rgba(255,255,255,0.3);
    font-size: 0.78rem;
    margin-left: 8px;
}

.code-content {
    padding: 22px 20px;
    background: #060614;
}

.code-content pre {
    margin: 0;
    color: rgba(255,255,255,0.8);
    font-family: var(--font-mono);
    font-size: 0.88rem;
    line-height: 1.6;
}

.code-content code {
    color: var(--neon-blue);
    font-family: var(--font-mono);
}

/* ── Section Titles ──────────────────────────────────────── */
.section-title {
    font-family: var(--font-display);
    text-align: center;
    font-size: clamp(1.7rem, 3vw, 2.4rem);
    font-weight: 700;
    margin-bottom: 56px;
    color: #fff;
}

.section-title em {
    font-style: normal;
    background: linear-gradient(135deg, var(--neon-purple), var(--neon-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ── Features Section ────────────────────────────────────── */
.features-section {
    padding: 60px 0 40px;
    background: rgba(255,255,255,0.02);
}

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

.feature-card {
    background: var(--bg-card);
    padding: 36px 28px;
    border-radius: 20px;
    border: 1px solid rgba(127, 90, 240, 0.15);
    text-align: center;
    transition: all 0.35s cubic-bezier(0.23, 1, 0.32, 1);
    backdrop-filter: blur(8px);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 20px;
    padding: 1px;
    background: linear-gradient(135deg, rgba(127, 90, 240, 0.3), transparent 50%, rgba(0, 212, 255, 0.2));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.feature-card:hover {
    transform: translateY(-6px);
    border-color: rgba(127, 90, 240, 0.4);
    box-shadow: 0 20px 50px rgba(0,0,0,0.4), 0 0 25px rgba(127, 90, 240, 0.12);
}

.feature-card:hover::before {
    opacity: 1;
}

.feature-icon {
    font-size: 2.8rem;
    margin-bottom: 18px;
    display: block;
    filter: drop-shadow(0 0 8px rgba(127, 90, 240, 0.4));
}

.feature-card h3 {
    font-family: var(--font-display);
    font-size: 1.25rem;
    margin-bottom: 12px;
    color: #fff;
    font-weight: 600;
}

.feature-card p {
    color: rgba(255,255,255,0.58);
    line-height: 1.7;
    font-size: 0.92rem;
}

/* ── Curriculum Section ──────────────────────────────────── */
.curriculum-section {
    padding: 60px 0 40px;
}

.curriculum-header {
    text-align: center;
    margin-bottom: 52px;
}

.curriculum-header .section-subtitle {
    color: rgba(255,255,255,0.55);
    font-size: 1.05rem;
    margin-top: 14px;
    max-width: 580px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.7;
}

/* Curriculum Tabs */
.curriculum-tabs {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 44px;
    flex-wrap: wrap;
}

.tab-button {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 18px 26px;
    background: var(--bg-card);
    border: 1px solid rgba(127, 90, 240, 0.2);
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 140px;
    position: relative;
    overflow: hidden;
    color: rgba(255,255,255,0.65);
    font-family: var(--font-body);
    backdrop-filter: blur(8px);
}

.tab-button::before {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(127, 90, 240, 0.1), transparent);
    transition: left 0.5s ease;
}

.tab-button:hover::before {
    left: 100%;
}

.tab-button:hover {
    transform: translateY(-3px);
    border-color: rgba(127, 90, 240, 0.45);
    color: #fff;
    box-shadow: 0 8px 25px rgba(127, 90, 240, 0.15);
}

.tab-button.active {
    background: linear-gradient(135deg, rgba(127, 90, 240, 0.25), rgba(0, 212, 255, 0.1));
    border-color: var(--neon-purple);
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(127, 90, 240, 0.25);
}

.tab-icon {
    font-size: 1.8rem;
    transition: transform 0.3s ease;
}

.tab-button:hover .tab-icon,
.tab-button.active .tab-icon {
    transform: scale(1.12);
}

.tab-text {
    font-weight: 600;
    font-size: 0.85rem;
    text-align: center;
    letter-spacing: 0.02em;
}

/* Curriculum Content */
.curriculum-content {
    position: relative;
    min-height: 480px;
}

.curriculum-panel {
    display: none;
    animation: fadeInUp 0.45s ease;
}

.curriculum-panel.active {
    display: block;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(24px); }
    to   { opacity: 1; transform: translateY(0); }
}

.level-info {
    background: var(--bg-card);
    border-radius: 20px;
    padding: 40px;
    border: 1px solid rgba(127, 90, 240, 0.2);
    box-shadow: 0 0 50px rgba(127, 90, 240, 0.06);
    backdrop-filter: blur(10px);
}

.level-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 28px;
    flex-wrap: wrap;
    gap: 20px;
}

.level-title {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.level-title h3 {
    font-family: var(--font-display);
    font-size: 1.9rem;
    color: #fff;
    margin: 0;
    font-weight: 700;
}

.level-badge {
    padding: 6px 18px;
    border-radius: 25px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    font-family: var(--font-body);
}

.level-badge.beginner {
    background: linear-gradient(135deg, #00c96a, #00a855);
    color: white;
    box-shadow: 0 0 12px rgba(0, 200, 106, 0.4);
}

.level-badge.advanced {
    background: linear-gradient(135deg, #ff9200, #e07800);
    color: white;
    box-shadow: 0 0 12px rgba(255, 146, 0, 0.4);
}

.level-badge.expert {
    background: linear-gradient(135deg, var(--neon-purple), var(--neon-blue));
    color: white;
    box-shadow: 0 0 12px rgba(127, 90, 240, 0.5);
}

.level-stats {
    display: flex;
    gap: 28px;
    flex-wrap: wrap;
}

.level-description {
    margin-bottom: 36px;
}

.level-description p {
    color: rgba(255,255,255,0.6);
    font-size: 1.05rem;
    line-height: 1.75;
    margin: 0;
}

/* Topics Grid */
.topics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 16px;
    margin-bottom: 36px;
}

.topic-card {
    background: rgba(255,255,255,0.03);
    padding: 22px 20px;
    border-radius: 14px;
    border: 1px solid rgba(127, 90, 240, 0.14);
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.topic-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(127, 90, 240, 0.08), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.topic-card:hover::before {
    opacity: 1;
}

.topic-card:hover {
    transform: translateY(-4px);
    border-color: rgba(127, 90, 240, 0.4);
    box-shadow: 0 8px 25px rgba(127, 90, 240, 0.12);
}

.topic-icon {
    font-size: 2.2rem;
    margin-bottom: 12px;
    display: block;
}

.topic-card h4 {
    font-family: var(--font-display);
    font-size: 1rem;
    color: #fff;
    margin: 0 0 8px;
    font-weight: 600;
}

.topic-card p {
    color: rgba(255,255,255,0.5);
    font-size: 0.85rem;
    line-height: 1.55;
    margin: 0;
}

/* Progress Bar */
.level-progress {
    text-align: center;
}

.progress-bar {
    width: 100%;
    height: 6px;
    background: rgba(255,255,255,0.08);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 12px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--neon-purple), var(--neon-blue));
    border-radius: 4px;
    transition: width 1s ease;
    box-shadow: 0 0 8px rgba(127, 90, 240, 0.6);
}

.progress-text {
    color: rgba(255,255,255,0.45);
    font-size: 0.85rem;
    font-family: var(--font-mono);
}

/* ── Pricing Section (wrapper) ───────────────────────────── */
.pricing-section {
    padding: 60px 0 40px;
    background: rgba(255,255,255,0.02);
}

.pricing-section .precios-container {
    min-height: auto;
    max-width: 1400px;
}

.pricing-section .contact-section {
    margin: 1rem 0 0;
}

/* Override soy-profesor pricing cards to match Neon Academy */
.pricing-card {
    background: var(--bg-card);
    padding: 36px 28px;
    border-radius: 20px;
    border: 1px solid rgba(127, 90, 240, 0.18);
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    backdrop-filter: blur(8px);
}

.pricing-card.featured {
    border-color: var(--neon-purple);
    transform: scale(1.04);
    box-shadow: 0 0 40px rgba(127, 90, 240, 0.3);
}

.pricing-card:hover {
    transform: translateY(-5px);
    border-color: rgba(127, 90, 240, 0.45);
    box-shadow: 0 16px 40px rgba(127, 90, 240, 0.15);
}

.pricing-header h3 {
    font-family: var(--font-display);
    font-size: 1.4rem;
    margin-bottom: 18px;
    color: #fff;
}

.price {
    margin-bottom: 28px;
}

.currency {
    font-size: 1.4rem;
    color: rgba(255,255,255,0.5);
    font-family: var(--font-mono);
}

.amount {
    font-family: var(--font-mono);
    font-size: 2.8rem;
    font-weight: 700;
    color: var(--neon-blue);
    text-shadow: 0 0 15px rgba(0, 212, 255, 0.5);
}

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

.pricing-features {
    list-style: none;
    margin-bottom: 28px;
    text-align: left;
}

.pricing-features li {
    color: rgba(255,255,255,0.7);
    margin-bottom: 10px;
    padding-left: 22px;
    position: relative;
    font-size: 0.92rem;
    line-height: 1.5;
}

.pricing-features li::before {
    content: "✅";
    position: absolute;
    left: 0;
}

.btn-pricing {
    background: linear-gradient(135deg, var(--neon-purple), var(--neon-blue));
    color: white;
    padding: 14px 28px;
    border-radius: 12px;
    border: none;
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    box-shadow: 0 4px 20px rgba(127, 90, 240, 0.4);
    position: relative;
    overflow: hidden;
}

.btn-pricing::after {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
    transition: left 0.5s ease;
}

.btn-pricing:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(127, 90, 240, 0.6);
}

.btn-pricing:hover::after {
    left: 100%;
}

/* ── Testimonials Section ────────────────────────────────── */
.testimonials-section {
    padding: 60px 0 40px;
}

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

.testimonial-card {
    background: var(--bg-card);
    padding: 28px;
    border-radius: 18px;
    border: 1px solid rgba(127, 90, 240, 0.18);
    transition: all 0.35s ease;
    position: relative;
    overflow: hidden;
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: -8px;
    left: 14px;
    font-family: var(--font-display);
    font-size: 5rem;
    color: rgba(127, 90, 240, 0.15);
    line-height: 1;
    pointer-events: none;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    border-color: rgba(127, 90, 240, 0.4);
    box-shadow: 0 12px 35px rgba(127, 90, 240, 0.12);
}

.testimonial-content {
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

.testimonial-content p {
    color: rgba(255,255,255,0.72);
    font-style: italic;
    line-height: 1.7;
    font-size: 0.95rem;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 14px;
}

.author-avatar {
    font-size: 1.6rem;
    width: 46px;
    height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(127, 90, 240, 0.3), rgba(0, 212, 255, 0.2));
    border-radius: 50%;
    border: 1px solid rgba(127, 90, 240, 0.3);
    flex-shrink: 0;
}

.author-info h4 {
    color: #fff;
    margin-bottom: 3px;
    font-size: 0.9rem;
    font-weight: 600;
}

.author-info span {
    color: rgba(255,255,255,0.4);
    font-size: 0.8rem;
}

/* ── CTA Section ─────────────────────────────────────────── */
.cta-section {
    padding: 60px 0;
    background: rgba(255,255,255,0.02);
    text-align: center;
}

.cta-content h2 {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 3.5vw, 2.6rem);
    font-weight: 700;
    margin-bottom: 18px;
    color: #fff;
}

.cta-content p {
    font-size: 1.05rem;
    color: rgba(255,255,255,0.6);
    margin-bottom: 36px;
    max-width: 540px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.75;
}

.cta-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ── Footer ──────────────────────────────────────────────── */
.profesor-footer {
    background: rgba(10, 10, 26, 0.9);
    padding: 56px 0 20px;
    border-top: 1px solid rgba(127, 90, 240, 0.15);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 36px;
    margin-bottom: 36px;
}

.footer-section h4 {
    font-family: var(--font-display);
    color: #fff;
    margin-bottom: 18px;
    font-size: 1.05rem;
    font-weight: 600;
}

.footer-section p {
    color: rgba(255,255,255,0.45);
    line-height: 1.65;
    font-size: 0.88rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section ul li a {
    color: rgba(255,255,255,0.45);
    text-decoration: none;
    font-size: 0.88rem;
    transition: color 0.2s;
}

.footer-section ul li a:hover {
    color: var(--neon-blue);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.07);
    color: rgba(255,255,255,0.3);
    font-size: 0.82rem;
}

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 900px) {
    .hero-content {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }

    .hero-stats {
        justify-content: center;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-subtitle {
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .hero-section {
        padding: 40px 0 30px;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .curriculum-tabs {
        flex-direction: column;
        align-items: center;
    }

    .tab-button {
        min-width: 200px;
    }

    .level-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .level-stats {
        justify-content: center;
    }

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

    .level-info {
        padding: 28px 20px;
    }

    .testimonials-grid {
        grid-template-columns: 1fr;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

@media (max-width: 480px) {
    body { margin-top: 70px; }

    .hero-title {
        font-size: 2rem;
    }

    .section-title {
        font-size: 1.7rem;
    }

    .stat-number {
        font-size: 1.8rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}
