<!DOCTYPE html>
<html lang="es">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=768, initial-scale=1.0">
    <title>App Mantenimiento - Splash</title>
    <link href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css" rel="stylesheet">
    <style>
        :root {
            --primary: #1a3a5c;
            --primary-dark: #0f2840;
            --accent: #e91e63;
        }

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

        body {
            font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', Roboto, sans-serif;
            background: linear-gradient(180deg, var(--primary) 0%, var(--primary-dark) 100%);
            min-height: 100vh;
            display: flex;
            align-items: center;
            justify-content: center;
            -webkit-font-smoothing: antialiased;
        }

        .tablet-frame {
            max-width: 768px;
            width: 100%;
            min-height: 100vh;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            padding: 40px;
            position: relative;
        }

        .splash-content {
            text-align: center;
            animation: fadeInUp 1s ease-out;
        }

        @keyframes fadeInUp {
            from {
                opacity: 0;
                transform: translateY(30px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        .logo-container {
            margin-bottom: 40px;
        }

        .logo-icon {
            width: 120px;
            height: 120px;
            background: rgba(255,255,255,0.1);
            border-radius: 30px;
            display: flex;
            align-items: center;
            justify-content: center;
            margin: 0 auto 24px;
            position: relative;
            animation: pulse 2s infinite;
        }

        @keyframes pulse {
            0%, 100% {
                box-shadow: 0 0 0 0 rgba(233, 30, 99, 0.4);
            }
            50% {
                box-shadow: 0 0 0 20px rgba(233, 30, 99, 0);
            }
        }

        .logo-icon i {
            font-size: 3.5rem;
            color: #fff;
        }

        .logo-icon::after {
            content: '';
            position: absolute;
            width: 30px;
            height: 30px;
            background: var(--accent);
            border-radius: 50%;
            top: -5px;
            right: -5px;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .app-name {
            font-size: 2rem;
            font-weight: 700;
            color: #fff;
            margin-bottom: 8px;
            letter-spacing: -0.5px;
        }

        .app-tagline {
            font-size: 1rem;
            color: rgba(255,255,255,0.7);
            font-weight: 400;
        }

        .loading-container {
            margin-top: 60px;
        }

        .loading-bar {
            width: 200px;
            height: 4px;
            background: rgba(255,255,255,0.2);
            border-radius: 2px;
            overflow: hidden;
            margin: 0 auto 16px;
        }

        .loading-progress {
            width: 0%;
            height: 100%;
            background: linear-gradient(90deg, var(--accent) 0%, #f48fb1 100%);
            border-radius: 2px;
            animation: loading 2s ease-in-out forwards;
        }

        @keyframes loading {
            0% { width: 0%; }
            50% { width: 70%; }
            100% { width: 100%; }
        }

        .loading-text {
            color: rgba(255,255,255,0.6);
            font-size: 0.85rem;
        }

        .version {
            position: absolute;
            bottom: 40px;
            color: rgba(255,255,255,0.4);
            font-size: 0.8rem;
        }

        .company-logo {
            position: absolute;
            bottom: 80px;
            display: flex;
            align-items: center;
            gap: 8px;
            color: rgba(255,255,255,0.5);
            font-size: 0.85rem;
        }

        .company-logo img {
            height: 24px;
            opacity: 0.5;
        }

        /* Auto redirect simulation */
        .tablet-frame {
            cursor: pointer;
        }

        @media (max-width: 480px) {
            .logo-icon {
                width: 100px;
                height: 100px;
                border-radius: 25px;
            }

            .logo-icon i {
                font-size: 2.5rem;
            }

            .app-name {
                font-size: 1.5rem;
            }
        }
    </style>
</head>
<body>
    <div class="tablet-frame" onclick="location.href='00a-login.html'">
        <div class="splash-content">
            <div class="logo-container">
                <div class="logo-icon">
                    <i class="fas fa-tools"></i>
                </div>
                <h1 class="app-name">Mantenimiento</h1>
                <p class="app-tagline">Sistema de Peajes</p>
            </div>

            <div class="loading-container">
                <div class="loading-bar">
                    <div class="loading-progress"></div>
                </div>
                <p class="loading-text">Cargando...</p>
            </div>
        </div>

        <div class="company-logo">
            <i class="fas fa-building"></i>
            <span>MACROGRAM</span>
        </div>

        <div class="version">Versión 1.0.0</div>
    </div>

    <script>
        // Auto redirect after animation
        setTimeout(() => {
            window.location.href = '00a-login.html';
        }, 3000);
    </script>
</body>
</html>
