<!DOCTYPE html>
<html lang="es">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>{{ title or "Plusdiario Frios" }}</title>
    <link rel="stylesheet" href="https://unpkg.com/leaflet@1.9.4/dist/leaflet.css" integrity="sha256-p4NxAoJBhIIN+hmNHrzRCf9tD/miZyoHS5obTRR9BMY=" crossorigin=""/>
    <link rel="stylesheet" href="/static/styles.css">
</head>
<body>
    {% set is_empresa_area = request.url.path.startswith('/empresa') %}
    <header class="topbar">
        <div class="brand-wrap">
            <div class="brand-mark">
                <img src="/static/plusdiario-round.svg" alt="PlusDiario" />
            </div>
            <div class="brand-meta">
                <img class="brand-logo" src="/static/plusdiario-mark.png" alt="PlusDiario" />
                <a href="{{ '/empresa' if is_empresa_area else '/' }}" class="brand">plusdiario <span>FRIOS</span></a>
                <p class="subtitle">Captacion local, revision manual y armado del banco comercial mas frio de PlusDiario.</p>
            </div>
        </div>
        <nav class="nav">
            {% if is_empresa_area %}
                <a href="/empresa">Mi empresa</a>
            {% else %}
                <a href="/">Inicio</a>
                <a href="/empresa">Empresas</a>
                <a href="/scheduled">Programadas</a>
                <a href="/leads">Banco</a>
                <a href="/taxonomy">Rubros</a>
            {% endif %}
        </nav>
    </header>
    <div class="snow-layer" aria-hidden="true">
        <span class="snow snow-a"></span>
        <span class="snow snow-b"></span>
        <span class="snow snow-c"></span>
        <span class="snow snow-d"></span>
        <span class="snow snow-e"></span>
        <span class="snow snow-f"></span>
    </div>
    <main class="page">
        {% block content %}{% endblock %}
    </main>
    <div class="build-badge">Build {{ build_stamp }}</div>
    <script src="https://unpkg.com/leaflet@1.9.4/dist/leaflet.js" integrity="sha256-20nQCchB9co0qIjJZRGuk2/Z9VM+kNiyxNV1lvTlZBo=" crossorigin=""></script>
    {% block scripts %}{% endblock %}
</body>
</html>
