<!DOCTYPE html>
<html lang="es">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=768, initial-scale=1.0">
    <title>App Mantenimiento - Mi Perfil</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;
            --success: #10b981;
            --warning: #f59e0b;
            --danger: #ef4444;
            --gray-50: #f8fafc;
            --gray-100: #f1f5f9;
            --gray-200: #e2e8f0;
            --gray-300: #cbd5e1;
            --gray-400: #94a3b8;
            --gray-500: #64748b;
            --gray-600: #475569;
            --gray-800: #1e293b;
            --white: #ffffff;
            --shadow: 0 4px 6px -1px rgba(0,0,0,0.1);
            --radius: 16px;
            --radius-sm: 12px;
        }

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

        body {
            font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', Roboto, sans-serif;
            background: var(--gray-100);
            min-height: 100vh;
            -webkit-font-smoothing: antialiased;
        }

        .tablet-frame {
            max-width: 768px;
            margin: 0 auto;
            min-height: 100vh;
            background: var(--gray-50);
        }

        /* Header */
        .profile-header {
            background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
            padding: 20px 20px 80px;
            position: relative;
        }

        .header-row {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 30px;
        }

        .header-title {
            font-size: 1.25rem;
            font-weight: 700;
            color: var(--white);
        }

        .header-btn {
            width: 44px;
            height: 44px;
            border-radius: 50%;
            background: rgba(255,255,255,0.15);
            border: none;
            color: var(--white);
            font-size: 1.1rem;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        /* Profile Card */
        .profile-card {
            background: var(--white);
            margin: -60px 20px 20px;
            border-radius: var(--radius);
            padding: 30px;
            box-shadow: var(--shadow);
            text-align: center;
            position: relative;
        }

        .profile-avatar {
            width: 100px;
            height: 100px;
            border-radius: 50%;
            background: linear-gradient(135deg, var(--accent) 0%, #c2185b 100%);
            display: flex;
            align-items: center;
            justify-content: center;
            margin: 0 auto 20px;
            font-size: 2.5rem;
            font-weight: 700;
            color: var(--white);
            border: 4px solid var(--white);
            box-shadow: 0 4px 15px rgba(233, 30, 99, 0.3);
        }

        .profile-name {
            font-size: 1.5rem;
            font-weight: 700;
            color: var(--gray-800);
            margin-bottom: 4px;
        }

        .profile-role {
            color: var(--gray-500);
            font-size: 0.95rem;
            margin-bottom: 20px;
        }

        .profile-stats {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 16px;
            padding-top: 20px;
            border-top: 1px solid var(--gray-200);
        }

        .stat-item {
            text-align: center;
        }

        .stat-value {
            font-size: 1.5rem;
            font-weight: 700;
            color: var(--primary);
        }

        .stat-label {
            font-size: 0.75rem;
            color: var(--gray-500);
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }

        /* Menu Sections */
        .menu-section {
            padding: 0 20px;
            margin-bottom: 24px;
        }

        .menu-title {
            font-size: 0.8rem;
            font-weight: 600;
            color: var(--gray-500);
            text-transform: uppercase;
            letter-spacing: 0.5px;
            margin-bottom: 12px;
            padding-left: 8px;
        }

        .menu-card {
            background: var(--white);
            border-radius: var(--radius);
            box-shadow: var(--shadow);
            overflow: hidden;
        }

        .menu-item {
            display: flex;
            align-items: center;
            padding: 18px 20px;
            border-bottom: 1px solid var(--gray-100);
            cursor: pointer;
            transition: all 0.2s;
            text-decoration: none;
            color: inherit;
        }

        .menu-item:last-child {
            border-bottom: none;
        }

        .menu-item:hover {
            background: var(--gray-50);
        }

        .menu-icon {
            width: 44px;
            height: 44px;
            border-radius: var(--radius-sm);
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.1rem;
            margin-right: 16px;
            flex-shrink: 0;
        }

        .menu-icon.blue { background: rgba(59, 130, 246, 0.1); color: #3b82f6; }
        .menu-icon.purple { background: rgba(139, 92, 246, 0.1); color: #8b5cf6; }
        .menu-icon.green { background: rgba(16, 185, 129, 0.1); color: #10b981; }
        .menu-icon.orange { background: rgba(245, 158, 11, 0.1); color: #f59e0b; }
        .menu-icon.red { background: rgba(239, 68, 68, 0.1); color: #ef4444; }
        .menu-icon.gray { background: var(--gray-100); color: var(--gray-500); }

        .menu-info {
            flex: 1;
        }

        .menu-label {
            font-size: 0.95rem;
            font-weight: 500;
            color: var(--gray-800);
        }

        .menu-sublabel {
            font-size: 0.8rem;
            color: var(--gray-500);
        }

        .menu-arrow {
            color: var(--gray-400);
            font-size: 0.9rem;
        }

        .menu-badge {
            background: var(--accent);
            color: var(--white);
            padding: 4px 10px;
            border-radius: 12px;
            font-size: 0.75rem;
            font-weight: 600;
            margin-right: 12px;
        }

        .menu-toggle {
            position: relative;
            width: 52px;
            height: 28px;
            background: var(--gray-300);
            border-radius: 14px;
            cursor: pointer;
            transition: all 0.3s;
        }

        .menu-toggle.active {
            background: var(--success);
        }

        .menu-toggle::after {
            content: '';
            position: absolute;
            width: 24px;
            height: 24px;
            background: var(--white);
            border-radius: 50%;
            top: 2px;
            left: 2px;
            transition: all 0.3s;
            box-shadow: 0 2px 4px rgba(0,0,0,0.2);
        }

        .menu-toggle.active::after {
            left: 26px;
        }

        /* Logout Button */
        .logout-section {
            padding: 0 20px 120px;
        }

        .btn-logout {
            width: 100%;
            padding: 16px;
            background: var(--white);
            border: 2px solid var(--danger);
            border-radius: var(--radius);
            color: var(--danger);
            font-size: 1rem;
            font-weight: 600;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 10px;
            transition: all 0.2s;
        }

        .btn-logout:hover {
            background: var(--danger);
            color: var(--white);
        }

        /* Bottom Navigation */
        .bottom-nav {
            position: fixed;
            bottom: 0;
            left: 50%;
            transform: translateX(-50%);
            width: 100%;
            max-width: 768px;
            background: var(--white);
            border-top: 1px solid var(--gray-200);
            display: flex;
            justify-content: space-around;
            padding: 8px 0;
            padding-bottom: calc(8px + env(safe-area-inset-bottom));
            z-index: 1000;
        }

        .nav-item {
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 4px;
            padding: 8px 16px;
            text-decoration: none;
            color: var(--gray-400);
            font-size: 0.7rem;
            font-weight: 500;
        }

        .nav-item.active {
            color: var(--accent);
        }

        .nav-item i {
            font-size: 1.4rem;
        }

        .nav-item.center {
            position: relative;
            top: -20px;
        }

        .nav-item.center .nav-icon-wrapper {
            width: 60px;
            height: 60px;
            border-radius: 50%;
            background: linear-gradient(135deg, var(--accent) 0%, #c2185b 100%);
            display: flex;
            align-items: center;
            justify-content: center;
            color: var(--white);
            font-size: 1.5rem;
            box-shadow: 0 4px 15px rgba(233, 30, 99, 0.4);
        }

        /* Version Info */
        .version-info {
            text-align: center;
            padding: 20px;
            color: var(--gray-400);
            font-size: 0.8rem;
        }

        @media (max-width: 480px) {
            .profile-avatar {
                width: 80px;
                height: 80px;
                font-size: 2rem;
            }

            .profile-name {
                font-size: 1.25rem;
            }

            .profile-stats {
                gap: 10px;
            }

            .stat-value {
                font-size: 1.25rem;
            }
        }
    </style>
</head>
<body>
    <div class="tablet-frame">
        <!-- Header -->
        <header class="profile-header">
            <div class="header-row">
                <h1 class="header-title">Mi Perfil</h1>
                <button class="header-btn">
                    <i class="fas fa-edit"></i>
                </button>
            </div>
        </header>

        <!-- Profile Card -->
        <div class="profile-card">
            <div class="profile-avatar">JC</div>
            <h2 class="profile-name">Juan Carlos Mendoza</h2>
            <p class="profile-role">Técnico de Mantenimiento</p>

            <div class="profile-stats">
                <div class="stat-item">
                    <div class="stat-value">156</div>
                    <div class="stat-label">Completados</div>
                </div>
                <div class="stat-item">
                    <div class="stat-value">98%</div>
                    <div class="stat-label">Eficiencia</div>
                </div>
                <div class="stat-item">
                    <div class="stat-value">2.5</div>
                    <div class="stat-label">Años</div>
                </div>
            </div>
        </div>

        <!-- Account Section -->
        <div class="menu-section">
            <h3 class="menu-title">Cuenta</h3>
            <div class="menu-card">
                <div class="menu-item">
                    <div class="menu-icon blue">
                        <i class="fas fa-user"></i>
                    </div>
                    <div class="menu-info">
                        <div class="menu-label">Información Personal</div>
                        <div class="menu-sublabel">Nombre, cédula, teléfono</div>
                    </div>
                    <i class="fas fa-chevron-right menu-arrow"></i>
                </div>
                <a href="09-cambiar-password.html" class="menu-item">
                    <div class="menu-icon purple">
                        <i class="fas fa-lock"></i>
                    </div>
                    <div class="menu-info">
                        <div class="menu-label">Cambiar Contraseña</div>
                        <div class="menu-sublabel">Actualizar credenciales</div>
                    </div>
                    <i class="fas fa-chevron-right menu-arrow"></i>
                </a>
                <div class="menu-item">
                    <div class="menu-icon green">
                        <i class="fas fa-fingerprint"></i>
                    </div>
                    <div class="menu-info">
                        <div class="menu-label">Biometría</div>
                        <div class="menu-sublabel">Face ID / Touch ID</div>
                    </div>
                    <div class="menu-toggle active" onclick="this.classList.toggle('active')"></div>
                </div>
            </div>
        </div>

        <!-- Preferences Section -->
        <div class="menu-section">
            <h3 class="menu-title">Preferencias</h3>
            <div class="menu-card">
                <div class="menu-item">
                    <div class="menu-icon orange">
                        <i class="fas fa-bell"></i>
                    </div>
                    <div class="menu-info">
                        <div class="menu-label">Notificaciones</div>
                        <div class="menu-sublabel">Push, sonidos, alertas</div>
                    </div>
                    <span class="menu-badge">3</span>
                    <i class="fas fa-chevron-right menu-arrow"></i>
                </div>
                <div class="menu-item">
                    <div class="menu-icon gray">
                        <i class="fas fa-moon"></i>
                    </div>
                    <div class="menu-info">
                        <div class="menu-label">Modo Oscuro</div>
                        <div class="menu-sublabel">Apariencia de la app</div>
                    </div>
                    <div class="menu-toggle" onclick="this.classList.toggle('active')"></div>
                </div>
                <div class="menu-item">
                    <div class="menu-icon blue">
                        <i class="fas fa-language"></i>
                    </div>
                    <div class="menu-info">
                        <div class="menu-label">Idioma</div>
                        <div class="menu-sublabel">Español</div>
                    </div>
                    <i class="fas fa-chevron-right menu-arrow"></i>
                </div>
            </div>
        </div>

        <!-- Support Section -->
        <div class="menu-section">
            <h3 class="menu-title">Soporte</h3>
            <div class="menu-card">
                <div class="menu-item">
                    <div class="menu-icon green">
                        <i class="fas fa-question-circle"></i>
                    </div>
                    <div class="menu-info">
                        <div class="menu-label">Centro de Ayuda</div>
                        <div class="menu-sublabel">FAQs y tutoriales</div>
                    </div>
                    <i class="fas fa-chevron-right menu-arrow"></i>
                </div>
                <div class="menu-item">
                    <div class="menu-icon purple">
                        <i class="fas fa-headset"></i>
                    </div>
                    <div class="menu-info">
                        <div class="menu-label">Contactar Soporte</div>
                        <div class="menu-sublabel">Chat o teléfono</div>
                    </div>
                    <i class="fas fa-chevron-right menu-arrow"></i>
                </div>
                <div class="menu-item">
                    <div class="menu-icon gray">
                        <i class="fas fa-info-circle"></i>
                    </div>
                    <div class="menu-info">
                        <div class="menu-label">Acerca de</div>
                        <div class="menu-sublabel">Versión y términos</div>
                    </div>
                    <i class="fas fa-chevron-right menu-arrow"></i>
                </div>
            </div>
        </div>

        <!-- Logout -->
        <div class="logout-section">
            <button class="btn-logout" onclick="location.href='00a-login.html'">
                <i class="fas fa-sign-out-alt"></i>
                Cerrar Sesión
            </button>
            <div class="version-info">
                <p>Versión 1.0.0 (Build 2026.02.07)</p>
            </div>
        </div>

        <!-- Bottom Navigation -->
        <nav class="bottom-nav">
            <a href="01-listado-mantenimientos.html" class="nav-item">
                <i class="fas fa-home"></i>
                <span>Inicio</span>
            </a>
            <a href="06-calendario.html" class="nav-item">
                <i class="fas fa-calendar-alt"></i>
                <span>Calendario</span>
            </a>
            <a href="07-escanear-qr.html" class="nav-item center">
                <div class="nav-icon-wrapper">
                    <i class="fas fa-qrcode"></i>
                </div>
            </a>
            <a href="#" class="nav-item">
                <i class="fas fa-chart-bar"></i>
                <span>Reportes</span>
            </a>
            <a href="08-perfil.html" class="nav-item active">
                <i class="fas fa-user"></i>
                <span>Perfil</span>
            </a>
        </nav>
    </div>
</body>
</html>
