/* Introduction 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: 0 !important; /* Sin espacio - pegado al header */
    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: 140px 2rem 0 2rem; /* Padding-top aumentado para compensar el header */
}

.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;
}

/* Estadísticas del hero - ELIMINADAS */

/* 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;
}

.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 {
    font-weight: 600;
    font-size: 1.125rem;
}

.chart-body {
    height: 150px;
    position: relative;
    background: rgba(255, 255, 255, 0.05);
    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); }
}

/* Table of Contents */
.table-of-contents {
    padding: 4rem 0;
    background: var(--bg-secondary);
}

.table-of-contents h2 {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 3rem;
    color: var(--text-primary);
}

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

.toc-item {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    padding: 1.5rem;
    transition: var(--transition);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.toc-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.toc-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
}

.toc-number {
    display: inline-block;
    width: 32px;
    height: 32px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

.toc-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.toc-description {
    color: var(--text-secondary);
    font-size: 0.875rem;
    line-height: 1.5;
}

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

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

/* Sidebar Navigation - REMOVIDO PARA EVITAR CONFLICTOS */

/* Scrollbar personalizada - REMOVIDO PARA EVITAR CONFLICTOS */

/* Header completamente fijo y separado - REMOVIDO PARA EVITAR CONFLICTOS */

/* Scrollbar del contenido - REMOVIDO PARA EVITAR CONFLICTOS */

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

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

.sidebar-menu a {
    display: block;
    padding: 0.5rem 0.75rem;
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: var(--border-radius);
    transition: var(--transition);
    font-size: 0.875rem;
}

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

/* 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 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;
}

.highlight-box {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.1), rgba(59, 130, 246, 0.1));
    border: 1px solid var(--primary-color);
    border-radius: var(--border-radius-lg);
    padding: 1.5rem;
    margin: 2rem 0;
    position: relative;
}

.highlight-box::before {
    content: '💡';
    position: absolute;
    top: -10px;
    left: 20px;
    background: var(--bg-primary);
    padding: 0 0.5rem;
    font-size: 1.25rem;
}

.highlight-box p {
    margin: 0;
    font-weight: 500;
    color: var(--primary-color);
}

/* 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-md);
}

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

.comparison-table th {
    background: var(--bg-secondary);
    font-weight: 600;
    color: var(--text-primary);
}

.comparison-table td {
    color: var(--text-secondary);
}

.comparison-table tr:hover {
    background: var(--bg-secondary);
}

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

.card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    padding: 1.5rem;
    transition: var(--transition);
}

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

.card-icon {
    width: 48px;
    height: 48px;
    background: var(--primary-color);
    color: white;
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.card h4 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
}

.card p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
}

/* Trading Types */
.trading-types {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.trading-type {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    padding: 1.5rem;
    text-align: center;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.trading-type::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
}

.trading-type.danger::before { background: var(--danger-color); }
.trading-type.warning::before { background: var(--warning-color); }
.trading-type.info::before { background: var(--info-color); }
.trading-type.success::before { background: var(--success-color); }

.trading-type:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.trading-type h4 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.trading-type .timeframe {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: var(--primary-color);
    color: white;
    border-radius: var(--border-radius);
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.trading-type p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
}

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

.advantages,
.risks {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    padding: 2rem;
}

.advantages {
    border-left: 4px solid var(--success-color);
}

.risks {
    border-left: 4px solid var(--danger-color);
}

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

.advantages h4 {
    color: var(--success-color);
}

.risks h4 {
    color: var(--danger-color);
}

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

.advantages li,
.risks li {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-secondary);
    line-height: 1.6;
}

.advantages li:last-child,
.risks li:last-child {
    border-bottom: none;
}

.advantages li::before {
    content: '✅';
    margin-right: 0.75rem;
}

.risks li::before {
    content: '❌';
    margin-right: 0.75rem;
}

/* 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);
}

/* Conclusion Section - ELIMINADA */

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

/* CTA styles removidos - 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);
}

/* Image Styles */
.section-image {
    max-width: 75% !important; /* Reducido 25% (de 100% a 75%) */
    width: 75% !important;
    height: auto !important;
    border-radius: var(--border-radius-lg);
    margin: 2rem 0;
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
}

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

/* Forzar tamaño de imágenes con mayor especificidad */
.image-container img,
.section-image img,
img[src*="trading-vs-investment"],
img[src*="risks-benefits"] {
    max-width: 75% !important;
    width: 75% !important;
    height: auto !important;
}

.image-container {
    text-align: center;
    margin: 1rem 0;
    padding: 0.75rem;
    background: var(--bg-secondary);
    border-radius: var(--border-radius-lg);
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.image-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
}

.image-container img {
    max-width: 100%;
    height: auto;
    border-radius: var(--border-radius);
    border: 2px solid var(--border-color);
}

.image-caption {
    margin-top: 0.5rem;
    font-size: 0.75rem;
    color: var(--text-muted);
    font-style: italic;
    font-weight: 400;
    line-height: 1.4;
    text-align: center;
}


/* Enhanced Cards */
.enhanced-card {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    padding: 2rem;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.enhanced-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
}

.enhanced-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-color);
}

/* Progress Indicator */
.progress-indicator {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--bg-secondary);
    z-index: 1000;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    width: 0%;
    transition: width 0.3s ease;
}

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

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

.back-to-top.show {
    display: flex;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-intro {
        margin-top: 70px; /* Menos espacio en móvil */
        padding: 6rem 0 4rem;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
        padding: 0 1rem;
    }
    
    .hero-text h1 {
        font-size: 2.5rem;
    }
    
    .hero-stats {
        justify-content: center;
    }
    
    .content-wrapper {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    /* Sidebar responsive - REMOVIDO PARA EVITAR CONFLICTOS */
    
    .main-article {
        order: 1;
    }
    
    .advantages-risks {
        grid-template-columns: 1fr;
        gap: 1.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: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.25rem;
    }
    
    .article-section {
        padding: 1.5rem;
    }
    
    .article-section h2 {
        font-size: 1.5rem;
    }
    
    .toc-grid {
        grid-template-columns: 1fr;
    }
    
    .cards-grid {
        grid-template-columns: 1fr;
    }
    
    .trading-types {
        grid-template-columns: 1fr;
    }
}
