/* ================== CSS PARA SECCIONES DE CURSO CHATBOTS ================== */

/* ===== CHATBOT HERO - PROPOSICIÓN DE VALOR ===== */

.chatbot-hero {
    padding: 100px 0;
    background: linear-gradient(135deg, var(--primary-bg) 0%, rgba(39, 142, 165, 0.05) 50%, var(--primary-bg) 100%);
    position: relative;
    overflow: hidden;
}

.chatbot-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(39, 142, 165, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 8s ease-in-out infinite;
}

.chatbot-hero::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -5%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(31, 64, 104, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 12s ease-in-out infinite reverse;
}

.chatbot-hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

.chatbot-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(39, 142, 165, 0.1);
    border: 1px solid rgba(39, 142, 165, 0.2);
    padding: 10px 18px;
    border-radius: 30px;
    margin-bottom: 30px;
    font-size: 0.9rem;
    color: var(--accent-color);
    font-weight: 600;
    animation: slideInDown 0.8s ease-out;
}

.badge-dot {
    width: 8px;
    height: 8px;
    background: var(--accent-color);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.7; transform: scale(1.2); }
}

.chatbot-hero-title {
    font-size: clamp(2.5rem, 7vw, 4.5rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #ffffff 0%, #278ea5 50%, var(--accent-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: slideInUp 0.8s ease-out 0.1s backwards;
}

.chatbot-hero-subtitle {
    font-size: clamp(1rem, 3vw, 1.3rem);
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto 50px;
    animation: slideInUp 0.8s ease-out 0.2s backwards;
}

.chatbot-hero-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 30px;
    margin-top: 50px;
    animation: slideInUp 0.8s ease-out 0.3s backwards;
}

.hero-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 25px;
    background: linear-gradient(145deg, rgba(39, 142, 165, 0.05), rgba(31, 64, 104, 0.05));
    border: 1px solid rgba(39, 142, 165, 0.1);
    border-radius: 15px;
    transition: var(--transition);
}

.hero-stat:hover {
    transform: translateY(-8px);
    border-color: rgba(39, 142, 165, 0.3);
    box-shadow: var(--shadow-medium);
}

.stat-value {
    font-size: 2rem;
    font-weight: 800;
    color: var(--accent-color);
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
    text-align: center;
}

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== LANGUAGE SELECTOR SECTION ===== */

.language-selector-section {
    padding: 80px 0;
    background: var(--secondary-bg);
    position: relative;
}

.language-selector-title {
    font-size: clamp(2rem, 6vw, 3.5rem);
    font-weight: 800;
    text-align: center;
    margin-bottom: 15px;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: fadeInDown 0.8s ease-out;
}

.language-selector-subtitle {
    font-size: clamp(1rem, 3vw, 1.2rem);
    color: var(--text-secondary);
    text-align: center;
    max-width: 600px;
    margin: 0 auto 60px;
    animation: fadeInDown 0.8s ease-out 0.1s backwards;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.language-tabs-wrapper {
    max-width: 1200px;
    margin: 0 auto;
}

.language-tabs-nav {
    display: flex;
    gap: 15px;
    margin-bottom: 50px;
    background: linear-gradient(145deg, var(--accent-bg), rgba(39, 142, 165, 0.05));
    padding: 12px;
    border-radius: 20px;
    border: 1px solid rgba(39, 142, 165, 0.1);
    flex-wrap: wrap;
    justify-content: center;
    animation: slideInUp 0.8s ease-out 0.2s backwards;
}

.language-tab-btn {
    flex: 1;
    min-width: 160px;
    padding: 16px 20px;
    background: transparent;
    border: 2px solid transparent;
    border-radius: 15px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    position: relative;
}

.language-tab-btn.active {
    background: var(--gradient-primary);
    color: white;
    border-color: var(--accent-color);
    box-shadow: var(--shadow-light);
}

.language-tab-btn:hover:not(.active) {
    background: rgba(39, 142, 165, 0.1);
    color: var(--text-primary);
}

.language-icon {
    font-size: 1.8rem;
}

.language-name {
    font-weight: 700;
    font-size: 1rem;
}

.language-desc {
    font-size: 0.8rem;
    opacity: 0.8;
}

.language-content {
    display: none;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.language-content.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.language-content-inner {
    animation: fadeInUp 0.6s ease-out;
}

.language-header {
    text-align: center;
    margin-bottom: 50px;
}

.language-header h4 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.language-tagline {
    font-size: 1.1rem;
    color: var(--text-secondary);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== MODULES GRID ===== */

.modules-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 25px;
}

.module-card {
    background: linear-gradient(145deg, var(--accent-bg), rgba(39, 142, 165, 0.05));
    border: 1px solid rgba(39, 142, 165, 0.1);
    border-radius: 20px;
    padding: 30px;
    position: relative;
    overflow: hidden;
    transition: var(--transition);
    cursor: pointer;
}

.module-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(39, 142, 165, 0.1), transparent);
    transition: left 0.6s;
}

.module-card:hover::before {
    left: 100%;
}

.module-card:hover {
    transform: translateY(-12px);
    border-color: rgba(39, 142, 165, 0.3);
    box-shadow: var(--shadow-heavy);
}

.module-number {
    display: inline-block;
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    color: white;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.2rem;
    margin-bottom: 15px;
    position: relative;
    z-index: 2;
}

.module-card h5 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text-primary);
    position: relative;
    z-index: 2;
}

.module-card > p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 20px;
    position: relative;
    z-index: 2;
}

.module-topics {
    list-style: none;
    margin-bottom: 20px;
    position: relative;
    z-index: 2;
}

.module-topics li {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 8px;
    padding-left: 0;
}

.module-topics li::before {
    content: '▸';
    color: var(--accent-color);
    font-weight: bold;
    flex-shrink: 0;
}

.module-duration {
    display: inline-block;
    background: rgba(39, 142, 165, 0.1);
    color: var(--accent-color);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-top: 15px;
    position: relative;
    z-index: 2;
}

/* ===== COURSE BENEFITS ===== */

.course-benefits {
    padding: 80px 0;
    background: var(--primary-bg);
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.benefit-card {
    background: linear-gradient(145deg, var(--accent-bg), rgba(39, 142, 165, 0.05));
    border: 1px solid rgba(39, 142, 165, 0.1);
    border-radius: 20px;
    padding: 35px;
    text-align: center;
    transition: var(--transition);
    animation: fadeInUp 0.8s ease-out both;
}

.benefit-card:nth-child(1) { animation-delay: 0s; }
.benefit-card:nth-child(2) { animation-delay: 0.1s; }
.benefit-card:nth-child(3) { animation-delay: 0.2s; }
.benefit-card:nth-child(4) { animation-delay: 0.3s; }
.benefit-card:nth-child(5) { animation-delay: 0.4s; }
.benefit-card:nth-child(6) { animation-delay: 0.5s; }

.benefit-card:hover {
    transform: translateY(-15px);
    border-color: rgba(39, 142, 165, 0.3);
    box-shadow: var(--shadow-heavy);
}

.benefit-icon {
    font-size: 3rem;
    margin-bottom: 15px;
    display: inline-block;
    animation: bounceIn 0.8s ease-out;
}

.benefit-card h4 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.benefit-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.5;
}

@keyframes bounceIn {
    0% {
        opacity: 0;
        transform: scale(0.3);
    }
    50% {
        opacity: 1;
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

/* ===== FAQ SECTION ===== */

.faq-section {
    padding: 80px 0;
    background: var(--secondary-bg);
}

.faq-container {
    max-width: 900px;
    margin: 0 auto;
}

.faq-item {
    background: linear-gradient(145deg, var(--accent-bg), rgba(39, 142, 165, 0.05));
    border: 1px solid rgba(39, 142, 165, 0.1);
    border-radius: 15px;
    margin-bottom: 20px;
    overflow: hidden;
    transition: var(--transition);
    animation: fadeInUp 0.8s ease-out both;
}

.faq-item:nth-child(1) { animation-delay: 0s; }
.faq-item:nth-child(2) { animation-delay: 0.1s; }
.faq-item:nth-child(3) { animation-delay: 0.2s; }
.faq-item:nth-child(4) { animation-delay: 0.3s; }
.faq-item:nth-child(5) { animation-delay: 0.4s; }
.faq-item:nth-child(6) { animation-delay: 0.5s; }

.faq-item:hover {
    border-color: rgba(39, 142, 165, 0.3);
    box-shadow: var(--shadow-light);
}

.faq-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 30px;
    cursor: pointer;
    user-select: none;
    transition: var(--transition);
}

.faq-item.active .faq-header {
    background: rgba(39, 142, 165, 0.08);
}

.faq-header h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
    flex: 1;
}

.faq-toggle {
    width: 30px;
    height: 30px;
    background: var(--gradient-primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    transition: var(--transition);
    flex-shrink: 0;
}

.faq-item.active .faq-toggle {
    transform: rotate(45deg);
}

.faq-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}

.faq-item.active .faq-content {
    max-height: 500px;
}

.faq-content p {
    padding: 0 30px 25px;
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
}

/* ===== COURSE CTA ===== */

.course-cta {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--primary-bg) 0%, rgba(39, 142, 165, 0.1) 50%, var(--primary-bg) 100%);
    position: relative;
    overflow: hidden;
}

.course-cta::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(39, 142, 165, 0.08) 0%, transparent 70%);
    border-radius: 50%;
}

.cta-box {
    background: linear-gradient(145deg, var(--accent-bg), rgba(39, 142, 165, 0.08));
    border: 2px solid rgba(39, 142, 165, 0.15);
    border-radius: 30px;
    padding: 60px 50px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
    backdrop-filter: blur(20px);
    animation: slideInUp 0.8s ease-out;
    position: relative;
    z-index: 2;
}

.cta-content h3 {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 800;
    margin-bottom: 15px;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.cta-content p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 30px;
    line-height: 1.5;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

.cta-guarantee {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 500;
    padding-top: 15px;
    border-top: 1px solid rgba(39, 142, 165, 0.1);
    margin: 0;
}

.cta-features {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 1rem;
    color: var(--text-primary);
    padding: 15px;
    background: rgba(39, 142, 165, 0.05);
    border-radius: 10px;
    border-left: 3px solid var(--accent-color);
    transition: var(--transition);
}

.feature-item:hover {
    transform: translateX(8px);
    background: rgba(39, 142, 165, 0.1);
}

.check-icon {
    width: 30px;
    height: 30px;
    background: var(--gradient-primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    flex-shrink: 0;
}

/* ===== RESPONSIVE ===== */

@media (max-width: 1200px) {
    .cta-box {
        grid-template-columns: 1fr;
        padding: 40px 35px;
    }

    .cta-buttons {
        flex-direction: column;
    }

    .btn-primary,
    .btn-secondary {
        width: 100%;
        text-align: center;
    }
}

@media (max-width: 768px) {
    .chatbot-hero {
        padding: 60px 0;
    }

    .chatbot-hero-stats {
        gap: 20px;
    }

    .hero-stat {
        padding: 20px;
    }

    .language-tabs-nav {
        flex-direction: column;
        align-items: stretch;
    }

    .language-tab-btn {
        min-width: unset;
    }

    .modules-grid {
        grid-template-columns: 1fr;
    }

    .module-card {
        padding: 25px;
    }

    .benefits-grid {
        grid-template-columns: 1fr;
    }

    .faq-header {
        padding: 20px;
    }

    .faq-content p {
        padding: 0 20px 20px;
    }

    .course-cta {
        padding: 60px 0;
    }

    .cta-box {
        padding: 30px 25px;
    }

    .cta-content h3 {
        font-size: 1.8rem;
    }

    .cta-buttons {
        flex-direction: column;
    }

    .btn-primary,
    .btn-secondary {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .chatbot-hero-title {
        font-size: 1.8rem;
    }

    .language-selector-title {
        font-size: 1.8rem;
    }

    .module-card {
        padding: 20px;
    }

    .module-number {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .faq-header {
        padding: 18px;
    }

    .faq-toggle {
        width: 28px;
        height: 28px;
        font-size: 0.9rem;
    }

    .cta-box {
        padding: 25px 20px;
        gap: 30px;
    }

    .cta-content h3 {
        font-size: 1.5rem;
    }

    .cta-content p {
        font-size: 0.95rem;
    }
}