/* =============================================
   Asesor IAs - Landing Page Styles
   ============================================= */

:root {
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --secondary: #0ea5e9;
    --success: #10b981;
    --dark: #0f172a;
    --dark-light: #1e293b;
    --gray: #64748b;
    --light: #f8fafc;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--dark);
    color: #fff;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), #8b5cf6);
    color: #fff;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.4);
}

.btn-ghost {
    background: transparent;
    color: #cbd5e1;
    border: 1px solid #334155;
}

.btn-ghost:hover {
    background: #334155;
    color: #fff;
}

.btn-white {
    background: #fff;
    color: var(--dark);
}

.btn-white:hover {
    background: #f1f5f9;
    transform: translateY(-2px);
}

.btn-large {
    padding: 16px 32px;
    font-size: 17px;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 16px 0;
    background: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: #fff;
}

.logo-icon {
    font-size: 28px;
}

.logo-text {
    font-size: 20px;
    font-weight: 700;
}

.logo-tagline {
    font-size: 12px;
    color: var(--gray);
    margin-left: 4px;
}

.nav-actions {
    display: flex;
    gap: 12px;
}

/* Hero */
.hero {
    position: relative;
    padding: 160px 0 120px;
    background: linear-gradient(135deg, var(--dark) 0%, var(--dark-light) 50%, var(--dark) 100%);
    overflow: hidden;
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.2), rgba(139, 92, 246, 0.2));
    border: 1px solid rgba(99, 102, 241, 0.3);
    padding: 8px 16px;
    border-radius: 30px;
    font-size: 14px;
    color: #a78bfa;
    margin-bottom: 24px;
}

.badge-icon {
    font-size: 18px;
}

.hero-title {
    font-size: 48px;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 20px;
}

.gradient-text {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 18px;
    color: #94a3b8;
    margin-bottom: 32px;
    max-width: 500px;
}

.hero-cta {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
}

.cta-note {
    font-size: 13px;
    color: var(--gray);
}

/* Chat Preview */
.hero-visual {
    display: flex;
    justify-content: center;
}

.chat-preview {
    background: var(--dark-light);
    border-radius: 20px;
    width: 100%;
    max-width: 380px;
    border: 1px solid #334155;
    overflow: hidden;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
}

.chat-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    background: #0f172a;
    border-bottom: 1px solid #334155;
}

.chat-avatar {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary), #8b5cf6);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.chat-name {
    font-weight: 600;
    flex: 1;
}

.chat-status {
    font-size: 12px;
    color: var(--success);
}

.chat-messages {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.message {
    padding: 12px 16px;
    border-radius: 16px;
    max-width: 85%;
    font-size: 14px;
    line-height: 1.5;
}

.message p {
    margin: 0;
}

.message.ai {
    background: #334155;
    border-bottom-left-radius: 4px;
    align-self: flex-start;
}

.message.user {
    background: var(--primary);
    border-bottom-right-radius: 4px;
    align-self: flex-end;
}

.message.typing {
    display: flex;
    gap: 4px;
    padding: 16px 20px;
}

.message.typing span {
    width: 8px;
    height: 8px;
    background: #64748b;
    border-radius: 50%;
    animation: typing 1.4s infinite;
}

.message.typing span:nth-child(2) {
    animation-delay: 0.2s;
}

.message.typing span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes typing {

    0%,
    60%,
    100% {
        transform: translateY(0);
        opacity: 0.5;
    }

    30% {
        transform: translateY(-6px);
        opacity: 1;
    }
}

.hero-wave {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
}

.hero-wave svg {
    display: block;
    width: 100%;
    height: 80px;
}

/* Features */
.features {
    padding: 100px 0;
    background: var(--dark);
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 12px;
}

.section-subtitle {
    font-size: 18px;
    color: var(--gray);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.feature-card {
    background: var(--dark-light);
    border: 1px solid #334155;
    border-radius: 20px;
    padding: 35px 30px;
    text-align: center;
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(20px);
}

.feature-card.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.feature-card:hover {
    border-color: var(--primary);
    transform: translateY(-5px);
}

.feature-icon {
    font-size: 48px;
    margin-bottom: 20px;
}

.feature-card h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 12px;
}

.feature-card p {
    font-size: 15px;
    color: var(--gray);
}

/* Courses */
.courses {
    padding: 100px 0;
    background: var(--dark-light);
}

.courses-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.course-card {
    background: var(--dark);
    border: 1px solid #334155;
    border-radius: 20px;
    padding: 30px;
    text-decoration: none;
    color: #fff;
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(20px);
}

.course-card.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.course-card:hover {
    border-color: var(--accent-color, var(--primary));
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.course-icon {
    font-size: 48px;
    margin-bottom: 20px;
}

.course-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 12px;
}

.course-description {
    font-size: 15px;
    color: var(--gray);
    margin-bottom: 20px;
    line-height: 1.6;
}

.course-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 20px;
    border-top: 1px solid #334155;
}

.course-duration {
    font-size: 13px;
    color: var(--gray);
}

.course-cta {
    font-size: 14px;
    font-weight: 600;
    color: var(--accent-color, var(--primary));
}

/* Benefits */
.benefits {
    padding: 100px 0;
    background: var(--dark);
}

.benefits-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.benefits-text .section-title {
    text-align: left;
    margin-bottom: 30px;
}

.benefits-list {
    list-style: none;
}

.benefits-list li {
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
    opacity: 0;
    transform: translateX(-20px);
    transition: all 0.3s ease;
}

.benefits-list li.animate-in {
    opacity: 1;
    transform: translateX(0);
}

.benefit-check {
    width: 28px;
    height: 28px;
    background: linear-gradient(135deg, var(--success), #059669);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    flex-shrink: 0;
}

.benefits-list strong {
    font-size: 16px;
    display: block;
    margin-bottom: 4px;
}

.benefits-list p {
    font-size: 14px;
    color: var(--gray);
    margin: 0;
}

.benefits-card {
    background: var(--dark-light);
    border: 1px solid #334155;
    border-radius: 20px;
    overflow: hidden;
}

.benefits-card-header {
    padding: 16px 20px;
    background: linear-gradient(135deg, var(--primary), #8b5cf6);
    font-weight: 600;
}

.benefits-card-body {
    padding: 24px;
}

.plan-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid #334155;
    font-size: 14px;
    color: var(--gray);
}

.plan-item:last-child {
    border-bottom: none;
}

.plan-item.done {
    color: var(--success);
}

.plan-item.current {
    color: #fff;
}

.plan-check {
    width: 20px;
    height: 20px;
    background: var(--success);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
}

.plan-dot {
    width: 20px;
    height: 20px;
    border: 2px solid #475569;
    border-radius: 50%;
}

.plan-item.current .plan-dot {
    border-color: var(--primary);
    background: rgba(99, 102, 241, 0.3);
}

/* CTA Section */
.cta-section {
    padding: 80px 0;
    background: var(--dark-light);
}

.cta-box {
    background: linear-gradient(135deg, var(--primary), #8b5cf6);
    border-radius: 24px;
    padding: 60px;
    text-align: center;
}

.cta-box h2 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 12px;
}

.cta-box p {
    font-size: 18px;
    opacity: 0.9;
    margin-bottom: 30px;
}

/* Footer */
.footer {
    padding: 60px 0 30px;
    background: var(--dark);
    border-top: 1px solid #1e293b;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-brand p {
    color: var(--gray);
    font-size: 14px;
    margin-top: 12px;
    max-width: 300px;
}

.footer-links h4 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 16px;
    color: #fff;
}

.footer-links a {
    display: block;
    color: var(--gray);
    text-decoration: none;
    font-size: 14px;
    margin-bottom: 10px;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: #fff;
}

.footer-bottom {
    padding-top: 30px;
    border-top: 1px solid #1e293b;
    text-align: center;
}

.footer-bottom p {
    color: var(--gray);
    font-size: 13px;
}

.footer-bottom a {
    color: var(--primary);
    text-decoration: none;
}

/* Responsive */
@media (max-width: 1024px) {
    .hero .container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-subtitle {
        max-width: 100%;
    }

    .hero-cta {
        align-items: center;
    }

    .hero-visual {
        display: none;
    }

    .features-grid,
    .courses-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .benefits-content {
        grid-template-columns: 1fr;
    }

    .benefits-image {
        order: -1;
    }
}

@media (max-width: 768px) {
    .navbar .container {
        flex-wrap: wrap;
        gap: 12px;
    }

    .nav-actions {
        width: 100%;
        justify-content: center;
    }

    .hero {
        padding: 120px 0 80px;
    }

    .hero-title {
        font-size: 32px;
    }

    .features-grid,
    .courses-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-brand p {
        max-width: 100%;
    }

    .cta-box {
        padding: 40px 24px;
    }

    .cta-box h2 {
        font-size: 24px;
    }
}