# 🏍️ La Gran Aventura: Cómo un Apasionado de la Moto Transformó Su Conocimiento de Seguridad Vial

Descubre la historia de Léo, un apasionado de la moto que transformó su conocimiento de seguridad vial. Una aventura inspiradora en 6 capítulos.

---

import ArticleScript from '@/components/ArticleScript';
import ArticleStyle from '@/components/ArticleStyle';


{/* Hero Section Premium */}
<div className="article-container" style={{textAlign: 'center', padding: '40px 20px'}}>
    <div style={{display: 'inline-block', background: 'linear-gradient(135deg, #f59e0b 0%, #d97706 100%)', padding: '8px 20px', borderRadius: '20px', marginBottom: '20px'}}>
        <span style={{color: 'white', fontWeight: '700', fontSize: '0.9em'}}>📖 HISTORIA MOTERO</span>
    </div>
    
    <h1 style={{fontSize: '2.5em', lineHeight: '1.2', marginBottom: '20px', background: 'linear-gradient(135deg, #ffffff 0%, #94a3b8 100%)', WebkitBackgroundClip: 'text', WebkitTextFillColor: 'transparent', backgroundClip: 'text'}}>
        La Historia de Léo: La Transformación de un Motero
    </h1>
    
    <p style={{fontSize: '1.2em', color: '#cbd5e1', maxWidth: '700px', margin: '0 auto 30px', lineHeight: '1.6'}}>
        Descubre cómo un joven apasionado transformó su visión de la seguridad vial. <strong style={{color: '#f59e0b'}}>Una aventura en 6 capítulos</strong> que cambiará tu mirada sobre la moto.
    </p>
    
    <img src="/images/articles/leo-story-hero.webp" alt="Moto en carretera sinuosa" style={{width: '100%', maxWidth: '800px', borderRadius: '20px', margin: '30px auto', display: 'block', boxShadow: '0 20px 60px rgba(245, 158, 11, 0.3)'}} />
    
    <div style={{display: 'flex', gap: '15px', justifyContent: 'center', flexWrap: 'wrap', marginTop: '30px'}}>
        <div style={{background: 'rgba(255,255,255,0.05)', padding: '15px 25px', borderRadius: '12px', border: '1px solid rgba(255,255,255,0.1)'}}>
            <div style={{fontSize: '2em', marginBottom: '5px'}}>📚</div>
            <div style={{fontSize: '0.9em', color: '#94a3b8'}}>6 capítulos</div>
        </div>
        <div style={{background: 'rgba(255,255,255,0.05)', padding: '15px 25px', borderRadius: '12px', border: '1px solid rgba(255,255,255,0.1)'}}>
            <div style={{fontSize: '2em', marginBottom: '5px'}}>⏱️</div>
            <div style={{fontSize: '0.9em', color: '#94a3b8'}}>5 min de lectura</div>
        </div>
        <div style={{background: 'rgba(255,255,255,0.05)', padding: '15px 25px', borderRadius: '12px', border: '1px solid rgba(255,255,255,0.1)'}}>
            <div style={{fontSize: '2em', marginBottom: '5px'}}>🛡️</div>
            <div style={{fontSize: '0.9em', color: '#94a3b8'}}>Historia real</div>
        </div>
    </div>
    
    <button id="start-story-leo" style={{background: 'linear-gradient(135deg, #f59e0b, #d97706)', color: 'white', border: 'none', padding: '18px 50px', borderRadius: '50px', fontSize: '1.3em', fontWeight: '700', cursor: 'pointer', boxShadow: '0 10px 30px rgba(245, 158, 11, 0.4)', marginTop: '40px', transition: 'all 0.3s'}}>
        📖 COMENZAR LA HISTORIA
    </button>
</div>

{/* Progress Bar */}
<div id="story-progress-container-leo" style={{position: 'sticky', top: '0', zIndex: '100', background: 'rgba(2, 6, 23, 0.95)', backdropFilter: 'blur(10px)', padding: '15px 20px', borderBottom: '1px solid rgba(255,255,255,0.1)', display: 'none'}}>
    <div style={{maxWidth: '800px', margin: '0 auto'}}>
        <div style={{display: 'flex', justifyContent: 'space-between', marginBottom: '8px'}}>
            <span style={{fontSize: '0.9em', color: '#94a3b8'}} id="story-progress-text-leo">Capítulo 1/6</span>
            <span style={{fontSize: '0.9em', color: '#f59e0b', fontWeight: '600'}}>📖 Historia de Léo</span>
        </div>
        <div style={{height: '6px', background: 'rgba(255,255,255,0.1)', borderRadius: '10px', overflow: 'hidden'}}>
            <div id="story-progress-bar-leo" style={{height: '100%', width: '16.66%', background: 'linear-gradient(90deg, #f59e0b, #d97706)', transition: 'width 0.3s ease', borderRadius: '10px'}}></div>
        </div>
    </div>
</div>

{/* Story Container */}
<div id="story-container-leo" style={{display: 'none', maxWidth: '800px', margin: '40px auto', padding: '0 20px'}}>
    <div style={{background: 'rgba(255,255,255,0.02)', border: '1px solid rgba(255,255,255,0.1)', borderRadius: '20px', padding: '40px', marginBottom: '20px'}}>
        <div style={{display: 'flex', alignItems: 'center', gap: '15px', marginBottom: '15px'}}>
            <div id="story-badge-leo" style={{background: 'linear-gradient(135deg, #f59e0b, #d97706)', minWidth: '50px', height: '50px', borderRadius: '12px', display: 'flex', alignItems: 'center', justifyContent: 'center', fontSize: '1.5em', fontWeight: '800', color: 'white', flexShrink: '0'}}>1</div>
            <div id="story-category-leo" style={{textTransform: 'uppercase', fontSize: '0.85em', letterSpacing: '1.5px', color: '#f59e0b', background: 'rgba(245, 158, 11, 0.1)', padding: '6px 15px', borderRadius: '20px'}}>INTRODUCCIÓN</div>
        </div>
        
        <h3 id="story-title-leo" style={{fontSize: '1.8em', margin: '25px 0', lineHeight: '1.4', color: '#e2e8f0'}}></h3>
        
        <img id="story-image-leo" src="" alt="" style={{width: '100%', borderRadius: '15px', margin: '25px 0', display: 'none'}} />
        
        <div id="story-content-leo" style={{fontSize: '1.1em', lineHeight: '1.8', color: '#cbd5e1', marginTop: '30px'}}></div>
        
        <div style={{display: 'flex', justifyContent: 'space-between', marginTop: '40px', gap: '15px', flexWrap: 'wrap'}}>
            <button id="prev-story-leo" style={{background: 'rgba(255,255,255,0.05)', color: '#cbd5e1', border: '2px solid rgba(255,255,255,0.2)', padding: '15px 30px', borderRadius: '12px', fontSize: '1.05em', fontWeight: '600', cursor: 'pointer', display: 'none'}}>← Anterior</button>
            <button id="next-story-leo" style={{background: 'linear-gradient(135deg, #f59e0b, #d97706)', color: 'white', border: 'none', padding: '15px 40px', borderRadius: '12px', fontSize: '1.1em', fontWeight: '700', cursor: 'pointer', marginLeft: 'auto'}}>Siguiente →</button>
        </div>
    </div>
</div>

{/* End Screen */}
<div id="story-end-leo" style={{display: 'none', maxWidth: '800px', margin: '60px auto', padding: '0 20px'}}>
    <div style={{background: 'linear-gradient(135deg, rgba(245, 158, 11, 0.1), rgba(217, 119, 6, 0.1))', border: '2px solid rgba(245, 158, 11, 0.3)', borderRadius: '24px', padding: '50px 40px', textAlign: 'center'}}>
        <div style={{fontSize: '4em', marginBottom: '20px'}}>🏆</div>
        <h2 style={{fontSize: '2.2em', marginBottom: '15px'}}>Fin de la Historia</h2>
        <p style={{fontSize: '1.2em', color: '#cbd5e1', marginBottom: '30px'}}>¡Gracias por seguir la aventura de Léo! Como él, transforma tu enfoque sobre la seguridad en moto.</p>

        <a href="/2025/01/05/testez-vos-connaissances-sur-la-securite-les-equipements-et-la-conduite-a-moto/" style={{display: 'inline-block', background: 'linear-gradient(135deg, #f59e0b, #d97706)', color: 'white', padding: '18px 40px', borderRadius: '12px', fontSize: '1.2em', fontWeight: '700', textDecoration: 'none', marginBottom: '20px'}}>
            🎯 Prueba tus conocimientos
        </a>

        <div style={{display: 'flex', gap: '15px', justifyContent: 'center', marginTop: '30px', flexWrap: 'wrap'}}>
            <button id="restart-story-leo" style={{background: 'rgba(255,255,255,0.05)', color: 'white', border: '2px solid rgba(255,255,255,0.2)', padding: '16px 35px', borderRadius: '12px', fontSize: '1.05em', fontWeight: '600', cursor: 'pointer'}}>
                🔄 Releer
            </button>
            <a href="/dashboard" style={{background: 'rgba(255,255,255,0.05)', color: 'white', border: '2px solid rgba(255,255,255,0.2)', padding: '16px 35px', borderRadius: '12px', fontSize: '1.05em', fontWeight: '600', textDecoration: 'none', display: 'inline-block'}}>
                📊 Ver mi perfil
            </a>
        </div>
    </div>
</div>

{/* Social Sharing */}
<div className="action-buttons-grid" style={{maxWidth: '800px', margin: '40px auto', padding: '0 20px'}}>
    <a href="#" id="share-whatsapp-leo" className="btn-share-whatsapp" style={{background: 'linear-gradient(135deg, #25D366, #128C7E)', color: 'white', padding: '20px', borderRadius: '16px', textDecoration: 'none', display: 'flex', alignItems: 'center', justifyContent: 'center', gap: '12px', fontWeight: '700', fontSize: '1.1em', transition: 'transform 0.2s'}}>
        📱 Compartir la historia
    </a>
</div>


<ArticleStyle content={`

/* Fix text overflow */
#story-end-leo,
#story-end-leo p,
h3, p {
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
    max-width: 100%;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .article-container { padding: 20px 10px; }
    h1 { font-size: 1.8em; }
    h2 { font-size: 1.5em; }
    p { font-size: 1em; }

    button, a, #start-story-leo {
        width: 100%;
        padding: 18px 20px;
        box-sizing: border-box;
        margin-bottom: 10px;
        display: block;
        text-align: center;
        white-space: normal;
    }
}

`} />

<ArticleScript content={`
window.initStoryLeo = function() {
    if (window.initStoryLeoDone) return;
    const startBtn = document.getElementById('start-story-leo');
    if (!startBtn) return;
    
    window.initStoryLeoDone = true;

    const chaptersLeo = [
        {
            category: 'INTRODUCCIÓN',
            title: 'El Comienzo de una Aventura',
            image: '/images/articles/leo-story-hero.webp',
            content: 'Imagina a un motero, joven y apasionado, que recorre las carreteras sinuosas con la adrenalina del viento en su pelo. Conoce cada curva, cada bache de la carretera y cada sonido de su motor. Pero, como muchos moteros, a menudo se toma la seguridad a la ligera, creyendo que la experiencia es suficiente. Sin embargo, una situación inesperada le empuja a cuestionar todo lo que creía saber. Esta es la historia de Léo, un motero como tantos otros, y su toma de conciencia sobre la importancia de una buena preparación y conocimientos en seguridad vial.'
        },
        {
            category: 'CAPÍTULO 1',
            title: 'El Primer Incidente',
            image: '/images/articles/leo-story-wet-curve.webp',
            content: 'Léo siempre había sido un motero confiado. En cada salida, sentía que tenía todo bajo control. Pero un día, durante un paseo con amigos, surge una situación imprevista. Una curva cerrada, pavimento húmedo y una ligera pérdida de adherencia. Léo recuerda la sensación instintiva, un momento de pánico que nunca antes había tenido. No terminó en caída, pero tuvo una revelación: la seguridad no debe tomarse a la ligera. Se dio cuenta de que aún había mucho por aprender.'
        },
        {
            category: 'CAPÍTULO 2',
            title: 'La Búsqueda de Información',
            image: '/images/articles/leo-story-studying.webp',
            content: 'De vuelta a casa, Léo comienza a documentarse. Explora foros, ve videos de seguridad en moto y habla con expertos. Pero pronto se da cuenta de que la cantidad de información es enorme y no sabe por dónde empezar. Es entonces cuando encuentra un sitio simple y directo: 2roue.com, un sitio dedicado a los moteros, donde descubre un cuestionario en línea. Este cuestionario no solo habla de reglas de seguridad, sino también de técnicas avanzadas, elección de equipamiento y errores a evitar.'
        },
        {
            category: 'CAPÍTULO 3',
            title: 'La Toma de Conciencia',
            image: '/images/articles/leo-story-reflection.webp',
            content: 'Después de terminar el cuestionario, Léo se da cuenta de cuánto peligro podría haber corrido sin cierta información que acaba de descubrir. Había descuidado la importancia de la preparación y la revisión regular de las reglas de seguridad. Los buenos reflejos y una conducción responsable marcan la diferencia entre un motero experimentado y uno que toma riesgos innecesarios.'
        },
        {
            category: 'CAPÍTULO 4',
            title: 'La Evolución de Léo',
            image: '/images/articles/leo-story-safety-check.webp',
            content: 'Motivado por esta toma de conciencia, Léo comienza a aplicar la nueva información que ha aprendido. Durante sus salidas, verifica sistemáticamente su equipo, ajusta su velocidad según las condiciones climáticas y de la carretera, y respeta escrupulosamente las reglas de seguridad. Inmediatamente nota una diferencia en su comodidad y confianza al conducir.'
        },
        {
            category: 'CAPÍTULO 5',
            title: 'El Mensaje de Léo',
            image: '/images/articles/leo-story-quiz-interface.webp',
            content: 'Léo ha transformado su enfoque de la moto, y ahora sabe que la seguridad no se limita al equipamiento. También es una cuestión de saber hacer, conocimientos y vigilancia. Si tú también quieres probar tus conocimientos, aprender trucos valiosos y prepararte para rodar con total seguridad, haz el cuestionario disponible en 2roue.com. ¡Como Léo, transforma tu pasión en experiencia!'
        }
    ];

    let currentChapterLeo = 0;
    
    function startStoryLeo() {
        const startBtn = document.getElementById('start-story-leo');
        const storyContainer = document.getElementById('story-container-leo');
        
        if (startBtn) startBtn.style.display = 'none';
        if (storyContainer) storyContainer.style.display = 'block';
        
        currentChapterLeo = 0;
        showChapterLeo();
        
        storyContainer.scrollIntoView({ behavior: 'smooth' });
    }
    
    function showChapterLeo() {
        const chapter = chaptersLeo[currentChapterLeo];
        const categoryEl = document.getElementById('story-category-leo');
        const titleEl = document.getElementById('story-title-leo');
        const imageEl = document.getElementById('story-image-leo');
        const contentEl = document.getElementById('story-content-leo');
        const badgeEl = document.getElementById('story-badge-leo');
        const prevBtn = document.getElementById('prev-story-leo');
        const nextBtn = document.getElementById('next-story-leo');
        const progressText = document.getElementById('story-progress-text-leo');
        const progressBar = document.getElementById('story-progress-bar-leo');
        const progressContainer = document.getElementById('story-progress-container-leo');
        
        if (categoryEl) categoryEl.textContent = chapter.category;
        if (titleEl) titleEl.textContent = chapter.title;
        if (contentEl) contentEl.textContent = chapter.content;
        if (badgeEl) badgeEl.textContent = (currentChapterLeo + 1);
        
        if (imageEl && chapter.image) {
            imageEl.src = chapter.image;
            imageEl.alt = chapter.title;
            imageEl.style.display = 'block';
        }
        
        // Navigation buttons
        if (prevBtn) {
            prevBtn.style.display = currentChapterLeo > 0 ? 'inline-block' : 'none';
            prevBtn.onclick = prevChapterLeo;
        }
        if (nextBtn) {
            nextBtn.onclick = nextChapterLeo;
            if (currentChapterLeo === chaptersLeo.length - 1) {
                nextBtn.textContent = '✅ Terminar';
                nextBtn.style.background = 'linear-gradient(135deg, #22c55e, #16a34a)';
            } else {
                nextBtn.textContent = 'Siguiente →';
                nextBtn.style.background = 'linear-gradient(135deg, #f59e0b, #d97706)';
            }
        }
        
        // Progress
        if (progressText) progressText.textContent = 'Capítulo ' + (currentChapterLeo + 1) + '/6';
        if (progressBar) progressBar.style.width = ((currentChapterLeo + 1) / 6 * 100) + '%';
        if (progressContainer) progressContainer.style.display = 'block';
    }
    
    function nextChapterLeo() {
        if (currentChapterLeo < chaptersLeo.length - 1) {
            currentChapterLeo++;
            showChapterLeo();
            const storyContainer = document.getElementById('story-container-leo');
            if (storyContainer) storyContainer.scrollIntoView({ behavior: 'smooth', block: 'start' });
        } else {
            endStoryLeo();
        }
    }
    
    function prevChapterLeo() {
        if (currentChapterLeo > 0) {
            currentChapterLeo--;
            showChapterLeo();
            const storyContainer = document.getElementById('story-container-leo');
            if (storyContainer) storyContainer.scrollIntoView({ behavior: 'smooth', block: 'start' });
        }
    }
    
    function endStoryLeo() {
        const storyContainer = document.getElementById('story-container-leo');
        const endScreen = document.getElementById('story-end-leo');
        const progressContainer = document.getElementById('story-progress-container-leo');
        
        if (storyContainer) storyContainer.style.display = 'none';
        if (progressContainer) progressContainer.style.display = 'none';
        if (endScreen) {
            endScreen.style.display = 'block';
            endScreen.scrollIntoView({ behavior: 'smooth', block: 'center' });
        }
        
        // Update share link
        const shareBtn = document.getElementById('share-whatsapp-leo');
        if (shareBtn) {
            const shareText = encodeURIComponent('¡He leído la inspiradora historia de Léo en 2roue.com! 🏍️ Descubre cómo transformó su visión de la seguridad en moto.');
            shareBtn.href = 'https://wa.me/?text=' + shareText;
        }
    }
    
    if (startBtn) startBtn.onclick = startStoryLeo;
    
    const restartBtn = document.getElementById('restart-story-leo');
    if (restartBtn) {
        restartBtn.onclick = function() {
            document.getElementById('story-end-leo').style.display = 'none';
            document.getElementById('start-story-leo').style.display = 'inline-block';
            window.scrollTo({ top: 0, behavior: 'smooth' });
        };
    }
};

if (document.readyState === 'loading') {
    document.addEventListener('DOMContentLoaded', window.initStoryLeo);
} else {
    window.initStoryLeo();
}

setTimeout(function() {
    if(!window.initStoryLeoDone && window.initStoryLeo) window.initStoryLeo();
}, 500);

window.startStoryLeo = function() {}; // Fallback
window.restartStoryLeo = function() {}; // Fallback
`} />

