<!DOCTYPE html>
<html lang="es">
<head>
    <meta charset="UTF-8">
    <title>Manual de Usuario - OnAPB</title>
    <style>
        @page {
            margin: 100px 50px;
        }

        header {
            position: fixed;
            top: -70px;
            left: 0px;
            right: 0px;
            height: 60px;
            border-bottom: 2px solid #b00000;
            padding-bottom: 5px;
        }

        header .logo {
            float: left;
            height: 40px;
        }

        header .title {
            float: right;
            line-height: 40px;
            font-size: 14px;
            font-weight: bold;
            color: #b00000;
            text-transform: uppercase;
        }

        footer {
            position: fixed;
            bottom: -60px;
            left: 0px;
            right: 0px;
            height: 40px;
            border-top: 1px solid #ddd;
            padding-top: 5px;
            font-size: 10px;
            color: #777;
            text-align: center;
        }

        .pagenum:before {
            content: counter(page);
        }

        body {
            font-family: 'Helvetica', 'Arial', sans-serif;
            font-size: 12px;
            line-height: 1.6;
            color: #333;
        }

        h1 {
            color: #b00000;
            font-size: 24px;
            margin-bottom: 20px;
            border-bottom: 1px solid #eee;
            padding-bottom: 10px;
        }

        h2 {
            color: #444;
            font-size: 18px;
            margin-top: 30px;
            border-left: 4px solid #b00000;
            padding-left: 10px;
        }

        h3 {
            color: #555;
            font-size: 14px;
            margin-top: 20px;
        }

        table {
            width: 100%;
            border-collapse: collapse;
            margin: 20px 0;
        }

        table th, table td {
            border: 1px solid #ddd;
            padding: 8px;
            text-align: left;
        }

        table th {
            background-color: #f8f8f8;
            font-weight: bold;
        }

        .intro-box {
            background-color: #fff9f9;
            border: 1px solid #ffebeb;
            padding: 15px;
            margin-bottom: 20px;
            font-style: italic;
        }

        .section-separator {
            page-break-after: always;
        }
        
        blockquote {
            background: #f9f9f9;
            border-left: 10px solid #ccc;
            margin: 1.5em 10px;
            padding: 0.5em 10px;
        }
        
        code {
            background: #f4f4f4;
            padding: 2px 4px;
            border-radius: 4px;
        }

        /* Limpieza para floats */
        .clearfix::after {
            content: "";
            clear: both;
            display: table;
        }
    </style>
</head>
<body>
    <header class="clearfix">
        @if($logo)
            <img src="{{ $logo }}" class="logo">
        @endif
        <div class="title">Manual de Usuario — OnAPB</div>
    </header>

    <footer>
        &copy; {{ date('Y') }} OnAPB - Kinetic Arena Experience | Página <span class="pagenum"></span>
    </footer>

    <main>
        {!! $content !!}
    </main>
</body>
</html>
