<?php
header('Content-Type: text/html; charset=UTF-8');
mb_internal_encoding('UTF-8');
$current_page = basename($_SERVER['PHP_SELF']);
?>
<header class="main-header">
    <div class="header-container">
        <div class="logo-section">
            <img src="img/Logo_header.png" alt="Tecnotrack" style="max-height: 80px;">
        </div>
        <nav>
            <ul class="nav-menu">
                <li><a href="index.php" <?php echo ($current_page == 'index.php') ? 'class="active"' : ''; ?>>Inicio</a>
                </li>
                <li><a href="quienes_somos.php" <?php echo ($current_page == 'quienes_somos.php') ? 'class="active"' : ''; ?>>Quienes Somos</a></li>
                <li><a href="clientes.php" <?php echo ($current_page == 'clientes.php') ? 'class="active"' : ''; ?>>Clientes</a></li>
                <li><a href="productos.php" <?php echo ($current_page == 'productos.php') ? 'class="active"' : ''; ?>>Productos</a></li>
                <li><a href="demostracion.php" <?php echo ($current_page == 'demostracion.php') ? 'class="active"' : ''; ?>>Demostración</a></li>
                <li><a href="ingreso.php" class="btn-access">Acceso Clientes</a></li>
            </ul>
        </nav>
    </div>
</header>
<style>
    .main-header {
        background: var(--glass-bg);
        backdrop-filter: blur(12px);
        border-bottom: 1px solid var(--glass-border);
        padding: 15px 0;
        position: sticky;
        top: 0;
        z-index: 1000;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    }

    .header-container {
        max-width: 1400px;
        margin: 0 auto;
        padding: 0 30px;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .logo-section {
        display: flex;
        align-items: center;
        gap: 15px;
    }

    .logo-placeholder {
        width: 50px;
        height: 50px;
        background: linear-gradient(135deg, var(--cyan-glow), #0099cc);
        border-radius: 10px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 24px;
        font-weight: 800;
        color: var(--bg-dark);
        box-shadow: 0 0 20px rgba(0, 242, 255, 0.3);
    }

    .logo-text {
        font-size: 1.5rem;
        font-weight: 800;
        background: linear-gradient(90deg, #fff, var(--cyan-glow));
        -webkit-background-clip: text;
        background-clip: text;
        -webkit-text-fill-color: transparent;
        letter-spacing: 1px;
    }

    .nav-menu {
        display: flex;
        gap: 30px;
        align-items: center;
        list-style: none;
    }

    .nav-menu a {
        color: var(--text-secondary);
        text-decoration: none;
        font-weight: 600;
        font-size: 0.95rem;
        transition: all 0.3s;
        position: relative;
        padding: 8px 5px;
    }

    .nav-menu a::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        width: 0;
        height: 2px;
        background: var(--cyan-glow);
        transition: width 0.3s;
    }

    .nav-menu a:hover {
        color: var(--cyan-glow);
    }

    .nav-menu a:hover::after {
        width: 100%;
    }

    .nav-menu a.active {
        color: var(--cyan-glow);
    }

    .nav-menu a.active::after {
        width: 100%;
    }

    .btn-access {
        background: rgba(0, 242, 255, 0.1);
        border: 2px solid var(--cyan-glow);
        color: var(--cyan-glow);
        padding: 16px 70px;
        border-radius: 10px;
        text-decoration: none;
        font-weight: 700;
        transition: all 0.3s ease;
        text-transform: uppercase;
        font-size: 0.85rem;
        letter-spacing: 1.5px;
        position: relative;
        display: inline-block;
        box-shadow: 0 0 15px rgba(0, 242, 255, 0.2);
        white-space: nowrap;
        line-height: 1.4;
    }

    .btn-access:hover {
        background: rgba(0, 242, 255, 0.2);
        border-color: var(--cyan-glow);
        color: var(--cyan-glow);
        box-shadow: 0 0 25px rgba(0, 242, 255, 0.5), 0 0 50px rgba(0, 242, 255, 0.2);
        transform: translateY(-2px);
    }

    .btn-access:active {
        transform: translateY(0);
        box-shadow: 0 0 20px rgba(0, 242, 255, 0.4);
    }

    @media (max-width: 768px) {
        .header-container {
            flex-direction: column;
            gap: 20px;
        }

        .nav-menu {
            flex-wrap: wrap;
            justify-content: center;
            gap: 15px;
        }
    }
</style>