/* Trading Types Page Styles */

/* Hero Section */
.hero-intro {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #334155 100%) !important;
    color: white !important;
    padding: 8rem 0 6rem !important;
    margin-top: 80px !important; /* Espacio para el header fijo */
    position: relative !important;
    z-index: 1 !important; /* Por debajo del header */
    overflow: hidden !important;
}

.hero-intro::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

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

.hero-text h1 {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.1;
    color: #ffffff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    letter-spacing: -0.01em;
    position: relative;
    font-family: 'SF Pro Display', 'Helvetica Neue', 'Arial', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.hero-text h1::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 60px;
    height: 2px;
    background: #00d4aa;
    border-radius: 1px;
    opacity: 1;
}

.hero-subtitle {
    font-size: 1.5rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    letter-spacing: 0.02em;
    font-family: 'SF Pro Text', 'Helvetica Neue', 'Arial', sans-serif;
    text-transform: none;
}

.hero-description {
    font-size: 1.125rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, 0.85);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    font-weight: 400;
    font-family: 'SF Pro Text', 'Helvetica Neue', 'Arial', sans-serif;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Trading Illustration */
.trading-illustration {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 300px;
}

.chart-mockup {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1.5rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    width: 100%;
    max-width: 400px;
    height: 300px;
}

.chart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.chart-dots {
    display: flex;
    gap: 0.5rem;
}

.chart-dots span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.6);
}

.chart-title {
    color: white;
    font-weight: 600;
    font-size: 0.875rem;
}

.chart-body {
    position: relative;
    height: 200px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    padding: 1rem;
}

.price-line {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, #3b82f6, transparent);
    animation: pulse 2s ease-in-out infinite;
}

.price-points {
    position: relative;
    height: 100%;
}

.point {
    position: absolute;
    width: 8px;
    height: 8px;
    background: #3b82f6;
    border-radius: 50%;
    animation: float 3s ease-in-out infinite;
}

.point-1 { top: 20%; left: 10%; animation-delay: 0s; }
.point-2 { top: 40%; left: 30%; animation-delay: 0.5s; }
.point-3 { top: 60%; left: 50%; animation-delay: 1s; }
.point-4 { top: 30%; left: 80%; animation-delay: 1.5s; }

@keyframes pulse {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

/* Main Content */
.intro-content {
    padding: 4rem 0;
    background: var(--bg-primary);
}

.content-wrapper {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
}

/* Sidebar Navigation */
.sidebar-nav {
    position: sticky;
    top: 6rem;
    height: fit-content;
    max-height: calc(100vh - 8rem);
    display: flex;
    flex-direction: column;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
    overflow: hidden;
}

.sidebar-header-fixed {
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
    padding: 1.5rem 1.5rem 1rem 1.5rem;
    flex-shrink: 0;
    position: relative;
    z-index: 10;
}

.sidebar-header-fixed h3 {
    margin: 0;
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
    text-align: center;
}

.sidebar-content-scrollable {
    flex: 1;
    overflow-y: auto;
    padding: 0 1.5rem 1.5rem 1.5rem;
    max-height: calc(100vh - 8rem);
    scrollbar-width: thin;
    scrollbar-color: transparent transparent;
    transition: scrollbar-color 0.3s ease;
}

.sidebar-content-scrollable::-webkit-scrollbar {
    width: 6px;
}

.sidebar-content-scrollable::-webkit-scrollbar-track {
    background: transparent;
}

.sidebar-content-scrollable::-webkit-scrollbar-thumb {
    background: transparent;
    border-radius: 3px;
    transition: background 0.3s ease;
}

.sidebar-content-scrollable:hover {
    scrollbar-color: rgba(0, 0, 0, 0.2) transparent;
}

.sidebar-content-scrollable:hover::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.2);
}

.sidebar-content-scrollable:hover::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.4);
}

.sidebar-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-menu li {
    margin-bottom: 0.5rem;
}

.sidebar-menu a {
    display: block;
    padding: 0.75rem 1rem;
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: var(--border-radius);
    transition: all 0.3s ease;
    font-size: 0.875rem;
    font-weight: 500;
}

.sidebar-menu a:hover,
.sidebar-menu a.active {
    background: var(--primary-color);
    color: white;
    transform: translateX(4px);
}

/* Main Article */
.main-article {
    background: var(--bg-primary);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
}

.article-section {
    margin-bottom: 3rem;
    padding: 2rem;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
}

.article-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.article-section h2 {
    font-size: 2rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--primary-color);
}

.article-section h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 2rem 0 1rem;
}

.article-section p {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 1.5rem;
    font-size: 1.125rem;
}

/* Estilos para la clasificación de tipos de trading */
.classification-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.classification-card {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    padding: 1.5rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 1rem;
    position: relative;
    overflow: hidden;
}

.classification-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, var(--primary-color), var(--accent-color));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.classification-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-color);
}

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

.classification-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.classification-card:hover .classification-icon {
    transform: scale(1.1);
}

.classification-content h4 {
    margin: 0 0 0.5rem 0;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
}

.classification-duration {
    margin: 0;
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 500;
}

/* Image Styles */
.image-container {
    text-align: center;
    margin: 2rem 0;
    padding: 1rem;
    background: var(--bg-secondary);
    border-radius: var(--border-radius-lg);
    border: 1px solid var(--border-color);
}

.section-image {
    max-width: 75% !important;
    width: 75% !important;
    height: auto !important;
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.section-image:hover {
    transform: scale(1.02);
    box-shadow: var(--shadow-md);
}

.image-caption {
    margin-top: 1rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-style: italic;
    text-align: center;
}

/* Trading Type Cards */
.trading-type-card {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.trading-type-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.trading-type-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.trading-type-icon {
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
}

.trading-type-icon.scalping {
    background: linear-gradient(135deg, #ef4444, #dc2626);
}

.trading-type-icon.day-trading {
    background: linear-gradient(135deg, #f97316, #ea580c);
}

.trading-type-icon.swing-trading {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
}

.trading-type-icon.positional {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
}

.trading-type-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
}

.trading-type-description {
    font-size: 1.125rem;
    line-height: 1.6;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

/* Advantages and Disadvantages */
.advantages-disadvantages {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin: 1.5rem 0;
}

.advantages,
.disadvantages {
    padding: 1.5rem;
    border-radius: var(--border-radius);
}

.advantages {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.disadvantages {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.advantages h4,
.disadvantages h4 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.advantages h4 {
    color: #059669;
}

.disadvantages h4 {
    color: #dc2626;
}

.advantages ul,
.disadvantages ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.advantages li,
.disadvantages li {
    padding: 0.5rem 0;
    font-size: 0.875rem;
    line-height: 1.5;
}

.advantages li {
    color: #065f46;
}

.disadvantages li {
    color: #991b1b;
}

/* Example Box */
.example-box {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    margin: 1.5rem 0;
    border-left: 4px solid var(--primary-color);
}

.example-box h4 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.example-box p {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-secondary);
    margin: 0;
}

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

.recommendation-card {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    padding: 1.5rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    position: relative;
    overflow: hidden;
}

.recommendation-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, var(--primary-color), var(--accent-color));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.recommendation-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-color);
}

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

.recommendation-icon {
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    border: 2px solid;
    flex-shrink: 0;
}

.recommendation-content {
    flex: 1;
}

.recommendation-text {
    font-size: 1rem;
    color: var(--text-primary);
    line-height: 1.5;
    margin-bottom: 1rem;
    font-weight: 500;
}

.trading-type-badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius);
    font-size: 0.875rem;
    font-weight: 600;
    border: 1px solid;
    text-align: center;
    min-width: 120px;
}

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

.alternative-card {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    padding: 1.5rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.alternative-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-color);
}

.alternative-icon {
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    border: 2px solid;
    flex-shrink: 0;
}

.alternative-content {
    flex: 1;
}

.alternative-content h4 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.alternative-content p {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin: 0;
}

/* Comparison Table */
.comparison-table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
    background: var(--bg-primary);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.comparison-table th,
.comparison-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.comparison-table th {
    background: var(--primary-color);
    color: white;
    font-weight: 600;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.comparison-table td {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.comparison-table tr:hover {
    background: rgba(41, 98, 255, 0.05);
}

/* FAQ Section */
.faq-section {
    margin-top: 3rem;
}

.faq-item {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    margin-bottom: 1rem;
    overflow: hidden;
}

.faq-question {
    padding: 1.5rem;
    background: var(--bg-secondary);
    border: none;
    width: 100%;
    text-align: left;
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}

.faq-question:hover {
    background: var(--primary-color);
    color: white;
}

.faq-question i {
    transition: transform 0.3s ease;
}

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

.faq-answer {
    padding: 0 1.5rem;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item.active .faq-answer {
    padding: 1.5rem;
    max-height: 500px;
}

.faq-answer p {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-secondary);
    margin: 0;
}

/* CTA Section - REMOVIDO - Ahora usa componente modular */

/* Botones estilo home */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius-lg);
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary {
    background: #f97316;
    color: white;
}

.btn-primary:hover {
    background: #d97706;
    transform: translateY(-2px);
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.btn-secondary:hover {
    background: white;
    color: #2962ff;
    transform: translateY(-2px);
}

/* Footer */
/* Footer styles removed - using standard footer from style.css */

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 50%;
    width: 3rem;
    height: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 1000;
    box-shadow: var(--shadow-lg);
}

.back-to-top:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
        padding: 0 1rem;
    }

    .hero-text h1 {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.25rem;
    }

    .content-wrapper {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .sidebar-nav {
        position: static;
        order: 2;
        max-height: 200px;
        overflow: hidden;
    }

    .sidebar-header-fixed {
        padding: 1rem;
    }

    .sidebar-content-scrollable {
        max-height: 150px;
        overflow-y: auto;
        padding: 0 1rem 1rem 1rem;
        scrollbar-width: thin;
        scrollbar-color: rgba(0, 0, 0, 0.3) transparent;
    }

    .sidebar-content-scrollable::-webkit-scrollbar {
        width: 4px;
    }

    .sidebar-content-scrollable::-webkit-scrollbar-track {
        background: transparent;
    }

    .sidebar-content-scrollable::-webkit-scrollbar-thumb {
        background: rgba(0, 0, 0, 0.3);
        border-radius: 2px;
    }

    .main-article {
        order: 1;
    }

    .advantages-disadvantages {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .recommendations-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .recommendation-card {
        padding: 1rem;
    }

    .alternatives-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .alternative-card {
        padding: 1rem;
    }

    .comparison-table {
        font-size: 0.75rem;
    }

    .comparison-table th,
    .comparison-table td {
        padding: 0.5rem;
    }

    /* CTA responsive styles removidos - Ahora usa componente modular */
}

@media (max-width: 480px) {
    .hero-intro {
        margin-top: 60px;
        padding: 4rem 0 3rem;
    }

    .hero-text h1 {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1.125rem;
    }

    .hero-description {
        font-size: 1rem;
    }


    .article-section h2 {
        font-size: 1.5rem;
    }

    .article-section h3 {
        font-size: 1.25rem;
    }

    .classification-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .classification-card {
        padding: 1rem;
    }

    .classification-icon {
        width: 40px;
        height: 40px;
    }

    .classification-content h4 {
        font-size: 1.1rem;
    }

    .image-container {
        padding: 0.5rem;
        margin: 1rem 0;
    }

    .section-image {
        max-width: 90% !important;
        width: 90% !important;
    }

    .image-caption {
        font-size: 0.8rem;
    }

    .trading-type-card {
        padding: 1.5rem;
    }

    .trading-type-title {
        font-size: 1.25rem;
    }

    /* CTA responsive styles removidos - Ahora usa componente modular */
}
