<?php
if (session_status() === PHP_SESSION_NONE) {
    session_start();
}
?>

<!DOCTYPE html>
<html lang="es">
<head>
    <meta charset="UTF-8">
    <title>Acceso Denegado</title>
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    
    <!-- Bootstrap -->
    <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/css/bootstrap.min.css" rel="stylesheet">
    <!-- Boxicons -->
    <link href='https://unpkg.com/boxicons@2.1.4/css/boxicons.min.css' rel='stylesheet'>

    <style>
        body {
            background-color: #f8f9fa;
        }
        .error-container {
            margin-top: 100px;
            max-width: 500px;
        }
        .bx-error-circle {
            font-size: 6rem;
        }
    </style>
</head>
<body>

<div class="container error-container text-center">
    <div class="card shadow-sm">
        <div class="card-body">
            <i class='bx bx-error-circle text-danger'></i>
            <h2 class="mt-3 text-danger">¡Acceso Denegado!</h2>
            <p class="lead">No tienes permisos para acceder a esta sección del sistema.</p>
            
            <a href="../../Vista/General/Adm_Menu_Navegacion.php" class="btn btn-primary mt-3">
                ← Volver al Panel Principal
            </a>
        </div>
    </div>
</div>

<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/js/bootstrap.bundle.min.js"></script>

</body>
</html>
