<?php
header('Content-Type: text/html; charset=UTF-8');
mb_internal_encoding('UTF-8');
require_once 'auth.php';
// Si ya est�� logueado, redirigir al dashboard
if (isLoggedIn()) {
    header("Location: dashboard.php");
    exit();
}
?>
<!DOCTYPE html>
<html lang="es">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>TecnoTrack - Monitoreo Inteligente de Temperatura</title>
    <link href="https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;700;800&display=swap" rel="stylesheet">
    <style>
        :root {
            --bg-dark: #050a10;
            --navy-dark: #0a192f;
            --cyan-glow: #00f2ff;
            --cyan-dim: rgba(0, 242, 255, 0.15);
            --glass-bg: rgba(10, 25, 47, 0.7);
            --glass-border: rgba(0, 242, 255, 0.2);
            --text-primary: #e6f1ff;
            --text-secondary: #8892b0;
        }

        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            font-family: 'Outfit', sans-serif;
            background: var(--bg-dark);
            background-image: 
                radial-gradient(at 0% 0%, rgba(0, 242, 255, 0.08) 0px, transparent 50%),
                radial-gradient(at 100% 0%, rgba(0, 242, 255, 0.05) 0px, transparent 50%),
                radial-gradient(at 100% 100%, rgba(10, 25, 47, 0.1) 0px, transparent 50%),
                radial-gradient(at 0% 100%, rgba(0, 242, 255, 0.08) 0px, transparent 50%),
                linear-gradient(135deg, #050a10 0%, #0a192f 100%);
            background-attachment: fixed;
            color: var(--text-primary);
            min-height: 100vh;
            display: flex;
            flex-direction: column;
            overflow-x: hidden;
        }

        /* Header Styles */
        .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);
        }

        /* Hero Section */
        .hero-section {
            flex: 1;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 80px 30px;
            text-align: center;
        }

        .hero-content {
            max-width: 900px;
        }

        .hero-title {
            font-size: 3.5rem;
            font-weight: 800;
            margin-bottom: 20px;
            background: linear-gradient(90deg, #fff, var(--cyan-glow));
            -webkit-background-clip: text;
            background-clip: text;
            -webkit-text-fill-color: transparent;
            line-height: 1.2;
        }

        .hero-subtitle {
            font-size: 1.3rem;
            color: var(--text-secondary);
            margin-bottom: 40px;
            line-height: 1.6;
        }

        .hero-buttons {
            display: flex;
            gap: 20px;
            justify-content: center;
            flex-wrap: wrap;
        }

        .btn-primary {
            background: var(--cyan-glow);
            color: var(--bg-dark);
            padding: 15px 40px;
            border-radius: 10px;
            text-decoration: none;
            font-weight: 700;
            font-size: 1rem;
            transition: all 0.3s;
            box-shadow: 0 0 30px rgba(0, 242, 255, 0.3);
        }

        .btn-primary:hover {
            transform: translateY(-2px);
            box-shadow: 0 0 40px rgba(0, 242, 255, 0.5);
        }

        .btn-secondary {
            background: transparent;
            border: 2px solid var(--cyan-glow);
            color: var(--cyan-glow);
            padding: 15px 40px;
            border-radius: 10px;
            text-decoration: none;
            font-weight: 700;
            font-size: 1rem;
            transition: all 0.3s;
        }

        .btn-secondary:hover {
            background: rgba(0, 242, 255, 0.1);
            transform: translateY(-2px);
        }

        /* Construction Message */
        .construction-message {
            max-width: 800px;
            margin: 100px auto;
            padding: 60px 40px;
            background: var(--glass-bg);
            border: 1px solid var(--glass-border);
            border-radius: 20px;
            text-align: center;
            backdrop-filter: blur(10px);
        }

        .construction-icon {
            font-size: 4rem;
            margin-bottom: 20px;
        }

        .construction-title {
            font-size: 2rem;
            color: var(--cyan-glow);
            margin-bottom: 15px;
            font-weight: 700;
        }

        .construction-text {
            color: var(--text-secondary);
            font-size: 1.1rem;
            line-height: 1.6;
        }

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

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

            .hero-title {
                font-size: 2.5rem;
            }

            .hero-subtitle {
                font-size: 1.1rem;
            }
        }
    </style>
</head>
<body>
    <!-- Header -->
    <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" class="active">Inicio</a></li>
                    <li><a href="quienes_somos.php">Quienes Somos</a></li>
                    <li><a href="clientes.php">Clientes</a></li>
                    <li><a href="productos.php">Productos</a></li>
                    <li><a href="demostracion.php">Demostración</a></li>
                    <li><a href="ingreso.php" class="btn-access">Acceso Clientes</a></li>
                </ul>
            </nav>
        </div>
    </header>

    <!-- Hero Section -->
    <main class="hero-section">
        <div class="hero-content">
            <h1 class="hero-title">Monitoreo Inteligente de Temperatura</h1>
            <p class="hero-subtitle">
                Sistema avanzado de control y monitoreo en tiempo real para buques y equipos industriales.
                Tecnología de vanguardia para garantizar la seguridad y eficiencia operativa.
            </p>
            <div class="hero-buttons">
                <a href="demostracion.php" class="btn-primary">Ver Demostración</a>
                <a href="ingreso.php" class="btn-secondary">Acceso Clientes</a>
            </div>
        </div>
    </main>

    <?php include 'footer.php'; ?>
</body>
</html>
