/* Estilos específicos para la página de Psicología del Trading */

/* Learning Points */
.learning-points-container {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border-radius: 12px;
    padding: 2rem;
    margin: 2rem 0;
    border-left: 4px solid #3b82f6;
}

/* FAQ Section */
.faq-item {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    margin-bottom: 1rem;
    overflow: hidden;
}

.faq-question {
    padding: 1.5rem;
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border-color);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition);
}

.faq-question:hover {
    background: #000000 !important;
    color: white !important;
}

.faq-question:hover h4 {
    color: white !important;
}

.faq-question:hover i {
    color: white !important;
}

.faq-question h4 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.faq-question i {
    color: var(--primary-color);
    transition: var(--transition);
}

.faq-answer {
    padding: 1.5rem;
    color: var(--text-secondary);
    line-height: 1.6;
    display: none;
}

.faq-item.active .faq-answer {
    display: block;
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.learning-points-container h3 {
    color: #1e293b;
    margin-bottom: 1.5rem;
    font-size: 1.25rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

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

.learning-point {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    background: white;
    padding: 1.25rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.learning-point:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.point-number {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.875rem;
    flex-shrink: 0;
}

.point-text {
    color: #374151;
    font-weight: 500;
    line-height: 1.5;
}

/* Emotions Grid */
.emotions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.emotion-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #e5e7eb;
}

.emotion-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.emotion-header {
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    border-bottom: 1px solid #e5e7eb;
}

.emotion-icon {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.emotion-name {
    color: #1e293b;
    font-size: 1.125rem;
    font-weight: 600;
    margin: 0;
}

.emotion-content {
    padding: 1.5rem;
}

.emotion-description {
    color: #4b5563;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.emotion-types,
.emotion-impact,
.emotion-example {
    margin-bottom: 1rem;
}

.emotion-types h5,
.emotion-impact h5,
.emotion-example h5 {
    color: #374151;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.emotion-types ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.emotion-types li {
    color: #6b7280;
    padding: 0.25rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.emotion-types li i {
    color: #3b82f6;
    font-size: 0.75rem;
}

/* Biases List */
.biases-list {
    display: grid;
    gap: 1rem;
    margin: 2rem 0;
}

.bias-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    border-left: 4px solid #8b5cf6;
    transition: transform 0.2s ease;
}

.bias-item:hover {
    transform: translateX(4px);
}

.bias-number {
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.875rem;
    flex-shrink: 0;
}

.bias-content {
    flex: 1;
}

.bias-name {
    color: #1e293b;
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.bias-description {
    color: #4b5563;
    line-height: 1.6;
    margin: 0;
}

/* Strategies Grid */
.strategies-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.strategy-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #e5e7eb;
}

.strategy-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.strategy-header {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    border-bottom: 1px solid #e5e7eb;
}

.strategy-number {
    background: linear-gradient(135deg, #0ea5e9, #0284c7);
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.875rem;
    flex-shrink: 0;
}

.strategy-icon {
    background: linear-gradient(135deg, #0ea5e9, #0284c7);
    color: white;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.strategy-title {
    color: #1e293b;
    font-size: 1.125rem;
    font-weight: 600;
    margin: 0;
}

.strategy-content {
    padding: 1.5rem;
}

.strategy-description {
    color: #4b5563;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.strategy-items,
.strategy-note {
    margin-bottom: 1rem;
}

.strategy-items h5,
.strategy-note h5 {
    color: #374151;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.strategy-items ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.strategy-items li {
    color: #6b7280;
    padding: 0.25rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.strategy-items li i {
    color: #3b82f6;
    font-size: 0.75rem;
}

/* Examples Grid */
.examples-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.example-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #e5e7eb;
}

.example-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.example-header {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    border-bottom: 1px solid #e5e7eb;
}

.example-number {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.875rem;
    flex-shrink: 0;
}

.example-case {
    color: #1e293b;
    font-size: 1.125rem;
    font-weight: 600;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.example-content {
    padding: 1.5rem;
}

.example-description {
    color: #4b5563;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.example-lesson h5 {
    color: #374151;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.example-lesson p {
    color: #6b7280;
    line-height: 1.6;
    margin: 0;
    font-style: italic;
}

/* Quotes Grid */
.quotes-container {
    margin: 2rem 0;
}

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

.quote-card {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border-radius: 12px;
    padding: 2rem;
    position: relative;
    border-left: 4px solid #6366f1;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.quote-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.quote-icon {
    color: #6366f1;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.quote-text {
    color: #374151;
    font-size: 1.125rem;
    font-weight: 500;
    line-height: 1.6;
    margin: 0 0 1rem 0;
    font-style: italic;
}

.quote-number {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: #6366f1;
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 600;
}

/* Statistics Box */
.statistics-box {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    border: 1px solid #3b82f6;
    border-radius: 8px;
    padding: 1.5rem;
    margin: 1rem 0;
    border-left: 4px solid #3b82f6;
}

.statistics-box p {
    color: #1e40af;
    font-weight: 600;
    margin: 0;
    line-height: 1.6;
}

/* Example Conclusion */
.example-conclusion {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border: 1px solid #f59e0b;
    border-radius: 8px;
    padding: 1.5rem;
    margin: 1rem 0;
    border-left: 4px solid #f59e0b;
}

.example-conclusion p {
    color: #92400e;
    font-weight: 600;
    margin: 0;
    line-height: 1.6;
    font-style: italic;
}

/* Responsive Design */
@media (max-width: 768px) {
    .learning-points-grid,
    .emotions-grid,
    .strategies-grid,
    .examples-grid,
    .quotes-grid {
        grid-template-columns: 1fr;
    }
    
    .learning-point,
    .bias-item {
        flex-direction: column;
        text-align: center;
    }
    
    .emotion-header,
    .strategy-header,
    .example-header {
        flex-direction: column;
        text-align: center;
    }
    
    .emotion-icon,
    .strategy-icon {
        align-self: center;
    }
}